<div dir="ltr"><div><span style="color:rgb(0,0,0)">Hello,</span></div><div><span style="color:rgb(0,0,0)"><br></span></div><div><span style="color:rgb(0,0,0)">In my program I am continuously seeing the following 3 messages:</span></div><div><span style="color:rgb(0,0,0)"><br></span></div><div>

<p style="margin:0px;text-indent:0px;white-space:pre-wrap"><span style="color:rgb(0,0,0)">> [mpeg @ 0x7f33b8004200] buffer underflow st=1 bufi=379 size=1024</span></p>
<p style="margin:0px;text-indent:0px;white-space:pre-wrap"><span style="color:rgb(0,0,0)">> [mpeg2video @ 0x7f33b8215280] reencoding frame due to VBV</span></p>
<p style="margin:0px;text-indent:0px;white-space:pre-wrap"><span style="color:rgb(0,0,0)">> [mpeg2video @ 0x7f33b8215280] rc buffer underflow</span></p><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><span style="color:rgb(0,0,0)"><br></span></p><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><span style="color:rgb(0,0,0)">I am encoding with a constant bitrate where AVCodecContext's bit_rate = rc_min_rate = rc_max_rate.</span></p><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><span style="color:rgb(0,0,0)"><br></span></p><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><span style="color:rgb(0,0,0)">I have tried to change the size of rc_buffer_size but I see the following message</span></p><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><span style="color:rgb(0,0,0)"><br></span></p><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><span style="color:rgb(0,0,0)">> [mpeg2video @ 0x7f33b8215280] Warning vbv_delay will be set to 0xFFFF (=VBR) as the specified vbv buffer is too large for the given bitrate!</span></p>
<p style="margin:0px;text-indent:0px;white-space:pre-wrap"><span style="color:rgb(0,0,0)">> [mpeg @ 0x7f33b8004200] VBV buffer size not set, using default size of 230KB</span></p>
<p style="margin:0px;text-indent:0px;white-space:pre-wrap"><span style="color:rgb(0,0,0)">If you want the mpeg file to be compliant to some specification</span></p>
<p style="margin:0px;text-indent:0px;white-space:pre-wrap"><span style="color:rgb(0,0,0)">Like DVD, VCD or others, make sure you set the correct buffer size</span></p>
<p style="margin:0px;text-indent:0px;white-space:pre-wrap"><span style="color:rgb(0,0,0)">> [mpeg @ 0x7f33b8004200] ac3 in MPEG-1 system streams is not widely supported, consider using the vob or the dvd muxer to force a MPEG-2 program stream.</span></p><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><span style="color:rgb(0,0,0)"><br></span></p><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><span style="color:rgb(0,0,0)">How does one correctly configure the buffer for a given bitrate in MPEG2?</span></p><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><span style="color:rgb(0,0,0)"><br></span></p><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><span style="color:rgb(0,0,0)">Kind regards</span></p><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><span style="color:rgb(0,0,0)"><br></span></p><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><span style="color:rgb(0,0,0)">Jon Noble</span><span style="color:rgb(0,0,0)"><br></span></p><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><span style="color:rgb(0,0,0)"><br></span></p></div></div>