VideoHelp Forum




+ Reply to Thread
Results 1 to 5 of 5
  1. Member
    Join Date
    Mar 2011
    Location
    Paris, France
    Search PM
    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?

    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
    Thank you.
    Last edited by yetanotherlogin; 28th Dec 2024 at 12:42.
    Quote Quote  
  2. Member
    Join Date
    Mar 2008
    Location
    United States
    Search Comp PM
    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
    Quote Quote  
  3. Member
    Join Date
    Mar 2011
    Location
    Paris, France
    Search PM
    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)
    For best results, are there other settings I should use in addition to?
    Quote Quote  
  4. Member
    Join Date
    Mar 2008
    Location
    United States
    Search Comp PM
    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
    Quote Quote  
  5. Member
    Join Date
    Mar 2011
    Location
    Paris, France
    Search PM
    Thank you
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!