vrsのBS102録画時にはBS101も同時に録画されてしまうので
自動で分離するようにした。
#!/bin/sh
echo "CHANNEL : $CHANNEL"
echo "DURATION: $DURATION"
echo "BITRATE : $BITRATE"
echo "WIDTH : $WIDTH"
echo "HEIGHT : $HEIGHT"
echo "AMODE : $AMODE"
echo "OUTDIR : $OUTDIR"
echo "OUTNAME : $OUTNAME"
echo "DEVICE : $DEVICE"
echo "HOMEDIR : $HOMEDIR"
RECPT1=/usr/local/bin/recpt1
TSSELECT=/usr/local/bin/tsselect
B25=/usr/local/bin/b25
$RECPT1 --b25 $CHANNEL $DURATION $OUTDIR/$OUTNAME.ts > /dev/null
#
#DURATION2=`expr $DURATION - 20`
#$RECFRIIO -b25 $CHANNEL $DURATION2 $OUTDIR/$OUTNAME.ts > /dev/null
#chmod 777 $OUTDIR/$OUTNAME.ts
#
if [ "$CHANNEL" -eq 102 ];then
$TSSELECT $OUTDIR/$OUTNAME.ts "$OUTDIR/bs2-$OUTNAME.ts" 0x0000 0x0200 0x0210 0x02f0 > /dev/null
chmod 777 $OUTDIR/bs2-$OUTNAME.ts
fi
Comments