[vlc-devel] [PATCH 09/48] hls: VOD fast start

Jean-Paul Saman jpsaman at videolan.org
Tue Jan 10 12:48:36 CET 2012


I believe this is more a 'personal preference' thing. Since some
people want a fast start others want to start at the highest quality.
It should probably be an option, eg: --httplive-fast-start (true or
false by default).

Fast start or not is independent of the HLS stream being a live or vod
stream. In both cases the RFC (or was it Apple) suggested that at
least 3 segments should be prefetched for stable playback.

Kind regards,

Jean-Paul Saman.

On Mon, Jan 9, 2012 at 4:16 PM, Hugo Beauzée-Luyssen <beauze.h at gmail.com> wrote:
> From: Luc Saillard <luc.saillard at sfr.com>
>
> ---
>  modules/stream_filter/httplive.c |    4 ++++
>  1 files changed, 4 insertions(+), 0 deletions(-)
>
> diff --git a/modules/stream_filter/httplive.c b/modules/stream_filter/httplive.c
> index ff386ce..ecddc01 100644
> --- a/modules/stream_filter/httplive.c
> +++ b/modules/stream_filter/httplive.c
> @@ -1710,6 +1710,10 @@ again:
>     if (hls_DownloadSegmentData(s, hls, segment, current) != VLC_SUCCESS)
>         return VLC_EGENERIC;
>
> +    /* Fast start, don't prefetch others segments */
> +    if (!p_sys->b_live)
> +      return VLC_SUCCESS;
> +
>     /* Found better bandwidth match, try again */
>     if (*current != stream)
>         goto again;
> --
> 1.7.8.3
>
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> http://mailman.videolan.org/listinfo/vlc-devel



More information about the vlc-devel mailing list