Python rtsp gstCamera

Hello, i’m trying tto use these example : https://github.com/dusty-nv/jetson-inference/blob/master/python/examples/detectnet-camera.py

in Terminal I do :

python3 detectnet-camera.py --camera ‘rtsp://admin:xxx@192.168.0.13:554//h264Preview_01_main’

it fail and give me just few data :

[gstreamer] initialized gstreamer, version 1.14.5.0
[gstreamer] gstCamera::Create(‘rtsp://admin:xxx@192.168.0.13:554//h264Preview_01_main’) – invalid > camera device requested
camera = jetson.utils.gstCamera(opt.width, opt.height, opt.camera)
Exception: jetson.utils – failed to create gstCamera device
PyTensorNet_Dealloc()

I don’t found any explaination for jetson.utils.gstCamera

I’m able to connect and read a frame of my camera with openCV, so the link and the camera are ok.
I’m missing for something.

Thank you !

Hi,
The camera is CSI camera. On Jetson Nano, you can connect Raspberry PI camera V2 and try again.

1 Like

Hi, what the moderator tried to say is that apparently you can’t use rtsp with that program, just a physical camera connected to the nano. The rtsp part you should do it yourself, but you have many components for that: rtsp · PyPI is one example.

Best regards.

2 Likes

Hello drakorg and DanrLLL, thabk you for your quick reponse.
I miss that point.
I will try rtsp lib.
I Need to choose the fastest of the 3.
So I will try them.

One last point, is therr any documentation for the jetson library, in particular jetson.utils and jetson.inference ?

Thank you again !