# Recording to a circular stream

**URL:** <https://forums.openmv.io/t/recording-to-a-circular-stream/1215>\
**Category:** OpenMV Boards\
**Created:** [April 17, 2019, 7:05pm UTC](https://forums.openmv.io/t/recording-to-a-circular-stream/1215 "2019-04-17T19:05:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bloues](https://avatars.discourse-cdn.com/v4/letter/b/ec9cab/32.png) [@bloues](https://forums.openmv.io/u/bloues)\
**Post date:** [April 17, 2019, 7:05pm UTC](https://forums.openmv.io/t/recording-to-a-circular-stream/1215/1 "2019-04-17T19:05:16Z")

</div>

On the Raspberry Pi you have a feature to keep an in-memory stream containing the last x seconds of video recorded. A typical use-case for this sort of storage would be an external event triggered by a GPIO input event which will trigger OpenMV to store the 5 seconds prior to and 5 seconds after the GPIO event. Has anyone done such an implementation? Any available examples?

[https://picamera.readthedocs.io/en/release-1.12/recipes1.html#stream-record](https://picamera.readthedocs.io/en/release-1.12/recipes1.html#stream-record)

---

<div class="post-metadata">

**Author:** ![kwagyeman](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.openmv.io/kwagyeman/32/4_2.png) [@kwagyeman](https://forums.openmv.io/u/kwagyeman)\
**Post date:** [April 17, 2019, 7:40pm UTC](https://forums.openmv.io/t/recording-to-a-circular-stream/1215/2 "2019-04-17T19:40:22Z")

</div>

We don’t have enough ram to do that. Maybe in future versions of the product. We have been wanting to build a version of the system which has DRAM. But, as we are a bootstrapped company without any major investment we can’t add RAM to the system because of the BOM increase that would occur. We are thinking about building a higher end (and higher cost camera) that would have these features however as cost is the main reason for our current build simplicity.

---

<div class="post-metadata">

**Author:** ![iabdalkader](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.openmv.io/iabdalkader/32/1169_2.png) [@iabdalkader](https://forums.openmv.io/u/iabdalkader)\
**Post date:** [April 17, 2019, 7:47pm UTC](https://forums.openmv.io/t/recording-to-a-circular-stream/1215/3 "2019-04-17T19:47:54Z")

</div>

Note that OpenMV has very low latency compared to RPi.
