Hauke Duden
2007-03-28 14:11:23 UTC
Hi everyone,
I'm trying to encode MPEG2 video so that the bitrate is variable but
never exceeds a certain limit.
My limit in this case is 9MBit/s (for DVD video). I tried the following:
ffmpeg -i input.m2v -b 8000000 -bt 1000000 output.m2v
Unfortunately the bitrate exceeds 9 MBit/s in some places (sometimes by
quite a lot). Then I tried this:
ffmpeg -i input.m2v -b 4000000 -bt 1000000 output.m2v
And the bitrate still sometimes goes over 9 MBit/s.
Last but not least I tried this:
ffmpeg -i input.m2v -b 8000000 -maxrate 9000000 output.m2v
This produced the error:
[mpeg2video @ 6C15E000]a vbv buffer size is needed, for encoding with a
maximum bitrate
I'm not certain what the vbv buffer size is, so I don't really know what
a good value would be.
Do you have any suggestions?
Thanks!
Hauke
I'm trying to encode MPEG2 video so that the bitrate is variable but
never exceeds a certain limit.
My limit in this case is 9MBit/s (for DVD video). I tried the following:
ffmpeg -i input.m2v -b 8000000 -bt 1000000 output.m2v
Unfortunately the bitrate exceeds 9 MBit/s in some places (sometimes by
quite a lot). Then I tried this:
ffmpeg -i input.m2v -b 4000000 -bt 1000000 output.m2v
And the bitrate still sometimes goes over 9 MBit/s.
Last but not least I tried this:
ffmpeg -i input.m2v -b 8000000 -maxrate 9000000 output.m2v
This produced the error:
[mpeg2video @ 6C15E000]a vbv buffer size is needed, for encoding with a
maximum bitrate
I'm not certain what the vbv buffer size is, so I don't really know what
a good value would be.
Do you have any suggestions?
Thanks!
Hauke