Import of atscap v1.1
[atscap.git] / get-samples.sh
blobcf1700bc507771d7d01e0ec8ce57f4a825cb2e56
1 #!/bin/sh
2 # Generated by atscap -S, Sat Sep 23 22:13:17. You may need to edit this.
3 # This script collects ATSC samples from all of your stations.
4 # You may edit LOCATION to reflect the nearest big city.
5 # You may edit CHANNELS if you adjust for better reception.
6 LOCATION=Houston
7 CHANNELS=" 19 27 31 "
8 cd /dtv
9 echo atscap >atscap.txt
10 tar cf samples-$LOCATION.tar atscap.txt
11 for i in $CHANNELS; do
12 echo Collecting samples from channel $i
14 # -i0 sets the dvb device number to 0
15 atscap -q -i0 -s60 -o$i.ts $i
16 if [[ -f $i.ts ]]; then
17 atscut -q -m3 -a15 $i.ts >$i-mgt.txt
18 atscut -kmgt $i.ts >/dev/null
19 tar rf samples-$LOCATION.tar $i-mgt.txt $i-mgt.ts
20 rm -f $i-mgt.txt $i-mgt.ts $i.ts
22 done
23 rm -f samples-$LOCATON.tar.bz2
24 bzip2 samples-$LOCATION.tar
25 echo Please email samples-$LOCATION.tar.bz2 to inkling@nop.org
26 echo The curious may want to inspect the -mgt files.