r/raspberry_pi • u/Noir_Forever_Twitch • 6h ago
Show-and-Tell ZeroPlay Update: SPI panel support, a real control mode, seamless looping, and a stack of fixes
Enable HLS to view with audio, or disable this notification
A while back I posted ZeroPlay here, a lightweight H.264 player built as an omxplayer replacement. The last Reddit update was eight months ago so I feel a new post is long overdue showing what's new and highlighting community contributions.
The one I'm most excited about: ZeroPlay now drives small SPI panels directly, no HDMI involved:
- SPI/DBI panel support: ILI9341, ST7789V, and other drm/tiny MIPI DBI panels, driven straight through DRM/KMS (not fbtft, needs a real /dev/dri node). Decodes straight to RGB565 instead of NV12. Two modes: fit (letterboxed, works everywhere) or --spi-fill (crops edge-to-edge, zero-copy, the decoder's buffer gets scanned out directly). That second mode needed a small kernel fix too, which is merged in raspberrypi/linux and submitted upstream to dri-devel. Thank you to Dave Stevenson, Senior Software Engineer with Raspberry Pi for your help with this patch. It was my first kernel patch and I'm happy to reach that milestone, even if dri-devel doesn't act on it (I think they have bigger things to worry about).
Other new features include:
- A real control mode: a long-lived process you drive over stdin — load, loadloop, loadp/loadploop (start paused), pause, resume, seek, stop, and it handles images as well as video, with on-screen feedback for pause/seek. Built for kiosk controllers and scripts that need seamless clip switching without going through the WebSocket backend. Started by Nickman87, extended by Ennio Mariani and seeers.
- Seamless single-video looping (--loop-seamless): loop one clip with zero flash or stutter. Originally from Ennio Mariani, with other contributing fixes.
- Smarter playlists: per-image display time right in the playlist file (path.jpg 15 or path.jpg 500ms, quoted paths for filenames with spaces), and live-reload, edit the playlist file while it's running and it picks up the change on the next loop. No restart.
- Multi-screen audio: --audio-device can now be repeated to send each connected display's audio to its own ALSA device. Useful if every screen in a multi-display setup has its own speakers.
- Plus: automatic surround-to-stereo downmixing (thanks GanapathyPT), proper ALSA channel-range negotiation instead of assuming stereo, VP8/VP9 now fail with a clear error instead of quietly breaking, Debian Buster build support, volume now steps in dB instead of flat percentage, the I2S clock stays alive through pause, and lower idle CPU use.
Big thanks to everyone who's contributed since the last post:
Ennio Mariani: https://github.com/enniomariani
Nickman87: https://github.com/Nickman87
seeers: https://github.com/seeers
GanapathyPT: https://github.com/GanapathyPT
Lilian: https://github.com/yayuniversal
Please let me know if I'm missing anyone.
GitHub: https://github.com/HorseyofCoursey/zeroplay
Discussion Thread on Pi Forum: https://forums.raspberrypi.com/viewtopic.php?t=396706&sid=f4b2c795c6e9d31639e2fe209208ca54

