Stream Synchronized Webcams

Eric-Stone somedude114 at gmail.com
Tue Nov 8 06:47:07 UTC 2016


Hi,

I'm trying to stream two synchronized side-by-side webcams compressed in
h264 over the network. Right now, I have the output saved to a file (because
it simplifies testing) using the command:

gst-launch-1.0 \
	v4l2src device=/dev/video0 do-timestamp=true ! \
	image/jpeg, width=$WIDTH, height=$HEIGHT, framerate=$FPS/1 ! \
	jpegparse ! jpegdec ! \
	videorate ! \
	alpha alpha=1.0 ! \
	videobox border-alpha=0 left=-$WIDTH ! \
	videomixer name=mix ! \
	videoconvert ! \
	queue ! \
	queue ! omxh264enc ! matroskamux ! filesink location=output/out.mkv  \
	$v4l2src device=/dev/video1 do-timestamp=true ! \
	image/jpeg, width=$WIDTH, height=$HEIGHT, framerate=$FPS/1 ! \
	jpegparse ! jpegdec ! \
	videorate ! \
	queue ! \
	mix.

This works, but unfortunately the two views are out of sync. I imagine that
I need to add "sync=true" to some element before the encoder, but I'm unsure
as where that should go. Does anyone have any suggestions on how to
synchronize these two inputs?



--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Stream-Synchronized-Webcams-tp4680531.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list