I am trying to display the Raspberry Pi camera video on my PC by streaming it over the network from the Nano.
I can receive and display the stream fine by using gstreamer, but I want to use VLC because I have VLC on my smartphone which I would also like to use (I don’t have gstreamer on the smartphone).
I am currently using this command line to send the video from the Nano:
gst-launch-1.0 -v nvarguscamerasrc ! 'video/x-raw(memory:NVMM), width=(int)1280, height=(int)720, format=(string)NV12, framerate=(fraction)30/1' ! nvvidconv ! nvv4l2h264enc insert-sps-pps=1 m
axperf-enable=1 ! h264parse ! rtph264pay pt=96 mtu=1500 config-interval=3 ! udpsink host=192.168.1.12 port=5000 sync=false async=false
And I use this command line on the PC to display the stream:
gst-launch-1.0 udpsrc port=5000 ! application/x-rtp,encoding-name=H264,payload=96 ! rtpjitterbuffer ! rtph264depay ! h264parse ! queue ! avdec_h264 ! autovideosink
All good so far. But when I try to open the stream with VLC I get nothing. I have tried using this SDP file with VLC but still no luck:
m=video 5000 RTP/AVP 26
c=IN IP4 192.168.1.22
a=rtpmap:26 H264/90000
Please could someone help me get this running? I’ve read several posts on this forum and Stack Overflow but am not getting anywhere. Thanks.
Edit:
I found this link which has allowed me to create this SDP file but it is still not working (I have no idea what the “o=” line does or how to create it):
v=0
o=- 1208520720 2590316915 IN IP4 192.168.1.22
c=IN IP4 192.168.1.22
s=ESP H264 STREAM
m=video 5000 RTP/AVP 96
a=rtpmap:96 H264/90000
a=fmtp:96 media=video; clock-rate=90000; encoding-name=H264; sprop-parameter-sets=Z0JAH5ZUAoAtyA==,aM48gA==
a=control:trackID=1
DaneLLL
February 3, 2022, 12:50am
2
Hi,
We would suggest run RTSP if you use VLC player to receive the stream. Please refer to steps in Jetson Nano FAQ
1 Like
Thanks. I use “Open network stream” on the VLC client to open “rtsp://192.168.1.22:8554/test” but I see this error in VLC:
Your input can't be opened:
VLC is unable to open the MRL 'rtsp://192.168.1.22:8554/test'. Check the log for details.
In the client terminal I see:
[00007f5b98001630] satip stream error: Failed to play RTSP session
[00007f5b98001630] satip stream error: Failed to teardown RTSP session
On the Jetson Nano I see this appear:
===== NVMEDIA: NVENC =====
NvMMLiteBlockCreate : Block : BlockType = 4
H264: Profile = 66, Level = 0
NVMEDIA_ENC: bBlitMode is set to TRUE
Opening in BLOCKING MODE
NvMMLiteOpen : Block : BlockType = 4
===== NVMEDIA: NVENC =====
NvMMLiteBlockCreate : Block : BlockType = 4
H264: Profile = 66, Level = 0
NVMEDIA_ENC: bBlitMode is set to TRUE
Opening in BLOCKING MODE
NvMMLiteOpen : Block : BlockType = 4
===== NVMEDIA: NVENC =====
NvMMLiteBlockCreate : Block : BlockType = 4
H264: Profile = 66, Level = 0
NVMEDIA_ENC: bBlitMode is set to TRUE
Opening in BLOCKING MODE
NvMMLiteOpen : Block : BlockType = 4
===== NVMEDIA: NVENC =====
NvMMLiteBlockCreate : Block : BlockType = 4
H264: Profile = 66, Level = 0
NVMEDIA_ENC: bBlitMode is set to TRUE
Any ideas what I’m doing wrong? I literally copy and pasted the information from the link you gave. Thanks.
Edit:
I can display the RTSP stream using gstreamer on the client with no problems but I need to use VLC as mentioned.
Okay, I have it working in Windows VLC. This is the reason for my problems:
xubuntu, vlc, rtsp
caused by:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=981439
1 Like
system
Closed
February 17, 2022, 12:32pm
5
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.