[Bug 643202] encodebin: streamcombiner not completely implemented

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Mon Jul 22 01:22:30 PDT 2013


https://bugzilla.gnome.org/show_bug.cgi?id=643202
  GStreamer | gst-plugins-base | git

--- Comment #14 from Sebastian Dröge (slomo) <slomo at circular-chaos.org> 2013-07-22 08:22:24 UTC ---
Jul 19 09:18:47 <slomo_>    bilboed: i wanted to talk about encodebin,
streamcombiner/streamsplitter. should it do anything that output-selector and
funnel can't do?
Jul 19 09:19:17 <bilboed>    streamcombiner/streamsplitter were designed to
support exclusive paths
Jul 19 09:19:44 <bilboed>    streamsplitter can chose the path to take based on
caps
Jul 19 09:20:48 <bilboed>    stream ! streamsplitter ! .... many paths .... !
streamcombiner ! <== the output should be consistent with the input
Jul 19 09:20:53 <bilboed>    and automatic
Jul 19 09:21:15 <slomo_>    i see
Jul 19 09:21:22 <bilboed>    afaiu, funnel just shoves all input to the output,
and only supports one format ,no ?
Jul 19 09:21:24 <slomo_>    so streamsplitter is an automatic output-selector
Jul 19 09:21:43 <bilboed>    I guess, yes
Jul 19 09:21:49 <slomo_>    funnel just takes whatever it gets from upstream
Jul 19 09:21:52 <bilboed>    right
Jul 19 09:21:58 <slomo_>    if only one stream has data, it just takes that
Jul 19 09:22:05 <slomo_>    is that the case here?
Jul 19 09:22:09 <bilboed>    no
Jul 19 09:22:30 <bilboed>    when streamsplitter switches streams, it will send
out an EOS on the old stream, before pushing out data on the new stream
Jul 19 09:22:34 <slomo_>    ok, so not possible to replace any of them... but
just implement them properly :)
Jul 19 09:22:41 <bilboed>    streamcombiner should then wait for the EOS on the
old stream before accepting data on another stream
Jul 19 09:23:08 <bilboed>    yah, sorry about implementation issues :(
Jul 19 09:23:11 <slomo_>    why would it switch streams at all?
Jul 19 09:23:36 <bilboed>    you could have queues and different elements
between splitter and combiner
Jul 19 09:24:03 <bilboed>    so you might end up receiving data from the new
stream in the combiner ... before you've finished being done with the old
stream
Jul 19 09:24:08 <slomo_>    ah
Jul 19 09:24:12 <slomo_>    yes
Jul 19 09:24:32 <slomo_>    i thought you meant streamsplitter could suddenly
decide (for the same input) to use a different srcpad
Jul 19 09:24:46 <bilboed>    not if it's the same caps, no
Jul 19 09:24:58 <slomo_>    i see, makes all sense then :)
Jul 19 09:25:08 <bilboed>    the usage is to have two parallel streams in
encodebin
Jul 19 09:25:22 <bilboed>    one with actual converters/encoders, and the other
one going straight to the combiner
Jul 19 09:25:27 <bilboed>    so that you can do smart encoding
Jul 19 09:25:31 <slomo_>    yes
Jul 19 09:25:47 <bilboed>    voila

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