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

Jean-Paul Saman jpsaman at videolan.org
Sun Apr 29 14:55:22 CEST 2012


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

>
>> - doesn't solve the problem completely
>>
>
> Indeed, the right solution is my patch: http://patches.videolan.org/patch/306/
>
>> 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".

Kind regards,

Jean-Paul Saman



More information about the vlc-devel mailing list