Stream Synchronized Webcams
Vivia Nikolaidou
n.vivia at gmail.com
Tue Nov 8 11:43:40 UTC 2016
Hi,
You should use compositor instead of videomixer. compositor will make
sure that the two sources are in sync.
You should also try removing the do-timestamp=true from the sources.
If they do timestamping correctly, it shouldn't be needed.
Best regards,
Vivia
On 8 November 2016 at 08:47, Eric-Stone <somedude114 at gmail.com> wrote:
> 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.
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
More information about the gstreamer-devel
mailing list