Writing mjpeg to SD
Posted: 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")
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")