comparison do-record.sh.pt1 @ 105:29e7a40e6587

operator == will fail on ubuntu where dash has been used as the sh equivalent.
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Tue, 09 Mar 2010 05:42:26 +0900
parents 82aac84c3665
children 74a174a245d2
comparison
equal deleted inserted replaced
104:82aac84c3665 105:29e7a40e6587
19 if [ -z $SID ]; then 19 if [ -z $SID ]; then
20 SID='hd' 20 SID='hd'
21 fi ;; 21 fi ;;
22 esac 22 esac
23 23
24 if [ ${MODE} == 0 ]; then 24 if [ ${MODE} = 0 ]; then
25 # MODE=0では必ず無加工のTSを吐き出すこと 25 # MODE=0では必ず無加工のTSを吐き出すこと
26 $RECORDER --b25 --strip $CHANNEL $DURATION ${OUTPUT} >/dev/null 26 $RECORDER --b25 --strip $CHANNEL $DURATION ${OUTPUT} >/dev/null
27 elif [ ${MODE} == 1 ]; then 27 elif [ ${MODE} = 1 ]; then
28 # 目的のSIDのみ残す 28 # 目的のSIDのみ残す
29 $RECORDER --b25 --strip --sid $SID $CHANNEL $DURATION ${OUTPUT} >/dev/null 29 $RECORDER --b25 --strip --sid $SID $CHANNEL $DURATION ${OUTPUT} >/dev/null
30 elif [ ${MODE} == 2 ]; then 30 elif [ ${MODE} = 2 ]; then
31 $RECORDER $CHANNEL $DURATION ${OUTPUT}.tmp.ts --b25 --strip 31 $RECORDER $CHANNEL $DURATION ${OUTPUT}.tmp.ts --b25 --strip
32 ffmpeg -i ${OUTPUT}.tmp.ts ... 適当なオプション ${OUTPUT} 32 ffmpeg -i ${OUTPUT}.tmp.ts ... 適当なオプション ${OUTPUT}
33 fi 33 fi