{"id":697,"date":"2013-03-09T11:40:56","date_gmt":"2013-03-09T02:40:56","guid":{"rendered":"http:\/\/jose.mydns.jp\/wp\/?p=697"},"modified":"2013-03-09T11:40:56","modified_gmt":"2013-03-09T02:40:56","slug":"ubuntu10-04lts%e3%81%a7%e9%8c%b2%e7%94%bb%e3%82%b5%e3%83%bc%e3%83%90%e6%a7%8b%e7%af%89-%ef%bd%a2do-record-sh%e8%a8%ad%e5%ae%9a%e7%b7%a8%ef%bd%a3","status":"publish","type":"post","link":"http:\/\/jose.mydns.jp\/?p=697","title":{"rendered":"ubuntu10.04LTS\u3067\u9332\u753b\u30b5\u30fc\u30d0\u69cb\u7bc9 \uff62do-record.sh\u8a2d\u5b9a\u7de8\uff63"},"content":{"rendered":"<p>\u524d\u56de\u306b\u5f15\u304d\u7d9a\u304d\u3001\u4eca\u5ea6\u306fdo&#45;record.sh\u306e\u8a2d\u5b9a\u3067\u3059\u304c\u3001<br \/>\n\u6211\u304c\u5bb6\u306f\u795e\u5948\u5ddd\u770c\u306a\u306e\u3067\u30c6\u30ec\u30d3\u671d\u65e5\u3068\u30c6\u30ec\u30d3\u6771\u4eac\u306eHD\u5206\u5272\u306b\u96e3\u70b9\u304c\u3042\u308a<br \/>\n\u3046\u307e\u304frecpt1\u3060\u3051\u3067\u306f\u5206\u5272\u304c\u3067\u304d\u306a\u3044\u3088\u3046\u3067\u3059\u3002<br \/>\n\u305d\u3053\u3067\u30c6\u30ec\u671d\u3001\u30c6\u30ec\u6771\u4ee5\u5916\u306f\u3001recpt1\u3067\uff28\uff24\u753b\u8cea\u3060\u3051\u629c\u304d\u53d6\u308a<br \/>\n\u30c6\u30ec\u671d\u3001\u30c6\u30ec\u6771\u306fTSsplitter\u3067\u5206\u5272\u3059\u308b\u51e6\u7406\u306b\u3057\u3066\u307f\u307e\u3057\u305f\u3002<br \/>\n\uff11\u30d5\u30a1\u30a4\u30eb\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u3082\u3088\u3044\u306e\u3067\u3059\u304c<br \/>\n\u30c6\u30b9\u30c8\u306e\u90fd\u5408\u4e0a\u3001do&#45;record.sh\u3067\u51e6\u7406\u3092\u3057\u3066\u3001\u30c6\u30ec\u671d\u3001\u30c6\u30ec\u6771\u306e\u5834\u5408\u3060\u3051<br \/>\nsplit.sh\u3068\u3044\u3046\u30b9\u30af\u30ea\u30d7\u30c8\u306b\u30b8\u30e3\u30f3\u30d7\u3059\u308b\u3088\u3046\u306b\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n\u73fe\u6642\u70b9\u3067\u306e\u4ed5\u69d8\u306f\u6b21\u306e\u901a\u308a<br \/>\ndo&#45;record.sh<br \/>\n&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;<br \/>\n#!\/bin\/sh<br \/>\necho &#8220;CHANNEL : $CHANNEL&#8221;<br \/>\necho &#8220;DURATION: $DURATION&#8221;<br \/>\necho &#8220;OUTPUT  : $OUTPUT&#8221;<br \/>\necho &#8220;TUNER : $TUNER&#8221;<br \/>\necho &#8220;TYPE : $TYPE&#8221;<br \/>\necho &#8220;MODE : $MODE&#8221;<br \/>\necho &#8220;SID  : $SID&#8221;<br \/>\n#echo &#8220;ST : $ST&#8221;<br \/>\n#echo &#8220;ET : $ET&#8221;<br \/>\nRECORDER=\/usr\/local\/bin\/recpt1<br \/>\nSPLITTER=\/usr\/local\/bin\/TsSplitter.exe<br \/>\nTMPPATH=\/var\/www\/html\/epgrec\/video\/tmp<br \/>\nDATE=`date +%Y%m%d%H%M`<br \/>\n# fail safe<br \/>\ncase $CHANNEL in<br \/>\n101|102|191|192|193)<br \/>\nif [ $SID = &#8216;hd&#8217; ]; then<br \/>\nSID=$CHANNEL<br \/>\nfi ;;<br \/>\nesac<br \/>\nif [ &#45;z $SID ]; then<br \/>\nSID=&#8217;hd&#8217;<br \/>\nfi<br \/>\nif [ ${MODE} = 0 ]; then<br \/>\n# MODE=0\u3067\u306f\u5fc5\u305a\u7121\u52a0\u5de5\u306eTS\u3092\u5410\u304d\u51fa\u3059\u3053\u3068<br \/>\n$RECORDER &#45;&#45;b25 &#45;&#45;strip $CHANNEL $DURATION ${OUTPUT} >\/dev\/null<br \/>\nelif [ ${MODE} = 1 ]; then<br \/>\nif [ ${CHANNEL} = &#8220;24&#8221; ] || [ ${CHANNEL} = &#8220;23&#8221; ]; then<br \/>\n$RECORDER &#45;&#45;b25 &#45;&#45;strip $CHANNEL $DURATION ${TMPPATH}\/GR${CHANNEL}_${DATE}_${DATE}_tss.ts >\/dev\/null<br \/>\n\u3000     bash split.sh<br \/>\nelse<br \/>\n$RECORDER &#45;&#45;b25 &#45;&#45;strip &#45;&#45;sid $SID $CHANNEL $DURATION ${OUTPUT} >\/dev\/null<br \/>\nfi<br \/>\nfi<br \/>\n&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;<br \/>\nsplit.sh<br \/>\n&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;<br \/>\n#!\/bin\/sh<br \/>\nRECORDER=\/usr\/local\/bin\/recpt1<br \/>\nSPLITTER=\/usr\/local\/bin\/TsSplitter.exe<br \/>\nPATH=\/home\/public\/sdb\/1temp\/tmp<br \/>\nOUTPUT=\/home\/public\/sdb\/1temp<br \/>\nMV=\/bin\/mv<br \/>\nRM=\/bin\/rm<br \/>\nif [ &#45;e ${PATH}\/GR23_*_*_tss.ts ] || [ &#45;e ${PATH}GR24_*_*_tss.ts ] ; then<br \/>\n${wine} $SPLITTER &#45;SD &#45;1SEG &#45;WAIT2.5 ${PATH}\/GR23_*_*_tss.ts >\/dev\/null<br \/>\n${wine} $SPLITTER &#45;SD &#45;1SEG &#45;WAIT2.5 ${PATH}\/GR24_*_*_tss.ts >\/dev\/null<br \/>\nfi<br \/>\nif [ &#45;s ${PATH}\/GR23_*_*_tss_HD.ts ] || [ &#45;s ${PATH}GR24_*_*_tss_HD.ts ] ; then<br \/>\n$MV ${PATH}\/GR23_*_*_tss_HD.ts ${OUTPUT} ##>\/dev\/null<br \/>\n$MV ${PATH}\/GR24_*_*_tss_HD.ts ${OUTPUT} ##>\/dev\/null<br \/>\n$RM &#45;f ${PATH}\/GR23_*_*_tss.ts<br \/>\n$RM &#45;f ${PATH}\/GR24_*_*_tss.ts<br \/>\nelse<br \/>\n$MV ${PATH}\/GR23_*_*_tss.ts ${OUTPUT} ##>\/dev\/null<br \/>\n$MV ${PATH}\/GR24_*_*_tss.ts ${OUTPUT} ##>\/dev\/null<br \/>\nfi<br \/>\n&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u524d\u56de\u306b\u5f15\u304d\u7d9a\u304d\u3001\u4eca\u5ea6\u306fdo&#45;record.sh\u306e\u8a2d\u5b9a\u3067\u3059\u304c\u3001 \u6211\u304c\u5bb6\u306f\u795e\u5948\u5ddd\u770c\u306a\u306e\u3067\u30c6\u30ec\u30d3\u671d\u65e5\u3068\u30c6\u30ec\u30d3\u6771\u4eac\u306eHD\u5206\u5272\u306b\u96e3\u70b9\u304c\u3042\u308a \u3046\u307e\u304frecpt1\u3060\u3051\u3067\u306f\u5206\u5272\u304c\u3067\u304d\u306a\u3044\u3088\u3046\u3067\u3059\u3002 \u305d\u3053\u3067\u30c6\u30ec\u671d\u3001\u30c6\u30ec\u6771\u4ee5\u5916\u306f\u3001r &hellip; <\/p>\n<p class=\"link-more\"><a href=\"http:\/\/jose.mydns.jp\/?p=697\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;ubuntu10.04LTS\u3067\u9332\u753b\u30b5\u30fc\u30d0\u69cb\u7bc9 \uff62do-record.sh\u8a2d\u5b9a\u7de8\uff63&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-697","post","type-post","status-publish","format-standard","hentry","category-6"],"_links":{"self":[{"href":"http:\/\/jose.mydns.jp\/index.php?rest_route=\/wp\/v2\/posts\/697","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/jose.mydns.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/jose.mydns.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/jose.mydns.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/jose.mydns.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=697"}],"version-history":[{"count":0,"href":"http:\/\/jose.mydns.jp\/index.php?rest_route=\/wp\/v2\/posts\/697\/revisions"}],"wp:attachment":[{"href":"http:\/\/jose.mydns.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=697"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/jose.mydns.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=697"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/jose.mydns.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=697"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}