[MPlayer-dev-eng] Lots of stuff for NUT

Oded Shimon ods15 at ods15.dyndns.org
Wed Jan 11 15:58:46 CET 2006


On Wed, Jan 11, 2006 at 03:45:56PM +0100, Michael Niedermayer wrote:
> On Wed, Jan 11, 2006 at 03:21:38PM +0200, Oded Shimon wrote:
> > On Wed, Jan 11, 2006 at 11:53:30AM +0100, Michael Niedermayer wrote:
> > > what about:
> > > current_dts is the dts of the current frame
> > > S is the set of all keyframes which have pts <= current_dts
> > > if adding a keyframe to S causes the backptr change to be >= t then write a
> > > syncpoint, and assign the maximum pts from S to it
> > 
> > I'm completely confused by this explanation. Help me with an example. given 
> > this scenario:
> > 
> > audio:   A0  A1  A2  A3  A4  A5  A6
> > video: I0  P1  P2  I5  B3  B4  P6  P7
> DTS:     -1 0 0 1 1 2 2 3 3 4 4 5 5 6 6
> SP:     X0  X1      X2  X3  X4  X5  X6
> SP_PTRA -   0       1   2   3   4   5
> SP_PTRV -   0       0   0   0   2   2
> SP_PTS  -   0       2   3   4   5   6
> 
> ok, ive added many syncpoints to make it more clear, obviously there
> would be fewer in practice ...
> and yes probably the pts selection could be improved by adjusting it
> downward where possible (X2 2->1)

OK, this seems very similar of the old idea I had of back_ptr not pointing 
to NEAREST keyframe, but most correct keyframe. I remember researching this 
idea thoroughly, and finding at the very least, that it is complicated as 
hell.

I think if we code it efficiently, we might as well go for the "almost" 
single pts and save ourselves the high complexity, it is simply not worth 
it.

- ods15




More information about the MPlayer-dev-eng mailing list