How can I achieve the best overall FLV quality with FFMPEG?

后端 未结 3 415
旧时难觅i
旧时难觅i 2021-02-01 09:03

I\'m looking to accomplish the best quality FLV with the lowest file size. After all, isn\'t that everyone\'s goal? These videos will be streamed if that makes any difference.

3条回答
  •  囚心锁ツ
    2021-02-01 09:26

    I think the best solution to maximize the ratio quality/size is to scrap the "flv" encoding of ffmpeg altogether, and use H.264 instead.

    I'm usually using handbrake to convert files to MP4/AAC, and then only use FFMPEG to remux the file into an FLV container.

    ffmpeg -i input_file.mp4 -vcodec copy -acodec copy -y output_file.flv
    

    There are also a lot of parameters for handbrake, some interesting presets can be found here: http://trac.handbrake.fr/wiki/BuiltInPresets

提交回复
热议问题