soyersoyer / cameractrls

Camera controls for Linux
Other
550 stars 23 forks source link

WARNING:root:V4L2Ctrls: Can't set white_balance_temperature to 3000 ([Errno 84] Invalid or incomplete multibyte or wide character) #25

Closed torian257x closed 1 year ago

torian257x commented 1 year ago

Does that ring a bell for you? I can set it fine in the gtk

but using cli I get that error:

$ python3 ~/cameractrls/cameractrls.py -d "/dev/v4l/by-id/usb-Alpha_Imaging_Tech._Corp._Razer_Kiyo-video-index0" -c white_balance_temperature=3000

WARNING:root:V4L2Ctrls: Can't set white_balance_temperature to 3000 ([Errno 84] Invalid or incomplete multibyte or wide character)

torian257x commented 1 year ago

solution was this:

$ v4l2-ctl -d /dev/v4l/by-id/usb-Alpha_Imaging_Tech._Corp._Razer_Kiyo-video-index0 -c white_balance_temperature_auto=0
$ v4l2-ctl -d /dev/v4l/by-id/usb-Alpha_Imaging_Tech._Corp._Razer_Kiyo-video-index0 -c white_balance_temperature=5400
soyersoyer commented 1 year ago

Yes, white_balance_temperature can only be set when white_balance_auto is off. The same with cameractrls: python3 ~/cameractrls/cameractrls.py -d /dev/v4l/by-id/usb-Alpha_Imaging_Tech._Corp._Razer_Kiyo-video-index0 -c white_balance_temperature_auto=0,white_balance_temperature=5400