# OpenMV H7 plus, record on movement

**URL:** <https://forums.openmv.io/t/openmv-h7-plus-record-on-movement/2212>\
**Category:** OpenMV Boards\
**Created:** [March 3, 2021, 1:38pm UTC](https://forums.openmv.io/t/openmv-h7-plus-record-on-movement/2212 "2021-03-03T13:38:27Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![DaStevens](https://avatars.discourse-cdn.com/v4/letter/d/e79b87/32.png) [@DaStevens](https://forums.openmv.io/u/DaStevens)\
**Post date:** [March 3, 2021, 1:38pm UTC](https://forums.openmv.io/t/openmv-h7-plus-record-on-movement/2212/1 "2021-03-03T13:38:27Z")

</div>

Hi,  
I’m completely new to programming and using Python. Eventually I want to record when there is power. Thats why I runned the mjpeg\_on\_movement example, but I got a problem. When I run the programm the RGB light turns blue, which is positive. After +/- 10 seconds the light turns red and after +/- 1 second it turns blue again.  
I inserted a SD-card and that’s where the footage gets saved. I also got a OpenMV wireless TV-shield attached.  
I have no clue what could be the problem, is there someone else with the same issues or can someone help me?

Thanks in advance,

Dave

---

<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:** [March 3, 2021, 4:07pm UTC](https://forums.openmv.io/t/openmv-h7-plus-record-on-movement/2212/2 "2021-03-03T16:07:26Z")

</div>

Can you post your code? Using the code tags.

---

<div class="post-metadata">

**Author:** ![DaStevens](https://avatars.discourse-cdn.com/v4/letter/d/e79b87/32.png) [@DaStevens](https://forums.openmv.io/u/DaStevens)\
**Post date:** [March 3, 2021, 5:55pm UTC](https://forums.openmv.io/t/openmv-h7-plus-record-on-movement/2212/3 "2021-03-03T17:55:42Z")

</div>

Hi,  
It’s the example code of the OpenMV IDE examples. It’s under video recording, because that’s what I eventually want. It’s called: “mjpeg\_on\_movement”

Dave

---

<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:** [March 4, 2021, 6:08pm UTC](https://forums.openmv.io/t/openmv-h7-plus-record-on-movement/2212/4 "2021-03-04T18:08:58Z")

</div>

The movement detection on that isn’t really sophisticated. What is it doing that you aren’t expecting?

---

<div class="post-metadata">

**Author:** ![DaStevens](https://avatars.discourse-cdn.com/v4/letter/d/e79b87/32.png) [@DaStevens](https://forums.openmv.io/u/DaStevens)\
**Post date:** [March 4, 2021, 7:50pm UTC](https://forums.openmv.io/t/openmv-h7-plus-record-on-movement/2212/5 "2021-03-04T19:50:45Z")

</div>

Hi,  
I want it to record continuously, but after +/- 10 seconds it stops and just start over without doing anything. I need to record for about 4 hours and in this state, I will end with a ton of files.

Dave

---

<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:** [March 5, 2021, 4:38am UTC](https://forums.openmv.io/t/openmv-h7-plus-record-on-movement/2212/6 "2021-03-05T04:38:23Z")

</div>

Yeah, the current example just does a 10 second record on any movement.

You need to edit the code to do something different.
