I was recently given a cool little stereo 3d webcam unit. In trying to get it to work on my Raspberry Pi 4 I found there was no straightforward GUI app for previewing the video feed or recording it. So I made one!
RPI-Camera-Recorder is a Python application that allows you to record video from a webcam or Raspberry Pi Camera Module with optimized performance. It features a graphical user interface built with Tkinter and leverages hardware acceleration on Raspberry Pi 4/5 to achieve significantly higher frame rates than standard recording applications.
- Hardware acceleration using PiCamera2 and GPU encoding
- Support for both Raspberry Pi Camera Module and USB webcams
- Graphical user interface for easy operation
- Configurable video resolution and framerate
- Real-time performance monitoring
- System-level optimizations for maximum FPS
- Specialized for Raspberry Pi OS Bookworm (64-bit)
The easiest way to install Pi Webcam Recorder:
-
Download the .deb package Download the latest release from Releases
-
Install the package
# First, ensure the .deb file has the correct permissions chmod 644 ./pi-webcam-recorder-simple_*.deb # Then install the package sudo apt install ./pi-webcam-recorder-simple_*.deb
-
Reboot your Raspberry Pi
sudo reboot
-
Start using the application After rebooting, you can start the application by:
- Double-clicking the "Pi Webcam Recorder" desktop shortcut
- OR typing
pi-webcam-recorder-simple
in the terminal
To build the Debian package yourself:
-
Clone the repository
git clone https://github.com/bottobot/RPI-Camera-Recorder.git cd RPI-Camera-Recorder
-
Install build dependencies
sudo apt update sudo apt install -y debhelper dh-python python3-all python3-setuptools
-
Build the package
./build_deb.sh
-
Install the built package
sudo apt install ./pi-webcam-recorder-simple_*.deb
If you encounter errors during installation:
-
Permission issues
# Fix permissions on the .deb file chmod 644 ./pi-webcam-recorder-simple_*.deb # Try installing again sudo apt install ./pi-webcam-recorder-simple_*.deb
-
Dependency issues
# Fix broken dependencies sudo apt --fix-broken install # Try installing again sudo apt install ./pi-webcam-recorder-simple_*.deb
-
If other installation errors occur
# Force install with dpkg sudo dpkg -i --force-all ./pi-webcam-recorder-simple_*.deb # Fix any remaining issues sudo apt --fix-broken install
-
Camera not detected
- Make sure your camera is properly connected
- For Raspberry Pi Camera Module: Check the ribbon cable connection
- For USB webcams: Try a different USB port
-
Application crashes
- Try the virtual environment version by double-clicking the "Pi Webcam Recorder (VEnv)" desktop shortcut
- OR run
pi-webcam-recorder-venv
in the terminal
-
Low performance
- Make sure you've rebooted after installation
- Try reducing the resolution in the application settings
- Close other applications that might be using system resources
Expected performance on Raspberry Pi 4/5 with Bookworm:
Configuration | Expected FPS | CPU Usage | GPU Usage |
---|---|---|---|
Pi Camera, 640x480 | ~25-30 FPS | ~30% | ~40% |
Pi Camera, 1280x720 | ~15-20 FPS | ~40% | ~60% |
Pi Camera, 1920x1080 | ~10-15 FPS | ~50% | ~70% |
USB Webcam, 640x480 | ~15-20 FPS | ~50% | ~20% |
USB Webcam, 1280x720 | ~10-15 FPS | ~60% | ~30% |
To completely remove Pi Webcam Recorder:
sudo apt purge pi-webcam-recorder-simple
This will remove the application and all its configuration files.
This project is licensed under the MIT License - see the LICENSE file for details.
Contributions are welcome! Please feel free to submit a Pull Request.