summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorkrebs <krebs@UTART>2011-05-17 23:36:50 +0200
committerkrebs <krebs@UTART>2011-05-17 23:36:50 +0200
commit023130e949d6287404c80e4e4fc75e417743af33 (patch)
treef4b066d0cfd1dc0c4c8332bfb2eb9b962abcfc64 /modules
parent0aafbf8fd8a4bda29f0f9bb2346b38efa6333adb (diff)
bigeyed: utart needs 3 frames to initialize
Diffstat (limited to 'modules')
-rwxr-xr-xmodules/bigeye/bigeyed11
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">