# Node-red-contrib-ffmpeg-spawn

**URL:** <https://discourse.nodered.org/t/node-red-contrib-ffmpeg-spawn/44427>\
**Category:** Developing Nodes\
**Created:** [20 April 2021 01:25 UTC](https://discourse.nodered.org/t/node-red-contrib-ffmpeg-spawn/44427 "2021-04-20T01:25:14Z")\
**Posts on this page:** 7\
**Page:** 4

<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:** [25 July 2021 13:20 UTC](https://discourse.nodered.org/t/node-red-contrib-ffmpeg-spawn/44427/61 "2021-07-25T13:20:39Z")

</div>

@kevinGodell , do you happen to know if your mp4frag & ffmpeg-spawn nodes are expected to work on a Mac running macOS?

Best regards, Walter

---

<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:** [25 July 2021 17:30 UTC](https://discourse.nodered.org/t/node-red-contrib-ffmpeg-spawn/44427/62 "2021-07-25T17:30:52Z")

</div>

Although I have never tried running node-red on anything but a raspberry pi, I have not used any code that should be operating system specific. So, yes, it should run on mac os.

---

<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:** [26 July 2021 06:51 UTC](https://discourse.nodered.org/t/node-red-contrib-ffmpeg-spawn/44427/63 "2021-07-26T06:51:46Z")

</div>

OK, excellent! Yes, it seems the mac needs -r XX on the output of the ffmpeg command to work properly, to set the desired framrate of the output

I have another thing I would like to ask/discuss

Your ffmpeg-spawn is running continously and providing playlists. It is played nicely in my view (ui\_template) without problems, currently I'm using the video.mp4. What I now need to do is to figure out how I can

- take a snapshot
- start/stop recording

I know the example flow you provided earlier where you had all variants included, that flow works fine but I have some issues in my setup

- piping an image continuosly to pipe4 seems to add quite a lot to the cpu load so I really would like to aboid that, instead having some "better" method to capture a snapshot of what is currently shown in the view. I found the following link how to implement it all in the view but if there are simpler ways using nodes, well,,,or if I could send a command to the mp4frag node to take a snapshot...

- for recording I think I can use what you have demonstrated, telling the related mp4frag node to start to write and then stop, just need to know the current playlist and then control the related node

https://codepen.io/ganmahmud/embed/preview/wMyopY?default-tabs=js%2Cresult&height=300&host=https%3A%2F%2Fcodepen.io&slug-hash=wMyopY

---

<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:** [26 July 2021 14:19 UTC](https://discourse.nodered.org/t/node-red-contrib-ffmpeg-spawn/44427/64 "2021-07-26T14:19:34Z")

</div>

Can you verify what input type and output types you want to use with ffmpeg? Also, what is the input and output resolution WxH and frame rate? macOS? More details will help me to give a better recommendation.

---

<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:** [26 July 2021 15:47 UTC](https://discourse.nodered.org/t/node-red-contrib-ffmpeg-spawn/44427/65 "2021-07-26T15:47:45Z")

</div>

> [@kevinGodell](#):
>
> Can you verify what input type and output types you want to use with ffmpeg?

As inputs I would like to target rtsp cameras but since I do not have any, I have just used available m3u8 playlists as input. As output I currently use your video.mp4 playlist in ui\_template views, this works fine. I have experimented with m3u8 as well but I did not reach my goal, at least not yet. The ui\_template node view size is defined in a css definition, so the frames from the video source is kept/scaled to fit inside, frame rate 30 fps works also without problems, see image I sent to you, streaming RedBull in all views

> [@kevinGodell](#):
>
> macOS?

The problem reported to me was a false alarm. Your nodes are working fine also on macOS. The testing was made with Safari that does not support mp4 streaming, that was the problem. With Chrome and FF it worked fine. I don't know if there is anything that can be done to support streaming of mp4 in Safari, some kind of add-on or so

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [19 August 2021 11:59 UTC](https://discourse.nodered.org/t/node-red-contrib-ffmpeg-spawn/44427/66 "2021-08-19T11:59:13Z")

</div>

Split this topic on 19 August 2021 11:59 UTC

2 posts were merged into an existing topic: [[beta testing] nodes for live streaming mp4](https://discourse.nodered.org/t/beta-testing-nodes-for-live-streaming-mp4/33743/318)

---

<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:** [18 October 2021 11:59 UTC](https://discourse.nodered.org/t/node-red-contrib-ffmpeg-spawn/44427/67 "2021-10-18T11:59:51Z")

</div>

Closed on 18 October 2021 11:59 UTC

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

[Previous page](https://discourse.nodered.org/t/node-red-contrib-ffmpeg-spawn/44427.md?page=3)
