Re: how to take a snapshot from the command line?



Am 26.02.2010 18:47, schrieb George Kraft:
> Is there a way to "take a photo" from the command line without opening
> the desktop application?
> 
> $ cheese --snapshot --delay 1 --outfile $HOME/Pictures/failedlogin.jpg
> 

sleep 1s;gst-launch-0.10 v4l2src num-buffers=1 ! jpegenc ! filesink \
location=$HOME/Pictures/failedlogin.jpg

on recent gstreamer you can use autovideosrc instead of v4l2src

Stefan


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]