Hello, everyone!
I have published a small video application on https://www.github.com/mchalain/fastvideo.
Its purpose is to apply filters https://shadertoy.com directly to the camera stream, then display or push the stream to the network for saving.
Since I prefer to use small devices with limited memory and storage, I initially used a Raspberry Pi zero w2 and https://buildroot.org as the operating system.
That's why I decided to write the application from scratch with as few dependencies as possible (only Mesa, jansson and, optionally, Wayland, X11 or libdrm). Libcamera and gstreamer are too heavy in my configuration, and I get a better refresh rate than with gstreamer (by a few frames) and clearly 8 times faster than with OpenCV.
A small benchmark for the Raspberry Pi Zero W 2 and the Cam V1 (ov5647) with a resolution of 1920x1080
- Direct rendering on screen: 31 frames per second (phew!)
- Video streaming over TCP socket: 31 fps (after Wi-Fi stabilisation)
- Direct rendering with a Sober 3x3 filter: 12 fps < < 14fps depending on the image content. (30fps with a resolution of 640x480)
The result is a funny camera. Have fun if you want to play around with it. I'm here to help if you encounter any problems during testing.
Translated with DeepL.com (free version)
I have published a small video application on https://www.github.com/mchalain/fastvideo.
Its purpose is to apply filters https://shadertoy.com directly to the camera stream, then display or push the stream to the network for saving.
Since I prefer to use small devices with limited memory and storage, I initially used a Raspberry Pi zero w2 and https://buildroot.org as the operating system.
That's why I decided to write the application from scratch with as few dependencies as possible (only Mesa, jansson and, optionally, Wayland, X11 or libdrm). Libcamera and gstreamer are too heavy in my configuration, and I get a better refresh rate than with gstreamer (by a few frames) and clearly 8 times faster than with OpenCV.
A small benchmark for the Raspberry Pi Zero W 2 and the Cam V1 (ov5647) with a resolution of 1920x1080
- Direct rendering on screen: 31 frames per second (phew!)
- Video streaming over TCP socket: 31 fps (after Wi-Fi stabilisation)
- Direct rendering with a Sober 3x3 filter: 12 fps < < 14fps depending on the image content. (30fps with a resolution of 640x480)
The result is a funny camera. Have fun if you want to play around with it. I'm here to help if you encounter any problems during testing.
Translated with DeepL.com (free version)
Statistics: Posted by mchalain — Tue Feb 24, 2026 8:26 pm — Replies 0 — Views 34