# Best way to integrate Ffmpeg in Node-RED

**URL:** <https://discourse.nodered.org/t/best-way-to-integrate-ffmpeg-in-node-red/23861>\
**Category:** General\
**Created:** [29 March 2020 21:52 UTC](https://discourse.nodered.org/t/best-way-to-integrate-ffmpeg-in-node-red/23861 "2020-03-29T21:52:00Z")\
**Posts on this page:** 7\
**Page:** 2

<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:** [30 March 2020 17:56 UTC](https://discourse.nodered.org/t/best-way-to-integrate-ffmpeg-in-node-red/23861/21 "2020-03-30T17:56:23Z")

</div>

> [@Colin](#):
>
> A USB stick is just an SD card with a USB i/f

Yes, might be, maybe has some better data error correction mechanisms, maybe depends on the brand and type, anyway, for me this is just a first testing step to boot from USB at all using an RPi3, I am planning to move over to use a SSD, the stick was what was available right now 😉

And I have two clones of the same, the original SD card and a full duplicate, just in case something would happen...

---

<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 April 2020 10:07 UTC](https://discourse.nodered.org/t/best-way-to-integrate-ffmpeg-in-node-red/23861/22 "2020-04-12T10:07:04Z")

</div>

> [@krambriw](#):
>
> would consider a small SSD disk like 128G to boot from

When I would buy a Raspberry 4, is there anything I should be aware of when I purchase an (USB3) SSD disc? Not sure whether all types allow continious writes at the same location (e.g. input images for ffmpeg).  
And about the size of the disc. Does anybody have some guidelines/experience about that? When I have N camera's with resolution AxB and want to store N minutes of video footage (as mp4 I assume?), how large does the disc need to be?  
Thanks again!

---

<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 April 2020 10:45 UTC](https://discourse.nodered.org/t/best-way-to-integrate-ffmpeg-in-node-red/23861/23 "2020-04-12T10:45:28Z")

</div>

> [@BartButenaers](#):
>
> And about the size of the disc

This question seems easily to be solved, since there are plenty of online storage calculators. Like e.g. [this](https://shop.westerndigital.com/tools/wd-surveillance-capacity-calculator) one, where you can enter all the info of your camera's...

---

<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:** [12 April 2020 13:23 UTC](https://discourse.nodered.org/t/best-way-to-integrate-ffmpeg-in-node-red/23861/24 "2020-04-12T13:23:55Z")

</div>

Dear Bart,  
Yes, with the RPi4 there are still certain things to watch out for. One is the SSD Disk controller if it is supported, another is that the sd card is still needed but just for the initial startup during boot. The size of the disk is, as you know, depending on how much you want to keep recorded. Eventually you will choose to record at full speed only when there is something interesting detected, i. e. event triggered recording

I have enjoyed looking at this very informative video by Mr Andreas Spiess, where he is explaining in detail those things and also how to setup a RPi4 to boot via SSD on USB. Really helpful I think

---

<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:** [13 April 2020 07:07 UTC](https://discourse.nodered.org/t/best-way-to-integrate-ffmpeg-in-node-red/23861/25 "2020-04-13T07:07:40Z")

</div>

> [@krambriw](#):
>
> certain things to watch out for. One is the SSD Disk controller if it is supported

Thanks Walter, can you explain this a bit more in detail. I wanted to buy [this](https://www.coolblue.be/en/product/785050/samsung-portable-ssd-t5-500gb.html) one, but would be awful if it shouldn't work on a new Raspberry pi 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:** [13 April 2020 07:22 UTC](https://discourse.nodered.org/t/best-way-to-integrate-ffmpeg-in-node-red/23861/26 "2020-04-13T07:22:33Z")

</div>

Hi Bart, I think such a nice SSD will work, it was just in the video, Andreas talks about this and he is referring to some table listing compatible devices. But a Samsung SSD, I would be surprised if it is not recognized when connected to the USB

> **[Raspberry Pi 4 USB Boot Config Guide for SSD / Flash Drives](https://jamesachambers.com/raspberry-pi-4-usb-boot-config-guide-for-ssd-flash-drives/)**
>
> The Raspberry Pi 4 is finally here and has a lot of exciting changes. One very major downside is that it doesn’t support true USB booting yet out of the box (like the 3 series did).

---

<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:** [12 June 2020 07:22 UTC](https://discourse.nodered.org/t/best-way-to-integrate-ffmpeg-in-node-red/23861/27 "2020-06-12T07:22:36Z")

</div>

Closed on 12 June 2020 07:22 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/best-way-to-integrate-ffmpeg-in-node-red/23861.md?page=1)
