[Bug 777213] hlsdemux: Re-expose only variant stream with bitrate switching

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Mon Oct 16 03:49:08 UTC 2017


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

--- Comment #14 from tianyahai <490202531 at qq.com> ---
(In reply to Seungha Yang from comment #13)
> (In reply to tianyahai from comment #10)
> > Thank you for your reply, in deeded, the subtitles are closed by default,
> > but in the code of gsthlsdemux.c file i enabled subtitle like this:
> >   select = demux->streams_aware ? TRUE : (media->mtype ==
> > GST_HLS_MEDIA_TYPE_VIDEO ||
> >           media->mtype == GST_HLS_MEDIA_TYPE_AUDIO || media->mtype ==
> > GST_HLS_MEDIA_TYPE_SUBTITLES);
> > 
> > In my m3u8 there are eight subtitles, the subtitles can be displayed when
> > the code is running, but if i switch subtitle to another it will be
> > disappear, i used playbin or playbin2, not playbin3
> This comment might be helpful for you :)
> https://bugzilla.gnome.org/show_bug.cgi?id=779011#c7

Thank you,i will try it follow this comment
> 
> > Yes,as you say,i used playbin,can i add "GST_OBJECT_FLAG_SET (dec,
> > GST_ELEMENT_FLAG_SOURCE | GST_BIN_FLAG_STREAMS_AWARE)" to gsturidecodebin.c
> > file according to your urisourcebin file? 
> You can try it but it doesn't make sense because uridecodebin doesn't
> "STREAMS_AWARE".
> 
...indeed it doesn't work...
> > How can hlsdemux achieve switch subtitles...
> It's totally dependent on adaptivdemux's track switch method. Firstly,
> adaptivdemux(hlsdemux) will expose all available tracks during preroll
> state. Then, stop streaming for non-activated track depending on flow return
> "not-linked". It's well described on comment of gstadaptivedemux.c
> 
> Then, if you try switch track, it will trigger "reconfigure" event which
> also trigger re-streaming for newly activated track in adaptivedemux.
> Basically, this is how adaptivedemux switch tracks. But when I saw comment
> above, there seems weak point (maybe bug?) in playbin's subtitle track
> change behavior.
Have you tested m3u8 file that contains mulit bitrate streams and subtitles,
and can you switch subtile seccessfully? thank you again, have a nice day^_^

-- 
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