# Gstreamer stream capture

**URL:** <https://discourse.nodered.org/t/gstreamer-stream-capture/59617>\
**Category:** General\
**Created:** [9 March 2022 21:06 UTC](https://discourse.nodered.org/t/gstreamer-stream-capture/59617 "2022-03-09T21:06:59Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jmorris644](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jmorris644/32/31964_2.png) [@jmorris644](https://discourse.nodered.org/u/jmorris644)\
**Post date:** [9 March 2022 21:06 UTC](https://discourse.nodered.org/t/gstreamer-stream-capture/59617/1 "2022-03-09T21:06:59Z")

</div>

I am running node-red on a Jetson Nano. I am using gstreamer to grab video from a USB connected camera. (I need to use Gstreamer and not ffmpeg because I am splitting the video source into two pipes and the other program that uses the video requires Gstreamer).

I want to be able to eventually programmatically capture about 15 seconds of the video based on certain triggers.

My first step was trying to display the video in node-red. I have done quite a bit of research but cannot find the way to do either the display or the capture.

What I have tried so far is to put the gstreamer output into a tcp stream and receive that in node-red. I can see the stream data coming into the tcp IN node. But am unable to get past that. I can choose either mjpg or YUY2 formats from the camera. OR if need be, use Gstreamer to convert the stream to whatever I need for use in node-red.

---

<div class="post-metadata">

**Author:** ![krambriw](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/krambriw/32/5429_2.png) [@krambriw](https://discourse.nodered.org/u/krambriw)\
**Post date:** [10 March 2022 06:36 UTC](https://discourse.nodered.org/t/gstreamer-stream-capture/59617/2 "2022-03-10T06:36:30Z")

</div>

Check out this project. It should be possible to handle your video stream from Gstreamer and display your camera on NR Dashboard

> [@Home Surveillance System (HSS)](https://discourse.nodered.org/t/home-surveillance-system-hss/51726):
>
> David (@dynamicdave), Paul (@zenofmud and Walter (@krambriw) are pleased to announce the release of their Home Surveillance System (HSS) project based on Node-RED running on a Raspberry Pi (recommended hardware is... Raspberry Pi-3B or 4B). As can be seen from the photos below, HSS has four monitors and a main display area that can show video streams from local and/or remote cameras [walter\_2] On-the-fly recordings can …

Not saying you have to use all of HSS features but the source code is there, it demonstrates a lot of "how to" in using Node-RED for this type of use case

---

<div class="post-metadata">

**Author:** ![jmorris644](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jmorris644/32/31964_2.png) [@jmorris644](https://discourse.nodered.org/u/jmorris644)\
**Post date:** [10 March 2022 13:38 UTC](https://discourse.nodered.org/t/gstreamer-stream-capture/59617/3 "2022-03-10T13:38:22Z")

</div>

Thanks. I will take a look and report back. 🙂

---

<div class="post-metadata">

**Author:** ![krambriw](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/krambriw/32/5429_2.png) [@krambriw](https://discourse.nodered.org/u/krambriw)\
**Post date:** [10 March 2022 14:12 UTC](https://discourse.nodered.org/t/gstreamer-stream-capture/59617/4 "2022-03-10T14:12:59Z")

</div>

In general, if the gstreamer delivers a http stream it is pretty easy to put some code in a ui template to present your camera on the dashboard. I think there are many posts around here about that. The problem is to find it, this board is not really organized to make such things easy, it's more like a big bucket, it is in there, somewhere. Maybe try searching with more specific keywords can help

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [9 May 2022 14:13 UTC](https://discourse.nodered.org/t/gstreamer-stream-capture/59617/5 "2022-05-09T14:13:08Z")

</div>

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