Send Motion-user mailing list submissions to motion-user@lists.sourceforge.net
To subscribe or unsubscribe via the World Wide Web, visit https://lists.sourceforge.net/lists/listinfo/motion-user or, via email, send a message with subject or body 'help' to motion-user-requ...@lists.sourceforge.net You can reach the person managing the list at motion-user-ow...@lists.sourceforge.net When replying, please edit your Subject line so it is more specific than "Re: Contents of Motion-user digest..." Today's Topics: 1. Re: Need help with motion config in term of automatic brightness adjustment (chuck elliot) 2. Re: Need help with motion config in term of automatic brightness adjustment (Alan Clifford) 3. Re: Need help with motion config in term of automatic brightness adjustment (Markus Buscher) ---------------------------------------------------------------------- Message: 1 Date: Fri, 29 Jan 2021 22:29:58 +0000 From: chuck elliot <c.ell...@pobox.com> To: motion-user@lists.sourceforge.net Subject: Re: [Motion-user] Need help with motion config in term of automatic brightness adjustment Message-ID: <38e2ce66-635f-b64b-8d33-312f92985...@pobox.com> Content-Type: text/plain; charset="utf-8"; Format="flowed" 'sounds like your cam has built in auto-exposure so motion's auto_brightness is not for you. You could investigate what is possible with vid_control_params for your device - see log output with motion -d 7 for what might be available. CE. On 29/01/2021 4:26 pm, Markus Buscher wrote: > Hello everyone, > i need a bit of help with the motion config and the Raspberry Pi Cam > module. It is working good so far, but there's one thing i dont get > working properly. The moment the motion service is started it seems to > automatically adjust the brightness of the picture to a good factor > although the auto_brightness parameter is set to "off". This adjustment > seems to stay saved as long as the motion service isn't restarted. > > If i start motion at day time, the picture is perfectly adjusted for > that particular moment, but gets really dark at dusk, nearly black. If i > then restart motion at dusk the picture gets brighter, but returning to > daylight the picture is too bright, nearly complete white. If i restart > motion again everything repeats. Good at daylight, too dark at dusk. > Good at dusk, too bright at daylight. I know, the cam module isnt > capable of night vision, but what i'm struggling with is, that the > brightness adjustment seems to be static as long as motion isnt restarted. > > I added this picture for explanation: > https://imgur.com/a/FZz0jtq > If you look especially at picture C and D, you see the brightness > difference after the restart. > > Is it possible to let motion adjust the brightness constantly? I already > found the configuration parameter auto_brightness. But turning this > option on results in completly white pictures. It's not working properly > and I can't tell why. And restarting motion every few minutes isnt a > solution. > > Maybe this is some kind of really stupid noob question, but i couldn't > find the solution. I also added my motion.conf, if it is needed for insight. > > Thanks and best regards > Markus > > > _______________________________________________ > Motion-user mailing list > Motion-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/motion-user > https://motion-project.github.io/ > > Unsubscribe: https://lists.sourceforge.net/lists/options/motion-user -------------- next part -------------- An HTML attachment was scrubbed... ------------------------------ Message: 2 Date: Fri, 29 Jan 2021 23:44:05 +0000 (GMT) From: Alan Clifford <motion-user-l...@clifford.ac> To: motion-user@lists.sourceforge.net Subject: Re: [Motion-user] Need help with motion config in term of automatic brightness adjustment Message-ID: <alpine.osx.2.03.2101292337350.40...@clifford.ac> Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed I have a small camera from Pimoroni on my Pi zero W so it might not be the same. I have auto-brightness off like you but have brightness set to 127. You have 0. Alan -- Markus Buscher wrote to motion-user@lists.sourceforge.net [at 17:26 (+0100) on Friday, 29th January, 2021]: > Hello everyone, > i need a bit of help with the motion config and the Raspberry Pi Cam > module. It is working good so far, but there's one thing i dont get > working properly. The moment the motion service is started it seems to > automatically adjust the brightness of the picture to a good factor > although the auto_brightness parameter is set to "off". This adjustment > seems to stay saved as long as the motion service isn't restarted. > ------------------------------ Message: 3 Date: Sat, 30 Jan 2021 11:06:15 +0100 From: Markus Buscher <blackpanther.onl...@gmx.de> To: motion-user@lists.sourceforge.net Subject: Re: [Motion-user] Need help with motion config in term of automatic brightness adjustment Message-ID: <61edc571-25c8-ae4f-74c1-d75586f23...@gmx.de> Content-Type: text/plain; charset=utf-8 > I have a small camera from Pimoroni on my Pi zero W so it might not be > the same. I have auto-brightness off like you but have brightness set > to 127.? You have 0. Alan Hi Alan, i'll tried that setting too, mostly resulting in too bright images, but I'll give it a try again! > 'sounds like your cam has built in auto-exposure so motion's > auto_brightness is not for you. You could investigate what is possible > with vid_control_params for your device - see log output with motion > -d 7 for what might be available. CE. Hi Chuck, i increased the log level to INF to get that output, but all i got was this: > [1:ml1] [NTC] [VID] [Jan 30 10:23:55] v4l2_get_capability: > ------------------------ > cap.driver: "bm2835 mmal" > cap.card: "mmal service 16.1" > cap.bus_info: "platform:bcm2835-v4l2" > cap.capabilities=0x85200005 > ------------------------ > [1:ml1] [NTC] [VID] [Jan 30 10:23:55] v4l2_get_capability: - VIDEO_CAPTURE > [1:ml1] [NTC] [VID] [Jan 30 10:23:55] v4l2_get_capability: - VIDEO_OVERLAY > [1:ml1] [NTC] [VID] [Jan 30 10:23:55] v4l2_get_capability: - READWRITE > [1:ml1] [NTC] [VID] [Jan 30 10:23:55] v4l2_get_capability: - STREAMING > [1:ml1] [NTC] [VID] [Jan 30 10:23:55] v4l2_select_input: name = > "Camera 0", type 0x00000002, status 00000000 > [1:ml1] [NTC] [VID] [Jan 30 10:23:55] v4l2_select_input: - CAMERA > [1:ml1] [WRN] [VID] [Jan 30 10:23:55] v4l2_select_input: Device > doesn't support VIDIOC_G_STD > [1:ml1] [NTC] [VID] [Jan 30 10:23:55] v4l2_do_set_pix_format: Testing > palette YUYV (1024x768) > [1:ml1] [NTC] [VID] [Jan 30 10:23:55] v4l2_do_set_pix_format: Using > palette YUYV (1024x768) bytesperlines 2048 sizeimage 1572864 > colorspace 00000001 > [1:ml1] [NTC] [VID] [Jan 30 10:23:55] v4l2_scan_controls: found > control 0x00980900, "Brightness", range 0,100 > [1:ml1] [NTC] [VID] [Jan 30 10:23:55] v4l2_scan_controls:?????? > "Brightness", default 50, current 50 > [1:ml1] [NTC] [VID] [Jan 30 10:23:55] v4l2_scan_controls: found > control 0x00980901, "Contrast", range -100,100 > [1:ml1] [NTC] [VID] [Jan 30 10:23:55] v4l2_scan_controls:?????? > "Contrast", default 0, current 0 > [1:ml1] [NTC] [VID] [Jan 30 10:23:55] v4l2_scan_controls: found > control 0x00980902, "Saturation", range -100,100 > [1:ml1] [NTC] [VID] [Jan 30 10:23:55] v4l2_scan_controls:?????? > "Saturation", default 0, current 0 > [1:ml1] [NTC] [VID] [Jan 30 10:23:55] v4l2_scan_controls: found > control 0x00980918, "Power Line Frequency", range 0,3 > [1:ml1] [NTC] [VID] [Jan 30 10:23:55] v4l2_scan_controls:?????? "Power > Line Frequency", default 1, current 1 > [1:ml1] [NTC] [VID] [Jan 30 10:23:55] v4l2_scan_controls: found > control 0x0098090e, "Red Balance", range 1,7999 > [1:ml1] [NTC] [VID] [Jan 30 10:23:55] v4l2_scan_controls:?????? "Red > Balance", default 1000, current 1000 > [1:ml1] [NTC] [VID] [Jan 30 10:23:55] v4l2_scan_controls: found > control 0x0098090f, "Blue Balance", range 1,7999 > [1:ml1] [NTC] [VID] [Jan 30 10:23:55] v4l2_scan_controls:?????? "Blue > Balance", default 1000, current 1000 > [1:ml1] [NTC] [VID] [Jan 30 10:23:56] vid_v4lx_start: Using V4L2 > [1:ml1] [NTC] [ALL] [Jan 30 10:23:56] image_ring_resize: Resizing > pre_capture buffer to 1 items > [1:ml1] [NTC] [VID] [Jan 30 10:23:56] v4l2_set_control: setting > control "Brightness" to 49 (ret 0 ) It is not looking like the output mentioned in the motion documentation. Can't say what to do with these informations. Any suggestion? Markus ------------------------------ ------------------------------ Subject: Digest Footer _______________________________________________ Motion-user mailing list Motion-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/motion-user ------------------------------ End of Motion-user Digest, Vol 175, Issue 32 ********************************************