Open nigeljohnson73 opened 5 years ago
I have the same camera and I'm having issues with autofocus on motioneyeos
I have a set up with a Microsoft cinema livecam on an RPI3b. I tried several things until this worked: To set / unset autofocus on V4l2 camera:
log in to command line on Pi (either via SSN (PuTTY) or direct connection and use MotionEye credentials
Type "v4l2-ctl --list-ctrls" after the prompt Like: [yourRPIname here ~]# v4l2-ctl --get-ctrl focus_auto Response: focus_auto: 1 (means autofocus is on)
to turn it off: [yourRPIname here ~]# v4l2-ctl --set-ctrl focus_auto=0
To keep off: type "nano /data/etc/userinit.sh" (this brings up the nano editor and opens a file called userinit.sh. The file is a custom startup command file) ref: https://github.com/motioneye-project/motioneyeos/wiki/Tweaks
add line: v4l2-ctl -c focus_auto=0 (=0 to turn off or=1 to turn ON)
write the file (CtrlO) and exit (CtrlX)
I have used a C920 on my pi for octoprint monitoring print jobs and the autofocus option worked fine. Looking on the
v4l2-ctrl
output on the command line it's enabled but the focus never changes (see below). Even when setting the slider for focus absolute nothing seems to change - probably because there is no option to disable the autofocus. Similarly with white balance in that, there is no slider so setting the colour does nothing while auto is set by default and no UI option to disable it.I have also tried a second C920 and it will not autofocus either on motioneyeos, but dies fine when attached to my computer.
If I go in via ssh, I can manually set the autofocus to off, and then the set explicit values on the command line... but the sliders still do nothing.
I am not sure what is going on, but another interesting little issue-ette is that if you set the brightness to 1 via the slider in the UI, it will go dark. Set it to 250 and its washed out. Set it to 128 and nothing happens. Set it to 127 or 129 and it's back to normal.
Preliminary Docs
I confirm that I have read the CONTRIBUTING guide before opening this issue.
I confirm that I have read the FAQ before opening this issue.
motionEyeOS Version
I am running motionEyeOS version: 20190911.
Board Model
I am using the following board/model: RPI 3B+.
Camera
I am using the following type of camera: V4L2
My camera model is: Logitech C290
Network Connection
My motionEyeOS unit is connected to the network via: WiFi
Peripherals
I am not using any peripherals
Log Files
I consider the following log files relevant to this issue:
I don't have any logs that show any relevant information.