[Bug 727742] hlsdemux: selects incorrect starting position for live streams

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Sat Feb 21 04:37:46 PST 2015


https://bugzilla.gnome.org/show_bug.cgi?id=727742

Thiago Sousa Santos <thiagossantos at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |thiagossantos at gmail.com
         Resolution|---                         |FIXED
   Target Milestone|git master                  |1.5.1

--- Comment #6 from Thiago Sousa Santos <thiagossantos at gmail.com> ---
Thanks. From the spec:

"  The client SHALL choose which Media Segment to play first from the
   Media Playlist when playback starts.  If the EXT-X-ENDLIST tag is not
   present and the client intends to play the media normally, the client
   SHOULD NOT choose a segment which starts less than three target
   durations from the end of the Playlist file.  Doing so can trigger
   playback stalls."

So picking any segment that is at least last-3 is ok according to the spec. As
this is live, getting closer to the current recording position provides a
better experience.

If needed we can add a property to adaptivedemux to allow users selecting what
would be best for them, selecting earlier or later fragments.

For future patches, please run 'make check' to make sure your commit didn't
break the tests. This patch had 2 tests failing because of the new starting
position. I amended the fixes to your patch.

commit a08dd856081a3fd79c8f24947a396f9a8638d1ca
Author: Alex Ashley <bugzilla at ashley-family.net>
Date:   Fri Feb 20 13:55:05 2015 +0000

    hlsdemux: select correct starting position for live streams

    When playing live HLS streams, the media playback starts from the
    beginning of the media playlist. When playing a live HLS stream,
    media playback should start from 3 fragments from the end of the
    playlist.

    See section 6.3.3. of the HLS draft [1]

    This commit changes the logic to select 3 fragments from the end when
    playing a live stream.

    [1] http://tools.ietf.org/html/draft-pantos-http-live-streaming-12#page-29

    https://bugzilla.gnome.org/show_bug.cgi?id=727742

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list