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

Rich Felker dalias at aerifal.cx
Tue Jan 10 01:44:14 CET 2006


On Mon, Jan 09, 2006 at 11:52:02PM +0100, Michael Niedermayer wrote:
> Hi
> 
> On Mon, Jan 09, 2006 at 05:34:54PM -0500, Rich Felker wrote:
> > On Mon, Jan 09, 2006 at 10:26:03PM +0100, Michael Niedermayer wrote:
> [...]
> > > hmm, we do have zero-buffer muxing and demuxing? how?
> > > for muxing (we assume pts==dts) we need at least 1 frame of each stream to
> > > mux anything that will mean buffering several packets for some streams in 
> > > practice
> > 
> > No, you just need to know a lower bound on the next pts for each
> > stream. In practice this is always known (especially for live
> > sources!) since it's just the duration of the last frame written plus
> > the last pts.
> 
> theoretically known is one thing, practically available another
> especially for live sources its tricky, only some bound which changes
> over time is theoretically known ...
> think of skiping frames as long as the difference is small

if you're doing something like this, you can update the bound as soon
as you make the decision to skip, which happens in real time.

i'm not saying realtime zerobuffer muxing is completely trivial or
that a general-purpose app would be fitted to do it. but it's not hard
for a specialized setup to do, imo.

rich




More information about the MPlayer-dev-eng mailing list