Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"Invalid or incomplete multibyte or wide character" running v4l2-ctl

Using iTerm, I'm SSHing into my raspberry pi (raspbian) to control a home security system I've setup.

I need to change the focus of my camera, so I'm running v4l2-ctl -c focus_absolute=0 on my terminal.

I've been doing this for weeks, and it hasn't given me any issues. Today, when running the command I've started getting the following error:

VIDIOC_S_EXT_CTRLS: failed: Invalid or incomplete multibyte or wide character
focus_absolute: Invalid or incomplete multibyte or wide character

What could be causing it to suddenly be throwing this error? I've been running the exact same command for weeks without a problem.

like image 821
niebula Avatar asked Jun 23 '20 03:06

niebula


1 Answers

I found the answer in here: https://askubuntu.com/a/388045/814834. Turns out that when, for example, the camera's auto_exposure setting is set to 1 (true) then, whenever you modify settings that are controlled by that "automatic" setting, in this case the absolute_exposure, you will get that useless error because you have to first change the auto_exposure to 0 (false) in order to change the settings controlled by it

like image 123
Miguel Sánchez Villafán Avatar answered Sep 30 '22 21:09

Miguel Sánchez Villafán