Created
October 21, 2013 09:35
-
-
Save thbounzer/7081156 to your computer and use it in GitHub Desktop.
Daily webcam snapper
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
mplayer tv:// -tv driver=v4l2:device=/dev/video0 -vo png:outdir=/out/dir/temp -flip -frames 40 | |
name=$(date +%Y-%m-%d) | |
mv /out/dir/temp/00000040.png /out/dir/$name.png | |
rm /out/dir/temp/000000*.png |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment