Mercurial > epgrec.yaz
view do-record.sh.pt1 @ 75:11f63ae04a96
delete trailing white space
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Sun, 14 Feb 2010 17:01:02 +0900 |
parents | cd64cf013095 |
children | 36ac7c416bd7 |
line wrap: on
line source
#!/bin/sh echo "CHANNEL : $CHANNEL" echo "DURATION: $DURATION" echo "OUTPUT : $OUTPUT" echo "TUNER : $TUNER" echo "TYPE : $TYPE" echo "MODE : $MODE" RECORDER=/usr/local/bin/recpt1 B25=/usr/local/bin/b25_bcas case $CHANNEL in 101|102|191|192|193) SID=$CHANNEL ;; *) SID="HD" ;; esac if [ ${MODE} == 0 ]; then # MODE=0では必ず無加工のTSを吐き出すこと $RECORDER --b25 --strip $CHANNEL $DURATION ${OUTPUT} >/dev/null elif [ ${MODE} == 1 ]; then # 目的のSIDのみ残す $RECORDER --b25 --strip --sid $SID $CHANNEL $DURATION ${OUTPUT} >/dev/null elif [ ${MODE} == 2 ]; then $RECORDER $CHANNEL $DURATION ${OUTPUT}.tmp.ts --b25 --strip ffmpeg -i ${OUTPUT}.tmp.ts ... 適当なオプション ${OUTPUT} fi