Ubuntu16.04 recpt1, recdvb + Chinachuのインストール
・必要パッケージのインストール
# apt install autoconf build-essential curl git-core libccid libpcsc-perl libpcsclite-dev libpcsclite1 libssl-dev libtool linux-headers-`uname -r` mercurial pcsc-tools pcscd pkg-config yasm
・カードリーダの動作確認
# pcsc_scan
・PT3 ドライバのインストール
# cd /usr/local/src/ # git clone https://github.com/m-tsudo/pt3.git # cd pt3/ # make # make install # echo "blacklist earth-pt3" >> /etc/modprobe.d/blacklist.conf # modprobe pt3_drv # reboot # ls /dev/ | grep pt3 ※デバイスが存在することを確認
・PX-S1UD ファームウェアのインストール
# cd /usr/local/src/ # wget http://plex-net.co.jp/plex/px-s1ud/PX-S1UD_driver_Ver.1.0.1.zip # unzip PX-S1UD_driver_Ver.1.0.1.zip # sudo cp PX-S1UD_driver_Ver.1.0.1/x64/amd64/isdbt_rio.inp /lib/firmware/
・arib25(放送波のデコード)のインストール
# cd /usr/local/src/ # wget http://hg.honeyplanet.jp/pt1/archive/c44e16dbb0e2.zip # unzip c44e16dbb0e2.zip # cd pt1-c44e16dbb0e2/arib25 # make # make install
・recpt1 のインストール(PT3用)
# cd /usr/local/src/ # git clone https://github.com/stz2012/recpt1.git # cd recpt1/recpt1 # ./autogen.sh # ./configure --enable-b25 # make # make install # adduservideo ※videoグループに追加しておかないと、PT3を使用できない # recpt1 --b25 --strip 22 10 test.ts --device /dev/pt3video2 ※録画できることを確認 デバイス:video0/1:衛星放送 video2/3:地上デジタル チャネル:22ch 録画時間:10秒
・recdvb のインストール(PX-S1UD用)
# cd /usr/local/src/ # wget http://www13.plala.or.jp/sat/recdvb/recdvb-1.3.1.tgz # tar xvzf recdvb-1.3.1.tgz # cd recdvb-1.3.1 # ./autogen.sh # ./configure --enable-b25 # make # make install # adduser <recdvbコマンドを使いたいユーザ> video ※videoグループに追加しておかないと、PX-S1UDを使用できない # recdvb --b25 --strip 22 10 test.ts ※録画できることを確認
・Chinachu, Mirakurun のインストール
公式ドキュメント:https://github.com/Chinachu/Chinachu/wiki
PT3を使う場合には下記を変更。
# mirakurun config tuners - name: PT3-S1 recpt1 --device /dev/pt3video2 <channel> - - → recpt1コマンドでスクランブル解除する場合は --b25 オプションを追加 decoder: arib-b25-stream-test → recpt1コマンドでスクランブル解除する場合は削除 isDisabled: true → false に変更 ※PT3-S2、PT3-T1、PT3-T2 についても同様に変更 # mirakurun restart ※設定の反映
PX-S1UDを使う場合には下記を追記。
# mirakurun config tuners - name: PX-S1UD-1 types: - GR command: recdvb --b25 --strip <channel> - - isDisabled: false # mirakurun restart ※設定の反映
・arib-b25-stream-test のインストール(任意)
# npm install arib-b25-stream-test -g --unsafe
・Rivarun のインストール(任意)
https://github.com/Chinachu/Rivarun
・動作確認 # rivarun --ch GR/27 10 test.m2ts
・ログローテート設定(任意だが、そのままだとログがどんどん肥大化するので実施推奨)
# pm2 install pm2-logrotate ※PM2のログローテート # vi /etc/logrotate.d/mirakurun /usr/local/var/log/mirakurun.stdout.log /usr/local/var/log/mirakurun.stderr.log { daily compress rotate 7 missingok notifempty } # vi /etc/logrotate.d/chinachu /usr/local/var/log/chinachu-operator.stderr.log /usr/local/var/log/chinachu-operator.stdout.log /usr/local/var/log/chinachu-wui.stderr.log /usr/local/var/log/chinachu-wui.stdout.log { weekly compress rotate 4 missingok notifempty }