[gst-devel] Problems when trying to choose between multiple possible video streams

Bas Kloet bas at luon.net
Sat Mar 26 13:19:55 CET 2005


I'm trying to create a program that will accept multiple webcam streams
as its input and is able to switch between them on the fly.  At the
moment I've written an example program that, in theory, takes multiple
video files as its input and (hardcoded) chooses one of them to output. 

The problem is that it only displays the last filesrc that has been
added to the switch element.  

I've put the program online at
http://edison.luon.net/~bas/ruby/example_player.rb .
 
It is in Ruby, but it should be easy enough to read for anyone with
basic knowledge of gstreamer. Since the program isn't written in C, it
is possible that the problem lies in the Ruby-gstreamer bindings, but I
think it is far more likely that it is a problem with my program itself.

I'd very much appreciate it if someone could check out my program and
tell me what I'm doing wrong.

Greetings,
Bas Kloet




More information about the gstreamer-devel mailing list