# Convert HTTP-Stream into RTSP-Stream

**URL:** <https://discourse.nodered.org/t/convert-http-stream-into-rtsp-stream/58165>\
**Category:** General\
**Created:** [11 February 2022 16:18 UTC](https://discourse.nodered.org/t/convert-http-stream-into-rtsp-stream/58165 "2022-02-11T16:18:58Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Timmy275](https://avatars.discourse-cdn.com/v4/letter/t/4af34b/32.png) [@Timmy275](https://discourse.nodered.org/u/Timmy275)\
**Post date:** [11 February 2022 16:18 UTC](https://discourse.nodered.org/t/convert-http-stream-into-rtsp-stream/58165/1 "2022-02-11T16:18:58Z")

</div>

Hello guys!

Im completely new to the Node-RED environment, so please have mercy 😀

As part of my thesis I am trying to get the video-stream of an IP-based device.  
The idea is to grab the images and use the "multipart-encoder" to get a resulting http-stream. But unfortunately my video-management-software (in which I want to integrate the stream) don't support http, only RTSP.

Is there a way to convert the http-stream into a RTPS-stream?

Many thanks in advance!

PS: I am only using the web-interface of Node-RED.. 👍

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [11 February 2022 16:38 UTC](https://discourse.nodered.org/t/convert-http-stream-into-rtsp-stream/58165/2 "2022-02-11T16:38:44Z")

</div>

> [@Timmy275](#):
>
> Is there a way to convert the http-stream into a RTPS-stream?

Yes, several, but this is nothing to do with node red. You can, for example, use ffmpeg or vlc. [convert the http-stream into a RTPS-stream? - Google Search](https://www.google.com/search?q=convert+the+http-stream+into+a+RTPS-stream%3F&oq=convert+the+http-stream+into+a+RTPS-stream%3F&aqs=chrome..69i57j33i22i29i30.767j0j7&sourceid=chrome&ie=UTF-8)

---

<div class="post-metadata">

**Author:** ![lu4t](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/lu4t/32/32276_2.png) [@lu4t](https://discourse.nodered.org/u/lu4t)\
**Post date:** [11 February 2022 17:57 UTC](https://discourse.nodered.org/t/convert-http-stream-into-rtsp-stream/58165/3 "2022-02-11T17:57:31Z")

</div>

maybe you want to have a look at this (long) thread, and its related topics...

> [@\[beta testing\] nodes for live streaming mp4](https://discourse.nodered.org/t/beta-testing-nodes-for-live-streaming-mp4/33743):
>
> For those of you interested in re-streaming your ip cams or other videos sources as HLS and playable in the browser or app, I have some nodes that are available to test. npm install kevinGodell/node-red-contrib-mp4frag npm install kevinGodell/node-red-contrib-ui-mp4frag node-red-contrib-mp4frag is a wrapper around an existing lib, mp4frag. It goes a little further and sets up http routes for serving the files to any player capable of consuming HLS video, such as VLC, HLS.js in most modern brow…

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [11 February 2022 18:33 UTC](https://discourse.nodered.org/t/convert-http-stream-into-rtsp-stream/58165/4 "2022-02-11T18:33:54Z")

</div>

Perhaps not entirely node red unrelated then.

---

<div class="post-metadata">

**Author:** ![BartButenaers](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bartbutenaers/32/10476_2.png) [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Post date:** [11 February 2022 23:23 UTC](https://discourse.nodered.org/t/convert-http-stream-into-rtsp-stream/58165/5 "2022-02-11T23:23:28Z")

</div>

Hi @Timmy275,  
Doesn't your ip cam offer an rtsp stream? Becuse when you want to convert mjpeg to mp4, I assume lots of memory and cpu will be needed...  
Bart

---

<div class="post-metadata">

**Author:** ![Timmy275](https://avatars.discourse-cdn.com/v4/letter/t/4af34b/32.png) [@Timmy275](https://discourse.nodered.org/u/Timmy275)\
**Post date:** [12 February 2022 11:47 UTC](https://discourse.nodered.org/t/convert-http-stream-into-rtsp-stream/58165/6 "2022-02-12T11:47:47Z")

</div>

First of all: Thank you for your answers!

@Colin yeah, vlc would do the job, but I am using an all-in-one-system:  
It's a "VIVOTEK IE9111-O". A KI-Box you can install several apps on, which edit the video-stream in multiple ways. Node-Red is one of the apps and grabs the video-stream from another video-editing-app. So vlc is not an option because of the limited availability of apps and the necessity to do every work on the KI-Box.

@BartButenaers I think this answers your question, too? The KI-Box and the installed app unluckily don't support RTSP.. 😐

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [12 February 2022 12:03 UTC](https://discourse.nodered.org/t/convert-http-stream-into-rtsp-stream/58165/7 "2022-02-12T12:03:15Z")

</div>

If you can't install something like vlc or ffmpeg and the native s/w does not support rtsp then I think your quest is doomed to failure.

What format streams does your IP device provide? Also, why do you need to capture images and build an http stream, can't you use the stream directly from the device?

**[Edit]** I am confused about what s/w is running in which device. Please provide a bit more information.

---

<div class="post-metadata">

**Author:** ![BartButenaers](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bartbutenaers/32/10476_2.png) [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Post date:** [12 February 2022 12:52 UTC](https://discourse.nodered.org/t/convert-http-stream-into-rtsp-stream/58165/8 "2022-02-12T12:52:27Z")

</div>

Yes indeed, if you could draw a quick scetch of your setup, that would help. So we can seen the whole flow, starting from your ip cam--\>...--\>...--\>...

And like Colin says, if you can't run things like ffmpeg then your chance for success wiil drop...

---

<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:** [13 April 2022 12:52 UTC](https://discourse.nodered.org/t/convert-http-stream-into-rtsp-stream/58165/9 "2022-04-13T12:52:34Z")

</div>

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