[Bug 725435] hlsdemux: enable seek for live streams
GStreamer (bugzilla.gnome.org)
bugzilla at gnome.org
Mon Jan 5 13:32:55 PST 2015
https://bugzilla.gnome.org/show_bug.cgi?id=725435
GStreamer | gst-plugins-bad | git
Thiago Sousa Santos <thiagossantos> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
Target Milestone|HEAD |1.5.1
--- Comment #13 from Thiago Sousa Santos <thiagossantos at gmail.com> 2015-01-05 21:32:49 UTC ---
commit 50b5d94b2a1dfa702107c9f9203baf6df517f61e
Author: Alex Ashley <bugzilla at ashley-family.net>
Date: Fri Apr 4 16:45:51 2014 +0100
hlsdemux: Implement live seeking
hlsdemux assumes that seeking is not allowed for live streams,
however seek is possible if there are sufficient fragments in the
manifest. For example the BBC have live streams that contain 2 hours
of fragments.
The seek code for both live and on-demand is common code. The
difference between them is that an offset has to be calculated
for the timecode of the first fragment in the live playlist.
When hlsdemux starts to play a live stream, the possible seek range
is between 0 and A seconds. After some time has passed, the beginning of
the stream will no longer be available in the playlist and the seek
range is between B and C seconds.
Seek range:
start 0 ........... A
later B ........... C
This commit adds code to keep a note of the B and C values
and the highest sequence number it has seen. Every time it updates the
media playlist, it walks the list of fragments, seeing if there is a
fragment with sequence number > highest_seen_sequence. If so, the values
of B and C are updated. The value of B is used when timestamping
buffers.
It also makes sure the seek range is never closer than three fragments
from the end of the playlist - see 6.3.3. "Playing the Playlist file"
of the HLS draft.
https://bugzilla.gnome.org/show_bug.cgi?id=725435
commit af78e2501ca02d2f9cf19a2dd4713b46ff64aca0
Author: Thiago Santos <thiagoss at osg.samsung.com>
Date: Mon Jan 5 17:58:54 2015 -0300
adaptivedemux: prepare for supporting seeks in live streams
Add function to allow subclasses to specify seeking range for
live streams
https://bugzilla.gnome.org/show_bug.cgi?id=725435
--
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- 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