Skip to content

Commit

Permalink
recfsusb2n用のdo-record.shをコミット
Browse files Browse the repository at this point in the history
  • Loading branch information
stz2012 committed Aug 17, 2012
1 parent 3d0db63 commit 900cdca
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions do-record.sh.fsusb2n
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/bin/bash
echo "CHANNEL : $CHANNEL"
echo "DURATION: $DURATION"
echo "OUTPUT : $OUTPUT"
echo "TUNER : $TUNER"
echo "TYPE : $TYPE"
echo "MODE : $MODE"
echo "SID : $SID"

RECORDER=/usr/local/bin/recfsusb2n

if [ ${MODE} = 0 ]; then
# MODE=0では必ず無加工のTSを吐き出すこと
$RECORDER --b25 $CHANNEL $DURATION ${OUTPUT} >/dev/null
elif [ ${MODE} = 1 ]; then
# 目的のSIDのみ残す
$RECORDER --b25 --sid $SID $CHANNEL $DURATION ${OUTPUT} >/dev/null
# mode 2 example is as follows
#elif [ ${MODE} = 2 ]; then
# $RECORDER $CHANNEL $DURATION ${OUTPUT}.tmp.ts --b25 --strip
# ffmpeg -i ${OUTPUT}.tmp.ts ... 適当なオプション ${OUTPUT}
fi

0 comments on commit 900cdca

Please sign in to comment.