What's new
VORON Design

Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members!

Logitech c920

argusz

Active member
I have my C920 on the printer and the autofocus is drivin me crazy. Is there a way to dissable autofocus on klipper, mainsail?...
 
You could try to add custom flags ins crowsnest.conf
custom_flags:
I don't remeber exactly how but I managed to set a fixed focus for my c920 in this way. Maybe you can find more details on the web
Anyhow, this cam didnt work for me since I've got only kinda 3 or 5 FPS from it, so I switched camera model
 
for what its worth @argusz

my c920 crowsnest.conf looks like :


Code:
#### crowsnest.conf
#### This is the default config after installation.
#### It is also used as the default config in MainsailOS.
#### For details on how to configure this to your needs, see:
#### https://github.com/mainsail-crew/crowsnest/blob/master/README.md


#####################################################################
####                                                            #####
####      Information about ports and according URL's           #####
####                                                            #####
#####################################################################
####                                                            #####
####    Port 8080 equals /webcam/?action=[stream/snapshot]      #####
####    Port 8081 equals /webcam2/?action=[stream/snapshot]     #####
####    Port 8082 equals /webcam3/?action=[stream/snapshot]     #####
####    Port 8083 equals /webcam4/?action=[stream/snapshot]     #####
####                                                            #####
####    Note: These ports are default for most Mainsail         #####
####    installations. Using any other port would involve       #####
####    changing the proxy configuration or using URLs          #####
####    with the specific port like                             #####
####    http://<ip>:<port>/?action=[stream/snapshot]            #####
####                                                            #####
#####################################################################
####    RTSP Stream URL: ( if enabled and supported )           #####
####    rtsp://<ip>:<rtsp_port>/stream.h264                     #####
#####################################################################


[crowsnest]
log_path: /home/pi/printer_data/logs/crowsnest.log
log_level: verbose                      # Valid Options are quiet/verbose/debug
delete_log: false                       # Deletes log on every restart, if set to true
no_proxy: false                         # If set to true, no reverse proxy is required. Only change this, if you know what you are doing.

[cam 1]
mode: ustreamer                         # ustreamer - Provides MJPG and snapshots. (All devices)
                                        # camera-streamer - Provides WebRTC, MJPG and snapshots. (only RPiOS + RPi 0/1/2/3/4)
enable_rtsp: false                      # If camera-streamer is used, this also enables usage of an RTSP server
rtsp_port: 8554                         # Set different ports for each device!
port: 8080                              # HTTP/MJPG stream/snapshot port
device: /dev/video0                     # See log for available devices
resolution: 640x480                     # <width>x<height> format
max_fps: 15                             # If hardware supports it, it will be forced, otherwise ignored/coerced.
#custom_flags:                          # You can run the stream services with custom flags.
v4l2ctl: focus_automatic_continuous=0, power_line_frequency=1                               # Add v4l2-ctl parameters to setup your camera, see log for your camera capabilities.

the v4l2ctl section is what you change, after you do that, either restart crowsnest, or your host/pi because sometimes it needs to reload everything.
 
Thank You. Mine endet up looking like this:

v4l2ctl: focus_automatic_continuous=0,focus_absolute=0

and it works ok. Now the autofocus is not longer jumping all around.....
 
Top