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