I am trying to use an old analog capture device to view my UAV udp video feed in qgroundcontrol but I can not seem to get the gst-launch params correct on TK1.
SOLVED:
Here is the gst-launch command for analog video capture at 30/1 30000/1001 framerate:
gst-launch-1.0 -vvv -e v4l2src device=/dev/video0 do-timestamp=true norm=NTSC pixel-aspect-ratio=1 ! video/x-raw, format=YUY2, width=720, height=480 ! queue max-size-buffers=0 max-size-time=0 max-size-bytes=0 ! tee name=t ! queue ! videoconvert ! omxh264enc ! video/x-h264, width=720, height=480 ! h264parse ! rtph264pay config-interval=1 ! udpsink host=192.168.1.79 port=5600 t. ! queue ! videoconvert
Here is the setup:
Using cx231xx capture device to capture analog gopro feed through composite cables and gopro usb-to-composite: OTG102 - LinuxTVWiki and https://www.ebay.com/itm/Gopro-Hero3-USB-to-AV-Video-Output-RCA-Combo-Cable-5V-DC-Power-Supply-Cable-FPV/261167355923
OTG2 device captures video fine through VLC on Jetson-TK1 selecting Analog-TV and NTSC.
Here is my gst-launch-1.0 command that I thought would work following https://www.linuxtv.org/wiki/index.php/V4L_capturing:
gst-launch-1.0 -vvv -e v4l2src device=/dev/video0 do-timestamp=true norm=NTSC pixel-aspect-ratio=1 ! tee name=t ! queue ! videoconvert ! omxh264enc ! video/x-h264, width=720, height=480, stream-format=byte-stream ! h264parse ! rtph264pay config-interval=1 ! udpsink host=192.168.1.79 port=5600 t. ! queue ! videoconvert
gst-launch-1.0 command that works with generic v4l2 webcam:
gst-launch-1.0 -vvv -e v4l2src device=/dev/video0 ! tee name=t ! queue ! videoconvert ! omxh264enc ! video/x-h264, width=1920, height=1080, framerate=30/1, stream-format=byte-stream ! h264parse ! rtph264pay config-interval=1 ! udpsink host=192.168.1.79 port=5600 t. ! queue ! videoconvert
Can anyone here chime in and help out with the correct params I should be using? Thanks in advance for any pointers…
Here are the capabilities of the cx231xx device:
gst-launch-1.0 --gst-debug=v4l2src:5 v4l2src device=/dev/video0 ! fakesink 2>&1 | sed -une '/caps of src/ s/[:;] /\n/gp'
0:00:00.155975694 6598 0x17ee30 DEBUG v4l2src gstv4l2src.c:300:gst_v4l2src_negotiate:<v4l2src0> caps of src
video/x-raw, format=(string)YUY2, framerate=(fraction)30000/1001, width=(int)[ 48, 720 ], height=(int)[ 32, 480 ], interlace-mode=(string)interleaved, pixel-aspect-ratio=(fraction)54/59, colorimetry=(string)bt601
video/x-raw, format=(string)I420, framerate=(fraction)30000/1001, width=(int)[ 48, 720 ], height=(int)[ 32, 480 ], interlace-mode=(string)interleaved, pixel-aspect-ratio=(fraction)54/59, colorimetry=(string)bt601
video/x-raw, format=(string)YV12, framerate=(fraction)30000/1001, width=(int)[ 48, 720 ], height=(int)[ 32, 480 ], interlace-mode=(string)interleaved, pixel-aspect-ratio=(fraction)54/59, colorimetry=(string)bt601
video/x-raw, format=(string)BGR, framerate=(fraction)30000/1001, width=(int)[ 48, 720 ], height=(int)[ 32, 480 ], interlace-mode=(string)interleaved, pixel-aspect-ratio=(fraction)54/59, colorimetry=(string)1:1:5:4
video/x-raw, format=(string)RGB, framerate=(fraction)30000/1001, width=(int)[ 48, 720 ], height=(int)[ 32, 480 ], interlace-mode=(string)interleaved, pixel-aspect-ratio=(fraction)54/59, colorimetry=(string)1:1:5:4