2018 May 19.
101チャンネルの102プログラムを指定する。
$ recpt1 --b25 --strip --sid 102 101 SECONDS OUTFILE.ts
101チャンネルの102プログラムを指定する。
$ recpt1 --b25 --strip --sid 102 101 SECONDS OUTFILE.ts
/etc/at.deny から www-data を削除するwww-dataのログインシェルを(/usr/sbin/nologin から)/bin/bash にする
$ cd YOUR/DOWNLOAD/DIR
$ tar zvxf epgdumpUNA160127.tar.gz $ cd epgdump $ make $ sudo make install
確認
recpt1から出力したTSファイルから番組表を取得 (16はチャンネル番号なので適当に。100は録画秒数) $ recpt1 --b25 --strip 16 100 16.ts $ epgdump 16 16.ts tv16.xml -xml xmlファイルの作成を確認 $ cat tv16.xml同じディレクトリに置く$ tar -zxvf epgrecUNA_151114.tar.gz $ tar -zxvf epgrecUNA151114Fix1.tar.gz $ tar -zxvf epgrecUNA151114Fix2.tar.gz
(3)地震テロップ対応
quake_alert_fix1.tar.gzを任意のディレクトリに置く
quake_alert_fix1.tar.gzを解凍する
$ cd QUAKE-DIR
$ tar -zxvf quake_alert_fix1.tar.gz
recomplete.phpが取り出される
recomplete.phpの17行目を適切な地域名に変更する。
recomplete.phpをepgrecフォルダに置く(既存ファイルと入れ替える)
$ mv QUAKE-DIR/recomplete.php/DIR/epgrec/recomplete.php
(4)do-record.shを自分用に編集する(そのまま利用してもよい)
$ cp -p do-record.sh.sample do-record.sh
do-record.shを編集する。
(5)templates/programTable.html を修正する -define( "TUNER_UNIT1", 0 ); // 第一チューナーの各放送波の論理チューナ数(地上波・衛星波で共用 ex.PT1が1枚なら2) +define( "TUNER_UNIT1", 2 ); // 第一チューナーの各放送波の論理チューナ数(地上波・衛星波で共用 ex.PT1が1枚なら2)
その他はデフォルトでも動く。 DIR/epgrec/* /var/www/html/epgrec_una/ $ sudo chown -R www-data:www-data /var/www/html/epgrec_una $ cd /var/www/html/epgrec_una
$ chmod 777 cache templates_c video thumbs settings $ chmod 666 thumbs/index.html video/index.html $ chmod 755 do-record.sh(10)videoディレクトリを自分用に設定する
# cp /var/www/html/epgrec_una/cron.d/shepherd /etc/cron.d/
/etc/cron.d/shepherd を編集
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
29 */2 * * * www-data /mnt/apache/epgrec/shepherd.php