LoginSignup
0
3

More than 5 years have passed since last update.

DVBv5ツールを使用してチャンネルスキャン

Last updated at Posted at 2016-12-29

概要

v4l-utilsのdvb関連のソースコードとDVBドライバのソースコードを読んでいたら、ARIB-STD-B24対応のgconvも入っているしDVBv5のツールはISDB-TとISDB-Sに対応しているみたいなので、実際にチャンネルスキャンを試してみました。
結論から言うと、v4l-utilsをちょっと改造しましたが成功しました。

動作環境

項目 詳細
OS Gentoo Linux
Kernel 4.4.26-gentoo
DVBドライバ Kernel標準/LinuxTV
チューナ PT2/PT3

準備

標準のv4l-utilsとチャンネルスキャン用の改造版v4l-utilsをビルドし、標準版ではARIB-STD-B24対応のgconvがインストールされないので、改造版の方でインストールします。

# emerge =v4l-utils-1.10.1
# git clone https://github.com/KouCo/v4l-utils-jp
# cd v4l-utils-jp
# ./bootstrap.sh
# ./configure --disable-doxygen-doc --disable-doxygen-dot --disable-libv4l --disable-v4l2-compliance-libv4l --disable-v4l2-ctl-libv4l --disable-qv4l2 --enable-gconv --without-jpeg
# make

ARIB-STD-B24対応のgconvをインストール

# cd contrib/gconv/
# make install
# echo "GCONV_PATH=/usr/local/lib/gconv" > /etc/env.d/99gconv
# env-update
# source /etc/profile
# cd ../../../

チャンネルスキャン

標準のv4l-utilsのdvbv5-scanでもチャンネルスキャンは可能でしたが、ISDB-S用のイニシャルファイルを書くのが大変だったので、改造した方のdvbv5-scanを使用します。

  • イニシャルファイルのダウンロード
# git clone https://github.com/KouCo/dtv-jp-tools
  • 地上波 チャンネルスキャン
# ./v4l-utils-jp/utils/dvb/dvbv5-scan -C JP -a 1 -o ./isdbt.conf ./dtv-jp-tools/dtv-scan-tables-jp/jp-ISDBT-ALL
  • BS チャンネルスキャン
# ./v4l-utils-jp/utils/dvb/dvbv5-scan -C JP -a 0 -N -T 5 -o ./isdbs-bs.conf ./dtv-jp-tools/dtv-scan-tables-jp/jp-ISDBS-BS
  • CS チャンネルスキャン
# ./v4l-utils-jp/utils/dvb/dvbv5-scan -C JP -a 0 -N -T 5 -o ./isdbs-cs.conf ./dtv-jp-tools/dtv-scan-tables-jp/jp-ISDBS-CS
0
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
3