-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |