Attached is a new version of demux_real.c.  Until tested by more users I
would still consider this alpha quality.

Unlike the previous patch, this patch insert packets whenever packet
loss has been detected.  In the case of gaps longer than a block
(typically more than 16 packets or 1.8sec) the code will insert the
minimum number of packet to maintain audio. 

If large gaps of 15-25 secs occur, then the cache is likely to be
depleted by the time packets are inserted and the audio stream will
break up. In these circumstance the patch will close Mplayer down with
an EOF if the cache stays at 0 for about 10 seconds.  This will force
users to restart rather than wait and hope that the stream may build up
the cache and stabilise which can't happen with a real-time live stream.
If you don't like this behaviour comment out lines 726-739 and/or
explore the cache-min option.

Mplayer's behaviour is now comparable with RealPlayer on live streams
and in the case of Mplayer "Pause" of more than 30 secs. - I think it
is more stable.

I have tested on Linux on 10 live BBC streams and one german station.  
At the end of testing I had one incident where MPlayer just closed down.
Shortly before all BBC streams stopped for about 2 minutes, couldn't be
accessed from 2 different machines so I think there was either network
or system problems which may have had subsequent side effects.  The
testing of gaps around 4-5 seconds has not been thorough because it is
hard to recreate the problem.

The testing that needs to done as I don't have a SB:
1. Windows version
2. verify that patch works for gaps typically 3-5 seconds.  Ensure
sound is OK and cache does not gradually deplete.
3. Check other BBC offline feeds are OK. 
4. Check full operation when used with  other systems such as
Squeezebox.  Functions such as stopping / starting / changing stations
and into/out of standby.
5. Test other functions when used with  other systems such as Pause,
FFWD, REW - although these shouldn't work, the test is needed to ensure
that Slimserver & Squeezebox are not left in a bad state and no zombie
process are left behind.

Bryan


+-------------------------------------------------------------------+
|Filename: demux_real.zip                                           |
|Download: http://forums.slimdevices.com/attachment.php?attachmentid=397|
+-------------------------------------------------------------------+

-- 
bpa
_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/plugins

Reply via email to