Hi. I am using the code below to record video from AMB82-mini and it has been working fine on 128GB cards for relatively short duration (5 hours, each file one hour long). However, I recently recorded a longer duration (17 hours in total, so 17 x 1 hour files) and the SD card was not recognised in Windows (not in disk manager either) afterwards. I wonder if the code I am using is the issue:
if (item) {
streamer.setBaseFileName(baseName);
streamer.setSingleFileDuration(singleFileDuration);
streamer.startRecording(timestamp);
or was it just bad luck I have a bad SD card (it is newly formatted FAT using an app for the larger capacity).
Any thoughts would be appreciated.
- Now realising the SD card’s MBR was overwritten…
Hi @Barryn56 ,
We tried to replicate the issue by recording 20 x 1 hour files into SD card using AMB82-mini. We are able to retrieve the MP4 files from the SD card after 20 hours of recording. Kindly refer to this example code for mp4 video recording. ameba-arduino-pro2/Arduino_package/hardware/libraries/Multimedia/examples/RecordMP4/VideoOnly/VideoOnly.ino at dev · Ameba-AIoT/ameba-arduino-pro2 · GitHub
Thank you.
Thanks for the investigation - I’ve found the 128GB cards may be the reliability issue. 64GB seem to work fine, and I just purchased Pro Endurance 64GB cards to ensure reliable recording, but would like to try larger card sizes in future. Also considering if the unit could take a second SD card through the SPi connection.