使用video-viewer 在jetson推流,浏览器上观看到的是绿屏

平台 jetson orin nano
jetpack 5.0
jetson-interface 分支 GitHub - dusty-nv/jetson-inference at L4T-R35.4.1
jetson上推流日志
jetson.log (82.2 KB)

网页拉流日志
10.219.108.99-1709541665488.log (19.3 KB)

相机

v4l2-ctl --device=/dev/video0 --list-formats-ext
ioctl: VIDIOC_ENUM_FMT
Type: Video Capture

[0]: 'UYVY' (UYVY 4:2:2)
	Size: Discrete 1920x1080
		Interval: Discrete 0.033s (30.000 fps)
		Interval: Discrete 0.017s (60.000 fps)
	Size: Discrete 1280x720
		Interval: Discrete 0.033s (30.000 fps)
		Interval: Discrete 0.017s (60.000 fps)
	Size: Discrete 3840x2160
		Interval: Discrete 0.033s (30.000 fps)
		Interval: Discrete 0.017s (60.000 fps)
	Size: Discrete 640x514
		Interval: Discrete 0.033s (30.000 fps)
		Interval: Discrete 0.017s (60.000 fps)
	Size: Discrete 2880x1860
		Interval: Discrete 0.033s (30.000 fps)
		Interval: Discrete 0.017s (60.000 fps)
	Size: Discrete 640x512
		Interval: Discrete 0.033s (30.000 fps)
		Interval: Discrete 0.017s (60.000 fps)
	Size: Discrete 1920x1020
		Interval: Discrete 0.033s (30.000 fps)
		Interval: Discrete 0.017s (60.000 fps)
	Size: Discrete 1280x1080
		Interval: Discrete 0.033s (30.000 fps)
		Interval: Discrete 0.017s (60.000 fps)
	Size: Discrete 1920x1536
		Interval: Discrete 0.033s (30.000 fps)
		Interval: Discrete 0.017s (60.000 fps)
	Size: Discrete 1280x960
		Interval: Discrete 0.033s (30.000 fps)
		Interval: Discrete 0.017s (60.000 fps)
	Size: Discrete 1920x1280
		Interval: Discrete 0.033s (30.000 fps)
		Interval: Discrete 0.017s (60.000 fps)
	Size: Discrete 1920x1200
		Interval: Discrete 0.033s (30.000 fps)
		Interval: Discrete 0.017s (60.000 fps)
[1]: 'NV16' (Y/CbCr 4:2:2)
	Size: Discrete 1920x1080
		Interval: Discrete 0.033s (30.000 fps)
		Interval: Discrete 0.017s (60.000 fps)
	Size: Discrete 1280x720
		Interval: Discrete 0.033s (30.000 fps)
		Interval: Discrete 0.017s (60.000 fps)
	Size: Discrete 3840x2160
		Interval: Discrete 0.033s (30.000 fps)
		Interval: Discrete 0.017s (60.000 fps)
	Size: Discrete 640x514
		Interval: Discrete 0.033s (30.000 fps)
		Interval: Discrete 0.017s (60.000 fps)
	Size: Discrete 2880x1860
		Interval: Discrete 0.033s (30.000 fps)
		Interval: Discrete 0.017s (60.000 fps)
	Size: Discrete 640x512
		Interval: Discrete 0.033s (30.000 fps)
		Interval: Discrete 0.017s (60.000 fps)
	Size: Discrete 1920x1020
		Interval: Discrete 0.033s (30.000 fps)
		Interval: Discrete 0.017s (60.000 fps)
	Size: Discrete 1280x1080
		Interval: Discrete 0.033s (30.000 fps)
		Interval: Discrete 0.017s (60.000 fps)
	Size: Discrete 1920x1536
		Interval: Discrete 0.033s (30.000 fps)
		Interval: Discrete 0.017s (60.000 fps)
	Size: Discrete 1280x960
		Interval: Discrete 0.033s (30.000 fps)
		Interval: Discrete 0.017s (60.000 fps)
	Size: Discrete 1920x1280
		Interval: Discrete 0.033s (30.000 fps)
		Interval: Discrete 0.017s (60.000 fps)
	Size: Discrete 1920x1200
		Interval: Discrete 0.033s (30.000 fps)
		Interval: Discrete 0.017s (60.000 fps)
[2]: 'UYVY' (UYVY 4:2:2)
	Size: Discrete 1920x1080
		Interval: Discrete 0.033s (30.000 fps)
		Interval: Discrete 0.017s (60.000 fps)
	Size: Discrete 1280x720
		Interval: Discrete 0.033s (30.000 fps)
		Interval: Discrete 0.017s (60.000 fps)
	Size: Discrete 3840x2160
		Interval: Discrete 0.033s (30.000 fps)
		Interval: Discrete 0.017s (60.000 fps)
	Size: Discrete 640x514
		Interval: Discrete 0.033s (30.000 fps)
		Interval: Discrete 0.017s (60.000 fps)
	Size: Discrete 2880x1860
		Interval: Discrete 0.033s (30.000 fps)
		Interval: Discrete 0.017s (60.000 fps)
	Size: Discrete 640x512
		Interval: Discrete 0.033s (30.000 fps)
		Interval: Discrete 0.017s (60.000 fps)
	Size: Discrete 1920x1020
		Interval: Discrete 0.033s (30.000 fps)
		Interval: Discrete 0.017s (60.000 fps)
	Size: Discrete 1280x1080
		Interval: Discrete 0.033s (30.000 fps)
		Interval: Discrete 0.017s (60.000 fps)
	Size: Discrete 1920x1536
		Interval: Discrete 0.033s (30.000 fps)
		Interval: Discrete 0.017s (60.000 fps)
	Size: Discrete 1280x960
		Interval: Discrete 0.033s (30.000 fps)
		Interval: Discrete 0.017s (60.000 fps)
	Size: Discrete 1920x1280
		Interval: Discrete 0.033s (30.000 fps)
		Interval: Discrete 0.017s (60.000 fps)
	Size: Discrete 1920x1200
		Interval: Discrete 0.033s (30.000 fps)
		Interval: Discrete 0.017s (60.000 fps)

Hi,
Please run the command and share the prints:

$ cat /etc/nv_tegra_release

Would like to confirm which version you are using.

Orin Nano does not have hardware encoder. If you need hardware encoder in your use-case, please consuder use Orin NX or Xavier NX.

output is :

R35 (release), REVISION: 1.0, GCID: 31250864, BOARD: t186ref, EABI: aarch64, DATE: Thu Aug 11 03:40:29 UTC 2022

平台应该是orin nx,抱歉写错了

./video-viewer /dev/video0 webrtc://@:8554/output --output-codec=H264 --output-encoder=v4l2 --output-save=out.h264

使用这个命令,仍然是绿屏的,且out.h264文件为空,并没有输出

Hi,
Please upgrade to Jetpack 5.1.3(r35.5.0) and follow the steps in

Jetson AGX Orin FAQ
Q: I have a USB camera. How can I launch it on AGX Orin?

Ideally you should be able to launch the camera by setting to UYVY format. Please give it a try.

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