Raspi Zero, Zero W & 4 MotionEye not detecting MMAL Camera

Creating a bug report/issue

I have searched the existing open and closed issues

Required Information

  • DietPi version | cat /boot/dietpi/.version
  • Distro version | echo $G_DISTRO_NAME $G_RASPBIAN
  • Kernel version | uname --all
  • Architecture | dpkg --print-architecture
  • SBC model | echo $G_HW_MODEL_NAME or (EG: RPi3)
  • Power supply used | (EG: 5V 1A RAVpower)
  • SD card used | (EG: SanDisk ultra)

Additional Information (if applicable)

  • Software title | (EG: Nextcloud)
  • Was the software title installed freshly or updated/migrated?
  • Can this issue be replicated on a fresh installation of DietPi?
    ← If you sent a “dietpi-bugreport”, please paste the ID here →
  • Bug report ID | echo $G_HW_UUID

Steps to reproduce

Expected behaviour

Actual behaviour

Extra details

motionEye Version 0.43.1
Motion Version 4.7.
motionEye Version 0.43.1
Motion Version 4.7.1
I updated 3 Raspi to latest Dietpi OS and now MotionEye does not see the Board connected cameras
motionEye Version 0.43.1
Motion Version 4.7.1
OS Version Linux 6.18.34+rpt-rpi-v8

MMAL support has been removed with the RPi Linux 6.18 update. You need to use the modern libcamera API, which is toggled in dietpi-config display options > RPi Camera since v10.5.

motion however does not support libcamera yet, so you need to use libcamerify as wrapper to emulate a regular V4L2 interface on top of libcamera:

sudo apt install -y libcamera-v4l2 libcamera-tools
sudo sed -Ei 's|^ExecStart=(.*/meyectl)|ExecStart=/usr/bin/libcamerify \1|' /etc/systemd/system/motioneye.service
sudo systemctl daemon-reload
sudo systemctl restart motioneye

Then add the RPi camera as V4L2 camera, the “unicam” from the list.

However, on 32-bit systems, we still face issues (segmentation faults) since latest kernel and libcamera package. Still need to investigate. But on 64-bit above should work fine.

For reference: Upgrading from 10.3 to 10.4 breaks MotionEye cameras · Issue #8168 · MichaIng/DietPi · GitHub