Replies: 7 comments
-
|
I use this camera : https://pt.aliexpress.com/item/1005008985342955.html |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
You need to configure "Auto Exposure", see: https://motion-project.github.io/motion_config.html#video_params |
Beta Was this translation helpful? Give feedback.
-
|
Thank you for your response. The auto_exposure option is part of V2L2, like v4l2-ctl --set-ctrl auto_exposure=3 |
Beta Was this translation helpful? Give feedback.
-
|
It looks impossible to get a grip on the "brightness". I made a small bash script to adjust the v4l2 settings outside of motion, but that did not help. systemctl restart motion gives different results: sometimes to dark, to bright or perfect. You can see it is adjusting, but just not enough. In which module is the brightness adjustment done? I will try to adjust some debugging lines there to get more grip on the situation. |
Beta Was this translation helpful? Give feedback.
-
|
The The regular v4l2 controls should work just fine. Simply specify the desired values using the video_params such as The specific code to set the v4l2 controls is within the video_v4l2.cpp module(master branch) in this function. It is basically just a call to ioctl with the new values. For version 4.7, the code is convoluted due to the "round-robin" feature where there are multiple configurations possible for a single device. It also just uses the ioctl but the convoluted part is keeping track of what configuration is being implemented. The setting of the v4l2 control values is done here |
Beta Was this translation helpful? Give feedback.
-
|
It looks impossible to get a grip on the "brightness". I made a small bash script to adjust the v4l2 settings outside of motion, but that did not help. systemctl restart motion gives different results: sometimes to dark, to bright or perfect. You can see it is adjusting, but just not enough. |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
Did you read the guide?
Yes
What is the base version number of Motion being used?
4.7.x
What was the install method?
Installed via package tool
What is base architecture?
x86/x64
What is the distro being used?
Ubuntu
Disto version number
22.02
Camera/Sound type(s) being used?
v4l2 camera
Describe the issue/problem and steps to reproduce
The software works very well for several hours. Suddenly it starts adjusting and it get almost completely dark or almost completely bright. I have been playing around with the auto_brightness option but with 0,1 or 2 it adjusts a little different but the result is the same. Restarting the motion resolves the problem for some time.
Relevant Motion log output (at log_level 8)
Beta Was this translation helpful? Give feedback.
All reactions