After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 767838 - Does souphttpsrc and hlsdemux support stream alternates?
Does souphttpsrc and hlsdemux support stream alternates?
Status: RESOLVED NOTABUG
Product: GStreamer
Classification: Platform
Component: gstreamer (core)
1.8.0
Other Windows
: Normal normal
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2016-06-19 10:42 UTC by spaceman
Modified: 2016-06-21 07:48 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description spaceman 2016-06-19 10:42:24 UTC
I use this pipeline but playback ends when the stream has changed to other bitrate:
gst-launch-1.0 souphttpsrc location=http://myhost/index.m3u8 ! hlsdemux ! tsdemux name=t t. ! queue ! h264parse ! capsfilter ! avdec_h264 ! videocovnert ! autovideosink t. ! queue ! aacparse ! faad ! audioconvert ! autoaudiosink

If the use this pipeline then Change the stream to other bitrate:
gst-launch-1.0 playbin location=http://myhost/index.m3u8

Does souphttpsrc and hlsdemux support stream alternates?

alternates stream:https://developer.apple.com/library/ios/documentation/NetworkingInternet/Conceptual/StreamingMediaGuide/UsingHTTPLiveStreaming/UsingHTTPLiveStreaming.html#//apple_ref/doc/uid/TP40008332-CH102-SW18
Comment 1 Sebastian Dröge (slomo) 2016-06-21 07:39:34 UTC
This is a bug tracker, not a support forum.

But hlsdemux currently does not support alternative renditions. There are a few bug in Bugzilla about adding this feature, and it seems to be worked on but is not ready yet.
Comment 2 Tim-Philipp Müller 2016-06-21 07:48:41 UTC
I think the reporter did not mean alternative renditions but switching between streams of different bitrates.

The answer for that is: yes, GStreamer supports that, but you can't easily make it work with gst-launch pipelines, because the pipelines are static and you need to dynamically handle the bitrate switches (new pads are added on the fly etc.). 

If you use playbin it will handle it for you.