# Help with Gstreamer pipeline

**URL:** <https://forums.developer.nvidia.com/t/help-with-gstreamer-pipeline/83806>\
**Category:** DeepStream SDK\
**Created:** [October 24, 2019, 8:21am UTC](https://forums.developer.nvidia.com/t/help-with-gstreamer-pipeline/83806 "2019-10-24T08:21:23Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![alperylmcx](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@alperylmcx](https://forums.developer.nvidia.com/u/alperylmcx)\
**Post date:** [October 24, 2019, 8:21am UTC](https://forums.developer.nvidia.com/t/help-with-gstreamer-pipeline/83806/1 "2019-10-24T08:21:23Z")

</div>

Hi dear Nvidia developers!

Briefly, I am trying object detection with nvinfer on Python as Deepstream currently does not support Python bindings.

However, I am not used to Gstreamer. Help will be much appreciated.

My pipeline is as follows:

```auto
gst-launch-1.0 v4l2src device=/dev/video0 ! video/x-raw, width=3840, height=2160 ! nvvideoconvert ! nvinfer config-file-path= <my_infer_config> batch-size=1 unique-id=1 ! nvdsosd ! nvegltransform ! appsink

```

PS: Below pipeline works.

```auto
gst-launch-1.0 filesrc location= <mp4_source> ! qtdemux ! h264parse ! nvv4l2decoder ! m.sink_0 nvstreammux name=m batch-size=1 width=$((1920)) height=$((1080)) ! nvinfer config-file-path= <my_infer_config> batch-size=1 unique-id=1 ! nvvideoconvert ! nvdsosd ! nvegltransform ! nveglglessink

```

---

<div class="post-metadata">

**Author:** ![greivin.fallas](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/greivin.fallas/32/273049_2.png) [@greivin.fallas](https://forums.developer.nvidia.com/u/greivin.fallas)\
**Post date:** [October 25, 2019, 1:31am UTC](https://forums.developer.nvidia.com/t/help-with-gstreamer-pipeline/83806/2 "2019-10-25T01:31:28Z")

</div>

Hi alperylmcx,

I believe that you are missing a section on your camera pipeline, please try the following pipeline

```auto
gst-launch-1.0 v4l2src device=/dev/video0 ! video/x-raw, width=3840, height=2160 ! nvvideoconvert ! m.sink_0 nvstreammux name=m batch-size=1 width=$((1920)) height=$((1080)) ! nvinfer config-file-path= <my_infer_config> batch-size=1 unique-id=1 ! nvdsosd ! nvmultistreamtiler! nvegltransform ! appsink

```

Regards.

---

<div class="post-metadata">

**Author:** ![alperylmcx](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@alperylmcx](https://forums.developer.nvidia.com/u/alperylmcx)\
**Post date:** [October 25, 2019, 5:14am UTC](https://forums.developer.nvidia.com/t/help-with-gstreamer-pipeline/83806/3 "2019-10-25T05:14:15Z")

</div>

Hi greivin.fallas,

Thank you for your suggestion.  
I got error with your pipeline.

```auto
gst-launch-1.0 v4l2src device=/dev/video0 ! video/x-raw, width=3840, height=2160 ! nvvideoconvert ! m.sink_0 nvstreammux name=m batch-size=1 width=$((1920)) height=$((1080)) ! nvinfer config-file-path= /opt/nvidia/deepstream/deepstream-4.0/sources/objectDetector_Yolo/config_infer_primary_yoloV3.txt batch-size=1 unique-id=1 ! nvdsosd ! nvmultistreamtiler! nvegltransform ! appsink
Setting pipeline to PAUSED ...
Creating LL OSD context new
Deserialize yoloLayerV3 plugin: yolo_83
Deserialize yoloLayerV3 plugin: yolo_95
Deserialize yoloLayerV3 plugin: yolo_107
Pipeline is live and does not need PREROLL ...
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Internal data stream error.
Additional debug info:
gstbasesrc.c(3055): gst_base_src_loop (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
streaming stopped, reason not-negotiated (-4)
ERROR: pipeline doesn't want to preroll.
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...

```

---

<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:** [October 25, 2019, 5:16am UTC](https://forums.developer.nvidia.com/t/help-with-gstreamer-pipeline/83806/4 "2019-10-25T05:16:41Z")

</div>

Hi,  
You may also refer to [https://devtalk.nvidia.com/default/topic/1064944/](https://devtalk.nvidia.com/default/topic/1064944/)

---

<div class="post-metadata">

**Author:** ![alperylmcx](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@alperylmcx](https://forums.developer.nvidia.com/u/alperylmcx)\
**Post date:** [October 25, 2019, 8:09am UTC](https://forums.developer.nvidia.com/t/help-with-gstreamer-pipeline/83806/5 "2019-10-25T08:09:50Z")

</div>

Hi DaneLLL,

Thank you for suggestion. However, I did not find any information on that topic.

---

<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:** [October 25, 2019, 8:14am UTC](https://forums.developer.nvidia.com/t/help-with-gstreamer-pipeline/83806/6 "2019-10-25T08:14:25Z")

</div>

Hi,  
You may try to send BGR to appsink.

---

<div class="post-metadata">

**Author:** ![TomNVIDIA](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/tomnvidia/32/14181_2.png) [@TomNVIDIA](https://forums.developer.nvidia.com/u/TomNVIDIA)\
**Post date:** [October 12, 2021, 4:19pm UTC](https://forums.developer.nvidia.com/t/help-with-gstreamer-pipeline/83806/7 "2021-10-12T16:19:00Z")

</div>

Closed on October 12, 2021, 4:19pm UTC


