Taking snapshot while video aith audio recording

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

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.

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

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.