# Assistance Needed for Streaming ZED Camera Video to Web Browser Using GStreamer

**URL:** https://discourse.gstreamer.org/t/assistance-needed-for-streaming-zed-camera-video-to-web-browser-using-gstreamer/2378
**Category:** General Discussion
**Created:** [September 12, 2024, 2:51pm UTC](https://discourse.gstreamer.org/t/assistance-needed-for-streaming-zed-camera-video-to-web-browser-using-gstreamer/2378 "2024-09-12T14:51:42Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![Honey\_Patouceul](https://discourse.gstreamer.org/user_avatar/discourse.gstreamer.org/honey_patouceul/32/365_2.png) [@Honey\_Patouceul](https://discourse.gstreamer.org/u/Honey_Patouceul)
#### Post date: [October 12, 2024, 4:49pm UTC](https://discourse.gstreamer.org/t/assistance-needed-for-streaming-zed-camera-video-to-web-browser-using-gstreamer/2378/3 "2024-10-12T16:49:03Z")

</div>

You may have a look to: [Stream frame opencv via rtsp using gstreamer c++ - #6 by Honey\_Patouceul](https://discourse.gstreamer.org/t/stream-frame-opencv-via-rtsp-using-gstreamer-c/1502/6) for an example of RTSP streaming from OpenCV application.

For color, VideoWriter would expect BGR only, so assuming you’re reading RGBA frames from sl, you would convert into BGR instead of RGB with:

```auto
image_BGR = cv2.cvtColor(image_ocv_out, cv2.COLOR_RGBA2BGR)

```

If you want to use NVENC, as writer pipeline you may try:

```auto
rtph264_writer = cv2.VideoWriter('appsrc ! video/x-raw,format=BGR ! queue ! videoconvert ! video/x-raw,format=BGRx ! nvvidconv ! nvv4l2h264enc insert-sps-pps=1 insert-vui=1 idrinterval=30 ! queue ! h264parse ! rtph264pay ! udpsink host=127.0.0.1 port=5004', cv2.CAP_GSTREAMER, 0, float(fps), (w,h))

```

---

_[View the full topic](https://discourse.gstreamer.org/t/assistance-needed-for-streaming-zed-camera-video-to-web-browser-using-gstreamer/2378)._
