After connecting and powering on the camera module, Use v4l2-ctl --all --device /dev/video0 command getting device all information
Use v4l2-ctl -d /dev/video42 --set-ctrl params=value setting device controls.
- Enable auto_exposure:
v4l2-ctl -d /dev/video42 --set-ctrl auto_exposure=1
- Enable gain_automatic
v4l2-ctl -d /dev/video42 --set-ctrl gain_automatic=1
- Enable white_balance_automatic
v4l2-ctl -d /dev/video42 --set-ctrl white_balance_automatic=1
Use querying device video format
Use v4l2-ctl for image capture:
v4l2-ctl -d /dev/video42 --set-fmt-video=width=1920,height=1080,pixelformat=pGAA --stream-mmap=3 --stream-to=/home/sunplus/Videos/ov5647.raw --stream-skip=9 --stream-count=1```