I am trying to use the following project https://www.jetsonhacks.com/2014/10/16/gstreamer-xvimage/ as a template to use the Jetson Nano to stream two USB webcams (C920) to the screen. However, when I use the following code:
gst-launch-1.0 -vvv \
tee name=splitter \
v4l2src device=/dev/video0 do-timestamp=true ! image/jpeg, width=1280, height=720, framerate=30/1 \
! jpegparse ! jpegdec \
! $videoconvert ! videoscale ! xvimagesink sync=false splitter. \
v4l2src device=/dev/video1 do-timestamp=true ! image/jpeg, width=1280, height=720, framerate=30/1 \
! jpegparse ! jpegdec \
! $videoconvert ! videoscale ! xvimagesink sync=false splitter.
I get an error:
WARNING: erroneous pipeline: unexpected reference "splitter" - ignoring
I can use the following code to view a single webcam for both video inputs no problem:
gst-launch-1.0 -v v4l2src device=/dev/video0 \
! image/jpeg, width=1920, height=1080, framerate=30/1 \
! jpegparse ! jpegdec \
! videoconvert ! videoscale \
! xvimagesink sync=false
I am wondering if it is a syntax issue I am having. Eventually, I would like to save one of these videos to a file and stream via RTSP. But I am having issues using the “tee” functionality of gstreamer.
Thank you!