Jetson Orin Nano RTSP

Hello all,

I’m trying to get the camera preview over RTSP on Jetson Orin Nano.
My current setup:
Jetson Orin Nano JP 6.2 in headless mode
gstreamer 1.20
Camera IMX219

I am trying to set-up the camera preview on x86 ubuntu machine connected to Jetson. Camera itself works, checked on the Jetson with RDP.
I am able to get the test image stream by issueing:

On Nano:
./test-launch "videotestsrc is-live=1 ! nvvidconv ! x264enc ! h264parse ! rtph264pay name=pay0 pt=96"

On x86
cvlc rtsp://192.168.137.100:8554/test

Until here everything works fine.
However, I am not sure if my camera preview pipeline is correct. So far I saw couple of examples online, none of them worked. I try:

gst-launch-1.0 nvarguscamerasrc sensor-id=0 sensor-mode=0 ! "video/x-raw(memory:NVMM), format=(string)NV12, framerate=(fraction)10/1" ! nvvidconv  ! queue ! x264enc  ! h264parse ! mpegtsmux ! udpsink host=192.168.137.1 port=5003 sync=0

or

./test-launch “nvarguscamerasrc ! nvvidconv ! x264enc ! h264parse ! rtph264pay name=pay0 pt=96”

but I get :

[rtsp @ 0x7f9288000bc0] method PLAY failed: 454 Session Not Found   
rtsp://192.168.137.100:8554/test: Server returned 4XX Client Error, but not one of 40{0,1,3,4}

Could you please help me to construct proper pipeline?

Hi @bkawlatow,

I think it is better if we move this over to the Jetson forum category. I am sure they will be able to help you.

Thanks!

Hi,
Please try the pipeline in gst-launch-1.0 with fakesink:

$ gst-launch-1.0 nvarguscamerasrc ! nvvidconv !  video/x-raw,format=I420 ! x264enc ! h264parse ! rtph264pay name=pay0 pt=96 ! fakesink

If it runs successfully, please then try

$ ./test-launch "nvarguscamerasrc ! nvvidconv !  video/x-raw,format=I420 ! x264enc ! h264parse ! rtph264pay name=pay0 pt=96"

Hi,

It works like a charm! The delay is quite significant though, around 4 seconds, do you know maybe how to make it more real time?

Hi,
If you use rtspsrc plugin to receive the stream, can set latency to 500ms for a try. By default it is 2000ms.

And you can run gst-inspect-1.0 x264enc to check the properties. Certain properties may reduce latency. We don’t have much experience about software encoder and would see if other users can share experience.

1 Like

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