diff options
author | krebs <krebs@UTART> | 2011-05-17 23:36:50 +0200 |
---|---|---|
committer | krebs <krebs@UTART> | 2011-05-17 23:36:50 +0200 |
commit | 023130e949d6287404c80e4e4fc75e417743af33 (patch) | |
tree | f4b066d0cfd1dc0c4c8332bfb2eb9b962abcfc64 /modules | |
parent | 0aafbf8fd8a4bda29f0f9bb2346b38efa6333adb (diff) |
bigeyed: utart needs 3 frames to initialize
Diffstat (limited to 'modules')
-rwxr-xr-x | modules/bigeye/bigeyed | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/modules/bigeye/bigeyed b/modules/bigeye/bigeyed index beb96b7c..c246c872 100755 --- a/modules/bigeye/bigeyed +++ b/modules/bigeye/bigeyed @@ -37,13 +37,14 @@ hostname="`hostname`" blink() { date="`date --rfc-3339=s`" echo $date + # nobody will ever need more than 3 frames to initialize! + frame=4 device="/dev/`cd /sys/class/video4linux && ls | head -n 1`" - mplayer -frames 1 -quiet \ + mplayer -frames $frame -quiet \ -vo jpeg \ - -tv driver=v4l2:device=$device:width=640:height=480 \ - tv:// 1>/dev/null 2>/dev/null - #convert -brightness-contrast 20x10 00000001.jpg 00000002.jpg - mv 00000001.jpg index.jpg + -tv driver=v4l2:device=$device \ + tv:// #1>/dev/null 2>/dev/null + mv 0000000$frame.jpg index.jpg cat>00000001.html<<EOF <!doctyle html> <META HTTP-EQUIV="REFRESH" CONTENT="2"> |