Motion-Project / motion

Motion, a software motion detector. Home page: https://motion-project.github.io/
GNU General Public License v2.0
3.69k stars 549 forks source link

Feature-Request: add 'brightness' value to configurable 'text_[left|right|center]' to be shown on images #713

Closed nstoeckigt closed 6 years ago

nstoeckigt commented 6 years ago
  1. version: 3.2.12+git20140228-4+b2 (raspbian)
  2. raspbian deb (arch: armhf)
  3. standalone
  4. cap.driver: "ov519"; cap.card: "Logitech EyeToy USB Camera"; cap.bus_info: "usb-3f980000.usb-1.5"; cap.capabilities=0x85200001; currently only for testing
  5. hardware: RasberryPI 2B+ (kernel 4.9.35-v7+, armv7l)
  6. operating system: Raspbian 8.0 jessie

Because of the enabled auto brightness I want to show the current brightness as its is shown in the log: ---8<--- [1] [NTC] [VID] [May 05 21:58:51] v4l2_set_control: setting control "Brightness" to 4 (ret 0 ) [1] [NTC] [VID] [May 05 21:58:54] v4l2_set_control: setting control "Brightness" to 7 (ret 0 ) [1] [CRT] [VID] [May 05 21:59:01] mjpegtoyuv420p: Corrupt image ... continue [1] [NTC] [VID] [May 05 21:59:56] v4l2_set_control: setting control "Brightness" to 10 (ret 0 ) [1] [NTC] [VID] [May 05 22:00:10] v4l2_set_control: setting control "Brightness" to 13 (ret 0 ) [1] [NTC] [VID] [May 05 22:00:44] v4l2_set_control: setting control "Brightness" to 16 (ret 0 ) [1] [NTC] [VID] [May 05 22:00:46] v4l2_set_control: setting control "Brightness" to 19 (ret 0 ) [1] [NTC] [VID] [May 05 22:00:47] v4l2_set_control: setting control "Brightness" to 22 (ret 0 ) [1] [CRT] [VID] [May 05 22:01:40] mjpegtoyuv420p: Corrupt image ... continue [1] [NTC] [VID] [May 05 22:02:20] v4l2_set_control: setting control "Brightness" to 25 (ret 0 ) [1] [NTC] [VID] [May 05 22:02:22] v4l2_set_control: setting control "Brightness" to 28 (ret 0 ) [1] [NTC] [VID] [May 05 22:03:10] v4l2_set_control: setting control "Brightness" to 31 (ret 0 ) [1] [NTC] [VID] [May 05 22:04:17] v4l2_set_control: setting control "Brightness" to 34 (ret 0 ) [1] [NTC] [VID] [May 05 22:04:52] v4l2_set_control: setting control "Brightness" to 37 (ret 0 ) [1] [NTC] [VID] [May 05 22:04:54] v4l2_set_control: setting control "Brightness" to 40 (ret 0 ) [1] [NTC] [VID] [May 05 22:06:30] v4l2_set_control: setting control "Brightness" to 43 (ret 0 ) [1] [NTC] [VID] [May 05 22:06:31] v4l2_set_control: setting control "Brightness" to 46 (ret 0 ) [1] [NTC] [VID] [May 05 22:09:49] v4l2_set_control: setting control "Brightness" to 49 (ret 0 ) [1] [NTC] [VID] [May 05 22:11:51] v4l2_set_control: setting control "Brightness" to 52 (ret 0 ) [1] [NTC] [VID] [May 05 22:11:54] v4l2_set_control: setting control "Brightness" to 55 (ret 0 ) [1] [NTC] [VID] [May 05 22:33:33] v4l2_set_control: setting control "Brightness" to 61 (ret 0 ) [1] [NTC] [VID] [May 05 22:33:34] v4l2_set_control: setting control "Brightness" to 67 (ret 0 ) [1] [NTC] [VID] [May 05 22:33:35] v4l2_set_control: setting control "Brightness" to 73 (ret 0 ) [1] [NTC] [VID] [May 05 22:33:36] v4l2_set_control: setting control "Brightness" to 79 (ret 0 ) [1] [NTC] [VID] [May 05 22:33:37] v4l2_set_control: setting control "Brightness" to 85 (ret 0 ) [1] [NTC] [VID] [May 05 22:33:38] v4l2_set_control: setting control "Brightness" to 91 (ret 0 ) [1] [NTC] [VID] [May 05 22:33:39] v4l2_set_control: setting control "Brightness" to 97 (ret 0 ) [1] [NTC] [VID] [May 05 22:33:40] v4l2_set_control: setting control "Brightness" to 103 (ret 0 ) [1] [NTC] [VID] [May 05 22:33:41] v4l2_set_control: setting control "Brightness" to 109 (ret 0 ) [1] [NTC] [VID] [May 05 22:33:42] v4l2_set_control: setting control "Brightness" to 115 (ret 0 ) [1] [NTC] [VID] [May 05 22:33:43] v4l2_set_control: setting control "Brightness" to 121 (ret 0 ) [1] [NTC] [VID] [May 05 22:33:44] v4l2_set_control: setting control "Brightness" to 126 (ret 0 ) [1] [NTC] [VID] [May 05 22:33:45] v4l2_set_control: setting control "Brightness" to 131 (ret 0 ) [1] [NTC] [VID] [May 05 22:33:46] v4l2_set_control: setting control "Brightness" to 135 (ret 0 ) [1] [NTC] [VID] [May 05 22:33:47] v4l2_set_control: setting control "Brightness" to 139 (ret 0 ) [1] [NTC] [VID] [May 05 22:33:48] v4l2_set_control: setting control "Brightness" to 142 (ret 0 ) [1] [NTC] [VID] [May 05 22:33:49] v4l2_set_control: setting control "Brightness" to 145 (ret 0 ) --->8---

Mr-Dave commented 6 years ago

The use of the 'auto_brightness' is generally discouraged since it provides such poor results (as I can see from the log messages). It is better to set this manually in the configuration and review the results. As such, we will not be adding this to the images.

nstoeckigt commented 6 years ago

I record timelapse videos from dawn to dusk and what you see in the log is the auto brightness ajustment at dusk (you might check this according to the timestamp) so your interpretation is misleading.