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

Andoni Morales ylatuya at gmail.com
Tue May 7 13:49:01 PDT 2013


Most of these fixes are in the patch set of this bug report:
https://bugzilla.gnome.org/show_bug.cgi?id=698155


2013/5/7 Arnaud Vrac <rawoul at gmail.com>

> This issue is not fixed in both master and 0.10 branches. The download of
> the next fragment should not depend on the EXT-X-TARGETDURATION property
> as this duration can be much longer than each fragment duration, as Loris
> said.
>
> There is also a bug when parsing the durations in the m3u8 file, strtod
> can fail depending on the current locale. Please see the attached patch.
>
>
> On Tue, May 7, 2013 at 7:17 PM, Andoni Morales <ylatuya at gmail.com> wrote:
>
>> 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
>>
>> _______________________________________________
>> gstreamer-devel mailing list
>> gstreamer-devel at lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>>
>>
>
>
> --
> Arnaud Vrac
>
> _______________________________________________
> 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/cbe22f58/attachment.html>


More information about the gstreamer-devel mailing list