Writing mjpeg to SD

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
upython_noob
Posts: 1
Joined: Fri May 07, 2021 8:46 pm

Writing mjpeg to SD

Post by upython_noob » Fri May 07, 2021 8:54 pm

Hi all,

I'm trying to create a motion activated camera using micropython. I've managed to trigger the external wake up and save a 30 sec video to the SD card but only with a specified name. This means that every time it gets an EXTI, it overwrites the previous video.

upython is completely new to me so struggling with how to make it save with a new file name for each recording.

at present all the code is doing is writing the file with the name specified as below.

m = mjpeg.Mjpeg("Rec1.mjpeg")

erkman
Posts: 4
Joined: Sun Sep 05, 2021 5:22 am

Re: Writing mjpeg to SD

Post by erkman » Mon Mar 07, 2022 8:33 pm

Hi,
I'm also looking for such thin, but I would like to use the PIR for such purpose. Does your script already working?
Could you share your source code?

Thank you very much.

BR
Erkman

Post Reply