# Taking snapshot while video aith audio recording

**URL:** <https://forum.amebaiot.com/t/taking-snapshot-while-video-aith-audio-recording/4317>\
**Category:** Multimedia\
**Tags:** evb-amb82, rtl8735b\
**Created:** [August 22, 2025, 1:09pm UTC](https://forum.amebaiot.com/t/taking-snapshot-while-video-aith-audio-recording/4317 "2025-08-22T13:09:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![saud\_shafiq](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.amebaiot.com/saud_shafiq/32/2768_2.png) [@saud\_shafiq](https://forum.amebaiot.com/u/saud_shafiq)\
**Post date:** [August 22, 2025, 1:09pm UTC](https://forum.amebaiot.com/t/taking-snapshot-while-video-aith-audio-recording/4317/1 "2025-08-22T13:09:41Z")

</div>

I have a Ameba 82 mini IOT board. I am recording an video with audio in memory card. i want to be able to take snapshot using a button. button is configured to take a snapshot for short press, and start or end video recording on long press. but i am receiving the following error

i am using example=\> AmebaMultimedia → Recordmp4 → SingleVideoWithAudio as a reference

![image](https://us1.discourse-cdn.com/flex016/uploads/ameba/original/2X/4/4d33b8d7f8dd01a116f52a73a532c9c1ac16c86d.png)

---

<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:** [August 26, 2025, 8:49am UTC](https://forum.amebaiot.com/t/taking-snapshot-while-video-aith-audio-recording/4317/2 "2025-08-26T08:49:25Z")

</div>

Hi @saud_shafiq

May I know if you encounter this error with the default example? If you modified the code, kindly share it with us if its possible for us to reproduce the issue.

Thank you.

---

<div class="post-metadata">

**Author:** ![saud\_shafiq](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.amebaiot.com/saud_shafiq/32/2768_2.png) [@saud\_shafiq](https://forum.amebaiot.com/u/saud_shafiq)\
**Post date:** [August 26, 2025, 12:38pm UTC](https://forum.amebaiot.com/t/taking-snapshot-while-video-aith-audio-recording/4317/3 "2025-08-26T12:38:05Z")

</div>

I was writing my own code. I was using H264 encoder with snapshot available setting,whcih caused the problem. then i used one channel with H264 for video stream and snapshot disabled,and second channel with VIDEO\_JPEG encoder with snapshot enabled. this worked

---

<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:** [August 28, 2025, 9:19am UTC](https://forum.amebaiot.com/t/taking-snapshot-while-video-aith-audio-recording/4317/4 "2025-08-28T09:19:23Z")

</div>

Hi @saud_shafiq , yes, you will need a double encoder (VIDEO\_JPEG) if you would like to stream video and take snapshot at the same time.
