[gst-devel] Switching between videos with input-selector

Luciana Fujii Pontello luciana at holoscopio.com
Tue Aug 17 19:36:55 CEST 2010


On Tue, 2010-08-17 at 10:41 +0300, victor héry wrote:
> Hello
> 
> I am trying to code an application with gst python, to allow switching 
> between different videos.
> The final aim is to stream videos and switch between differents 
> qualities or bitrate, according to the bandwith.
> 
> For the moment, I use a local display for the tests. I use 2 playbin2 
> plugin to play the video easily, and I use 2 bins, one for each playbin, 
> to make treatments on the video, such as videoscale and x264enc.
> After that, I use a third bin where I put the inputselector to switch 
> between the two streams, and the output (local display here).

From what I understand, you are asking autovideosink to play an encoded
stream. Autovideosink will accept only raw video. At least that's what
xvimagesink and ximagesink accept.

I'm not sure if input-selector can work with encoded video as well.

If you want to display the video, drop the h264enc from your pipeline.

And I don't know much about playbin2, but you probably want to drop
playbin2 from your pipeline as well. Maybe what you need is uridecodebin
or decodebin2.

Regards,

Luciana Fujii




More information about the gstreamer-devel mailing list