I can use v4l2-ctl in command line like these:
v4l2-ctl -d /dev/video1 -c focus_auto=0
v4l2-ctl -d /dev/video1 -c exposure_auto=0
But it has error when I run them as a script in a file. for example script.sh which contains these two lines and run it using sh script.sh or call it from c++ system() function:
VIDIOC_S_EXT_CTRLS: failed: Invalid argument
Error setting MPEG controls: Invalid argument
why this error occurs?
Aucun commentaire:
Enregistrer un commentaire