[vlc-devel] [PATCH] demux: ts: support get length for non fastseekable

Zhao Zhili wantlamy at gmail.com
Fri Mar 18 14:00:06 CET 2016

On Fri, Mar 18, 2016 at 7:15 PM, Francois Cartegnie <fcvlcdev at free.fr>

> Le 18/03/2016 15:12, Zhao Zhili a écrit :
> > Some test results. Yes, for a TS with multiple programs, there are a lot
> of http
> > requests (14 in this test).
> >
> > For TS with single program, four requests is enough, and one of the
> requests is
> > to check if file size has changed.
> The issue being exactly to avoid a large number of HTTP requests which
> could be slow (!canfastseek). A better option might be to increase the
> number of packets, but which will also increase delay depending on
> bandwidth, and multiplex.

If I didn't make a mistake, the patch is trying to avoid multiple seek in
by increase the number of packets.

I think we can decrease delay by searching a dts near the last one (return
ProbeChunk() early), instead of the last one exactly. The final result will
be one
second (likely) or a few seonds (unlikely) smaller then the real duration
 on the bitrate.

> Francois
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20160318/5ce55a9f/attachment.html>

More information about the vlc-devel mailing list