Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to convert some videos with FFmpeg to make them streamable. So I want to convert to a video format with a constant bitrate. Can anyone help me? I have tried a lot of options, like -maxrate, -minrate -bufsize, but none of them produced a video at a fixed bitrate.

share|improve this question

migrated from Jul 24 '11 at 10:06

This question came from our site for professional and enthusiast programmers.

From the FFmpeg documentation:

Set min video bitrate (in bit/s). Most useful in setting up a CBR encode:

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

So, set minrate, maxrate and bitrate to the same rate.

Note that x264 doesn't have a true constant bit rate mode, this will effectively emulate one for most purposes - the bit rate will still vary over lengths of time less than or equal to 1 second.

share|improve this answer
For example I tried the ffmpeg -y -i myVideo.avi -vcodec libx264 -vb 4000k -minrate 4000k -maxrate 4000k -s qvga -vpre normal -bufsize 1835k -acodec ac3 -ab 192k -ar 44100 -ac 2 ~/Desktop/test.mp4 but I get a VBR output, I have read the documentation of the ffmpeg but I did't have result, I'm still new to video compression and ffmpeg.So I need some help. – androidGR Apr 12 '11 at 14:48

You must log in to answer this question.