motioneye-project / motioneye

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

Automatic brightness Raspberry CAM #2927

Open git-tail-d opened 7 months ago

git-tail-d commented 7 months ago

Hello,

i have an Raspberry 4 with 1GB RAM and the raspberry cam.

For a long time everything worked very well including the automatic brightness control at all resolutions. After the SD card had write errors, I set up the Raspberry with a new card. At that time motioneye could only be installed under Raspbian buster (10). But the automatic brightness control did not work anymore.

Now I have invested some time in troubleshooting and completely reinstalled the Raspberry with Raspbian bookworm (12) and motioneye 0.43.1b1. The automatic brightness control works again, but only with resolutions up to 800x640 pixels. At higher resolutions, the brightness is fixed and no longer changes.

Then I noticed a small bug, if motioneye is set to the German language, the 3 links to display the Useful URLs: Snapshot URL, Streaming URL and Embed URL do not work. Nothing happens when you click on them. If the language is set to English, the display of the links works. like in #2891

TIA

LittleWenlock commented 7 months ago

It's something to do with video vs stills mode. Try "sudo modprobe bcm2835-v4l2 max_video_width=1920 max_video_height=1080" in a terminal prompt.

git-tail-d commented 7 months ago

Hello,

it not change anything.

I have tested a lot of formats, but when i set the height over 720 px or the width over 1200 px the brightness is fixed.

mattlazarowitz commented 1 month ago

I'm having a similar issue on a Raspberry Pi 2 with a Pi 2.1 camera (IMX219).

I'm running DietPi V 9.6.1, MotionEye 0.43.1b2, and Motion version 4.6.0. The camera is added as a V4L2 camera under MMAL service.

For me, the threshold is 1280x720. Below that, things work as expected but above that, the frames are overexposed. Auto control doesn't work nor does manual control.