Mercurial > epgrec.yaz
changeset 73:cd64cf013095
make use of --sid option to reduce file size
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Sun, 14 Feb 2010 15:43:57 +0900 |
parents | 605d327bddcc |
children | fce37385c8b4 |
files | do-record.sh.pt1 |
diffstat | 1 files changed, 15 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/do-record.sh.pt1 Tue Jan 26 22:02:54 2010 +0900 +++ b/do-record.sh.pt1 Sun Feb 14 15:43:57 2010 +0900 @@ -9,4 +9,18 @@ RECORDER=/usr/local/bin/recpt1 B25=/usr/local/bin/b25_bcas -$RECORDER --b25 --strip $CHANNEL $DURATION ${OUTPUT} >/dev/null +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