[FFmpeg-devel] [PATCH] Increase ffplay buffer size

Marton Balint cus
Wed Oct 21 02:06:00 CEST 2009


Hi,

I have recently come across a 1080i DVB-C mpeg TS stream where I 
experienced sound buffer underruns, because the audio queue has become 
empty from time to time.

The cause of this was the too small video queue size, because ffplay 
stopped reading packets when the video queue was full, even if the audio 
queue only contained 1 or 2 KB of data.

My patch solves this problem by increasing the buffers to 10 times of 
their original size, and also adds an extra check, to stop reading 
packets if all of the buffers are more than 5% full.

Regards,
   Marton
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ffplay-bigger-smarter-buffers.patch
Type: text/x-patch
Size: 1280 bytes
Desc: 
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20091021/18d905c1/attachment.bin>



More information about the ffmpeg-devel mailing list