Skip to content

Instantly share code, notes, and snippets.

@kui
Last active March 25, 2018 03:04
Show Gist options
  • Save kui/ddfba55a97beb4115b9080fbc6bf81b5 to your computer and use it in GitHub Desktop.
Save kui/ddfba55a97beb4115b9080fbc6bf81b5 to your computer and use it in GitHub Desktop.
2018-03-24 録画環境構築ログ

基本はこれ: http://blog.lwlv.net/archives/1010

最初に

mirakurun/chinachu を管理する pm2 の起動に紐づくアカウント作成。

Chinachuの実行ユーザー作成(既存のユーザーにする場合は不要)

$ sudo adduser chinachu

Chinachuの実行ユーザーをsudoグループに所属させる

$ sudo adduser chinachu sudo

Chinachuの実行ユーザーに切り替え

$ sudo -i -u chinachu

Chinachu まで

dvb-toolsをインストール

DVBデバイスをチューニングするにはdvbv5-zapが必要になる。dvbv5-zapはdvb-toolsに含まれている。

$ sudo apt install dvb-tools

チューニングに必要な設定をダウンロード

$ sudo apt install git
$ cd /usr/local
$ sudo git clone https://github.com/Chinachu/dvbconf-for-isdb.git

ICカードリーダーをセットアップ

パッケージのインストール

$ sudo apt install pcscd libpcsclite1 libpcsclite-dev libccid pcsc-tools

動作確認

$ pcsc_scan | grep B-CAS
        Japanese Chijou Digital B-CAS Card (pay TV)
^C

Mirakurunのインストール

https://github.com/Chinachu/Mirakurun/blob/master/doc/Platforms.md#linux

場所: /usr/local/etc/mirakurun/tuners.yml

PT3 2枚刺し向け設定

Chinachu

あとは公式と同じ: https://github.com/Chinachu/Chinachu/wiki/Gamma-Installation-V2

ただし config.json で uid は上記ユーザを設定する

"uid": "chinachu",

samba セットアップ

$ sudo apt-get install -y samba
$ sudo mkdir /var/lib/share
$ sudo chmod 0777 /var/lib/share
$ vi /etc/samba/smb.conf

# global に書く
charset = UTF-8
dos charset = CP932
unix extensions = no
wide links = yes

# 末尾に書く
[share]
   comment = Share directory
   writable = yes
   path = /var/lib/share
   guest only = yes
   guest ok = yes
   share modes = yes
   create mode = 0777
   directory mode = 0777
   
$ sudo systemctl restart smbd 
- name: PT3-T1
types: [ GR ]
command: recpt1 --device /dev/pt3video2 --b25 --strip <channel> - -
- name: PT3-T2
types: [ GR ]
command: recpt1 --device /dev/pt3video3 --b25 --strip <channel> - -
- name: PT3-T3
types: [ GR ]
command: recpt1 --device /dev/pt3video6 --b25 --strip <channel> - -
- name: PT3-T4
types: [ GR ]
command: recpt1 --device /dev/pt3video7 --b25 --strip <channel> - -
- name: PT3-S1
types:
- BS
- CS
command: dvbv5-zap -a 0 -c /usr/local/dvbconf-for-isdb/conf/dvbv5_channels_isdbs.conf -r -P <channel>
dvbDevicePath: /dev/dvb/adapter0/dvr0
decoder: arib-b25-stream-test
- name: PT3-S2
types:
- BS
- CS
command: dvbv5-zap -a 2 -c /usr/local/dvbconf-for-isdb/conf/dvbv5_channels_isdbs.conf -r -P <channel>
dvbDevicePath: /dev/dvb/adapter2/dvr0
decoder: arib-b25-stream-test
- name: PT3-T1
types:
- GR
command: dvbv5-zap -a 1 -c /usr/local/dvbconf-for-isdb/conf/dvbv5_channels_isdbt.conf -r -P <channel>
dvbDevicePath: /dev/dvb/adapter1/dvr0
decoder: arib-b25-stream-test
- name: PT3-T2
types:
- GR
command: dvbv5-zap -a 3 -c /usr/local/dvbconf-for-isdb/conf/dvbv5_channels_isdbt.conf -r -P <channel>
dvbDevicePath: /dev/dvb/adapter3/dvr0
decoder: arib-b25-stream-test
- name: PT3-S3
types:
- BS
- CS
command: dvbv5-zap -a 4 -c /usr/local/dvbconf-for-isdb/conf/dvbv5_channels_isdbs.conf -r -P <channel>
dvbDevicePath: /dev/dvb/adapter4/dvr0
decoder: arib-b25-stream-test
- name: PT3-S4
types:
- BS
- CS
command: dvbv5-zap -a 6 -c /usr/local/dvbconf-for-isdb/conf/dvbv5_channels_isdbs.conf -r -P <channel>
dvbDevicePath: /dev/dvb/adapter6/dvr0
decoder: arib-b25-stream-test
- name: PT3-T3
types:
- GR
command: dvbv5-zap -a 5 -c /usr/local/dvbconf-for-isdb/conf/dvbv5_channels_isdbt.conf -r -P <channel>
dvbDevicePath: /dev/dvb/adapter5/dvr0
decoder: arib-b25-stream-test
- name: PT3-T4
types:
- GR
command: dvbv5-zap -a 7 -c /usr/local/dvbconf-for-isdb/conf/dvbv5_channels_isdbt.conf -r -P <channel>
dvbDevicePath: /dev/dvb/adapter7/dvr0
decoder: arib-b25-stream-test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment