- [How to capture picture from V4L2 webcam?](http://www.linuxquestions.org/questions/programming-9/how-to-capture-picture-from-v4l2-webcam-546351/) - [camshot](http://code.google.com/p/camshot) - [fswebcam](http://www.firestorm.cx/fswebcam) - [cheese](http://projects.gnome.org/cheese/) (has gnome requirements) - [VLC silent capture of video or snapshots from a webcam](http://forum.videolan.org/viewtopic.php?f=2&t=63313) - [Take picture from webcam using linux command line (bash)](http://stackoverflow.com/questions/9391456/take-picture-from-webcam-using-linux-command-line-bash) - [Ubuntu: webcam](https://help.ubuntu.com/community/Webcam) - [webcam-xlib-shm.c](http://vinvin.dyndns.org/projects/linux.html) MPlayer: - `mplayer tv:// -tv driver=v4l2:device=/dev/video0 -vo png -frames 1` - `mplayer -really-quiet -vo png:outdir=/tmp/slock/spy.png -frames 1 tv://` MPlayer is not reliable. It makes trouble with some webcams e.g. the Syntek AVStream USB2.0 1.3M WebCam - Product ID 0x6A33. Handling jpeg: - [Very Simple JPEG writer in C/C++](http://www.andrewewhite.net/wordpress/2008/09/02/very-simple-jpeg-writer-in-c-c/) - [load jpeg](https://svn.personalrobotics.ri.cmu.edu/public/trunk/src/moped/BundlerPy/src/LoadJPEG.cpp)
MPlayer:
mplayer tv:// -tv driver=v4l2:device=/dev/video0 -vo png -frames 1mplayer -really-quiet -vo png:outdir=/tmp/slock/spy.png -frames 1 tv://MPlayer is not reliable. It makes trouble with some webcams e.g. the Syntek AVStream USB2.0 1.3M WebCam - Product ID 0x6A33.
Handling jpeg: