[MPlayer-dev-eng] PTS clarification

Charles Henrich henrich at sigbus.com
Thu Feb 28 00:20:52 CET 2002


On the subject of Re: [MPlayer-dev-eng] PTS clarification, Arpi stated:

> Hi,
> 
> > Arpi, im having a devil of a time getting audio to sync when any kind of
> > buffering is taking place on the video stream.   If I have a/v streams
> > that look like so:
> > 
> > A1.00 A1.04 A1.08 A1.12 A1.16 A1.20 A1.24 A1.28 A1.32 V0.80 V0.84 V0.88
> > V0.92 V1.04 V1.08 V1.12
> > 
> > Then the audio will cumulativly become out of sync.
> it shouldn't. could you upload such sample?
> 
> > What assumptions are being made on how the packets should exist in the
> > buffe r for PTS syncronization to work?
> nothing special.
> 
> anyway, your sh_audio_t header must be ok (i_bps, o_bps, samplerate).

I believe thats fine, its just raw 44khz PCM data, so I've set i_bps and o_bps
the same, as so:

    sh_audio->i_bps = sh_audio->samplerate * sh_audio->samplesize/8 *
                      sh_audio->channels;

One other question is that at what point does it decide to duplicate a frame?
its cruising along reading video frames, then writes out duplicates when it
sees a skip, how does it re-interleave them into the AVI file?   

-Crh

       Charles Henrich         Eon Entertainment         henrich at msu.edu

                       http://www.sigbus.com:81/~henrich



More information about the MPlayer-dev-eng mailing list