# SD card not recognised after long duration recording

**URL:** <https://forum.amebaiot.com/t/sd-card-not-recognised-after-long-duration-recording/4102>\
**Category:** Multimedia\
**Tags:** evb-amb82, rtl8735b\
**Created:** [May 7, 2025, 12:27pm UTC](https://forum.amebaiot.com/t/sd-card-not-recognised-after-long-duration-recording/4102 "2025-05-07T12:27:12Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Barryn56](https://avatars.discourse-cdn.com/v4/letter/b/8491ac/32.png) [@Barryn56](https://forum.amebaiot.com/u/Barryn56)\
**Post date:** [May 7, 2025, 12:27pm UTC](https://forum.amebaiot.com/t/sd-card-not-recognised-after-long-duration-recording/4102/1 "2025-05-07T12:27:12Z")

</div>

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…

---

<div class="post-metadata">

**Author:** ![KevinKL](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.amebaiot.com/kevinkl/32/2632_2.png) [@KevinKL](https://forum.amebaiot.com/u/KevinKL)\
**Post date:** [June 2, 2025, 8:55am UTC](https://forum.amebaiot.com/t/sd-card-not-recognised-after-long-duration-recording/4102/2 "2025-06-02T08:55:14Z")

</div>

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](https://github.com/Ameba-AIoT/ameba-arduino-pro2/blob/dev/Arduino_package/hardware/libraries/Multimedia/examples/RecordMP4/VideoOnly/VideoOnly.ino)

Thank you.

---

<div class="post-metadata">

**Author:** ![Barryn56](https://avatars.discourse-cdn.com/v4/letter/b/8491ac/32.png) [@Barryn56](https://forum.amebaiot.com/u/Barryn56)\
**Post date:** [June 3, 2025, 6:34am UTC](https://forum.amebaiot.com/t/sd-card-not-recognised-after-long-duration-recording/4102/3 "2025-06-03T06:34:40Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Pammy](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.amebaiot.com/pammy/32/936_2.png) [@Pammy](https://forum.amebaiot.com/u/Pammy)\
**Post date:** [November 26, 2025, 3:19am UTC](https://forum.amebaiot.com/t/sd-card-not-recognised-after-long-duration-recording/4102/4 "2025-11-26T03:19:18Z")

</div>

> [@Barryn56](#):
>
> (17 hours in total, so 17 x 1 hour files)

Hi @Barryn56

Checking if you still encounter any issue? We suggest that the duration of each file should be 30 mins.

---

<div class="post-metadata">

**Author:** ![Barryn56](https://avatars.discourse-cdn.com/v4/letter/b/8491ac/32.png) [@Barryn56](https://forum.amebaiot.com/u/Barryn56)\
**Post date:** [November 26, 2025, 5:11am UTC](https://forum.amebaiot.com/t/sd-card-not-recognised-after-long-duration-recording/4102/5 "2025-11-26T05:11:33Z")

</div>

Hi, no we’ve been using 1 hour on all the versions and have no issues since we switched to High Endurance SD cards, though I have been using 64GB mainly. Only issue has been wasting a lot of time and effort on BLE, when it really isn’t useful for control of the WiFi, as they are linked through the same transceiver. Regards, Barry
