MENU
  • ホーム
  • サービス
  • 記事一覧
  • お問い合わせ
プログラミングやサーバー設定など様々な内容を紹介しています。
HIROTRONの部屋
  • ホーム
  • サービス
  • 記事一覧
  • お問い合わせ
HIROTRONの部屋
  • ホーム
  • サービス
  • 記事一覧
  • お問い合わせ
  1. ホーム
  2. DTV
  3. Linuxでsoftcasを使う 録画鯖 libyakisoba libsobacas libaribb25の活用

Linuxでsoftcasを使う 録画鯖 libyakisoba libsobacas libaribb25の活用

2025 12/03
DTV
2025年12月2日2025年12月3日

Linuxでsoftcasを使う libyakisoba libsobacas libaribb25の活用

WindowsでPT3を用いて、DTVをしていたのですが、Windows11のアップデート関連で不安定だったり、そもそもPT3のドライバーがWindows11に若干非対応(対応する策はあるのだが、上手く行ったり行かなかったりなどとても面倒)など、様々な理由あり、安定性にかけていたところがありました。そんな中、つくみ島だより 様がLinuxで構築するとてもわかり易いガイドを公開、私もLinuxに移行しようかと思いました!

つくみ島だより
【2023年10月】Ubuntu + Mirakurun + EDCB-Wine + KonomiTV (px4_drv + recisdb + ISDBScanner) でパパッと… またまたお久しぶりです。録画関連の記事書いたのいつ以来だろう…。訳あって、最近 Linux 環境の録画サーバー構築を手軽にできるような諸々の調整をいろいろ進めています。…

ただ、移行に際して、私の環境では、物理のBCASカードではなく、Softcasを使用していたため、どうやってSoftcasに移行しようかと考えているとこんなGithubのレポジトリを発見

GitHub
GitHub – tsunoda14/libsobacas: PC/SC compatible, ECM deocder library PC/SC compatible, ECM deocder library. Contribute to tsunoda14/libsobacas development by creating an account on GitHub.

巷では、libpcsclite.soをlibpcsckai.soなどに名前変更などで対処している方がいるが、それはあまりスマートなやり方ではないし、面倒である。

これなら、つくみ島だより 様の構築ガイドの “recisdb のインストール” 部分のみ変更すれば実現できると思いました。

今回はそのやり方について解説します。

ここでの解説は”recisdb のインストール”の代替手段の解説ですので、これ以外の部分はつくみ島だより 様の方を参照してください。

くれぐれも自己責任でお願いしますよ。

私の環境

私は仮想環境内にVMを作成して行っています。今回の構築に関しては仮想環境である必要はありません。
需要があればGPUとPT3のパススルー方法についての記事を作成しようとも思っているので、コメントを下さい!

仮想環境:Proxmox Virtual Environment 8.4.14

ハード:A520M-A PRO, Ryzen 5 4650G, Corsair DDR4 32GB(3600MHz), NVMe 512GB

VMは以下の設定

メモリ:12.00GiB, プロセッサ:8 (1 sockets, 8 cores), BIOS OVMF(UEFI), マシン:q35
PCIデバイス(hostpci0) 0000:10:00.0,pcie=1,x-vga=1 → GPU
PCIデバイス(hostpci0) 0000:23:00.0,pcie=1 → PT3
あと、HDDのパススルーなど

OS:Ubuntu Desktop 24.04.01
OSはServer版でもできるが、GPUをパススルーしている関係で今回はDesktop版を使用している。

目次

構築方法

ホームディレクトリに適当な作業フォルダを作成

sudo mkdir dtv
cd dtv

必要なライブラリをインストール

sudo apt-get install autoconf automake cmake libtool libpcsclite-dev

これ以外にもnot found “〇〇” が出たら適宜インストールしてください。

libyakisobaのインストール

libsobacasにはlibyakisobaが必要なので、まずはこれをインストールしましょう。

GitHub
GitHub – tsunoda14/libyakisoba: ECM/EMM decoder library for ISDB ECM/EMM decoder library for ISDB. Contribute to tsunoda14/libyakisoba development by creating an account on GitHub.
sudo git clone https://github.com/tsunoda14/libyakisoba.git
実行結果

Cloning into ‘libyakisoba’…
remote: Enumerating objects: 22, done.
remote: Counting objects: 100% (22/22), done.
remote: Compressing objects: 100% (21/21), done.
remote: Total 22 (delta 0), reused 22 (delta 0), pack-reused 0 (from 0)
Receiving objects: 100% (22/22), 28.27 KiB | 2.57 MiB/s, done.

sudo autoreconf -i
実行結果
aclocal: warning: couldn't open directory 'm4': No such file or directory
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'build-aux'.
libtoolize: copying file 'build-aux/ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
libtoolize: copying file 'm4/libtool.m4'
libtoolize: copying file 'm4/ltoptions.m4'
libtoolize: copying file 'm4/ltsugar.m4'
libtoolize: copying file 'm4/ltversion.m4'
libtoolize: copying file 'm4/lt~obsolete.m4'
configure.ac:15: warning: The macro `AC_PROG_CC_STDC' is obsolete.
configure.ac:15: You should run autoupdate.
./lib/autoconf/c.m4:1666: AC_PROG_CC_STDC is expanded from...
configure.ac:15: the top level
configure.ac:10: installing 'build-aux/compile'
configure.ac:10: installing 'build-aux/config.guess'
configure.ac:10: installing 'build-aux/config.sub'
configure.ac:11: installing 'build-aux/install-sh'
configure.ac:11: installing 'build-aux/missing'
src/Makefile.am: installing 'build-aux/depcomp'
parallel-tests: installing 'build-aux/test-driver'
sudo mkdir build
cd build
sudo ../configure --sysconfdir /usr/local/etc
実行結果
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking how to print strings... printf
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc option to enable C11 features... none needed
checking whether gcc understands -c and -o together... yes
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for file... file
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking for gawk... gawk
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /usr/bin/dd
checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1
checking for mt... mt
checking if mt is a manifest tool... no
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a race-free mkdir -p... /usr/bin/mkdir -p
checking whether make sets $(MAKE)... yes
checking whether make supports the include directive... yes (GNU style)
checking whether make supports nested variables... yes
checking dependency style of gcc... gcc3
checking for gcc... (cached) gcc
checking whether the compiler supports GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to enable C11 features... (cached) none needed
checking whether gcc understands -c and -o together... (cached) yes
checking for g++... g++
checking whether the compiler supports GNU C++... yes
checking whether g++ accepts -g... yes
checking for g++ option to enable C++11 features... none needed
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking dependency style of g++... gcc3
checking for arpa/inet.h... yes
checking for stdint.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for int16_t... yes
checking for int32_t... yes
checking for int64_t... yes
checking for int8_t... yes
checking for size_t... yes
checking for uint16_t... yes
checking for uint32_t... yes
checking for uint64_t... yes
checking for uint8_t... yes
checking for an ANSI C-conforming const... yes
checking for memmove... yes
checking for memset... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating config.h
config.status: executing libtool commands
config.status: executing depfiles commands
sudo make
実行結果
make  all-recursive
make[1]: Entering directory '/home/hiroto/dtv/libyakisoba/build'
Making all in src
make[2]: Entering directory '/home/hiroto/dtv/libyakisoba/build/src'
/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../src -I..     -g -O2 -MT Crypto.lo -MD -MP -MF .deps/Crypto.Tpo -c -o Crypto.lo ../../src/Crypto.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../src -I.. -g -O2 -MT Crypto.lo -MD -MP -MF .deps/Crypto.Tpo -c ../../src/Crypto.c  -fPIC -DPIC -o .libs/Crypto.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../src -I.. -g -O2 -MT Crypto.lo -MD -MP -MF .deps/Crypto.Tpo -c ../../src/Crypto.c -o Crypto.o >/dev/null 2>&1
mv -f .deps/Crypto.Tpo .deps/Crypto.Plo
/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../src -I..     -g -O2 -MT Decoder-ECM.lo -MD -MP -MF .deps/Decoder-ECM.Tpo -c -o Decoder-ECM.lo ../../src/Decoder-ECM.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../src -I.. -g -O2 -MT Decoder-ECM.lo -MD -MP -MF .deps/Decoder-ECM.Tpo -c ../../src/Decoder-ECM.c  -fPIC -DPIC -o .libs/Decoder-ECM.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../src -I.. -g -O2 -MT Decoder-ECM.lo -MD -MP -MF .deps/Decoder-ECM.Tpo -c ../../src/Decoder-ECM.c -o Decoder-ECM.o >/dev/null 2>&1
mv -f .deps/Decoder-ECM.Tpo .deps/Decoder-ECM.Plo
/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../src -I..     -g -O2 -MT Decoder-EMM.lo -MD -MP -MF .deps/Decoder-EMM.Tpo -c -o Decoder-EMM.lo ../../src/Decoder-EMM.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../src -I.. -g -O2 -MT Decoder-EMM.lo -MD -MP -MF .deps/Decoder-EMM.Tpo -c ../../src/Decoder-EMM.c  -fPIC -DPIC -o .libs/Decoder-EMM.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../src -I.. -g -O2 -MT Decoder-EMM.lo -MD -MP -MF .deps/Decoder-EMM.Tpo -c ../../src/Decoder-EMM.c -o Decoder-EMM.o >/dev/null 2>&1
mv -f .deps/Decoder-EMM.Tpo .deps/Decoder-EMM.Plo
/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../src -I..     -g -O2 -MT Keyset.lo -MD -MP -MF .deps/Keyset.Tpo -c -o Keyset.lo ../../src/Keyset.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../src -I.. -g -O2 -MT Keyset.lo -MD -MP -MF .deps/Keyset.Tpo -c ../../src/Keyset.c  -fPIC -DPIC -o .libs/Keyset.o
../../src/Keyset.c: In function 'load_keys':
../../src/Keyset.c:168:17: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
  168 |                 fscanf(f, "%*[^\n]");
      |                 ^~~~~~~~~~~~~~~~~~~~
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../src -I.. -g -O2 -MT Keyset.lo -MD -MP -MF .deps/Keyset.Tpo -c ../../src/Keyset.c -o Keyset.o >/dev/null 2>&1
mv -f .deps/Keyset.Tpo .deps/Keyset.Plo
/bin/bash ../libtool  --tag=CC   --mode=link gcc  -g -O2 -export-symbols-regex ^bcas_ -version-info 0:1:0  -o libyakisoba.la -rpath /usr/local/lib Crypto.lo Decoder-ECM.lo Decoder-EMM.lo Keyset.lo  
libtool: link: /usr/bin/nm -B  .libs/Crypto.o .libs/Decoder-ECM.o .libs/Decoder-EMM.o .libs/Keyset.o   | /usr/bin/sed -n -e 's/^.*[      ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[         ][      ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p' | /usr/bin/sed '/ __gnu_lto/d' | /usr/bin/sed 's/.* //' | sort | uniq > .libs/libyakisoba.exp
libtool: link: /usr/bin/grep -E -e "^bcas_" ".libs/libyakisoba.exp" > ".libs/libyakisoba.expT"
libtool: link: mv -f ".libs/libyakisoba.expT" ".libs/libyakisoba.exp"
libtool: link: echo "{ global:" > .libs/libyakisoba.ver
libtool: link:  cat .libs/libyakisoba.exp | /usr/bin/sed -e "s/\(.*\)/\1;/" >> .libs/libyakisoba.ver
libtool: link:  echo "local: *; };" >> .libs/libyakisoba.ver
libtool: link:  gcc -shared  -fPIC -DPIC  .libs/Crypto.o .libs/Decoder-ECM.o .libs/Decoder-EMM.o .libs/Keyset.o    -g -O2   -Wl,-soname -Wl,libyakisoba.so.0 -Wl,-version-script -Wl,.libs/libyakisoba.ver -o .libs/libyakisoba.so.0.0.1
libtool: link: (cd ".libs" && rm -f "libyakisoba.so.0" && ln -s "libyakisoba.so.0.0.1" "libyakisoba.so.0")
libtool: link: (cd ".libs" && rm -f "libyakisoba.so" && ln -s "libyakisoba.so.0.0.1" "libyakisoba.so")
libtool: link: ar cr .libs/libyakisoba.a  Crypto.o Decoder-ECM.o Decoder-EMM.o Keyset.o
libtool: link: ranlib .libs/libyakisoba.a
libtool: link: ( cd ".libs" && rm -f "libyakisoba.la" && ln -s "../libyakisoba.la" "libyakisoba.la" )
make[2]: Leaving directory '/home/hiroto/dtv/libyakisoba/build/src'
make[2]: Entering directory '/home/hiroto/dtv/libyakisoba/build'
make[2]: Leaving directory '/home/hiroto/dtv/libyakisoba/build'
make[1]: Leaving directory '/home/hiroto/dtv/libyakisoba/build'
sudo make install
実行結果
Making install in src
make[1]: Entering directory '/home/hiroto/dtv/libyakisoba/build/src'
make[2]: Entering directory '/home/hiroto/dtv/libyakisoba/build/src'
 /usr/bin/mkdir -p '/usr/local/etc'
 /usr/bin/install -c -m 644 ../../src/bcas_keys '/usr/local/etc'
 /usr/bin/mkdir -p '/usr/local/lib'
 /bin/bash ../libtool   --mode=install /usr/bin/install -c   libyakisoba.la '/usr/local/lib'
libtool: install: /usr/bin/install -c .libs/libyakisoba.so.0.0.1 /usr/local/lib/libyakisoba.so.0.0.1
libtool: install: (cd /usr/local/lib && { ln -s -f libyakisoba.so.0.0.1 libyakisoba.so.0 || { rm -f libyakisoba.so.0 && ln -s libyakisoba.so.0.0.1 libyakisoba.so.0; }; })
libtool: install: (cd /usr/local/lib && { ln -s -f libyakisoba.so.0.0.1 libyakisoba.so || { rm -f libyakisoba.so && ln -s libyakisoba.so.0.0.1 libyakisoba.so; }; })
libtool: install: /usr/bin/install -c .libs/libyakisoba.lai /usr/local/lib/libyakisoba.la
libtool: install: /usr/bin/install -c .libs/libyakisoba.a /usr/local/lib/libyakisoba.a
libtool: install: chmod 644 /usr/local/lib/libyakisoba.a
libtool: install: ranlib /usr/local/lib/libyakisoba.a
libtool: finish: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin:/sbin" ldconfig -n /usr/local/lib
----------------------------------------------------------------------
Libraries have been installed in:
   /usr/local/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the '-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the 'LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the 'LD_RUN_PATH' environment variable
     during linking
   - use the '-Wl,-rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to '/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
 /usr/bin/mkdir -p '/usr/local/include'
 /usr/bin/install -c -m 644 ../../src/yakisoba.h '/usr/local/include'
make[2]: Leaving directory '/home/hiroto/dtv/libyakisoba/build/src'
make[1]: Leaving directory '/home/hiroto/dtv/libyakisoba/build/src'
make[1]: Entering directory '/home/hiroto/dtv/libyakisoba/build'
make[2]: Entering directory '/home/hiroto/dtv/libyakisoba/build'
make[2]: Nothing to be done for 'install-exec-am'.
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/home/hiroto/dtv/libyakisoba/build'
make[1]: Leaving directory '/home/hiroto/dtv/libyakisoba/build'

libsobacasのインストール

GitHub
GitHub – tsunoda14/libsobacas: PC/SC compatible, ECM deocder library PC/SC compatible, ECM deocder library. Contribute to tsunoda14/libsobacas development by creating an account on GitHub.

dtvフォルダに戻って

cd ../../
sudo git clone https://github.com/tsunoda14/libsobacas.git
実行結果
Cloning into 'libsobacas'...
remote: Enumerating objects: 14, done.
remote: Counting objects: 100% (14/14), done.
remote: Compressing objects: 100% (14/14), done.
remote: Total 14 (delta 0), reused 14 (delta 0), pack-reused 0 (from 0)
Receiving objects: 100% (14/14), 28.07 KiB | 563.00 KiB/s, done.
sudo autoreconf -i
実行結果
aclocal: warning: couldn't open directory 'm4': No such file or directory
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'build-aux'.
libtoolize: copying file 'build-aux/ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
libtoolize: copying file 'm4/libtool.m4'
libtoolize: copying file 'm4/ltoptions.m4'
libtoolize: copying file 'm4/ltsugar.m4'
libtoolize: copying file 'm4/ltversion.m4'
libtoolize: copying file 'm4/lt~obsolete.m4'
configure.ac:9: installing 'build-aux/compile'
configure.ac:9: installing 'build-aux/config.guess'
configure.ac:9: installing 'build-aux/config.sub'
configure.ac:10: installing 'build-aux/install-sh'
configure.ac:10: installing 'build-aux/missing'
Makefile.am: installing 'build-aux/depcomp'
sudo mkdir build
cd build
sudo ../configure
実行結果
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking how to print strings... printf
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc option to enable C11 features... none needed
checking whether gcc understands -c and -o together... yes
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for file... file
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking for gawk... gawk
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /usr/bin/dd
checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1
checking for mt... mt
checking if mt is a manifest tool... no
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a race-free mkdir -p... /usr/bin/mkdir -p
checking whether make sets $(MAKE)... yes
checking whether make supports the include directive... yes (GNU style)
checking whether make supports nested variables... yes
checking dependency style of gcc... gcc3
checking for gcc... (cached) gcc
checking whether the compiler supports GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to enable C11 features... (cached) none needed
checking whether gcc understands -c and -o together... (cached) yes
checking for library containing bcas_decodeECM... -lyakisoba
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for yakisoba.h... yes
checking for GNU libc compatible malloc... yes
checking for select... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: executing libtool commands
config.status: executing depfiles commands
sudo make
実行結果
/bin/bash ./libtool  --tag=CC   --mode=compile gcc -DPACKAGE_NAME=\"libsobacas\" -DPACKAGE_TARNAME=\"libsobacas\" -DPACKAGE_VERSION=\"0.1\" -DPACKAGE_STRING=\"libsobacas\ 0.1\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DPACKAGE=\"libsobacas\" -DVERSION=\"0.1\" -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -Dorig_cfflags=\"-g\ -O2\" -DCFLAGS=\"-g\ -O2\ \" -DHAVE_YAKISOBA_H=1 -DCFLAGS=orig_cfflags -DHAVE_MALLOC=1 -DHAVE_SELECT=1 -I. -I..    -I../PCSC   -g -O2 -MT libsobacas_la-winscard-wrapper.lo -MD -MP -MF .deps/libsobacas_la-winscard-wrapper.Tpo -c -o libsobacas_la-winscard-wrapper.lo `test -f 'winscard-wrapper.c' || echo '../'`winscard-wrapper.c
libtool: compile:  gcc -DPACKAGE_NAME=\"libsobacas\" -DPACKAGE_TARNAME=\"libsobacas\" -DPACKAGE_VERSION=\"0.1\" "-DPACKAGE_STRING=\"libsobacas 0.1\"" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DPACKAGE=\"libsobacas\" -DVERSION=\"0.1\" -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 "-Dorig_cfflags=\"-g -O2\"" "-DCFLAGS=\"-g -O2 \"" -DHAVE_YAKISOBA_H=1 -DCFLAGS=orig_cfflags -DHAVE_MALLOC=1 -DHAVE_SELECT=1 -I. -I.. -I../PCSC -g -O2 -MT libsobacas_la-winscard-wrapper.lo -MD -MP -MF .deps/libsobacas_la-winscard-wrapper.Tpo -c ../winscard-wrapper.c  -fPIC -DPIC -o .libs/libsobacas_la-winscard-wrapper.o
<command-line>: warning: "CFLAGS" redefined
<command-line>: note: this is the location of the previous definition
libtool: compile:  gcc -DPACKAGE_NAME=\"libsobacas\" -DPACKAGE_TARNAME=\"libsobacas\" -DPACKAGE_VERSION=\"0.1\" "-DPACKAGE_STRING=\"libsobacas 0.1\"" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DPACKAGE=\"libsobacas\" -DVERSION=\"0.1\" -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 "-Dorig_cfflags=\"-g -O2\"" "-DCFLAGS=\"-g -O2 \"" -DHAVE_YAKISOBA_H=1 -DCFLAGS=orig_cfflags -DHAVE_MALLOC=1 -DHAVE_SELECT=1 -I. -I.. -I../PCSC -g -O2 -MT libsobacas_la-winscard-wrapper.lo -MD -MP -MF .deps/libsobacas_la-winscard-wrapper.Tpo -c ../winscard-wrapper.c -o libsobacas_la-winscard-wrapper.o >/dev/null 2>&1
mv -f .deps/libsobacas_la-winscard-wrapper.Tpo .deps/libsobacas_la-winscard-wrapper.Plo
/bin/bash ./libtool  --tag=CC   --mode=link gcc -I../PCSC   -g -O2   -o libsobacas.la -rpath /usr/local/lib libsobacas_la-winscard-wrapper.lo -lyakisoba 
libtool: link: gcc -shared  -fPIC -DPIC  .libs/libsobacas_la-winscard-wrapper.o   -lyakisoba  -g -O2   -Wl,-soname -Wl,libsobacas.so.0 -o .libs/libsobacas.so.0.0.0
libtool: link: (cd ".libs" && rm -f "libsobacas.so.0" && ln -s "libsobacas.so.0.0.0" "libsobacas.so.0")
libtool: link: (cd ".libs" && rm -f "libsobacas.so" && ln -s "libsobacas.so.0.0.0" "libsobacas.so")
libtool: link: ar cr .libs/libsobacas.a  libsobacas_la-winscard-wrapper.o
libtool: link: ranlib .libs/libsobacas.a
libtool: link: ( cd ".libs" && rm -f "libsobacas.la" && ln -s "../libsobacas.la" "libsobacas.la" )
sudo make install
実行結果
make[1]: Entering directory '/home/hiroto/dtv/libsobacas/build'
 /usr/bin/mkdir -p '/usr/local/lib'
 /bin/bash ./libtool   --mode=install /usr/bin/install -c   libsobacas.la '/usr/local/lib'
libtool: install: /usr/bin/install -c .libs/libsobacas.so.0.0.0 /usr/local/lib/libsobacas.so.0.0.0
libtool: install: (cd /usr/local/lib && { ln -s -f libsobacas.so.0.0.0 libsobacas.so.0 || { rm -f libsobacas.so.0 && ln -s libsobacas.so.0.0.0 libsobacas.so.0; }; })
libtool: install: (cd /usr/local/lib && { ln -s -f libsobacas.so.0.0.0 libsobacas.so || { rm -f libsobacas.so && ln -s libsobacas.so.0.0.0 libsobacas.so; }; })
libtool: install: /usr/bin/install -c .libs/libsobacas.lai /usr/local/lib/libsobacas.la
libtool: install: /usr/bin/install -c .libs/libsobacas.a /usr/local/lib/libsobacas.a
libtool: install: chmod 644 /usr/local/lib/libsobacas.a
libtool: install: ranlib /usr/local/lib/libsobacas.a
libtool: finish: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin:/sbin" ldconfig -n /usr/local/lib
----------------------------------------------------------------------
Libraries have been installed in:
   /usr/local/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the '-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the 'LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the 'LD_RUN_PATH' environment variable
     during linking
   - use the '-Wl,-rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to '/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
make[1]: Leaving directory '/home/hiroto/dtv/libsobacas/build'

libyakisobaとlibsobacasがインストールされたか確認

ls /usr/local/lib

以下のようにライブラリがあればOKです。(これ以外のファイルについては関係ないので気にしなくてよいです)

libsobacas.a   libsobacas.so.0      libyakisoba.la    libyakisoba.so.0.0.1
libsobacas.la  libsobacas.so.0.0.0  libyakisoba.so    libsobacas.so
libyakisoba.a  libyakisoba.so.0

bcas_keysの配置

/usr/local/etc/内にbcas_keysを作成します。

sudo nano /usr/local/etc/bcas_keys

内容は

#CardID  = f0 f1 f2 f3 f4 f5 f6 f7
#CardKey = 00 01 02 03 04 05 06 07

# Safetynet
Key[1d][00] = 00 00 00 00 00 00 00 00
Key[1d][00] = 00 00 00 00 00 00 00 00

# NHK
Key[1e][00] = 00 00 00 00 00 00 00 00
Key[1e][00] = 00 00 00 00 00 00 00 00

# Email
Key[20][00] = 00 00 00 00 00 00 00 00
Key[20][00] = 00 00 00 00 00 00 00 00

#WOWOW
Key[02][00] = 00 00 00 00 00 00 00 00
Key[02][00] = 00 00 00 00 00 00 00 00

#Star Channel HD
Key[03][00] = 00 00 00 00 00 00 00 00
Key[03][00] = 00 00 00 00 00 00 00 00

#SkyPerfecTV
Key[17][00] = 00 00 00 00 00 00 00 00
Key[17][00] = 00 00 00 00 00 00 00 00

Kwの更新は以下のようにします

KWが以下であれば

KW0=01 02 03 04 05 06 07 08 09
KW1=a1 a2 a3 a4 a5 a6 a7 a8 a9

以下のように記述します。

Key[00][01] = 02 03 04 05 06 07 08 09
Key[00][a1] = a2 a3 a4 a5 a6 a7 a8 a9

書き換えが終わると即時で反映されます。

recisdbのインストール

recisdbは物理カードリーダを読み込むlibaribb25を参照するためそのまま使えません。そのため、libsobacasに読み込むように編集を加えます。

GitHub
GitHub – kazuki0824/recisdb-rs: recisdb-rs and b25-sys are more convenient Rust wrapper for libaribb… recisdb-rs and b25-sys are more convenient Rust wrapper for libaribb25. recisdb can read both Unix character device-based and BonDriver-based TV sources. – kazu…

dtvフォルダに戻って

cd ../
sudo git clone --recursive https://github.com/kazuki0824/recisdb-rs.git
実行結果
Cloning into 'recisdb-rs'...
remote: Enumerating objects: 2701, done.
remote: Counting objects: 100% (597/597), done.
remote: Compressing objects: 100% (291/291), done.
remote: Total 2701 (delta 369), reused 324 (delta 306), pack-reused 2104 (from 3)
Receiving objects: 100% (2701/2701), 547.14 KiB | 6.51 MiB/s, done.
Resolving deltas: 100% (1540/1540), done.
Submodule 'b25-sys/externals/libaribb25' (https://github.com/tsukumijima/libaribb25.git) registered for path 'b25-sys/externals/libaribb25'
Cloning into '/home/hiroto/dtv/recisdb-rs/b25-sys/externals/libaribb25'...
remote: Enumerating objects: 1063, done.        
remote: Counting objects: 100% (306/306), done.        
remote: Compressing objects: 100% (77/77), done.        
remote: Total 1063 (delta 245), reused 229 (delta 229), pack-reused 757 (from 1)        
Receiving objects: 100% (1063/1063), 350.44 KiB | 2.16 MiB/s, done.
Resolving deltas: 100% (702/702), done.
Submodule path 'b25-sys/externals/libaribb25': checked out '3d65709490841577e8d3bd0338a759062417d84e'

必要なものをインストールします。

sudo apt install -y build-essential libclang-dev cmake libdvbv5-dev libpcsclite-dev libudev-dev pkg-config

Rustupをインストールします。途中の質問は”1″でよいです。

sudo curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
実行結果
info: downloading installer
warn: It looks like you have an existing rustup settings file at:
warn: /home/hiroto/.rustup/settings.toml
warn: Rustup will install the default toolchain as specified in the settings file,
warn: instead of the one inferred from the default host triple.

Welcome to Rust!

This will download and install the official compiler for the Rust
programming language, and its package manager, Cargo.

Rustup metadata and toolchains will be installed into the Rustup
home directory, located at:

  /home/hiroto/.rustup

This can be modified with the RUSTUP_HOME environment variable.

The Cargo home directory is located at:

  /home/hiroto/.cargo

This can be modified with the CARGO_HOME environment variable.

The cargo, rustc, rustup and other commands will be added to
Cargo's bin directory, located at:

  /home/hiroto/.cargo/bin

This path will then be added to your PATH environment variable by
modifying the profile files located at:

  /home/hiroto/.profile
  /home/hiroto/.bashrc

You can uninstall at any time with rustup self uninstall and
these changes will be reverted.

Current installation options:


   default host triple: x86_64-unknown-linux-gnu
     default toolchain: stable (default)
               profile: default
  modify PATH variable: yes

1) Proceed with standard installation (default - just press enter)
2) Customize installation
3) Cancel installation
>1

info: profile set to 'default'
info: default host triple is x86_64-unknown-linux-gnu
warn: Updating existing toolchain, profile choice will be ignored
info: syncing channel updates for 'stable-x86_64-unknown-linux-gnu'
info: latest update on 2025-11-10, rust version 1.91.1 (ed61e7d7e 2025-11-07)
info: downloading component 'cargo'
info: downloading component 'clippy'
info: downloading component 'rust-docs'
info: downloading component 'rust-std'
info: downloading component 'rustc'
 74.5 MiB /  74.5 MiB (100 %)  34.2 MiB/s in  2s         
info: downloading component 'rustfmt'
info: removing previous version of component 'cargo'
info: removing previous version of component 'clippy'
info: removing previous version of component 'rust-docs'
info: removing previous version of component 'rust-std'
info: removing previous version of component 'rustc'
info: removing previous version of component 'rustfmt'
info: installing component 'cargo'
info: installing component 'clippy'
info: installing component 'rust-docs'
 20.4 MiB /  20.4 MiB (100 %)   7.0 MiB/s in  2s         
info: installing component 'rust-std'
 27.9 MiB /  27.9 MiB (100 %)  14.8 MiB/s in  2s         
info: installing component 'rustc'
 74.5 MiB /  74.5 MiB (100 %)  15.7 MiB/s in  5s         
info: installing component 'rustfmt'
info: default toolchain set to 'stable-x86_64-unknown-linux-gnu'

  stable-x86_64-unknown-linux-gnu updated - rustc 1.91.1 (ed61e7d7e 2025-11-07) (from rustc 1.84.0 (9fc6b4312 2025-01-07))


Rust is installed now. Great!

To get started you may need to restart your current shell.
This would reload your PATH environment variable to include
Cargo's bin directory ($HOME/.cargo/bin).

To configure your current shell, you need to source
the corresponding env file under $HOME/.cargo.

This is usually done by running one of the following (note the leading DOT):
. "$HOME/.cargo/env"            # For sh/bash/zsh/ash/dash/pdksh
source "$HOME/.cargo/env.fish"  # For fish
source $"($nu.home-path)/.cargo/env.nu"  # For nushell

環境変数を設定します。

. "$HOME/.cargo/env"

以下のコマンドを入力し、バージョンが表示されればOKです。

cargo --version
実行結果
cargo 1.91.1 (ea2d97820 2025-10-10)

ビルドします。

cargo build -F dvb --release
実行結果
    Updating git repository `https://gitlab.com/kazuki08241/rust-libdvbv5.git`
    Updating git repository `https://gitlab.com/kazuki08241/rust-libdvbv5-sys.git`
    Updating crates.io index
    Updating git repository `https://github.com/kazuki0824/cryptographies-reference.git`
  Downloaded async-channel v1.9.0
  Downloaded env_filter v0.1.3
  Downloaded fastrand v1.9.0
  Downloaded futures-lite v1.13.0
  Downloaded glob v0.3.2
  Downloaded futures-core v0.3.31
  Downloaded concurrent-queue v2.5.0
  Downloaded waker-fn v1.2.0
  Downloaded number_prefix v0.4.0
  Downloaded quick-error v2.0.1
  Downloaded simd-adler32 v0.3.7
  Downloaded slab v0.4.9
  Downloaded ryu v1.0.20
  Downloaded utf8parse v0.2.2
  Downloaded tempfile v3.17.1
  Downloaded xz2 v0.1.7
  Downloaded unicode-ident v1.0.18
  Downloaded minimal-lexical v0.2.1
  Downloaded hashbrown v0.15.2
  Downloaded zopfli v0.8.1
  Downloaded serde v1.0.218
  Downloaded nom v7.1.3
  Downloaded itertools v0.14.0
  Downloaded portable-atomic v1.11.0
  Downloaded toml_edit v0.22.24
  Downloaded bindgen v0.71.1
  Downloaded serde_json v1.0.140
  Downloaded rayon v1.10.0
  Downloaded winnow v0.7.3
  Downloaded regex v1.11.1
  Downloaded nix v0.29.0
  Downloaded chrono v0.4.40
  Downloaded syn v2.0.99
  Downloaded unicode-width v0.2.0
  Downloaded rustix v0.38.44
  Downloaded rustix v0.37.28
  Downloaded regex-syntax v0.8.5
  Downloaded itertools v0.13.0
  Downloaded futures-util v0.3.31
  Downloaded memchr v2.7.4
  Downloaded regex-automata v0.4.9
  Downloaded indexmap v2.7.1
  Downloaded flate2 v1.1.0
  Downloaded toml v0.8.20
  Downloaded lzma-sys v0.1.20
  Downloaded libc v0.2.170
  Downloaded tar v0.4.44
  Downloaded socket2 v0.4.10
  Downloaded rayon-core v1.12.1
  Downloaded linux-raw-sys v0.3.8
  Downloaded clap_builder v4.5.31
  Downloaded toml_datetime v0.6.8
  Downloaded strsim v0.11.1
  Downloaded serde_derive v1.0.218
  Downloaded elf v0.7.4
  Downloaded bumpalo v3.17.0
  Downloaded miniz_oxide v0.8.5
  Downloaded proc-macro2 v1.0.94
  Downloaded polling v2.8.0
  Downloaded num-traits v0.2.19
  Downloaded log v0.4.26
  Downloaded indicatif v0.17.11
  Downloaded linux-raw-sys v0.4.15
  Downloaded cpp_utils v0.3.0
  Downloaded futures-time v3.0.0
  Downloaded clap-num v1.2.0
  Downloaded shlex v1.3.0
  Downloaded serde_spanned v0.6.8
  Downloaded quote v1.0.39
  Downloaded pkg-config v0.3.32
  Downloaded pin-project-lite v0.2.16
  Downloaded once_cell v1.20.3
  Downloaded lockfree-object-pool v0.1.6
  Downloaded libloading v0.8.6
  Downloaded jobserver v0.1.32
  Downloaded iana-time-zone v0.1.61
  Downloaded pin-utils v0.1.0
  Downloaded parking v2.2.1
  Downloaded itoa v1.0.15
  Downloaded is_terminal_polyfill v1.70.1
  Downloaded humantime v2.1.0
  Downloaded heck v0.5.0
  Downloaded clap v4.5.31
  Downloaded bitflags v2.9.0
  Downloaded io-lifetimes v1.0.11
  Downloaded getrandom v0.3.1
  Downloaded cargo-deb v2.11.2
  Downloaded env_logger v0.11.6
  Downloaded crossbeam-epoch v0.9.18
  Downloaded clap_derive v4.5.28
  Downloaded clang-sys v1.8.1
  Downloaded rustc-hash v2.1.1
  Downloaded futures-task v0.3.31
  Downloaded futures-io v0.3.31
  Downloaded futures-executor v0.3.31
  Downloaded filetime v0.2.25
  Downloaded fastrand v2.3.0
  Downloaded event-listener v2.5.3
  Downloaded console v0.15.11
  Downloaded colored v3.0.0
  Downloaded cexpr v0.6.0
  Downloaded colorchoice v1.0.3
  Downloaded clap_lex v0.7.4
  Downloaded autocfg v1.4.0
  Downloaded equivalent v1.0.2
  Downloaded crossbeam-deque v0.8.6
  Downloaded crc32fast v1.4.2
  Downloaded cargo_toml v0.21.0
  Downloaded errno v0.3.10
  Downloaded either v1.14.0
  Downloaded crossbeam-utils v0.8.21
  Downloaded cmake v0.1.54
  Downloaded cfg_aliases v0.2.1
  Downloaded cfg-if v1.0.0
  Downloaded cc v1.2.21
  Downloaded bitflags v1.3.2
  Downloaded async-lock v2.8.0
  Downloaded aho-corasick v1.1.3
  Downloaded ctrlc v3.4.5
  Downloaded async-io v1.13.0
  Downloaded ar v0.9.0
  Downloaded anstyle-parse v0.2.6
  Downloaded anstyle v1.0.10
  Downloaded anstream v0.6.18
  Downloaded anstyle-query v1.1.2
  Downloaded adler2 v2.0.0
  Downloaded 126 crates (12.5MiB) in 0.99s (largest was `linux-raw-sys` at 2.1MiB)
   Compiling libc v0.2.170
   Compiling proc-macro2 v1.0.94
   Compiling unicode-ident v1.0.18
   Compiling autocfg v1.4.0
   Compiling pkg-config v0.3.32
   Compiling shlex v1.3.0
   Compiling cfg-if v1.0.0
   Compiling memchr v2.7.4
   Compiling serde v1.0.218
   Compiling crossbeam-utils v0.8.21
   Compiling regex-syntax v0.8.5
   Compiling utf8parse v0.2.2
   Compiling glob v0.3.2
   Compiling quote v1.0.39
   Compiling syn v2.0.99
   Compiling aho-corasick v1.1.3
   Compiling anstyle-parse v0.2.6
   Compiling jobserver v0.1.32
   Compiling colorchoice v1.0.3
   Compiling equivalent v1.0.2
   Compiling either v1.14.0
   Compiling cc v1.2.21
   Compiling is_terminal_polyfill v1.70.1
   Compiling anstyle-query v1.1.2
   Compiling anstyle v1.0.10
   Compiling hashbrown v0.15.2
   Compiling crossbeam-epoch v0.9.18
   Compiling anstream v0.6.18
   Compiling clang-sys v1.8.1
   Compiling slab v0.4.9
   Compiling regex-automata v0.4.9
   Compiling indexmap v2.7.1
   Compiling winnow v0.7.3
   Compiling pin-project-lite v0.2.16
   Compiling rustix v0.38.44
   Compiling futures-core v0.3.31
   Compiling log v0.4.26
   Compiling bitflags v2.9.0
   Compiling rayon-core v1.12.1
   Compiling lzma-sys v0.1.20
   Compiling getrandom v0.3.1
   Compiling crossbeam-deque v0.8.6
   Compiling crc32fast v1.4.2
   Compiling io-lifetimes v1.0.11
   Compiling adler2 v2.0.0
   Compiling strsim v0.11.1
   Compiling once_cell v1.20.3
   Compiling minimal-lexical v0.2.1
   Compiling futures-io v0.3.31
   Compiling clap_lex v0.7.4
   Compiling serde_json v1.0.140
   Compiling linux-raw-sys v0.4.15
   Compiling clap_builder v4.5.31
   Compiling nom v7.1.3
   Compiling miniz_oxide v0.8.5
   Compiling regex v1.11.1
   Compiling filetime v0.2.25
   Compiling dvbv5-sys v0.2.1 (https://gitlab.com/kazuki08241/rust-libdvbv5-sys.git?branch=fix%2Flatest-bindgen-unaligned-access#7cab8db0)
   Compiling env_filter v0.1.3
   Compiling num-traits v0.2.19
   Compiling polling v2.8.0
   Compiling libloading v0.8.6
   Compiling itoa v1.0.15
   Compiling ryu v1.0.20
   Compiling bumpalo v3.17.0
   Compiling fastrand v2.3.0
   Compiling bindgen v0.71.1
   Compiling cargo-deb v2.11.2
   Compiling event-listener v2.5.3
   Compiling cfg_aliases v0.2.1
   Compiling rustix v0.37.28
   Compiling lockfree-object-pool v0.1.6
   Compiling zopfli v0.8.1
   Compiling tempfile v3.17.1
   Compiling nix v0.29.0
   Compiling serde_derive v1.0.218
   Compiling clap v4.5.31
   Compiling env_logger v0.11.6
   Compiling cexpr v0.6.0
   Compiling tar v0.4.44
   Compiling concurrent-queue v2.5.0
   Compiling rayon v1.10.0
   Compiling flate2 v1.1.0
   Compiling xz2 v0.1.7
   Compiling cmake v0.1.54
   Compiling itertools v0.13.0
   Compiling itertools v0.14.0
   Compiling async-io v1.13.0
   Compiling linux-raw-sys v0.3.8
   Compiling rustc-hash v2.1.1
   Compiling bitflags v1.3.2
   Compiling fastrand v1.9.0
   Compiling parking v2.2.1
   Compiling quick-error v2.0.1
   Compiling portable-atomic v1.11.0
   Compiling elf v0.7.4
   Compiling ar v0.9.0
   Compiling waker-fn v1.2.0
   Compiling futures-lite v1.13.0
   Compiling b25-sys v2.1.0 (/home/hiroto/dtv/recisdb-rs/b25-sys)
   Compiling async-lock v2.8.0
   Compiling socket2 v0.4.10
   Compiling serde_spanned v0.6.8
   Compiling toml_datetime v0.6.8
   Compiling toml_edit v0.22.24
   Compiling pin-utils v0.1.0
   Compiling futures-task v0.3.31
   Compiling unicode-width v0.2.0
   Compiling heck v0.5.0
   Compiling clap_derive v4.5.28
   Compiling console v0.15.11
   Compiling futures-util v0.3.31
   Compiling toml v0.8.20
   Compiling cargo_toml v0.21.0
   Compiling async-channel v1.9.0
   Compiling iana-time-zone v0.1.61
   Compiling number_prefix v0.4.0
   Compiling humantime v2.1.0
   Compiling indicatif v0.17.11
   Compiling dvbv5 v0.2.6 (https://gitlab.com/kazuki08241/rust-libdvbv5.git?branch=make-fd-ptr-public#9433fb06)
   Compiling chrono v0.4.40
   Compiling futures-time v3.0.0
   Compiling futures-executor v0.3.31
   Compiling ctrlc v3.4.5
   Compiling clap-num v1.2.0
   Compiling colored v3.0.0
   Compiling cpp_utils v0.3.0
   Compiling recisdb v1.2.3 (/home/hiroto/dtv/recisdb-rs/recisdb-rs)
warning: use of deprecated constant `bindgen::CargoCallbacks`: Use `CargoCallbacks::new()` instead. Please, check the documentation for further information.
  --> recisdb-rs/build.rs:25:48
   |
25 |             .parse_callbacks(Box::new(bindgen::CargoCallbacks));
   |                                                ^^^^^^^^^^^^^^
   |
   = note: `#[warn(deprecated)]` on by default

warning: `recisdb` (build script) generated 1 warning
warning: unnecessary parentheses around type
  --> recisdb-rs/src/io.rs:20:16
   |
20 |         i: Box<(dyn AsyncBufRead + Unpin + 'static)>,
   |                ^                                  ^
   |
   = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default
help: remove these parentheses
   |
20 -         i: Box<(dyn AsyncBufRead + Unpin + 'static)>,
20 +         i: Box<dyn AsyncBufRead + Unpin + 'static>,
   |

warning: method `tune` is never used
   --> recisdb-rs/src/tuner/linux/character_device.rs:120:8
    |
 69 | impl Tuner {
    | ---------- method in this implementation
...
120 |     fn tune(self, ch: Channel, lnb: Option<Voltage>) -> Result<Tuner, std::io...
    |        ^^^^
    |
    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default

warning: field `state` is never read
   --> recisdb-rs/src/tuner/linux/dvbv5.rs:197:5
    |
195 | pub struct Tuner {
    |            ----- field in this struct
196 |     inner: UnTunedTuner,
197 |     state: TunedDvbInternalState,
    |     ^^^^^

warning: variant `NitScan` is never constructed
   --> recisdb-rs/src/tuner/linux/dvbv5.rs:203:5
    |
201 | pub enum TunedDvbInternalState {
    |          --------------------- variant in this enum
202 |     Locked,
203 |     NitScan,
    |     ^^^^^^^

warning: field `0` is never read
  --> recisdb-rs/src/utils.rs:12:13
   |
12 |     Success(u64),
   |     ------- ^^^
   |     |
   |     field in this variant
   |
help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
   |
12 -     Success(u64),
12 +     Success(()),
   |

warning: field `0` is never read
  --> recisdb-rs/src/utils.rs:14:11
   |
14 |     Error(std::io::Error),
   |     ----- ^^^^^^^^^^^^^^
   |     |
   |     field in this variant
   |
help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
   |
14 -     Error(std::io::Error),
14 +     Error(()),
   |

warning: `recisdb` (bin "recisdb") generated 6 warnings (run `cargo fix --bin "recisdb"` to apply 1 suggestion)
    Finished `release` profile [optimized] target(s) in 33.69s

ビルドされたrecisdbを/usr/local/binに移動します。

sudo cp -a target/release/recisdb /usr/local/bin

受信できるか確認します。/dev/pt3video2はチューナー、C40はチャンネル番号、10は秒数、C40.tsは出力ファイル名

sudo recisdb tune --device /dev/pt3video2 --channel C40 -t 10 C40.ts
実行結果
[2025/12/02 18:31:48] INFO:     recisdb version 1.2.3
[2025/12/02 18:31:48] INFO:     Tuner: /dev/pt3video2
[2025/12/02 18:31:48] INFO:     Channel: C40 / CATV: 40
[2025/12/02 18:31:48] INFO:     Recording duration: 10 seconds
[2025/12/02 18:31:49] INFO:     Decode: Enabled
[2025/12/02 18:31:49] INFO:     Recording...
[2025/12/02 18:31:59] INFO:     Decoder: 21400000B received, and 14702540B converted.

これでrecisdbのインストールはOKです。

作業は終わりです!

お疲れ様でした!!

あとはつくみ島だより 様の方でセットアップを続けてください。

つくみ島だより
【2023年10月】Ubuntu + Mirakurun + EDCB-Wine + KonomiTV (px4_drv + recisdb + ISDBScanner) でパパッと… またまたお久しぶりです。録画関連の記事書いたのいつ以来だろう…。訳あって、最近 Linux 環境の録画サーバー構築を手軽にできるような諸々の調整をいろいろ進めています。…
DTV
DTV Softcas
よかったらシェアしてね!
  • URLをコピーしました!
  • URLをコピーしました!
  • Django ✕ LINE Messaging APIで画像やマップを送信する関数を作成する
  • libaribb25でlibsobacasを使う 録画鯖 recpt1でMirakurunに設定

この記事を書いた人

hiroto121022のアバター hiroto121022

医学生でありながら、さどんでこプロジェクトのITリーダーを務めるフルスタック開発者。LINE BotやGPS連携スタンプラリー、NFT販売サイトなどをすべて独学で開発。使用言語はPython、Typescript、Javascript。Django、Next.js、Reactなどのフレームワークを駆使し、サーバー構築・デプロイ・SSL対応まで一貫して担当。AIによるアートのアニメーション化にも取り組み、伝統文化とテクノロジーを融合させた新しい地域体験の創出に挑戦している。

関連記事

  • ISDBScannerをCATVに対応させてみた 録画鯖
    2025年12月9日
  • libaribb25でlibsobacasを使う 録画鯖 recpt1でMirakurunに設定
    2025年12月2日

コメント

コメントする コメントをキャンセル


hiroto121022
医学生でありながら、さどんでこプロジェクトのITリーダーを務めるフルスタック開発者。LINE BotやGPS連携スタンプラリー、NFT販売サイトなどをすべて独学で開発。使用言語はPython、Typescript、Javascript。Django、Next.js、Reactなどのフレームワークを駆使し、サーバー構築・デプロイ・SSL対応まで一貫して担当。
GitHub
新着記事
  • ISDBScannerをCATVに対応させてみた 録画鯖
  • Dockerで構築したWordPressの最大アップロードサイズを変更する。一時しのぎと永久的な対処を紹介
  • Docker Composeで依存関係に関係なく、コンテナを再構築する方法
  • VMwareのvdmkファイルを分割する方法
  • 例のRTX3080 20Gを中国から購入してみた。AI生成に最適だった!

© HIROTRONの部屋.

目次