# GStreamer pipeline help

**URL:** <https://forums.developer.nvidia.com/t/gstreamer-pipeline-help/78570>\
**Category:** Jetson Nano\
**Created:** [July 23, 2019, 11:21pm UTC](https://forums.developer.nvidia.com/t/gstreamer-pipeline-help/78570 "2019-07-23T23:21:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![niproblema](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@niproblema](https://forums.developer.nvidia.com/u/niproblema)\
**Post date:** [July 23, 2019, 11:21pm UTC](https://forums.developer.nvidia.com/t/gstreamer-pipeline-help/78570/1 "2019-07-23T23:21:35Z")

</div>

Hello,  
Im trying to get a simple rtsp stream working in python, shouldn’t be too hard, and I did get it to work for a while, but as I was testing with some random streams, something broke. With same pipeline image suddenly became grayscale and there are different channels in bottom, as shown in the attached image??

I my pipeline is

```auto
cv2.VideoCapture('rtspsrc location=rtsp://10.42.0.161:5540/ch0 latency=0 ! rtph264depay ! h264parse ! omxh264dec ! nvvidconv ! videorate ! videoscale ! video/x-raw,format=(string)I420,framerate=30/1,width=600,height=400 ! queue ! appsink sync=false', cv2.CAP_GSTREAMER)

```

I have tried few formats, and even different streaming app, but it’s all the same :(

 ![](https://global.discourse-cdn.com/nvidia/original/3X/3/1/31124655c71051ce173a4eedefd9235c17b9d919.png)

---

<div class="post-metadata">

**Author:** ![niproblema](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@niproblema](https://forums.developer.nvidia.com/u/niproblema)\
**Post date:** [July 23, 2019, 11:34pm UTC](https://forums.developer.nvidia.com/t/gstreamer-pipeline-help/78570/2 "2019-07-23T23:34:39Z")

</div>

Using next closest command on PC doesn’t have these issues…

```auto
gst-launch-1.0 rtspsrc location=rtsp://10.42.0.161:5540/ch0 latency=0 ! rtph264depay ! h264parse ! avdec_h264 ! videorate ! videoscale ! video/x-raw,format=I420,framerate=30/1,width=600,height=400 ! queue ! autovideosink sync=false

```

 ![](https://global.discourse-cdn.com/nvidia/original/3X/e/e/eefd019bea19421a8349ee9798088126320e0190.png)

---

<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:** [July 24, 2019, 4:26am UTC](https://forums.developer.nvidia.com/t/gstreamer-pipeline-help/78570/3 "2019-07-24T04:26:45Z")

</div>

Hi,  
It is more like an issue in the source. Maybe the network is not stable?  
There is another user hitting issue in unstable RTSP source:  
[url][JETPACK3.3 TX2 GSTREAER could not read from connection - Jetson TX2 - NVIDIA Developer Forums](https://devtalk.nvidia.com/default/topic/1057456/jetson-tx2/jetpack3-3-tx2-gstreaer-could-not-read-from-connection/post/5364271/#5364271%5B/url%5D)

You may try to run ‘sudo jetson\_clocks’. Max performance probably can help the case.

---

<div class="post-metadata">

**Author:** ![niproblema](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@niproblema](https://forums.developer.nvidia.com/u/niproblema)\
**Post date:** [July 24, 2019, 11:19am UTC](https://forums.developer.nvidia.com/t/gstreamer-pipeline-help/78570/4 "2019-07-24T11:19:29Z")

</div>

edit: I found that I had mistake in conversion to jpeg for jupyter notebook. Was reading stream as BGR, but it was in I420.

All working now.  
Thanks @DaneLLL for effort :)
