Skip to content
Phil Schatzmann edited this page Aug 28, 2026 · 23 revisions

This library supports the recording and playback of video which contains both video frames and audio. Different container formats are used to store video on audio together in the same file.

Container Formats

The simplest and therefore most recommended container format is AVI (Audio Video Interleave). It is simple to both encode and decode and you can easily mix audio and video together. It supports both different audio and video encodings.

Sometimes you can also find the MPG (MPEG digital video and audio). As it names states the video is encoded as MPEG-1 (ISO/IEC 11172 part 2) video and the audio as MPEG-1 Layer II ("MP2") audio but mp3 audio usually works also just fine.

On the desktop you can also find MP4 (formally MPEG-4 Part 14). If you are careful and know what you are doing you can also use it on a Microcontroller. The core issue is that you need to read all the metadata first in order to be able to decode the video and audio and this requires a lot of RAM, or you use some direct access using Files or store the metadata temporarily in some files.

Clone this wiki locally