TBS6209 + dvbv5-zap + Mirakurun + Chinachu

Ubuntu 16.04 LTS Desktop(amd64版)をインストールしたパソコンを用意して作業を進めます。

CPU Intel Core i7-3770S
M/B ASUS B75M-PLUS
RAM 32GB
HDD RAID5 3 x Seagate NAS 3.5″ 3TB ST3000VN000
Spare 1 x Seagate IronWolf NAS 3.5″ 3TB ST3000VN007
PCIE Areca ARC-1214-4i RAID Card
PCIE TBS6209 Octa Tuner Card

前回の「Octa Tuner TBS6209 のモードを変更する」と今回の記事は《こちら》のユーザガイドを参考にしました。また、「Open Source Linux Driver」ではインストール方法がwikiで紹介されています。

目次

  1. チューナーを確認する
  2. ファームウェアの導入
  3. ドライバーの導入
  4. チューナーの動作確認
  5. DVBデバイスの権限設定
  6. dvbv5-zapの導入
  7. MirakurunとChinachuの設定

1.チューナーを確認する

ここではTBSと認識されていれば問題ありません。

$ lspci
02:00.0 Multimedia controller: TBS Technologies DVB-S2 4 Tuner PCIe Card

2.ファームウェアの導入

Secure BootがEnableだとサードパーティ製のファームウェアを読み込んでくれないのでDisableにする必要があります。

$ cd ~
$ mkdir tbsdriver
$ cd tbsdriver/
$ wget http://www.tbsdtv.com/download/document/linux/tbs-tuner-firmwares_v1.0.tar.bz2
$ sudo tar jxvf tbs-tuner-firmwares_v1.0.tar.bz2 -C /lib/firmware/

3.ドライバーの導入

ビルド環境は既に整っていると思いますが、私が実行した時に足りなかったソフトをおまじないとして入れておきます。

$ sudo apt-get install libproc-processtable-perl patchutils

あとは順番通りにコマンドを入れて行けば終わりますが、エラーが無いことを確認します。

$ git clone https://github.com/tbsdtv/media_build.git
$ git clone --depth=1 https://github.com/tbsdtv/linux_media.git -b latest ./media
$ cd media_build
$ make dir DIR=../media
$ make distclean
$ make -j4
$ sudo make install
$ sudo reboot

4.チューナーの動作確認

再起動後にドライバーが読み込まれていれば次のように表示されます。

$ dmesg | grep -i frontend
[    8.547157] TBSECP3 driver 0000:02:00.0: DVB: registering adapter 0 frontend 0 (Turbosight TBS 6209 (Octa DVB-T/T2/C2/C(j83-a/b/c)/)...
[    8.671347] TBSECP3 driver 0000:02:00.0: DVB: registering adapter 1 frontend 0 (Turbosight TBS 6209 (Octa DVB-T/T2/C2/C(j83-a/b/c)/)...
[    8.746371] TBSECP3 driver 0000:02:00.0: DVB: registering adapter 2 frontend 0 (Turbosight TBS 6209 (Octa DVB-T/T2/C2/C(j83-a/b/c)/)...
[    8.871353] TBSECP3 driver 0000:02:00.0: DVB: registering adapter 3 frontend 0 (Turbosight TBS 6209 (Octa DVB-T/T2/C2/C(j83-a/b/c)/)...
[    8.995557] TBSECP3 driver 0000:02:00.0: DVB: registering adapter 4 frontend 0 (Turbosight TBS 6209 (Octa DVB-T/T2/C2/C(j83-a/b/c)/)...
[    9.119551] TBSECP3 driver 0000:02:00.0: DVB: registering adapter 5 frontend 0 (Turbosight TBS 6209 (Octa DVB-T/T2/C2/C(j83-a/b/c)/)...
[    9.243109] TBSECP3 driver 0000:02:00.0: DVB: registering adapter 6 frontend 0 (Turbosight TBS 6209 (Octa DVB-T/T2/C2/C(j83-a/b/c)/)...
[    9.367183] TBSECP3 driver 0000:02:00.0: DVB: registering adapter 7 frontend 0 (Turbosight TBS 6209 (Octa DVB-T/T2/C2/C(j83-a/b/c)/)...
$ lsmod | grep -i tbsecp3
tbsecp3              3260416  0
tas2101                24576  1 tbsecp3
dvb_core              131072  1 tbsecp3
$ lsmod | grep -i si21
si2157                 16384  8
si2183                 24576  8
i2c_mux                16384  2 si2183,tas2101
media                  40960  2 dvb_core,si2157

5.DVBデバイスの権限設定

/dev/dvb以下のデバイスがroot以外書き込めないので権限を設定します。

$ sudo ls -l /dev/dvb
合計 0
drwxr-xr-x 2 root root 120  8月 29 01:35 adapter0
drwxr-xr-x 2 root root 120  8月 29 01:35 adapter1
drwxr-xr-x 2 root root 120  8月 29 01:35 adapter2
drwxr-xr-x 2 root root 120  8月 29 01:35 adapter3
drwxr-xr-x 2 root root 120  8月 29 01:35 adapter4
drwxr-xr-x 2 root root 120  8月 29 01:35 adapter5
drwxr-xr-x 2 root root 120  8月 29 01:35 adapter6
drwxr-xr-x 2 root root 120  8月 29 01:35 adapter7
$ sudo gpasswd -a <Your Account> video
ユーザ <Your Account> をグループ video に追加
$ sudo chown -R root:video /dev/dvb
$ sudo chmod -R 775 /dev/dvb
$ sudo ls -l /dev/dvb
合計 0
drwxrwxr-x 2 root video 120  8月 29 01:35 adapter0
drwxrwxr-x 2 root video 120  8月 29 01:35 adapter1
drwxrwxr-x 2 root video 120  8月 29 01:35 adapter2
drwxrwxr-x 2 root video 120  8月 29 01:35 adapter3
drwxrwxr-x 2 root video 120  8月 29 01:35 adapter4
drwxrwxr-x 2 root video 120  8月 29 01:35 adapter5
drwxrwxr-x 2 root video 120  8月 29 01:35 adapter6
drwxrwxr-x 2 root video 120  8月 29 01:35 adapter7

6.dvbv5-zapの導入

dvbv5-zapはubuntuではdvb-toolsに含まれています。

$ sudo apt install dvb-tools

地デジの設定ファイルをダウンロードします。

$ wget -q https://github.com/Chinachu/dvbconf-for-isdb/archive/master.zip
$ unzip master.zip 
Archive:  master.zip
24cafe332fbc7c7167cc21540c138205b7bef217
   creating: dvbconf-for-isdb-master/
  inflating: dvbconf-for-isdb-master/README.md  
   creating: dvbconf-for-isdb-master/conf/
  inflating: dvbconf-for-isdb-master/conf/dvbv5_channels_isdbs.conf  
  inflating: dvbconf-for-isdb-master/conf/dvbv5_channels_isdbt.conf  
$ sudo cp dvbconf-for-isdb-master/conf/dvbv5_channels_isdbt.conf /etc/ISDBT-JP.conf

地デジの22CHにアクセスしてみます。チャンネルがロックされるのがわかります。敢えて詳細なログを表示させています。

$ $ dvbv5-zap -a 0 -C JP -c /etc/ISDBT-JP.conf -v -r -P 22
using demux '/dev/dvb/adapter0/demux0'
reading channels from file '/etc/ISDBT-JP.conf'
Device Turbosight TBS 6209 (Octa DVB-T/T2/C2/C(j83-a/b/c)/ (/dev/dvb/adapter0/frontend0) capabilities:
     CAN_2G_MODULATION
     CAN_FEC_1_2
     CAN_FEC_2_3
     CAN_FEC_3_4
     CAN_FEC_5_6
     CAN_FEC_7_8
     CAN_FEC_AUTO
     CAN_GUARD_INTERVAL_AUTO
     CAN_HIERARCHY_AUTO
     CAN_INVERSION_AUTO
     CAN_MULTISTREAM
     CAN_MUTE_TS
     CAN_QAM_16
     CAN_QAM_32
     CAN_QAM_64
     CAN_QAM_128
     CAN_QAM_256
     CAN_QAM_AUTO
     CAN_QPSK
     CAN_TRANSMISSION_MODE_AUTO
DVB API Version 5.10, Current v5 delivery system: ISDBT
Supported delivery systems: 
     DVBT
     DVBT2
     DVBC/ANNEX_A
    [ISDBT]
     DVBC/ANNEX_B
tuning to 527142857 Hz
pass all PID's to TS
  dvb_set_pesfilter 8192
       (0x00)

Got parameters for ISDBT:
FREQUENCY = 527142857
BANDWIDTH_HZ = 6000000
INVERSION = AUTO
GUARD_INTERVAL = AUTO
TRANSMISSION_MODE = AUTO
ISDBT_LAYER_ENABLED = 7
ISDBT_PARTIAL_RECEPTION = 0
ISDBT_SOUND_BROADCASTING = 0
ISDBT_SB_SUBCHANNEL_ID = 0
ISDBT_SB_SEGMENT_IDX = 0
ISDBT_SB_SEGMENT_COUNT = 0
ISDBT_LAYERA_FEC = AUTO
ISDBT_LAYERA_MODULATION = QAM/AUTO
ISDBT_LAYERA_SEGMENT_COUNT = 255
ISDBT_LAYERA_TIME_INTERLEAVING = 1
ISDBT_LAYERB_FEC = AUTO
ISDBT_LAYERB_MODULATION = QAM/AUTO
ISDBT_LAYERB_SEGMENT_COUNT = 255
ISDBT_LAYERB_TIME_INTERLEAVING = 1
ISDBT_LAYERC_FEC = AUTO
ISDBT_LAYERC_MODULATION = QAM/AUTO
ISDBT_LAYERC_SEGMENT_COUNT = 255
ISDBT_LAYERC_TIME_INTERLEAVING = 1
COUNTRY = 114
Lock   (0x1f) Signal= -41.00dBm C/N= 33.25dB
Lock   (0x1f) Signal= -41.00dBm C/N= 33.25dB
DVR interface '/dev/dvb/adapter0/dvr0' can now be opened
Lock   (0x1f) Signal= -41.00dBm C/N= 34.00dB

7.MirakurunとChinachuの設定

MirakurunとChinachuの設定は他のブログでも多数事例が紹介されていますので、そちらを参考にしてください。設定を変えたところだけ紹介します。

$ sudo mirakurun config tuners
- name: TBS6209-T0
  types:
    - GR
  command: dvbv5-zap -a 0 -C JP -c /etc/ISDBT-JP.conf -P -r <channel>
  dvbDevicePath: /dev/dvb/adapter0/dvr0
  decoder: arib-b25-stream-test

- name: TBS6209-T1
  types:
    - GR
  command: dvbv5-zap -a 1 -C JP -c /etc/ISDBT-JP.conf -P -r <channel>
  dvbDevicePath: /dev/dvb/adapter1/dvr0
  decoder: arib-b25-stream-test

- name: TBS6209-T2
  types:
    - GR
  command: dvbv5-zap -a 2 -C JP -c /etc/ISDBT-JP.conf -P -r <channel>
  dvbDevicePath: /dev/dvb/adapter2/dvr0
  decoder: arib-b25-stream-test

- name: TBS6209-T3
  types:
    - GR
  command: dvbv5-zap -a 3 -C JP -c /etc/ISDBT-JP.conf -P -r <channel>
  dvbDevicePath: /dev/dvb/adapter3/dvr0
  decoder: arib-b25-stream-test

- name: TBS6209-T4
  types:
    - GR
  command: dvbv5-zap -a 4 -C JP -c /etc/ISDBT-JP.conf -P -r <channel>
  dvbDevicePath: /dev/dvb/adapter4/dvr0
  decoder: arib-b25-stream-test

- name: TBS6209-T5
  types:
    - GR
  command: dvbv5-zap -a 5 -C JP -c /etc/ISDBT-JP.conf -P -r <channel>
  dvbDevicePath: /dev/dvb/adapter5/dvr0
  decoder: arib-b25-stream-test

- name: TBS6209-T6
  types:
    - GR
  command: dvbv5-zap -a 6 -C JP -c /etc/ISDBT-JP.conf -P -r <channel>
  dvbDevicePath: /dev/dvb/adapter6/dvr0
  decoder: arib-b25-stream-test

- name: TBS6209-T7
  types:
    - GR
  command: dvbv5-zap -a 7 -C JP -c /etc/ISDBT-JP.conf -P -r <channel>
  dvbDevicePath: /dev/dvb/adapte7/dvr0
  decoder: arib-b25-stream-test

TBS6209 + dvbv5-zap + Mirakurun + Chinachu」への2件のコメント

    1. Hi, jues.
      I have used PT3. It was very stable and a great tuner.
      If you would like to enjoy terrestrial digital broadcasting, BS broadcasting and CS broadcasting in Japan, this PT3 is recommended.
      On the other hand, it is not recommended for those who do not see BS or CS broadcasting. The reason is that there are few channels that can be recorded simultaneously. And the price is rising.

      I use TBS6209 on the terrestrial digital broadcasting 8 channel, but for now seven days it works without problems.
      The operating environment is
      1. Ununtu 16.04 Desktop
      2. TBS 6209 Linux Driver
      3. isdbt-capture (for Japan CH)
      4. Mirakurun
      5. EPG Station
      It is operating steadily.

      However, there are problems which have not been solved.
      When using Mirakurun, please register up to 7 tuners.
      When 8 tuners are registered and 8 tuners are used at the same time, the 8 th timeout will not work well.
      I decided to verify this problem.
      I recorded 8 tuners at the same time for 30 minutes and examined the state of the saved TS file, but there was no problem.
      I will post the results of this verification test on my blog at a later date.
      Although it was found that TBS6209 had no problem in this verification test, the location of the cause is yet to be known.
      Until the problem is solved, Mirakurun intends to operate 7 tuners.

コメントを残す

メールアドレスが公開されることはありません。 * が付いている欄は必須項目です