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. AllSky Camera - Absolute exposure (Bryan Ramsey)
   2. Re: AllSky Camera - Absolute exposure (MrDave)


----------------------------------------------------------------------

Message: 1
Date: Fri, 29 Jun 2018 19:06:17 -0600
From: Bryan Ramsey <br...@pterodyne.com>
To: motion-user@lists.sourceforge.net
Subject: [Motion-user] AllSky Camera - Absolute exposure
Message-ID:
        <CAHCjR3uZg0HEfN06K7zKk4NuO-tKBh=+93z73gy440aqyid...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

Thanks to everyone who has made this project. It's great and easy to setup
for most normal applications.  My application is a bit different however,
and I like motion for all the obvious reasons.

Primary need:  Ability to set v4l2-ctl absolute_exposure to 60 seconds or
more for night time images of the entire sky.
    - Or equivalent.  Ive experimented with trying to set absolute exposure
using vid_control_params, but that interface doesn't seem to pull the
absolute exposure that v4l2-ctrl does
Secondary optional need: Be able to switch to a daytime profile that is
using automatic exposure.

Specs:

Raspberry PI 3 B - Raspbian stretch
Imaging Source DFX21BU04 (ID 199e:8101 The Imaging Source Europe GmbH DFx
21BU04 Camera)
Motion 4.1.1

Output of V4l2-ctl

v4l2-ctl -l
                     brightness (int)    : min=0 max=63 step=1
default=-8193 value=62
                          gamma (int)    : min=1 max=500 step=1
default=57343 value=100
                           gain (int)    : min=260 max=1023 step=1
default=57343 value=260
                  exposure_auto (menu)   : min=0 max=3 default=0 value=3
              exposure_absolute (int)    : min=1 max=36000000 step=1
default=333 value=1 flags=inactive



Mostly I have used Indilib to capture images which also uses v4l2 on this
camera and I can take images up to 1 hour exposure time.

I can control the exposure to 60 seconds and the gain to 800 using v4l2-ctl:

v4l2-ctl --set-ctrl=exposure_absolute=60000 --set-ctrl=gain=800

But motion seems to override even though I currently have autobrightness
off in motion.conf

As to the vid_control_params, it would be nice if I could used absolute
exposure there, but I set my log to INF level and I don't see that control:

cap.driver: "uvcvideo"
cap.card: "DMx 41AU02.AS <http://41au02.as/>: DMx 41AU02.AS
<http://41au02.as/>"
cap.bus_info: "usb-3f980000.usb-1.4"
cap.capabilities=0x84200001
------------------------
[1:ml1] [NTC] [VID] [Jun 29 18:25:58] v4l2_get_capability: - VIDEO_CAPTURE
[1:ml1] [NTC] [VID] [Jun 29 18:25:58] v4l2_get_capability: - STREAMING
[1:ml1] [NTC] [VID] [Jun 29 18:25:58] v4l2_select_input: name = "Camera 1",
type 0x00000002, status 00000000
[1:ml1] [NTC] [VID] [Jun 29 18:25:58] v4l2_select_input: - CAMERA
[1:ml1] [NTC] [VID] [Jun 29 18:25:58] v4l2_select_input: Device does not
support specifying PAL/NTSC norm
[1:ml1] [NTC] [VID] [Jun 29 18:25:58] v4l2_do_set_pix_format: Testing
palette GREY (1280x960)
[1:ml1] [NTC] [VID] [Jun 29 18:25:58] v4l2_do_set_pix_format: Using palette
GREY (1280x960) bytesperlines 1280 sizeimage 1228800 colorspace 00000000
[1:ml1] [NTC] [VID] [Jun 29 18:25:58] v4l2_scan_controls: found control
0x00980900, "Brightness", range 0,63
[1:ml1] [NTC] [VID] [Jun 29 18:25:58] v4l2_scan_controls:
"Brightness", default -8193, current 0
[1:ml1] [NTC] [VID] [Jun 29 18:25:58] v4l2_scan_controls: found control
0x00980910, "Gamma", range 1,500
[1:ml1] [NTC] [VID] [Jun 29 18:25:58] v4l2_scan_controls:       "Gamma",
default 57343, current 100
[1:ml1] [NTC] [VID] [Jun 29 18:25:58] v4l2_scan_controls: found control
0x00980913, "Gain", range 260,1023
[1:ml1] [NTC] [VID] [Jun 29 18:25:58] v4l2_scan_controls:       "Gain",
default 57343, current 800
[1:ml1] [NTC] [ALL] [Jun 29 18:25:58] image_ring_resize: Resizing
pre_capture buffer to 1 items
[1:ml1] [NTC] [STR] [Jun 29 18:25:58] http_bindsock: listening on any IPv4
address port 8081


I suppose if that feature worked, I could ask for a frame with a median
exposure of 128 and have it adjust the exposure until it reaches it, even
into the 60 second range for night sky and milliseconds for the day time.
My old windows based Allsky camera software took a center portion of the
frame and essentially did that, but alas the camera is on it's own now in a
housing with a raspberry pi.

any thoughts would be appreciated!

thanks.


Bryan Ramsey
-------------- next part --------------
An HTML attachment was scrubbed...

------------------------------

Message: 2
Date: Fri, 29 Jun 2018 23:11:21 -0600
From: MrDave <motionmrd...@gmail.com>
To: motion-user@lists.sourceforge.net
Subject: Re: [Motion-user] AllSky Camera - Absolute exposure
Message-ID: <23d85fd6-460f-b546-f584-7155aa822...@gmail.com>
Content-Type: text/plain; charset="utf-8"; Format="flowed"

The configuration parameter of "vid_control_params" which allows for 
specification of any v4l2 parameter within Motion is not in version 
4.1.? It will be part of the next release.? You would need to build your 
own deb or build from source from the master branch to get this.

Link to get to the build deb script: 
https://motion-project.github.io/motion_download.html

General build from source guide: 
https://motion-project.github.io/motion_build.html



On 6/29/2018 7:06 PM, Bryan Ramsey wrote:
> Thanks to everyone who has made this project. It's great and easy to 
> setup for most normal applications. My application is a bit different 
> however, and I like motion for all the obvious reasons.
>
> Primary need: ?Ability to set v4l2-ctl absolute_exposure to 60 seconds 
> or more for night time images of the entire sky.
> ? ? - Or equivalent.? Ive experimented with trying to set absolute 
> exposure using vid_control_params, but that interface doesn't seem to 
> pull the absolute exposure that v4l2-ctrl does
> Secondary optional need: Be able to switch to a daytime profile that 
> is using automatic exposure.
>
> Specs:
>
> Raspberry PI 3 B - Raspbian stretch
> Imaging Source DFX21BU04 (ID 199e:8101 The Imaging Source Europe GmbH 
> DFx 21BU04 Camera)
> Motion 4.1.1
>
> Output of V4l2-ctl
>
> v4l2-ctl -l
> ? ?? ?? ?? ?? ?? ?? ?brightness (int)? ? : min=0 max=63 step=1 
> default=-8193 value=62
> ? ?? ?? ?? ?? ?? ?? ?? ?? gamma (int)? ? : min=1 max=500 step=1 
> default=57343 value=100
> ? ?? ?? ?? ?? ?? ?? ?? ?? ?gain (int)? ? : min=260 max=1023 step=1 
> default=57343 value=260
> ? ?? ?? ?? ?? ?? ?exposure_auto (menu)? ?: min=0 max=3 default=0 value=3
> ? ?? ?? ?? ?? exposure_absolute (int)? ? : min=1 max=36000000 step=1 
> default=333 value=1 flags=inactive
>
>
>
> Mostly I have used Indilib to capture images which also uses v4l2 on 
> this camera and I can take images up to 1 hour exposure time.
>
> I can control the exposure to 60 seconds and the gain to 800 using 
> v4l2-ctl:
>
> v4l2-ctl --set-ctrl=exposure_absolute=60000?--set-ctrl=gain=800
>
> But motion seems to override even though I currently have 
> autobrightness off in motion.conf
>
> As to the vid_control_params, it would be nice if I could used 
> absolute exposure there, but I set my log to INF level and I don't see 
> that control:
>
> cap.driver: "uvcvideo"
> cap.card: "DMx 41AU02.AS <http://41au02.as/>: DMx 41AU02.AS 
> <http://41au02.as/>"
> cap.bus_info: "usb-3f980000.usb-1.4"
> cap.capabilities=0x84200001
> ------------------------
> [1:ml1] [NTC] [VID] [Jun 29 18:25:58] v4l2_get_capability: - VIDEO_CAPTURE
> [1:ml1] [NTC] [VID] [Jun 29 18:25:58] v4l2_get_capability: - STREAMING
> [1:ml1] [NTC] [VID] [Jun 29 18:25:58] v4l2_select_input: name = 
> "Camera 1", type 0x00000002, status 00000000
> [1:ml1] [NTC] [VID] [Jun 29 18:25:58] v4l2_select_input: - CAMERA
> [1:ml1] [NTC] [VID] [Jun 29 18:25:58] v4l2_select_input: Device does 
> not support specifying PAL/NTSC norm
> [1:ml1] [NTC] [VID] [Jun 29 18:25:58] v4l2_do_set_pix_format: Testing 
> palette GREY (1280x960)
> [1:ml1] [NTC] [VID] [Jun 29 18:25:58] v4l2_do_set_pix_format: Using 
> palette GREY (1280x960) bytesperlines 1280 sizeimage 1228800 
> colorspace 00000000
> [1:ml1] [NTC] [VID] [Jun 29 18:25:58] v4l2_scan_controls: found 
> control 0x00980900, "Brightness", range 0,63
> [1:ml1] [NTC] [VID] [Jun 29 18:25:58] v4l2_scan_controls:? ?? ? 
> "Brightness", default -8193, current 0
> [1:ml1] [NTC] [VID] [Jun 29 18:25:58] v4l2_scan_controls: found 
> control 0x00980910, "Gamma", range 1,500
> [1:ml1] [NTC] [VID] [Jun 29 18:25:58] v4l2_scan_controls:? ?? ? 
> "Gamma", default 57343, current 100
> [1:ml1] [NTC] [VID] [Jun 29 18:25:58] v4l2_scan_controls: found 
> control 0x00980913, "Gain", range 260,1023
> [1:ml1] [NTC] [VID] [Jun 29 18:25:58] v4l2_scan_controls:? ?? ? 
> "Gain", default 57343, current 800
> [1:ml1] [NTC] [ALL] [Jun 29 18:25:58] image_ring_resize: Resizing 
> pre_capture buffer to 1 items
> [1:ml1] [NTC] [STR] [Jun 29 18:25:58] http_bindsock: listening on any 
> IPv4 address port 8081
>
>
> I suppose if that feature worked, I could ask for a frame with a 
> median exposure of 128 and have it adjust the exposure until it 
> reaches it, even into the 60 second range for night sky and 
> milliseconds for the day time.? My old windows based Allsky camera 
> software took a center portion of the frame and essentially did that, 
> but alas the camera is on it's own now in a housing with a raspberry pi.
>
> any thoughts would be appreciated!
>
> thanks.
>
>
> Bryan Ramsey
>
>
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>
>
> _______________________________________________
> 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...

------------------------------

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot

------------------------------

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 144, Issue 12
********************************************

Reply via email to