[MPlayer-dev-eng] [PATCH] A/V sync improvement for TV streams

Laurent laurent.aml at gmail.com
Tue Oct 21 01:52:06 CEST 2008


On 10/17/08, Jindrich Makovicka <makovick at gmail.com> wrote:
> On Fri, Oct 17, 2008 at 17:16, Laurent <laurent.aml at gmail.com> wrote:
> > Greetings,
> >
> > I've been trying to get a correct A/V sync on TV streams using
> > immediatemode=0 (audio going through MPlayer).
> [...]
> > Issue 3:
> > * TV streams are particular because mplayer cannot read frames faster
> > than they are acquired. Eventually, you can get short of audio frames
> > to grab from the demuxer.
>
> FYI, tvi_v4l2 solves this issue by stuffing the audio with silence
> (and adjusting the video timestamps accordingly) so it can produce any
> amount of audio data that is requested. I don't use tvi_v4l2 anymore,
> but as far as I remember, it was quite usable.

One could also adjust the playout speed to adapt the audio output rate
to the tuner input audio rate with scaletempo.
Not sure if this is worth the trouble, unless one use the TV tuner 24
hours a day...

Thanks,

Laurent



More information about the MPlayer-dev-eng mailing list