Code: Select all
while true ; do
ffmpeg -y -r 1 -t 1 -f video4linux2 -s xga -i /dev/video0 /tmp/camshot%d.jpg
/usr/local/apps/Wallpaper/set_bg /tmp/camshot1.jpg
sleep 3
done
Code: Select all
while true ; do
ffmpeg -y -r 1 -t 1 -f video4linux2 -s xga -i /dev/video0 /tmp/camshot%d.jpg
/usr/local/apps/Wallpaper/set_bg /tmp/camshot1.jpg
sleep 3
done
Code: Select all
# ucview
** (ucview:13128): WARNING **: Failed to create '/root/.ucview/plugins'
search module path: /usr/lib/ucview/plugins
** (ucview:13128): WARNING **: Failed to start video capture
#
Code: Select all
TEXT
${execi 1 /usr/local/pwidgets/widgets/scripts/Webcam}
${image /tmp/cam/camshot1.jpg -s 140x105}
Code: Select all
#!/bin/sh
mkdir /tmp/cam
#while true ; do
ffmpeg -y -r 1 -t 1 -f video4linux2 -s qvga -i /dev/video0 /tmp/cam/camshot%d.jpg &
#sleep 1
#done
anything 4:3 ratio is ok (up to about 160 wide for Pwidgets, maybe a little larger), so long as both are even numbers,... 140x105 doesn't work, but 140x106 does.technosaurus wrote:sounds great - the only thing I might change is the -s qvga in the ffmpeg line to be -s 140x105 if that is the default widget size ... only 1 scaling instead of 2 - I think I compiled Imlib2 already- I'll have to look and recompile conky
Any news re. wo-ff?technosaurus wrote:I guess you could open defaultmediaplayer to play the file as it is being recorded
Edit:
the script will stop on ffmpeg unless you use the "&"
ffmpeg .... &
defaultmediaplayer $DIR/$FILE
I was making some changes to woo-ff to fix up some hacks, but haven't tested the changes yet... here it is though if you want it for reference
Code: Select all
#!/bin/bash
thedir=1
while [ 1 ];do
ffmpeg -y -f video4linux2 -s 960x720 -r 1 -t 1 -i /dev/video $thedir/`date +%s`.jpg
# ffmpeg -y -f video4linux2 -s 1280x960 -r 1 -t 1 -i /dev/video $thedir/`date +%s`.jpg
sleep 5
done
Code: Select all
#!/bin/bash
thedir=1
#-vf eq2=gamma:contrast:brightness:saturation
#where gamma 0.1 - 10 (default 1.0), contrast -2 − 2 (default 1.0), brightnes -1 - 1 (default 0.0),
#saturation 0 − 3 (default 1.0),
#res="w=640:h=480"
res="w=960:h=720"
mencoder-mt mf://$thedir/*.jpg -mf $res:fps=25:type=jpg -ovc lavc \
-vf eq2=1.4:1.2:0.0:1.5 \
-lavcopts vcodec=mpeg4:mbd=2:trell -oac copy -o output-$thedir.avi
After a quick search, it appears that the missing package from page 1 is/was unicap-0.9.5-i486.petgreengeek wrote:Does anyone have a copy of the ucview pet please?
Jemimah - please come home. There is much to do.