Hello Team,
Good morning,
I have a Raspberry PI 5 board with default Bookworm Desktop image release on 13-May-2025 64bit.
I have connected IMX219-83 Stereo Camera which is working fine with libcamera commands without any issue.
Now, I have started to configure same for motionEye in which I have installed following packages so far.
sudo apt install ffmpeg v4l-utils curl -y
sudo apt install motion -y
sudo sed -i 's/daemon off/daemon on/' /etc/motion/motion.conf
sudo sed -i 's/^start_motion_daemon=no/start_motion_daemon=yes/' /etc/default/motion
sudo apt install python3-pip python3-dev libssl-dev libcurl4-openssl-dev libjpeg-dev zlib1g-dev -y
# 1. Install venv tools
sudo apt install python3-venv -y
# 2. Create a virtual environment
python3 -m venv ~/motioneye-venv
# 3. Activate the venv
source ~/motioneye-venv/bin/activate
# 4. Upgrade pip
pip install --upgrade pip
# 5. Install motionEye inside the venv
pip install motioneye
Restart MotionEye:
source ~/motioneye-venv/bin/activate
meyectl startserver -c /etc/motioneye/motioneye.conf
But it seems like camera is not detected into motioneye server page.
Then I have checked and executed following steps to configure it.
To add your IMX219-83 stereo camera (or any Raspberry Pi CSI camera) to MotionEye on Raspberry Pi OS Bookworm (which uses libcamera), you need a bridge because:
⚠️ libcamera does not expose cameras directly via /dev/video* — which is what MotionEye expects.
So, we’ll bridge libcamera output to a V4L2 virtual device using v4l2loopback and ffmpeg or GStreamer.
Step 1: Confirm the Camera Works with libcamera
libcamera-hello
Step 2: Install Dependencies
Install v4l2loopback kernel module and required tools:
sudo apt install v4l2loopback-utils ffmpeg -y
Load the virtual video device:
Solution: Manually Build v4l2loopback for Kernel 6.12.33-v8-16k+
Step 1: Install Required Packages
sudo apt update
sudo apt install -y git raspberrypi-kernel-headers build-essential dkms
Check the exact kernel version:
uname -r
Step 2: Clone and Build v4l2loopback
git clone https://github.com/umlaeute/v4l2loopback.git
cd v4l2loopback
make
But, still I am not getting any success to compile v4l2loopback.
If anyone has overall steps to start motioneye into Bookworm Desktop image OS image then please help to start working.
Let me know if need anything else from my end.
Regards,
Ritesh Prajapati