hlsdemux: issue if target-duration is different than segment-duration

Andoni Morales ylatuya at gmail.com
Tue May 7 10:17:57 PDT 2013


Correct, that's what the spec says and that's one of the things I fixed in
hlsdemux for 0.10

Cheers,
Andoni


2013/5/7 Loris <lboillet69 at gmail.com>

> Hi,
>
> It seems that hlsdemux uses the target duration tag to compute when
> the next segment should be fetched [0].
>
> This creates an issue when the segment duration is actually lower;
> e.g.: most HLS streams from youtube have a target duration of 7 while
> each sample is 5.4 sec. The consequence is that sooner or later the
> pipeline will block having scheduled the fetching of the next segment
> after the previous has already been played [1].
>
> Any reason why the hls demuxer doesn't use the segment duration
> instead? It would seem to make more sense, wouldn't it? BTW, this is
> what FFMPEG seems to be doing (they don't have the issue) [2].
>
> Thanks,
>
> Loris
>
> [0]:
> http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/tree/ext/hls/gsthlsdemux.c#n1171
> [1]:
> http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/tree/ext/hls/gsthlsdemux.c#n854
> [2]: https://github.com/FFmpeg/FFmpeg/blob/master/libavformat/hls.c#L411
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>



-- 
Andoni Morales Alastruey

LongoMatch:The Digital Coach
http://www.longomatch.ylatuya.es
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20130507/759618c1/attachment.html>


More information about the gstreamer-devel mailing list