Help - Search - Members - Calendar
Full Version: video bitrate not cooperating with ffmpeg.
Hydrogenaudio Forums > Digital Audio/Video > General A/V
non_zero
I'm trying to use ffmpeg to convert my video files to H.264 encoded MPEG4 files. The command I'm using looks like this:

CODE
ffmpeg -i movie.mpg -f mp4 -r 30 -s 320x240 -b 768 -vcodec h264 -acodec aac -ab 128 movie.mp4


The problem is, I specify the bitrate to be 768 and the outputted file's bitrate always seems to be higher than this. I've tried a couple other free video converters, and it's the same thing... the bitrate always reads higher than what I specified.

I'm pretty new to the video conversion world, so is there something I just don't understand about video bitrates?
stephanV
how do you determine the bit rate is higher? and how much is it?
non_zero
QUOTE(stephanV @ Oct 17 2005, 05:02 PM)
how do you determine the bit rate is higher? and how much is it?
*



Mainly Quicktime's "Movie Info" menu, but ffmpeg tells me the same thing.

Well, for instance, I encode an mpeg file 1.13mbit/sec, but specifying 768kbit/sec the resulting file is actually 1.02mbit/sec. ffmpeg seems to just be totally ignoring the bitrate parameter, even though it says in the console:

CODE
Output #0, mp4, to 'movie.mp4':
Stream #0.0 Video: h264, yuv420p, 320x240, 30.00fps, q=2-31, 768 kb/s


So it clearly receives my parameters fine.
non_zero
Also, can someone explain to me what "bitrate tolerance" is?
stephanV
hmmm... well I don't know what can cause that behaviour.

Personally I just use x264cli to encode h264 video and if the files are not too short even in 1-pass mode i get accurate results.

Maybe some weirdness in ffmpeg... wouldn't be the only thing...
non_zero
QUOTE(stephanV @ Oct 18 2005, 09:00 AM)
hmmm... well I don't know what can cause that behaviour.

Personally I just use x264cli to encode h264 video and if the files are not too short even in 1-pass mode i get accurate results.

Maybe some weirdness in ffmpeg... wouldn't be the only thing...
*



I'll look up this x264cli thing you speak of.

Thanks.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.