Re: [Libav-user] Encoding to MPEG2 buffer sizing

2019-10-04 Thread Jonathan Noble
I have had a playaround with ffmpeg to get an understanding of what rc_buffer_size needs to be set to but that didn't provide much information. Instead I stepped through ffmpeg and I can see that there are 2 buffers that need to be set up. 1 is in AVCodecContext, the other is in AVStream, Setting

Re: [Libav-user] Encoding to MPEG2 buffer sizing

2019-09-25 Thread Carl Eugen Hoyos
Am Mi., 25. Sept. 2019 um 22:57 Uhr schrieb Jonathan Noble : > [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. Note that independently of your question (I suggest to test with the cli), the

[Libav-user] Encoding to MPEG2 buffer sizing

2019-09-25 Thread Jonathan Noble
Hello, In my program I am continuously seeing the following 3 messages: > [mpeg @ 0x7f33b8004200] buffer underflow st=1 bufi=379 size=1024 > [mpeg2video @ 0x7f33b8215280] reencoding frame due to VBV > [mpeg2video @ 0x7f33b8215280] rc buffer underflow I am encoding with a constant bitrate