annotate do-record.sh.sample @ 175:f68f63465a41 default tip

handles RecException instead of Exception
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Tue, 16 Apr 2013 15:24:02 +0900
parents 29e7a40e6587
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
f5a9f0eb4858 deleted: LICENSE.ja
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
1 #!/bin/sh
f5a9f0eb4858 deleted: LICENSE.ja
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
2 echo "CHANNEL : $CHANNEL"
f5a9f0eb4858 deleted: LICENSE.ja
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
3 echo "DURATION: $DURATION"
f5a9f0eb4858 deleted: LICENSE.ja
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
4 echo "OUTPUT : $OUTPUT"
f5a9f0eb4858 deleted: LICENSE.ja
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
5 echo "TUNER : $TUNER"
f5a9f0eb4858 deleted: LICENSE.ja
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
6 echo "TYPE : $TYPE"
f5a9f0eb4858 deleted: LICENSE.ja
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
7 echo "MODE : $MODE"
f5a9f0eb4858 deleted: LICENSE.ja
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
8
f5a9f0eb4858 deleted: LICENSE.ja
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
9 RECORDER=/usr/local/bin/recfriio
f5a9f0eb4858 deleted: LICENSE.ja
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
10 B25=/usr/local/bin/b25_bcas
f5a9f0eb4858 deleted: LICENSE.ja
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
11
105
29e7a40e6587 operator == will fail on ubuntu where dash has been used as the sh equivalent.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 4
diff changeset
12 if [ ${MODE} = 0 ]; then
4
103ca1503507 modified: do-record.sh.sample
Sushi-k <epgrec@park.mda.or.jp>
parents: 1
diff changeset
13 # MODE=0では必ず無加工のTSを吐き出すこと
1
f5a9f0eb4858 deleted: LICENSE.ja
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
14 $RECORDER $CHANNEL $DURATION ${OUTPUT} --b25 --strip
105
29e7a40e6587 operator == will fail on ubuntu where dash has been used as the sh equivalent.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 4
diff changeset
15 elif [ ${MODE} = 1 ]; then
4
103ca1503507 modified: do-record.sh.sample
Sushi-k <epgrec@park.mda.or.jp>
parents: 1
diff changeset
16 # MODE=0以外はどう手を加えても構いません
103ca1503507 modified: do-record.sh.sample
Sushi-k <epgrec@park.mda.or.jp>
parents: 1
diff changeset
17 $RECORDER $CHANNEL $DURATION --b25 --strip | 何か加工 >${OUTPUT}
105
29e7a40e6587 operator == will fail on ubuntu where dash has been used as the sh equivalent.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 4
diff changeset
18 elif [ ${MODE} = 2 ]; then
1
f5a9f0eb4858 deleted: LICENSE.ja
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
19 $RECORDER $CHANNEL $DURATION ${OUTPUT}.tmp.ts --b25 --strip
4
103ca1503507 modified: do-record.sh.sample
Sushi-k <epgrec@park.mda.or.jp>
parents: 1
diff changeset
20 ffmpeg -i ${OUTPUT}.tmp.ts ... 適当なオプション ${OUTPUT}
1
f5a9f0eb4858 deleted: LICENSE.ja
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
21 fi