2021-05-26 20:31:52 +11:00
|
|
|
#!/bin/bash
|
|
|
|
|
2021-05-28 02:57:35 +11:00
|
|
|
GRABOPT=" -vv -d /dev/video0 -n 400 -p 0.5 -u "
|
2021-05-26 20:31:52 +11:00
|
|
|
SPOOL=${HOME}/TMP
|
|
|
|
|
2021-05-28 02:57:35 +11:00
|
|
|
echo ; echo ; echo
|
|
|
|
|
2021-05-26 20:31:52 +11:00
|
|
|
for capture in red green blue
|
|
|
|
do
|
2021-05-28 02:57:35 +11:00
|
|
|
image=${SPOOL}/${capture}.fimg
|
|
|
|
echo grabbing $image
|
|
|
|
grabvidseq ${GRABOPT} -o $image
|
|
|
|
echo
|
2021-05-26 20:31:52 +11:00
|
|
|
done
|
|
|
|
|
|
|
|
./muxplanes "${SPOOL}/red.fimg" \
|
|
|
|
"${SPOOL}/green.fimg" \
|
|
|
|
"${SPOOL}/blue.fimg" \
|
|
|
|
yo.fimg
|
|
|
|
|
|
|
|
echo $0 "got a" $?
|
|
|
|
|
|
|
|
fimgstats -v yo.fimg
|
|
|
|
|