[vlc-devel] [vlc-commits] TS demux: Enhance TS demuxer to support duration and current time

Laurent Aimar fenrir at elivagar.org
Mon Oct 10 20:06:25 CEST 2011


On Tue, Oct 11, 2011 at 03:00:00AM +0900, Naohiro KORIYAMA wrote:
> 2011/10/11 Jean-Paul Saman <jpsaman at gmail.com>:
> > This commit breaks VOD playback for HTTP Live Streaming in
> > modules/stream_filters/httplive.c
> > It makes HTTP Live Streaming download almost the entire movie, while
> > 1-3 segments should be more then enough.
> >
> > I guess the cause is that the semantics changed of STREAM_GET_SIZE,
> > STREAM_GET_POSITION and STREAM_SET_POSITION.
> > What are the semantics for there now? I thought they were in bytes,
> > but seems to be no longer true.
> 
> I changed STREAM_GET_POSITION, STREAM_GET_POSITION, STREAM_GET_LENGTH.
> As you said, they are not in bytes, but in times.
STREAM_GET_POSITION/LENGTH are still in bytes. But DEMUX_GET_* now try
to use the PCR to have real values, and the seeks in the demuxer
are based on PCR.

The issue comes probably from the fact that now the TS demuxer does 10
seek at the start. Dunno how the http live streaming copes with it.

I will deactivates this mode when the stream_t layer report slow seek
support.

-- 
fenrir



More information about the vlc-devel mailing list