Sample Header Ad - 728x90

v4l2-ctl error in script

0 votes
3 answers
2344 views
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?
Asked by Mohammad Etemaddar (13227 rep)
Feb 1, 2015, 06:44 PM
Last activity: May 10, 2025, 08:02 AM