Issue in streaming rtsp video stream from jetson nano usb cam to local pc (streaming in VLC player) using deep stream

Hi i referred the following link to get rtsp streaming from jetson nano to local pc
Unresponsive/slow RTSP stream from USB Cam + Deepstream on Jetson Nano
the links whick works fine for streaming from jetson nano to local pc :
i followed the following procedure:
1)running the code provided in the link
2) on the client side i will keep SDP FILE ( Source Description Protocal)
sdp file looks like follows:
c=IN IP4
m=video 5400 RTP/AVP 96
a=rtpmap:96 H264/90000
if we double click on the sdp file video will start streaming in client local pc
Problem in streaming video directly with VLC Player:
in VLC player by using streaming option in vlc player “stream-network-rtsp:// Setup-Display Localy-file-rtsp-Active Transcoding-Video-H.264+MP3(MP4)-stream all elementary streams”
if i use this method no streaming in vlc player, even if i give like rtsp:// also not streaming in vlc player .
Note: Both Jetson Nano and Local PC both are connected to same Router
I am struggling to get output from past 20 days
Any help here would be greatly appreciated!

A general use-case is to run RTSP in vlc player. Could you run this use-case? Or you have to run UDP?

Hi DaneLLL,
Thanks for the response, my idea is getting rtsp stream in vlc not udp stream ,actually i am running the code what they have used in the link which work fine for me even in jetson nano and local pc if i use SDP file , in the code they mentioned “sink.set _property(‘host’,‘’)” this is the udp sink, not able to stream through VLC even i have a common network connection between Jetson nano and local pc .I tried with Gstreamer too there also same case .
Thanks in advance please help me in streaming through vlc

This post looks similar to you ruse-case:
Gstreamer TCPserversink 2-3 seconds latency - #13 by Bazziil

Please take a look and give it a try.

Hi checked with that post all the way but no video streaming through vlc
I tried with the following code :
import cv2
gst_in="v4l2src device=/dev/video0 ! image/jpeg, format=MJPG ! nvv4l2decoder mjpeg=1 ! nvvidconv ! video/x-raw,format=BGRx ! videoconvert !video/x-raw,format=BGR ! appsink "
cap = cv2.VideoCapture(gst_in, cv2.CAP_GSTREAMER)

if not cap.isOpened() :
print(“capture failed”)
print(‘cap opened’)
w = cap.get(cv2.CAP_PROP_FRAME_WIDTH)
h = cap.get(cv2.CAP_PROP_FRAME_HEIGHT)
fps = cap.get(cv2.CAP_PROP_FPS)
print(‘Src opened, %dx%d @ %d fps’ % (w, h, fps))

gst_out = “appsrc is-live=1 ! video/x-raw, format=BGR ! queue ! videoconvert ! video/x-raw,format=BGRx ! nvvidconv ! nvv4l2h264enc insert-sps-pps=true ! h264parse ! rtph264pay pt=96 ! queue ! application/x-rtp, media=video, encoding-name=H264 ! udpsink host= port=5000”

out = cv2.VideoWriter(gst_out, cv2.CAP_GSTREAMER,0, int(fps), (int(w), int(h)))
if not out.isOpened() :
print(“Writer failed”)
print(‘Writer opened’)
while True:
ret,frame =
if not ret:

# Some processing

when i run this code succesfully the code will run and camera will pop up on server jetson nano hereby i am attaching snippet of console

on the client side i am trying top get stream through vlc which is not streaming only sdp will work .I kindly request please help me in streaming through vlc player without sdp file
Thanks in advance please help me

Please refer to steps in Jetson Nano FAQ
Q: Is there any example of running RTSP streaming?

to set up RTSP server through test-launch and give it a try.

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