FFMPEG Bitrate Calculation / Optimization

前端 未结 3 1826
暗喜
暗喜 2021-01-07 09:50

I wrote the following wrapper for FFMPEG:

function Video($input, $crop = null, $scale = null, $output = null, $extra = null)
{
    $input = @new ffmpeg_movie         


        
3条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-07 10:07

    I ended up using the -sameq flag, I read somewhere that this doesn't translate to the same quality but for now this is better than forcing the original bit rate.

    Anyway, I've come across this Bash script that suggests that my thinking is right, I still don't know how to calculate the output bit rate without having the output size as a constrain. If anyone knows, please share!

提交回复
热议问题