fenk.org

Private website of Thorsten Fenk

Take pictures with mplayer and a webcam

The values for width and heigth may need adjustment to the capabilities of your webcam.

  #!/bin/sh
  mplayer tv:// -tv driver=v4l2:device=/dev/video0
  mplayer tv:// -tv driver=v4l2:device=/dev/video0:width=1600:height=1200:outfmt=rgb24 -frames 3 -vo jpeg
  rm 00000001.jpg 00000002.jpg
Tweet