ffmpeg command for faster encoding at a decent bitrate with smaller file size

后端 未结 1 555
渐次进展
渐次进展 2020-12-29 06:41

I\'m currently using an implementation of ffmpeg on my android app. I\'m allowing users to take short videos within my app and then when they upload them to the server, I\'

相关标签:
1条回答
  • 2020-12-29 07:35

    Try

    ffmpeg -i input.mp4 -vcodec libx264 -crf 27 -preset veryfast -c:a copy -s 960x540 output.mp4
    

    In CRF mode, x264 encodes video to maintain a certain quality throughout. Lower values produce higher quality but larger files. Combined with veryfast preset, it should provide an acceptable tradeoff between speed and size.

    0 讨论(0)
提交回复
热议问题