[vlc-devel] httplive.c: Improvement for Prefetch function?

Frederic YHUEL 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:
>> Hello,
>>
>> 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).
>>>
>>> Problem:
>>> - unneeded delay for fast connection
>>
>> Indeed
>
> 3 segments was a recommended by the HLS draft writter
>

Ah ok

>>
>>> - 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.
>
> +1
>
>> 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".
>

Ok.

IIRC Hugo tried something using input_Control(INPUT_RESTART_ES), which
didn't work, but I was thinking: "if someone else try, who knows... ?"

Best Regards,

-- 
Frédéric



More information about the vlc-devel mailing list