[FFmpeg-user] mpeg2 bufsize question

Tim Nicholson tim.nicholson at bbc.co.uk
Thu Jan 19 08:55:04 CET 2012

On 18/01/12 00:42, Michael Niedermayer wrote:
> On Mon, Jan 16, 2012 at 05:03:56PM -0500, Dave P wrote:
>> Hello list,
>> How do you calculate bufsize?  No matter what value I choose, I get
> When you generate a mpeg file for XYZ lets say thats DVD then theres
> a XYZ (DVD in this case) specification that lists what buffer size
> this allows.
> If you choose a value larger than what the spec allows then you dont
> conform to the spec and some players will not corectly play the file.
> too small and you get various over and underflows

Nice explanation.

I have found, when experimenting that I often get a single

"[mpeg2video @ 0x17f79c0] rc buffer underflow" at the start of coding, 
but then no further errors.

Is that cause for concern, and indicative of too small a buffer, or just 
a singularity as the system gets going?

Files seem to play OK.


This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated.
If you have received it in error, please delete it from your system.
Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately.
Please note that the BBC monitors e-mails sent or received.
Further communication will signify your consent to this.

More information about the ffmpeg-user mailing list