How to set bitrate limit in FFMPEG

Mahdi Ataollahi picture Mahdi Ataollahi · Apr 16, 2017 · Viewed 20.6k times · Source

How can I limit bitrate of a transcoding video in FFMPEG to keep it under a limit value?

Answer

alireza akbaribayat picture alireza akbaribayat · Apr 16, 2017

You can use this code

ffmpeg -i myfile.avi -b 4000k -minrate 4000k -maxrate 4000k -bufsize 1835k out.m2v