Take picture from webcam using linux command line (bash)

Stoppal picture Stoppal · Feb 22, 2012 · Viewed 67.3k times · Source

I am well aware that there is "exactly" the same question already asked, but it seems the user that posted the question initially never took an interest in the question, and the answers all were for windows systems.

I want to take a picture with the webcam every N time units and store it to /tmp/somefolder/ for further use with other tools and only keep the last M images.

The main problem is taking the picture to start with, the rest i would have pretty much covered, would be glad for any suggestions. OS: Ubuntu 10.04 x86_64 Webcam: MS LifeCam VX2000 and/or Logitech C210 (both working with cheese)

Answer

Alessandro Pezzato picture Alessandro Pezzato · Feb 22, 2012

Install mplayer

mplayer -vo png -frames 1 tv://