motioneye-project / motioneye

A web frontend for the motion daemon.
GNU General Public License v3.0
3.99k stars 655 forks source link

libcamera works, but no video from unicam #3056

Open Ahndalu opened 1 month ago

Ahndalu commented 1 month ago

I have a Rasperry Pi 3 A + running a lite bookworm OS, debian release 12. It has a ribbon cable type tnba2055 camera which is a Rapsberry Pi 'brand' camera. The libcamera hello routine will take photos fine. The MotionEye GUI through the web browser works ok. When I add a camera, there's only one type it has for me available to add. Then I add it and it gives a grey box with no video in it. Troubleshooting has seemed to suggest libcamera stack doesn't work with MotionEye? MotionEye version is 0.43.1b2 Linux kernel 6.6.47+rpt-rpi-v8 aarch64 moteyecamfail1 I had great trouble with the MotionEyeOS and so went to just a lite RPiOS. What should my troubleshooting steps be to get this camera to work with this Pi ? thank you

simon-bonin commented 1 month ago

I concur, cannot get libcamera to work with motioneye 43.1b2 on raspberry pi zero w bookworm. Have tried a lot of outdated how-tos and nothing worked. MotioneyeOS 2020 still works but would prefer to have access to full debian and motioneyeOS is deprecated now anyway...

Will report if I find a way to make it work.

Ahndalu commented 1 month ago

Do you know a path to a "working" MotionEye with my hardware? (RaPi 3 A+, ribbon cable camera) Any "working" is fine - I don't care about full-featured or not. I spent a lot of effort trying to make MOtionEyeOS work on the 3 A+, and that failed. The best I've gotten is the present situation where 'lite' bookworm plus the app MotionEye will run - but no video in the added camera, and lib-camera-hello works. Every other setup attempted has had a worse result.

Ahndalu commented 1 month ago

It looks like the request for this fix has had an open issue. https://github.com/motioneye-project/motioneye/pull/2765

simon-bonin commented 1 month ago

If you just want a CCTV feed, you can use Motion only with bookworm on raspberry pi (link), then have a central motioneye server that captures the feed and does the motion detection and recording. Usefull if you have mutliple cameras.

I'm curious as of why MotioneyeOS doesn't work on your Rpi 3, which raspberry pi camera do you use? Mine (V2.1) works ok.

Ahndalu commented 1 month ago

i am using tnba2055 camera which is a Rapsberry Pi 'brand' camera.

I kind of don't understand your advice. If "motion" would make it work, and I could then connect to it with motioneye on a 2nd machine, why couldn't motioneye connect to it on the same machine? I'm not saying what you suggest won't work, I'm just wanting to understand a bit before I put the time in it.

Thank you for the instructables link. I really wish the motioneye guys would just do the fix so libcamera worked. It is afterall the modern layer. sigh.

On Sunday, September 29th, 2024 at 4:27 PM, Simon Bonin @.***> wrote:

If you just want a CCTV feed, you can use Motion only with bookworm on raspberry pi, then have a central motioneye server that captures the feed and does the motion detection and recording. Usefull if you have mutliple cameras.

I'm curious as of why MotioneyeOS doesn't work on your Rpi 3, which raspberry pi camera do you use? Mine (V2.1) works ok.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

Marijn0 commented 1 month ago

libcamera stack doesn't work with MotionEye?

Try the instructions in this comment: https://github.com/motioneye-project/motioneye/issues/2812#issuecomment-1817391735