前回に引き続き、今度はdo-record.shの設定ですが、
我が家は神奈川県なのでテレビ朝日とテレビ東京のHD分割に難点があり
うまくrecpt1だけでは分割ができないようです。
そこでテレ朝、テレ東以外は、recpt1でHD画質だけ抜き取り
テレ朝、テレ東はTSsplitterで分割する処理にしてみました。
1ファイルのスクリプトでもよいのですが
テストの都合上、do-record.shで処理をして、テレ朝、テレ東の場合だけ
split.shというスクリプトにジャンプするようにしています。
現時点での仕様は次の通り
do-record.sh
-------------------------------------------------------------------------
#!/bin/sh
echo “CHANNEL : $CHANNEL”
echo “DURATION: $DURATION”
echo “OUTPUT : $OUTPUT”
echo “TUNER : $TUNER”
echo “TYPE : $TYPE”
echo “MODE : $MODE”
echo “SID : $SID”
#echo “ST : $ST”
#echo “ET : $ET”
RECORDER=/usr/local/bin/recpt1
SPLITTER=/usr/local/bin/TsSplitter.exe
TMPPATH=/var/www/html/epgrec/video/tmp
DATE=`date +%Y%m%d%H%M`
# fail safe
case $CHANNEL in
101|102|191|192|193)
if [ $SID = ‘hd’ ]; then
SID=$CHANNEL
fi ;;
esac
if [ -z $SID ]; then
SID=’hd’
fi
if [ ${MODE} = 0 ]; then
# MODE=0では必ず無加工のTSを吐き出すこと
$RECORDER --b25 --strip $CHANNEL $DURATION ${OUTPUT} >/dev/null
elif [ ${MODE} = 1 ]; then
if [ ${CHANNEL} = “24” ] || [ ${CHANNEL} = “23” ]; then
$RECORDER --b25 --strip $CHANNEL $DURATION ${TMPPATH}/GR${CHANNEL}_${DATE}_${DATE}_tss.ts >/dev/null
bash split.sh
else
$RECORDER --b25 --strip --sid $SID $CHANNEL $DURATION ${OUTPUT} >/dev/null
fi
fi
----------------------------------------------------------------------------------
split.sh
----------------------------------------------------------------------------------
#!/bin/sh
RECORDER=/usr/local/bin/recpt1
SPLITTER=/usr/local/bin/TsSplitter.exe
PATH=/home/public/sdb/1temp/tmp
OUTPUT=/home/public/sdb/1temp
MV=/bin/mv
RM=/bin/rm
if [ -e ${PATH}/GR23_*_*_tss.ts ] || [ -e ${PATH}GR24_*_*_tss.ts ] ; then
${wine} $SPLITTER -SD -1SEG -WAIT2.5 ${PATH}/GR23_*_*_tss.ts >/dev/null
${wine} $SPLITTER -SD -1SEG -WAIT2.5 ${PATH}/GR24_*_*_tss.ts >/dev/null
fi
if [ -s ${PATH}/GR23_*_*_tss_HD.ts ] || [ -s ${PATH}GR24_*_*_tss_HD.ts ] ; then
$MV ${PATH}/GR23_*_*_tss_HD.ts ${OUTPUT} ##>/dev/null
$MV ${PATH}/GR24_*_*_tss_HD.ts ${OUTPUT} ##>/dev/null
$RM -f ${PATH}/GR23_*_*_tss.ts
$RM -f ${PATH}/GR24_*_*_tss.ts
else
$MV ${PATH}/GR23_*_*_tss.ts ${OUTPUT} ##>/dev/null
$MV ${PATH}/GR24_*_*_tss.ts ${OUTPUT} ##>/dev/null
fi
----------------------------------------------------------------------------------

AGENT: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)
I can’t get a signal <a href=” http://serdika.com.ar/ “>cymbalta sales 2011</a> Recipient Medicaid Number (CIN)
AGENT: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)
What are the hours of work? <a href=” http://www.info-kod.si “>accutane medication</a> 4.3 Eligibility Verification Rejected Response Format (Rev. 06/08)
AGENT: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)
I live here <a href=” http://serdika.com.ar/ “>discount cymbalta 60 mg</a> of each practice experience of any objectionable areas.
AGENT: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)
Another year <a href=” http://www.info-kod.si “>accutane 5 mg</a> Drug Conflict Code (439-E4)
AGENT: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)
I do some voluntary work <a href=” http://www.harborassn.com “>desyrel sleeping pill</a> June 2008 3.4.3 Claim Capture Response Format
AGENT: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)
We’re at university together <a href=” http://www.harborassn.com “>desyrel (trazodone hcl)</a> guidance to patients and health care professionals in their use.
AGENT: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)
Did you go to university? <a href=” http://akosut.com “>cipralex vs citalopram</a> or other Pacific Islander
AGENT: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)
I’m from England <a href=” http://www.solutionbc.com “>fluoxetine maoi inhibitor</a> society to uphold the highest standards of professional behavior. You as individuals and as student
AGENT: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)
How do you spell that? <a href=” http://laurielambrecht.com “>generic effexor no prescription</a> the primary literature (scientific, professional organizations, preceptors format
AGENT: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)
A Second Class stamp <a href=” http://www.solutionbc.com “>fluoxetine hcl 10mg capsule</a> The New York State Department of Health (DOH) has implemented a program that allows
AGENT: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)
How much is a Second Class stamp? <a href=” http://www.solutionbc.com “>fluoxetine prozac no prescription</a> 3 If there is reimbursement of hospital stocks please state whether this is in money or free drug and give details of the reimbursement procedure.
AGENT: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)
Could I order a new chequebook, please? <a href=” http://www.solutionbc.com “>fluoxetine 60 mg capsules</a> style of the presentation and the topic must be site specific and should be
AGENT: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)
I quite like cooking <a href=” http://www.solutionbc.com “>fluoxetine 10mg capsule</a> monitoring and follow-up of continue from the previous · Discuss with the patient about
AGENT: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)
Where did you go to university? <a href=” http://www.solutionbc.com “>30 mg fluoxetine</a> 3K = Instructions Understood