# VLC will not open H264 Gstreamer stream

**URL:** <https://forums.developer.nvidia.com/t/vlc-will-not-open-h264-gstreamer-stream/202232>\
**Category:** Jetson Nano\
**Tags:** gstreamer\
**Created:** [February 1, 2022, 10:02pm UTC](https://forums.developer.nvidia.com/t/vlc-will-not-open-h264-gstreamer-stream/202232 "2022-02-01T22:02:28Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jetsonnvidia](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@jetsonnvidia](https://forums.developer.nvidia.com/u/jetsonnvidia)\
**Post date:** [February 1, 2022, 10:02pm UTC](https://forums.developer.nvidia.com/t/vlc-will-not-open-h264-gstreamer-stream/202232/1 "2022-02-01T22:02:28Z")

</div>

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:

```auto
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:

```auto
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](https://developer.ridgerun.com/wiki/index.php/Introduction_to_network_streaming_using_GStreamer) 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):

```auto
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

```

---

<div class="post-metadata">

**Author:** ![DaneLLL](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/danelll/32/14043_2.png) [@DaneLLL](https://forums.developer.nvidia.com/u/DaneLLL)\
**Post date:** [February 3, 2022, 12:50am UTC](https://forums.developer.nvidia.com/t/vlc-will-not-open-h264-gstreamer-stream/202232/2 "2022-02-03T00:50:41Z")

</div>

Hi,  
We would suggest run RTSP if you use VLC player to receive the stream. Please refer to steps in [Jetson Nano FAQ](https://forums.developer.nvidia.com/t/jetson-nano-faq/82953)

---

<div class="post-metadata">

**Author:** ![jetsonnvidia](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@jetsonnvidia](https://forums.developer.nvidia.com/u/jetsonnvidia)\
**Post date:** [February 3, 2022, 12:18pm UTC](https://forums.developer.nvidia.com/t/vlc-will-not-open-h264-gstreamer-stream/202232/3 "2022-02-03T12:18:54Z")

</div>

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:

```auto
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:

```auto
[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:

```auto
===== 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.

---

<div class="post-metadata">

**Author:** ![jetsonnvidia](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@jetsonnvidia](https://forums.developer.nvidia.com/u/jetsonnvidia)\
**Post date:** [February 3, 2022, 12:32pm UTC](https://forums.developer.nvidia.com/t/vlc-will-not-open-h264-gstreamer-stream/202232/4 "2022-02-03T12:32:09Z")

</div>

Okay, I have it working in Windows VLC. This is the reason for my problems:

> <https://askubuntu.com/questions/1360613/unable-to-play-any-rtsp-streams-in-xubuntu-and-debian>

caused by:

[https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=981439](https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=981439)

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/system/32/68080_2.png) [@system](https://forums.developer.nvidia.com/u/system)\
**Post date:** [February 17, 2022, 12:32pm UTC](https://forums.developer.nvidia.com/t/vlc-will-not-open-h264-gstreamer-stream/202232/5 "2022-02-17T12:32:56Z")

</div>

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