[MPlayer-dev-eng] Adding threaded functionality to mplayer NODAEMON

Nico Sabbi nsabbi at tiscali.it
Mon Sep 13 08:28:55 CEST 2004


Il dom, 2004-09-12 alle 02:32, Attila Kinali ha scritto:
> 
> > Mplayer is a wonderful tool as is now, but I found a big inconvenience
> > when playing real time streams (DVB, in my case). Mplayer is always
> > too fast and empties the buffers or too slow and overflows the buffers.
> 
> Hmm.. now that's an interesting problem.
> 
> > I hacked a simple solution here: I monitor the cache buffers fill status
> > and skip audio sample to go faster or play audio samples twice to go slower,
> > keeping the cache at near costant level. The implementation is
> > a hack, the quality of audio is compromised and it is conceptually wrong
> > (think about VBR streams), but I solved my problem with a few lines of code
> > and I'm able to play from /dev/dvb/adapter0/dvr0 reliably.
> > (the recent patch involving faster/slower playback may help solving
> > this in a better way)
> 
> Is it possible to extract a clock from the DVB stream, w/o relying on
> the bandwidth ? If so, this should be used to adjust MPlayer's
> reference. Ie implementing a PLL in software.

yes, there is a clock (PCR); using it is the the only sane solution
to prevent underflows; the hard part is making mplayer respect this 
"master" clock (same thing applies to DVD and mpeg in general).





More information about the MPlayer-dev-eng mailing list