Can I use input-selector to switch between several inputs??

Tim Müller tim at centricular.com
Tue Nov 24 03:01:16 PST 2015


On Tue, 2015-11-24 at 02:28 -0800, Giacomo D wrote:

>         selector = self.pipelinelaunch.get_by_name("i")
>         new_pad = selector.get_static_pad("sink1)
> 
> It shows me only a video and it doesn't change how it should have!
> I'm getting None from "selector.get_static_pad("sink%s)".
> 
> What is wrong in this code? 

gst-inspect-1.0 input-selector
...
Pad Templates:
  SINK template: 'sink_%u'
...

So try selector.get_static_pad("sink_1") instead.

Input-selector is the right choice to select inputs. You should avoid
pad probes unless absolutely necessary.

Cheers
 -Tim

-- 
Tim Müller, Centricular Ltd - http://www.centricular.com




More information about the gstreamer-devel mailing list