AMB82 Mini continuous recording issue

Hi, I tried to capture a continuous video with 30-minute duration each. Basically, I just edited the example code provided for SingleVideoWithAudio in these parts:

mp4.setRecordingDuration(1800); // 30 minutes

mp4.setRecordingFileCount(9999999); // infinite files since continuous

After 3 hours, the file gets corrupted. I tried with 15-minute duration of recordings and it also gets corrupted after 6 hours. Corrupted meaning it doesn’t play anything, although the SD card shows the size of the file. Any previous issue related to this? Thanks.

Hi @Alfred_Abella ,

Thanks for the detailed information and for sharing the test results.

We’ll need some time to reproduce the issue on our side, especially since it only occurs after several hours of continuous recording. We’ll test both the 30-minute and 15-minute recording configurations and check whether there are any known issues related to long-duration recording or file handling.

We’ll get back to you once we have more information from the reproduction test.

Thanks for your patience.

Hi @Alfred_Abella ,

We have tried to perform the continuous 30-minute and 15-minute recordings on our end and we could not replicate the corrupted file issue. Would you like to try record using another SD card? Please also ensure that you have a stable power source when performing the recordings. If the issue persists, kindly provide the error logs for the corrupted recordings so that we can assist you to debug.

Thank you.

Hi, may I know which type and brand of SD card you used for the tests? Maybe it is the SD card. I only bought cheap 32-gb one online. Also, I’m using a 5000 mAh power bank for source. Also, can I have a copy of the code that you used? Thanks!

Hi @Alfred_Abella ,

I’m using SanDisk Ultra 64GB for the 30-min recording and 32GB for the 15-min recording. You may try connecting the board to a stable power supply / PC to avoid any power unstable issues. The code that I have used is the example code from SDK with the following changes:

mp4.setRecordingDuration(1800);
mp4.setRecordingFileCount(50);

Thank you.

Hi, thanks. I used the SanDisk Extreme 16GB and it worked. No more corrupt files. So it was an SD card issue.