# gst-launch-0.10 v4l2camsrc device=/dev/video0 driver-name=omap3cam num-buffers=1 sadly seems to turn off torch
# you can adjust focus with
# oldvalue=./v4l2-ctl -C focus_absolute
# ./v4l2-ctl -c focus_absolute=oldvalue +/- 10
# in/decrement in steps of 10 only is because of bugs (to not harm camera)
# dont leave the 0-1023 range
Last edited by pythoneye2; 2019-02-21 at 21:18.
Reason: added focus_absolute range
take a picture from camera from command line in the dark with torch (less powerful than flash).
get v4l2-ctl [apt-get install lfocus installs to /opt/lfocus/v4l2-ctl or a newer version via easy debian (apt-get install v4l-utils in debian chroot)]
install (dpkg -i lanterne_0_5_10_armel.deb from http://talk.maemo.org/showthread.php?t=90229)
# start lanterne in bg (somewhow needed)
lanterne &
# turn on torch
v4l2-ctl -c torch_intensity=1
gst-launch-0.10 v4l2camsrc device=/dev/video0 num-buffers=1 \! video/x-raw-yuv,width=2592,height=1968 \! ffmpegcolorspace \! jpegenc quality=90 \! filesink location=/home/user/MyDocs/DCIM/image.jpg
# turn off torch
v4l2-ctl -c torch_intensity=0
# gst-launch-0.10 v4l2camsrc device=/dev/video0 driver-name=omap3cam num-buffers=1 sadly seems to turn off torch
# you can adjust focus with
# oldvalue=./v4l2-ctl -C focus_absolute
# ./v4l2-ctl -c focus_absolute=oldvalue +/- 10
# in/decrement in steps of 10 only is because of bugs (to not harm camera)
# dont leave the 0-1023 range
Last edited by pythoneye2; 2019-02-21 at 21:18. Reason: added focus_absolute range