Hello,
To further compress videos into smaller files, I'd like to try x265 for video and Opus for audio.
I saw those two lines mentioned. Which should I use?
Thank you.Code:#for non-interlaced videos ffmpeg -i input.ts -c:v libx265 -crf 26 -c:a libopus -b:a 128k -frame_duration 60 output.mp4 #for interlaced videos. Use -vf yadif=1 as interlace filter to prevent interlacing artifacts: ffmpeg -i input.ts -vf yadif=1 -c:v libx265 -crf 26 -c:a libopus -b:a 128k -frame_duration 60 output.mp4
+ Reply to Thread
Results 1 to 5 of 5
-
Last edited by yetanotherlogin; 28th Dec 2024 at 12:42.
-
As mentioned in the comments above, the second example contains the yadif filter to de-interlace the source -
and should only be used on interlaced sources.
That is your determining factor -
So I should the right mode (interlaced/non-i, where "progressive" = interlaced) depending on the input video.
Code:# ffprobe test.mp4 Duration: 00:08:12.45, start: 0.000000, bitrate: 176 kb/s Stream #0:0[0x1](und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709, progressive), 426x240 [SAR 1:1 DAR 71:40], 123 kb/s, 29.97 fps, 29.97 tbr, 90k tbn (default)
-
You have to find the right trade-off, something you're happy with. The higher the CRF number,
the smaller and worse quality the file. Probably CRF 22-26 would be the typical range
Similar Threads
-
Recommended version of x265 for my cpu
By Ennio in forum ComputerReplies: 5Last Post: 11th Feb 2024, 14:57 -
Need a ffmpeg code to convert 2160p x265 60fps to 1080p
By sillymovie in forum Video ConversionReplies: 7Last Post: 6th Feb 2024, 16:49 -
Recommended settings for X265
By Cazz in forum Video ConversionReplies: 3Last Post: 5th Nov 2022, 08:47 -
FFMPEG x265 encoding wrong settings for some sources
By tony95 in forum Video ConversionReplies: 4Last Post: 10th Dec 2021, 13:11 -
XMedia Recode recommended settings for x264 and x265 encoders
By anet88 in forum EditingReplies: 1Last Post: 15th Nov 2020, 11:06