Hi ,
I have some problems that RTSP Stream Not Displaying on Client with Jetson Inference video-viewer.
Environment:
-
Server: Jetson Orin NX (JetPack 6.2, L4T 36.4.4, TensorRT 10.3)
-
Client: Jetson NX (Ubuntu 20.04)
-
Jetson Inference: Latest build
-
Camera: USB camera supporting H264/MJPEG/YUYV (1280x720@30fps)
Problem Description:
I’m trying to stream video from one Jetson to another using RTSP with jetson-inference’s video-viewer, but the client doesn’t display the video stream properly.
Server command:
bash
./video-viewer /dev/video2 rtsp://@:8554/mystream
Client command:
bash
ffplay rtsp://192.168.1.180:8554/mystream
Issue:
-
The RTSP server starts successfully and captures frames (confirmed by server output showing “captured X frames (1280x720)”)
-
Port 8554 is listening (confirmed with
netstat -tuln | grep 8554) -
RTSP server responds to requests (
curl -I rtsp://localhost:8554/mystreamreturnsRTSP/1.0 200 OK) -
Client connects successfully and receives stream metadata (SDP negotiation successful, H264 codec detected)
-
BUT: No video is displayed on the client - the window shows
nan M-V: nan fd= 0 aq= 0KB vq= 0KB sq= 0B f=0/0 -
Strangely, when I stop the server (Ctrl+C), the client window briefly appears with a single frame before closing
Server Warnings (with GST_DEBUG=3):
[gstreamer] GST_LEVEL_WARNING GstAppSrc basesrc
streaming stopped, reason not-linked (-1)
[gstreamer] GST_LEVEL_WARNING rtspmedia
got error Internal data stream error
[gstreamer] GST_LEVEL_WARNING GstAppSink basesink
Pipeline construction is invalid, please add queues
What I’ve Tried:
-
Different ffplay options:
-fflags nobuffer -flags low_delay -framedrop -
Different transport protocols:
-rtsp_transport tcp/udp -
Various video-viewer options:
--output-codec=h264 --bitrate=4000000 -
Different input codecs:
--input-codec=mjpeg -
VLC and gst-launch-1.0 as clients (same issue)
Client Debug Output:
[h264 @ 0xffff5c003ea0] Format yuv420p chosen by get_format().
[h264 @ 0xffff5c003ea0] Reinit context to 1280x720, pix_fmt: yuv420p
Input #0, rtsp, from 'rtsp://192.168.1.180:8554/mystream':
Metadata:
title : Session streamed with GStreamer
comment : rtsp-server
Duration: N/A, bitrate: N/A
Stream #0:0: Video: h264 (Constrained Baseline), yuv420p, 1280x720, 30 tbr
Questions:
-
How can I fix this issue?
-
Is there a working example of RTSP streaming between two Jetson devices using jetson-inference tools?
Any help or guidance would be greatly appreciated.
Thank you very much!