[MPlayer-dev-eng] NUT cleanup

Michael Niedermayer michaelni at gmx.at
Wed Sep 7 20:57:54 CEST 2005


Hi

On Wed, Sep 07, 2005 at 11:25:46AM -0400, Rich Felker wrote:
> 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.

ahh we have a volunteer to rewrite all players, perfect :)
for the libavcodec side, just set CODEC_FLAG_LOW_DELAY and you will get the
frames immedeatly like you want

[...]
-- 
Michael




More information about the MPlayer-dev-eng mailing list