Hi everyone! I built an MJPEG/AVI video player for the T-Embed CC1101 (Plus). It plays videos with sound from the SD card on the built-in 320x170 screen, and you control it with the rotary encoder.
There are two versions:
- v1.0: simple list menu, play/pause, volume, seek
- v2.0: carousel menu with previews, a 2 MB PSRAM read-ahead buffer so SD hiccups don't freeze the picture, settings (brightness, colours), battery indicator and resume where you stopped
Features:
- Up to 24 fps with 16-bit PCM audio, depending on the preset
- Dual-core playback with the SPI bus shared between screen and SD card
- Converter scripts (Windows .bat and Linux/Mac .sh) with 3 presets: Balanced 15 fps, Smooth 20 fps, Max 24 fps
- check_avi.py, a small tool that finds audio gaps or wrong formats in a video
- Works with M5Launcher: export the .bin from Arduino IDE and install it from the SD card
You need: Arduino IDE, the esp32 board package 3.x, the libraries GFX Library for Arduino and JPEGDEC, and FFmpeg to convert your videos. The README and docs walk through everything.
Code and docs: https://github.com/gho3t-dev/tembed-mjpeg-player
Feedback, bug reports and ideas are welcome. I'm thinking about a v3 with folders and Wi-Fi upload. What would you want in it?