Saving to file and streaming video and audio on Jetson Nano from a USB 3 webcam

I have a usb 3 webcam and I would like to simultaneously save a H264 video with audio and stream it over wifi, I tried different pipelines but nothing doing everything I want. The resolution needed is 3840x1088.

v4l2-ctl -d /dev/video2 --list-formats-ext
ioctl: VIDIOC_ENUM_FMT
	Index       : 0
	Type        : Video Capture
	Pixel Format: 'YUYV'
	Name        : YUYV 4:2:2
		Size: Discrete 1920x1080
			Interval: Discrete 0.033s (30.000 fps)
			Interval: Discrete 0.042s (24.000 fps)
			Interval: Discrete 0.067s (15.000 fps)
		Size: Discrete 1280x720
			Interval: Discrete 0.033s (30.000 fps)
			Interval: Discrete 0.037s (27.000 fps)
			Interval: Discrete 0.042s (24.000 fps)
			Interval: Discrete 0.067s (15.000 fps)
		Size: Discrete 960x544
			Interval: Discrete 0.033s (30.000 fps)
			Interval: Discrete 0.037s (27.000 fps)
			Interval: Discrete 0.042s (24.000 fps)
			Interval: Discrete 0.067s (15.000 fps)
		Size: Discrete 640x360
			Interval: Discrete 0.033s (30.000 fps)
			Interval: Discrete 0.037s (27.000 fps)
			Interval: Discrete 0.042s (24.000 fps)
			Interval: Discrete 0.067s (15.000 fps)
		Size: Discrete 3840x1080
			Interval: Discrete 0.033s (30.000 fps)
			Interval: Discrete 0.037s (27.000 fps)
			Interval: Discrete 0.042s (24.000 fps)
			Interval: Discrete 0.067s (15.000 fps)
		Size: Discrete 3840x1088
			Interval: Discrete 0.033s (30.000 fps)
			Interval: Discrete 0.037s (27.000 fps)
			Interval: Discrete 0.042s (24.000 fps)
			Interval: Discrete 0.067s (15.000 fps)

Hi,
You may try to launch RTSP server through test-launch. Please check
Jetson Nano FAQ
[Q: Is there any example of running RTSP streaming?]

Can try with videotestsrc and audiotestsrc plugins first:
Live streaming cam usb - #4 by DaneLLL
And then apply your audio/video sources.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.