[MPlayer-dev-eng] [PATCH]fix garbled audio in RA live streams

Bryan Alton balton at eircom.net
Mon Oct 3 09:34:13 CEST 2005


The patch is to file demux_real.c in libmpdemux

It is to detect packets dropped by the RealAudio server and to insert
packets into the data stream to replace the missing packets. As a
result of missing packets the present code gets out of sync.

The problem manifests itself as choppy/garbled audio from 
live RealAudio streams as used by the BBC.  The problem has
been noticed particularly with BBC live streams. The bug has
been reported many times and as far back as 11/09/2004 typically
with the words: Garbled BBC RA audio 

Packets are dropped at source by the server and can only be
detected by examining packet timestamp.   During initialisation
the patch calculates the estimated duration of a packet.  As
each packet is received, if the elapsed time since the previous
packet is greater than expected,  then one or more packets have
been lost and will have to be made up.  

To minimise clicks/crackles, the contents of the replacement
packets to be inserted into the data stream are copies of the
last relevant good packet received.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: demux_real.c.diff
Type: text/x-diff
Size: 6113 bytes
Desc: demux_real.c diff file
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20051003/207fc450/attachment.diff>


More information about the MPlayer-dev-eng mailing list