Code: Select all
<<begin loop>>
ffmpeg -y -r 1 -t 2 -f video4linux2 -s 24x24 -i /dev/video0 ~/.pcamtray/camshot%d.png &
<update trayicon> ~/.pcamtray/camshot1.png
<update trayicon> ~/.pcamtray/camshot2.png
<<end loop>>
Code: Select all
<<begin loop>>
ffmpeg -y -r 1 -t 2 -f video4linux2 -s 24x24 -i /dev/video0 ~/.pcamtray/camshot%d.png &
<update trayicon> ~/.pcamtray/camshot1.png
<update trayicon> ~/.pcamtray/camshot2.png
<<end loop>>
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