[vlc-devel] httplive.c: Improvement for Prefetch function?
fyhuel at viotech.net
Mon Apr 30 09:08:59 CEST 2012
On Sun, Apr 29, 2012 at 2:55 PM, Jean-Paul Saman <jpsaman at videolan.org> wrote:
> On Sat, Apr 28, 2012 at 8:17 AM, Frederic YHUEL <fyhuel at viotech.net> wrote:
>> 2012/4/27 Łukasz Korbel <korbel85 at gmail.com>:
>>> Prefetch function downloads 2 segments before playback start to avoid
>>> stalling (see http://trac.videolan.org/vlc/ticket/5197).
>>> - unneeded delay for fast connection
> 3 segments was a recommended by the HLS draft writter
>>> - doesn't solve the problem completely
>> Indeed, the right solution is my patch: http://patches.videolan.org/patch/306/
That was a little presumptuous, but it seems to work well. What do you
think of this patch?
>>> Posible solution:
>>> add option for number of segments to prefetch (e.g.
>>> --sout-hls-prefetchnum) with minimum set to 1 (must download first
>>> segment at least).
>> This is not a good solution IMO.
>> Hey, if you want to do something, why don't you try and work on
>> resolution switches support? *That* would be really useful! This is
>> the #1 problem of this module.
> The httplive module is a stream_filter which limits its support for
> resolution/codec/samplerate switches.
> Any changes that requires the codec to be re-instantiated is not
> possible with this module type. The
> module type needs to change to "access_demux".
IIRC Hugo tried something using input_Control(INPUT_RESTART_ES), which
didn't work, but I was thinking: "if someone else try, who knows... ?"
More information about the vlc-devel