hlsdemux: issue if target-duration is different than segment-duration
Arnaud Vrac
rawoul at gmail.com
Tue May 7 11:37:43 PDT 2013
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20130507/5e33065f/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-hls-fix-duration-parsing.patch
Type: application/octet-stream
Size: 1728 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20130507/5e33065f/attachment.obj>
More information about the gstreamer-devel
mailing list