view do-record.sh.sample @ 173:78ea97c5ad24

don't track .htaccess
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Tue, 16 Apr 2013 14:45:02 +0900
parents 29e7a40e6587
children
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/recfriio
B25=/usr/local/bin/b25_bcas

if [ ${MODE} = 0 ]; then
   # MODE=0では必ず無加工のTSを吐き出すこと
   $RECORDER $CHANNEL $DURATION ${OUTPUT} --b25 --strip
elif [ ${MODE} = 1 ]; then
   # MODE=0以外はどう手を加えても構いません
   $RECORDER $CHANNEL $DURATION --b25 --strip | 何か加工 >${OUTPUT}
elif [ ${MODE} = 2 ]; then
   $RECORDER $CHANNEL $DURATION ${OUTPUT}.tmp.ts --b25 --strip
   ffmpeg -i ${OUTPUT}.tmp.ts ... 適当なオプション ${OUTPUT}
fi