# \[beta testing\] nodes for live streaming mp4

**URL:** <https://discourse.nodered.org/t/beta-testing-nodes-for-live-streaming-mp4/33743>\
**Category:** Share Your Nodes\
**Created:** [4 October 2020 23:35 UTC](https://discourse.nodered.org/t/beta-testing-nodes-for-live-streaming-mp4/33743 "2020-10-04T23:35:12Z")\
**Posts on this page:** 20\
**Page:** 11

<div class="post-metadata">

**Author:** ![SuperNinja](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/superninja/32/5761_2.png) [@SuperNinja](https://discourse.nodered.org/u/SuperNinja)\
**Post date:** [1 December 2020 09:59 UTC](https://discourse.nodered.org/t/beta-testing-nodes-for-live-streaming-mp4/33743/201 "2020-12-01T09:59:10Z")

</div>

> [@krambriw](#):
>
> Your flow worked fine for me,

did you try the second flow with the EXEC node ? (for me the first flow working too, but the second not)

> [@krambriw](#):
>
> I suspected the "node-red-node-ui-table" node because I saw similar unmet peer dependency

i just delete it an reboot RPI and same :  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/8/e84dcc76af762d86118f58b0285f3d5c43456dbd.png)  
_ui-table dependency disapear but got two [socket.io](http://socket.io) version_

> [@krambriw](#):
>
> After I uninstalled it, eventually re-installed Kevins sw, restarted node-red, maybe rebooted and then it worked

=\> let's GO !

---

<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:** [1 December 2020 10:12 UTC](https://discourse.nodered.org/t/beta-testing-nodes-for-live-streaming-mp4/33743/202 "2020-12-01T10:12:27Z")

</div>

> [@SuperNinja](#):
>
> did you try the second flow with the EXEC node ? (for me the first flow working too, but the second not)

Yes of course, only tested the second with the exec node. Worked first attempt

Here both running at the same time

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/b/7b06df6651540852c7807a7237e14b6c0149175b.jpeg)

---

<div class="post-metadata">

**Author:** ![SuperNinja](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/superninja/32/5761_2.png) [@SuperNinja](https://discourse.nodered.org/u/SuperNinja)\
**Post date:** [1 December 2020 10:53 UTC](https://discourse.nodered.org/t/beta-testing-nodes-for-live-streaming-mp4/33743/203 "2020-12-01T10:53:51Z")

</div>

> [@kevinGodell](#):
>
> npm install kevinGodell/node-red-dashboard kevinGodell/node-red-contrib-mp4frag kevinGodell/node-red-contrib-ui-mp4frag

That's it it's good, I uninstalled and reinstalled again and everything works, phew. 😅

---

<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:** [3 December 2020 23:35 UTC](https://discourse.nodered.org/t/beta-testing-nodes-for-live-streaming-mp4/33743/204 "2020-12-03T23:35:13Z")

</div>

Closed on 3 December 2020 23:35 UTC

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

---

<div class="post-metadata">

**Author:** ![kevinGodell](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/kevingodell/32/27040_2.png) [@kevinGodell](https://discourse.nodered.org/u/kevinGodell)\
**Post date:** [7 December 2020 02:49 UTC](https://discourse.nodered.org/t/beta-testing-nodes-for-live-streaming-mp4/33743/205 "2020-12-07T02:49:18Z")

</div>

continued from the [other thread that closed](https://discourse.nodered.org/t/beta-testing-nodes-for-live-streaming-mp4/33743)...

```auto
npm install kevinGodell/node-red-contrib-mp4frag
npm install kevinGodell/node-red-contrib-ui-mp4frag

```

Some new features are designed with security in mind.

To secure the http routes, you can add a custom middleware function that can be used to limit access to hls.m3u8, video.mp4, etc. It is to be defined in the `settings.js` file.

```auto
mp4frag: {
  middleware: (req, res, next) => {
    console.log('mp4frag middleware');
    next();
  }
},

```

For socket io connections, the server side now generates a random key each time the node is initialized. It is passed in the payload so that it may be given to a client to use for connecting. This is done because I go straight to websockets, skipping the polling step, which gives me less options for verifying the client connection. Skipping the polling option with socket io allows me to get video delivered sooner and it also gives flexibility for playing video via socket io on another server without playing with cors.

Both nodes still can work with socket io v2 or v3. So if you need the performance benefits of v3, you can install my fork of node-red-dashboard that uses socket io v3 as a dependency vs the master that uses v2.

```auto
npm uninstall node-red-dashboard
npm install kevinGodell/node-red-dashboard

```

p.s. installing kevinGodell/node-red-dashboard from git takes a very long time and appears to freeze. give it probably more than 5 minutes.

---

<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:** [7 December 2020 08:57 UTC](https://discourse.nodered.org/t/beta-testing-nodes-for-live-streaming-mp4/33743/206 "2020-12-07T08:57:11Z")

</div>

Just a placeholder for an alternative install method that is much faster (if you don't have patience to wait for npm!)

Using yarn. Install info here:

> **[Yarn](https://classic.yarnpkg.com/en/docs/install/#debian-stable)**
>
> Fast, reliable, and secure dependency management.

change to node red dir:  
`cd .node-red`

```auto
yarn add kevinGodell/node-red-contrib-mp4frag
yarn add kevinGodell/node-red-contrib-ui-mp4frag
yarn add kevinGodell/node-red-dashboard

```

restart node-red:  
`node-red-restart`

---

<div class="post-metadata">

**Author:** ![kevinGodell](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/kevingodell/32/27040_2.png) [@kevinGodell](https://discourse.nodered.org/u/kevinGodell)\
**Post date:** [7 December 2020 12:48 UTC](https://discourse.nodered.org/t/beta-testing-nodes-for-live-streaming-mp4/33743/207 "2020-12-07T12:48:21Z")

</div>

That is amazing. Yarn is so much faster for installing than npm. Only took a few seconds whereas npm was taking many many minutes. I have probably lost hours lately when I add up all the time wasted as I was changing between node-red-dashboard versions to test compatibility.

---

<div class="post-metadata">

**Author:** ![SuperNinja](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/superninja/32/5761_2.png) [@SuperNinja](https://discourse.nodered.org/u/SuperNinja)\
**Post date:** [8 December 2020 08:12 UTC](https://discourse.nodered.org/t/beta-testing-nodes-for-live-streaming-mp4/33743/208 "2020-12-08T08:12:36Z")

</div>

> [@kevinGodell](#):
>
> `npm install kevinGodell/node-red-dashboard`

I saw that the "Official" node-red-dashboard node is in version v2.24.2 your kevinGodell / node-red-dashboard version is in, v2.24.2 Beta:  
Will we be able to have an Official version including your additions? Or do we have to keep using your version?

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [8 December 2020 10:10 UTC](https://discourse.nodered.org/t/beta-testing-nodes-for-live-streaming-mp4/33743/209 "2020-12-08T10:10:22Z")

</div>

... and 2.25.0 will be out as soon as I get my act together...

but...

The good thing is that Kevin's change is "just" a bump to the [sockets.io](http://sockets.io) library so is easy to re-do.

The bad thing is that that small version bump drop support for node8 - which the core project still supports. While that is the case we aren't going to intentionally break dashboard either by applying this fix. As and when we do drop node8 (Node-RED v2) we will then also bump dashboard to v3 and can include this.

---

<div class="post-metadata">

**Author:** ![SuperNinja](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/superninja/32/5761_2.png) [@SuperNinja](https://discourse.nodered.org/u/SuperNinja)\
**Post date:** [8 December 2020 10:15 UTC](https://discourse.nodered.org/t/beta-testing-nodes-for-live-streaming-mp4/33743/210 "2020-12-08T10:15:32Z")

</div>

ok, so it's up to Kevin to update his beta so that we can benefit from the latest official versions of Dashboard UI.  
While waiting for THE big update of NR.

---

<div class="post-metadata">

**Author:** ![kevinGodell](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/kevingodell/32/27040_2.png) [@kevinGodell](https://discourse.nodered.org/u/kevinGodell)\
**Post date:** [8 December 2020 12:47 UTC](https://discourse.nodered.org/t/beta-testing-nodes-for-live-streaming-mp4/33743/211 "2020-12-08T12:47:20Z")

</div>

> [@dceejay](#):
>
> ... and 2.25.0 will be out as soon as I get my act together...

It would be so awesome if @dceejay kept the _#socket-io-v3_ branch to allow users to get it from a **trusted** source. This would allow beta testers to get a chance to find bugs before it goes live. If not, I can still maintain my fork. It's not a big deal either way. I have added this to my wish list for Santa. 🎅

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [8 December 2020 14:02 UTC](https://discourse.nodered.org/t/beta-testing-nodes-for-live-streaming-mp4/33743/212 "2020-12-08T14:02:18Z")

</div>

Ho Ho Ho... my wish list is plenty long enough, and maintaining and publishing two forks of dashboard just for this use case is not on it...

---

<div class="post-metadata">

**Author:** ![kevinGodell](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/kevingodell/32/27040_2.png) [@kevinGodell](https://discourse.nodered.org/u/kevinGodell)\
**Post date:** [8 December 2020 17:09 UTC](https://discourse.nodered.org/t/beta-testing-nodes-for-live-streaming-mp4/33743/213 "2020-12-08T17:09:27Z")

</div>

Thanks for the quick response. I sure hope it didn’t sound like I wanted you to publish a branch. I wouldn’t want to be the straw on that camel’s back....

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [8 December 2020 19:33 UTC](https://discourse.nodered.org/t/beta-testing-nodes-for-live-streaming-mp4/33743/214 "2020-12-08T19:33:29Z")

</div>

No worries - I'm loving the great work you are doing and am keen to get there also - have a new camera on the Xmas list...  
but we know there are a lot of devices out there still stuck on node8 (certainly a lot of industrial units) and they still want to use dashboard. Yes we will drop it at the next major jump.

---

<div class="post-metadata">

**Author:** ![muzi](https://avatars.discourse-cdn.com/v4/letter/m/49beb7/32.png) [@muzi](https://discourse.nodered.org/u/muzi)\
**Post date:** [10 December 2020 06:16 UTC](https://discourse.nodered.org/t/beta-testing-nodes-for-live-streaming-mp4/33743/215 "2020-12-10T06:16:09Z")

</div>

Hello kevinGodell,  
Thanks for your sharing flow and node,it's very good like Bart said you are a video magician,I import your flow and when I run it ,it have below error invalid player order,Do you know what's the reason?

 ![图片](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/5/d5c44c40e711f9fe58f89804a2e33a65c5b3dde1.png)  
how can I deal with that ? What is wrong with my settings? Thanks for your help in advance.  
My ui\_mp4frag setting see below  
 ![图片](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/a/9ae2dcb67191e7eb284ca08579a0ee56ff43b503.png)  
Do we need config HLS.js Options?If need how can we config that ,thanks

---

<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 December 2020 06:31 UTC](https://discourse.nodered.org/t/beta-testing-nodes-for-live-streaming-mp4/33743/216 "2020-12-10T06:31:28Z")

</div>

I believe @kevinGodell lives in the US so we have some time zone differences to consider. Anyway, looks like you have no players available. This is how it looks like in my setup

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/c/7c8a52ba84de11e91bddf577311d9779dc31eb45.png)

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [10 December 2020 08:08 UTC](https://discourse.nodered.org/t/beta-testing-nodes-for-live-streaming-mp4/33743/217 "2020-12-10T08:08:39Z")

</div>

I think Kevin has updated the Node since that original flow was posted. Delete the player node and re-add it from the sidebar..

---

<div class="post-metadata">

**Author:** ![kevinGodell](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/kevingodell/32/27040_2.png) [@kevinGodell](https://discourse.nodered.org/u/kevinGodell)\
**Post date:** [10 December 2020 17:12 UTC](https://discourse.nodered.org/t/beta-testing-nodes-for-live-streaming-mp4/33743/218 "2020-12-10T17:12:03Z")

</div>

I updated the flow examples in the readme for both nodes before I ran out to work this morning. The old flows were very outdated and did not reflect the current configurations.

---

<div class="post-metadata">

**Author:** ![muzi](https://avatars.discourse-cdn.com/v4/letter/m/49beb7/32.png) [@muzi](https://discourse.nodered.org/u/muzi)\
**Post date:** [11 December 2020 05:03 UTC](https://discourse.nodered.org/t/beta-testing-nodes-for-live-streaming-mp4/33743/219 "2020-12-11T05:03:17Z")

</div>

Ok,Thanks your quickly response @kevinGodell@dceejay,i will try it later.Thanks.

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [11 December 2020 09:31 UTC](https://discourse.nodered.org/t/beta-testing-nodes-for-live-streaming-mp4/33743/220 "2020-12-11T09:31:33Z")

</div>

Opened on 11 December 2020 09:31 UTC



[Previous page](https://discourse.nodered.org/t/beta-testing-nodes-for-live-streaming-mp4/33743.md?page=10)

[Next page](https://discourse.nodered.org/t/beta-testing-nodes-for-live-streaming-mp4/33743.md?page=12)
