[gst-devel] Videomixing two/multiple webcams side by side

scottmil scottmil at gmail.com
Thu May 13 18:36:31 CEST 2010


Hello,

I've been playing with gstreamer for two days now.  I can successfully
display streams from two web cams individually. I can also videomix (side by
side) either webcam with a testpattern, but when I attempt to videomix the
two webcams it doesn't work.  I've tried a lot of different commands but
this is where I stand:

*****This works fine with a cam and a testpattern*****
gst-launch v4l2src device=/dev/video1 ! 
video/x-raw-yuv,width=320,height=240 ! videobox left=-320 ! videomixer
name=mix ! ffmpegcolorspace ! xvimagesink videotestsrc pattern=0 !
video/x-raw-yuv,width=320,height=240 ! mix.

*****When I add in a second cam instead I get the following error*****

cs at box:~/Desktop/GStreamer Projects$ gst-launch v4l2src device=/dev/video0 ! 
video/x-raw-yuv,width=320,height=240 ! videobox left=-320 ! videomixer
name=mix ! ffmpegcolorspace ! xvimagesink v4l2src device=/dev/video1 !
video/x-raw-yuv,width=320,height=240 ! mix.

(gst-launch-0.10:8243): GLib-WARNING **: g_set_prgname() called multiple
times
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Internal
data flow error.
Additional debug info:
gstbasesrc.c(2378): gst_base_src_loop ():
/GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
streaming task paused, reason not-negotiated (-4)
Execution ended after 108730332 ns.
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...
cs at box:~/Desktop/GStreamer Projects$

 I think it may have something to do with not being able to pause a live
stream, but I'm not sure how to fix it, or if there is another way around. 
I absolutely must be using live webcams, not recordings.  Anyhelp here is
GREATLY appreciated!

Scott
-- 
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Videomixing-two-multiple-webcams-side-by-side-tp2197804p2197804.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.




More information about the gstreamer-devel mailing list