[MPlayer-dev-eng] NUT cleanup

Rich Felker dalias at aerifal.cx
Wed Sep 7 17:25:46 CEST 2005


On Wed, Sep 07, 2005 at 01:18:02AM -0700, Loren Merritt wrote:
> >The problem here is what happens if we seek to timestamp of 90 or so..
> >We should be able to start decoding the keyframe with pts==100, but
> >we'll have a very hard time finding it since it's stored way back at
> >dts==2. :( In fact without an index there's no way to find it without
> >essentially doing a linear search thru the whole file up to dts==100.
> >
> >Do you have a good solution?
> >
> >Rich
> 
> The only solution I know of (good or otherwise) is:
> Don't require 1 coded frame -> 1 decoded frame. If you ever want to see 
> the last frame, the decoder must support outputting a frame without 
> inputting the next.

Of course. The decoder should always operate in "low_delay" mode, and
output each frame immediately. It's up to the player to time them
correctly using pts.

> So just do that whenever possible: it can output P2 
> at the right time even if I100 isn't stored at dts==2. Hmm, this is 
> sounding like AVI packed B-frames.

I don't see how... As soon as the demuxer sees any dts >= 2, it knows
that there can't be any more frames with pts < 2.

Rich




More information about the MPlayer-dev-eng mailing list