macbook proを録画サーバーにしてみようと思いましたが、ネットの記事は、windowsかlinuxばかりです。今回はお試しですので、Virtualboxを入れてubuntuでやってみようと思います。
チューナーは、PX-S1UD。
カードリーダーは、SCR3310。
ubuntu serverをインストールすると、ネット記事を参考に作業を進めます。
参考URL http://qiita.com/ww24/items/0adc36c013511524da80
2 | Bus 001 Device 005: ID 04e6:5116 SCM Microsystems, Inc. SCR331-LC1 / SCR3310 SmartCard Reader |
3 | Bus 001 Device 006: ID 3275:0080 VidzMedia Pte Ltd |
4 | Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter |
5 | Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp. |
6 | Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub |
2 | ls : cannot access /dev/dvb: No such file or directory |
となった場合は、ひとまず、apt-get で更新。
2 | sudo apt-get dist-upgrade |
ビルド環境に必要なパッケージを入れる。
1 | sudo apt -y install build-essential automake pkg-config |
PX-S1UD firmware
1 | sudo apt -y install unzip |
3 | unzip PX-S1UD_driver_Ver.1.0.1.zip |
4 | sudo cp PX-S1UD_driver_Ver.1.0.1/x64/amd64/isdbt_rio.inp /lib/firmware |
カードリーダーの動作確認
1 | sudo apt -y install pcscd libpcsclite-dev pcsc-tools |
4 | Japanese Chijou Digital B-CAS Card (pay TV) |
9 | sudo systemctl status pcscd |
10 | sudo systemctl start pcscd |
arib25 のビルド、インストール
3 | cd libarib25-09770e334837f6c67268c41c1c15784373d35e5b |
4 | sudo chown -R $( whoami ) . |
recdvb のインストール
チューナーデバイス
4 | sudo chown -R $( whoami ) . |
6 | ./configure -- enable -b25 |
動作確認
1 | $ recdvb --b25 --strip --sid hd 17 10 test .m2ts |
5 | device = /dev/dvb/adapter0/frontend0 |
6 | Using DVB card "Siano Mobile Digital MDTV Receiver" |
12 | Available sid = 2080 2081 2082 2464 |
14 | Available PMT = 0x101 0x102 0x103 0x1fc8 |
chinachu, mirakurun, rivarunのインストール
※ 開発スピードが早いため、インストール方法も変わることが多い。公式のホームページで、最新のインストール方法を要確認。
参考URL: https://chinachu.moe
https://github.com/Chinachu/Mirakurun/blob/master/README.md
まずは、これらをインストール
1 | sudo apt-get install build-essential curl git-core vainfo |
3 | sudo apt-get install -y nodejs |
mirakurun, rivarunのインストール
1 | sudo npm install mirakurun -g --unsafe --production |
2 | sudo npm install rivarun -g |
4 | sudo mirakurun config tuners |
11 | command : recdvb --b25 --strip <channel> - - |
14 | sudo mirakurun config channels |
22 | sudo mirakurun log server |
24 | 録画確認(さっき作ったチャンネルのみ録画可能) |
25 | rivarun --ch GR/25 10 test .m2ts |
Chinachuのインストール
参考URL: https://github.com/Chinachu/Chinachu/wiki/Gamma-Installation-V2
6 | cp config.sample.json config.json |
14 | echo [] & gt ; rules.json |
20 | ./chinachu service wui execute |
25 | sudo pm2 start processes.json |
以降、raspberry piで録画サーバーを作った時の発生したエラーの覚書。
pi@raspb_rec:~ $ sudo mirakurun log server
0|mirakuru | 2017-05-14T03:11:35.746+09:00 warn: TSFilter is overflowing the buffer…
0|mirakuru | 2017-05-14T03:12:05.753+09:00 error: TSFilter will closing because reached time limit of overflowing the buffer…
録画先のUSBハードディスクが一時停止していた。。
pi@raspb_rec:/var/log $ tail -f messages
May 14 03:11:12 raspb_rec kernel: [ 1428.454998] usb 1-1.5: reset high-speed USB device number 6 using dwc_otg
May 14 03:11:49 raspb_rec kernel: [ 1465.575201] usb 1-1.5: reset high-speed USB device number 6 using dwc_otg
pi@raspb_rec:~ $ lsusb -v
Bus 001 Device 006: ID 152d:2329 JMicron Technology Corp. / JMicron USA Technology Corp. JM20329 SATA Bridge
Couldn’t open device, some information will be missing
Device Descriptor:
bLength 18
コメント