From 023130e949d6287404c80e4e4fc75e417743af33 Mon Sep 17 00:00:00 2001 From: krebs Date: Tue, 17 May 2011 23:36:50 +0200 Subject: bigeyed: utart needs 3 frames to initialize --- modules/bigeye/bigeyed | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'modules/bigeye') 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< -- cgit v1.2.3