How to save image and video to SD card on board openMV M7

Hello Sir,
Please suggest me best option to program how to save image and videos into the SD card on board openMV M7 module. Also if I want to boot openMV M7 through SD card on board, is it possible to do it? If yes how is it possible?

Regards,
Nikhil Shah.

Hi please see the snapshot and video recording examples. If you want to boot from SD, save the script to SD as main.py