23 lines
340 B
Bash
23 lines
340 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
GRABOPT=" -v -d /dev/video0 -n 1 -u "
|
||
|
SPOOL=${HOME}/TMP
|
||
|
|
||
|
for capture in red green blue
|
||
|
do
|
||
|
grabvidseq "${GRABOPT}" -o "${SPOOL}/${capture}.fimg"
|
||
|
# sleep 1
|
||
|
done
|
||
|
|
||
|
ls -rtl "${SPOOL}"
|
||
|
|
||
|
./muxplanes "${SPOOL}/red.fimg" \
|
||
|
"${SPOOL}/green.fimg" \
|
||
|
"${SPOOL}/blue.fimg" \
|
||
|
yo.fimg
|
||
|
|
||
|
echo $0 "got a" $?
|
||
|
|
||
|
fimgstats -v yo.fimg
|
||
|
|