dusty-nv / jetson-inference

Hello AI World guide to deploying deep-learning inference networks and deep vision primitives with TensorRT and NVIDIA Jetson.
https://developer.nvidia.com/embedded/twodaystoademo
MIT License
7.85k stars 2.98k forks source link

hello I can't use rtsp #1646

Open securitytimez opened 1 year ago

securitytimez commented 1 year ago

(1)I convert the usb camera intput on the nano to rtsp stream

video-viewer /dev/video0 rtsp://192.168.137.217:1234/test

192.168.137.217 is the ip of nano.and i use the “rtsp://192.168.137.217:1234/test” as url But it has a line of red output

[video] videoOutput -- unsupported protocol (rtsp)

Why? (2)I also test this

video-viewer rtsp://192.168.137.217:1234/test

it return

[gstreamer] initialized gstreamer, version 1.14.5.0 [gstreamer] gstDecoder -- creating decoder for 192.168.137.217 [gstreamer] gstDecoder -- Could not open resource for reading and writing. [gstreamer] gstDecoder -- try manually setting the codec with the --input-codec option [gstreamer] gstDecoder -- failed to create decoder for rtsp://192.168.137.217:1234/test video-viewer: failed to create input stream

dusty-nv commented 1 year ago

(1)I convert the usb camera intput on the nano to rtsp stream

video-viewer /dev/video0 rtsp://192.168.137.217:1234/test

192.168.137.217 is the ip of nano.and i use the “rtsp://192.168.137.217:1234/test” as url But it has a line of red output

[video] videoOutput -- unsupported protocol (rtsp)

You probably need to update your jetson-inference repo to the latest source and rebuild/reinstall (or docker pull the container to updated it, if you are using container)

Also, the proper syntax for doing RTSP output would be like shown here:

https://github.com/dusty-nv/jetson-inference/blob/master/docs/aux-streaming.md#rtsp-output

video-viewer /dev/video0 rtsp://@:1234/test

Since RTSP is subscribed to from your Jetson, you would use the @ symbol as the IP (or 0.0.0.0) to indicate that the Jetson network interfaces are hosting the stream. From the machine you are viewing the RTSP stream from, you would then use the Jetson's IP address.

I also test this

video-viewer rtsp://192.168.137.217:1234/test

This will attempt to connect to a stream hosted by another machine from the Jetson. Is the machine at 192.168.137.217 providing the RTSP stream?