# Zed 2 gstreamer feed to Nvidia Deepstream pipe line

**URL:** <https://community.stereolabs.com/t/zed-2-gstreamer-feed-to-nvidia-deepstream-pipe-line/1137>\
**Category:** Software\
**Tags:** zed-gstreamer, deepstream\
**Created:** [May 13, 2022, 9:51am UTC](https://community.stereolabs.com/t/zed-2-gstreamer-feed-to-nvidia-deepstream-pipe-line/1137 "2022-05-13T09:51:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![joev](https://community.stereolabs.com/user_avatar/community.stereolabs.com/joev/32/678_2.png) [@joev](https://community.stereolabs.com/u/joev)\
**Post date:** [May 13, 2022, 9:51am UTC](https://community.stereolabs.com/t/zed-2-gstreamer-feed-to-nvidia-deepstream-pipe-line/1137/1 "2022-05-13T09:51:30Z")

</div>

The following gstreamer pipeline feeds a webcam stream to a nvidia deepstream applicantion

> gst-launch-1.0 v4l2src device=/dev/video0 ! videoconvert ! ‘video/x-raw,format=(string)YUY2’ ! nvvidconv ! ‘video/x-raw(memory:NVMM),width=1280,height=720,framerate=15/1’ ! nvvidconv ! ‘video/x-raw,format=(string)NV12’ ! nvvideoconvert ! mux.sink\_0 nvstreammux live-source=1 name=mux batch-size=1 width=1280 height=720 ! nvinfer config-file-path=/opt/nvidia/deepstream/deepstream-6.0/samples/configs/deepstream-app/config\_infer\_primary.txt ! nvvideoconvert ! nvdsosd ! nvegltransform ! nveglglessink sync=0

What is the raw format of the ZED 2 video stream so I can attempt to use gstreamer convert commands to make the stream something deepstream will accept?

---

<div class="post-metadata">

**Author:** ![Myzhar](https://community.stereolabs.com/user_avatar/community.stereolabs.com/myzhar/32/11_2.png) [@Myzhar](https://community.stereolabs.com/u/Myzhar)\
**Post date:** [May 13, 2022, 11:59am UTC](https://community.stereolabs.com/t/zed-2-gstreamer-feed-to-nvidia-deepstream-pipe-line/1137/2 "2022-05-13T11:59:44Z")

</div>

Hi @joev  
the raw format is available at the very beginning of the pipeline command:  
`‘video/x-raw,format=(string)YUY2’`

---

<div class="post-metadata">

**Author:** ![joev](https://community.stereolabs.com/user_avatar/community.stereolabs.com/joev/32/678_2.png) [@joev](https://community.stereolabs.com/u/joev)\
**Post date:** [May 13, 2022, 3:27pm UTC](https://community.stereolabs.com/t/zed-2-gstreamer-feed-to-nvidia-deepstream-pipe-line/1137/3 "2022-05-13T15:27:36Z")

</div>

Myzhar  
So just to clarify. The ZED 2 puts out a YUY2 formatted stream?

Thanks  
Joe Valdivia

---

<div class="post-metadata">

**Author:** ![Myzhar](https://community.stereolabs.com/user_avatar/community.stereolabs.com/myzhar/32/11_2.png) [@Myzhar](https://community.stereolabs.com/u/Myzhar)\
**Post date:** [May 18, 2022, 10:54am UTC](https://community.stereolabs.com/t/zed-2-gstreamer-feed-to-nvidia-deepstream-pipe-line/1137/4 "2022-05-18T10:54:12Z")

</div>

Hi @joev  
sorry for the late reply, I missed the message.

When you retrieve the images from the ZED camera by using the `v4l2src` the stream is indeed in YUY2 format.
