# Storing video as mp4

**URL:** <https://discourse.nodered.org/t/storing-video-as-mp4/41911>\
**Category:** General\
**Created:** [2 March 2021 19:08 UTC](https://discourse.nodered.org/t/storing-video-as-mp4/41911 "2021-03-02T19:08:57Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [2 March 2021 19:40 UTC](https://discourse.nodered.org/t/storing-video-as-mp4/41911/2 "2021-03-02T19:40:30Z")

</div>

Continuous recording or based on an trigger?

If continuous, the exec node using ffmpeg can stay connected to a video stream and make mp4 and write it to disk on a continuous basis which would not need the mp4frag nodes.

If based on some event or trigger, such as motion detection or on a timer, you can have a 2nd exec node tell ffmpeg to read the video stream from node-red-contrib-mp4frag via the http api and make an mp4 video from that. Currently, there is no way of getting the video from node-red-contrib-mp4frag directly from within node. [Show ip camera in dashboard and store prefixed buffer video](https://discourse.nodered.org/t/show-ip-camera-in-dashboard-and-store-prefixed-buffer-video/39572)

---

_[View the full topic](https://discourse.nodered.org/t/storing-video-as-mp4/41911)._
