Mercurial > epgrec.yaz
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 |
rev | line source |
---|---|
1 | 1 #!/bin/sh |
2 echo "CHANNEL : $CHANNEL" | |
3 echo "DURATION: $DURATION" | |
4 echo "OUTPUT : $OUTPUT" | |
5 echo "TUNER : $TUNER" | |
6 echo "TYPE : $TYPE" | |
7 echo "MODE : $MODE" | |
8 | |
9 RECORDER=/usr/local/bin/recfriio | |
10 B25=/usr/local/bin/b25_bcas | |
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 | 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 | 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 | 21 fi |