【視聴・録画】Linuxでテレビ総合2【デジタル/アナログ】
Fedora12+PT2でEPGRecの番組表が取得し終わって
録画しようと番組名をクリックすると
job番号の取得に失敗っていうダイアルログが出るorz
# yum -y install yum-priorities perl-Gtk2 ccid pcsc-perl pcsc-tools pcsc-lite-devel
# service pcscd start
# chkconfig pcscd on
# wget
http://ludovic.rousseau.free.fr/softwares/pcsc-tools/smartcard_list.txt # mv -f smartcard_list.txt /usr/share/pcsc/
# pcsc_scan
# yum -y install kernel-devel kernel-headers gcc
# wget
http://hg.honeyplanet.jp/pt1/archive/c44e16dbb0e2.tar.bz2 # cd /usr/local/src/
# tar xvjf /root/c44e16dbb0e2.tar.bz2
# cd pt1-c44e16dbb0e2/driver
# uname -r
2.6.31.9-174.fc12.x86_64
# make -C /usr/src/kernels/2.6.31.9-174.fc12.x86_64 M=`pwd` V=1
# make install
# modprobe pt1_drv
# cp /usr/local/src/pt1-c44e16dbb0e2/driver/etc/99-pt1.rules /etc/udev/rules.d/
# lspci -v | grep pt
Kernel driver in use: pt1-pci
Kernel modules: pt1_drv
# cd /usr/local/src/pt1-c44e16dbb0e2/arib25/
# cd /usr/local/src/pt1-c44e16dbb0e2/arib25/src/でも可能
libpcsclite がないと言われる。Fedoraでは pcsc-lite-devel
# make
# make install
# cd ../recpt1
# make
# make install
# ./recpt1 --b25 --strip 14 60 /root/1-2.ts
./recpt1: error while loading shared libraries: libarib25.so.0: cannot open shared object file: No such file or directory
# ldd /usr/local/bin/recpt1
# find /usr/ | grep libarib25.so.0
# echo "/usr/local/lib" >> /etc/ld.so.conf
# ldconfig
# ldd /usr/local/bin/recpt1
recpt1 --b25 --strip 14 60 /root/1-2.ts
EPGrec
# yum -y install httpd php at mysql-server php-cli php-mysql php-mbstring
# vi /var/www/html/index.php
<?php phpinfo(); ?>
# service mysqld start
# mysql -u root -p
> set password for root@localhost=password("hogehogepass");
# mysql -u root -p
> create database tvdb;
> exit
# mysql -u root -p
> show databases;
> exit
# vi /etc/at.deny
中身を確認
# vi /etc/passwd
apache:x:48:48:Apache:/var/www:/sbin/nologin
↓下記のように変更
apache:x:48:48:Apache:/var/www:/bin/sh
# wget
http://www.geocities.jp/gooooogle_jp/epgdumpr2.tar.gz # tar xvzf epgdumpr2.tar.gz
# cd epgdumpr2
# vi Makefile
epgdumpr2
# make
# cp epgdump2 /usr/local/bin/
tar xvzf epgdumpr2-utf8.tar.gz
cd epgdumpr2
make
cp epgdump /usr/local/bin
# wget
http://linux-memo.net/kaden/src/epgrec-090814.tar.gz # tar xvzpf epgrec-090814.tar.gz -C /var/www/
# cd /var/www/epgrec
# chown -R apache.apache ./
# mv /var/www/epgrec/config.php.sample /var/www/epgrec/config.php
>>364-366 # vi /var/www/epgrec/config.php
# cp /var/www/epgrec/do-record.sh.pt1 /var/www/epgrec/do-record.sh
# vi /var/www/epgrec/do-record.sh
B25=/usr/local/bin/b25
# OUTPUT=test.ts CHANNEL=14 DURATION=30 TUNER=0 MODE=0 TYPE=GR /var/www/epgrec/do-record.sh
# rm -r -f test.ts
http://192.168.100.9/epgrec/ # cp /var/www/epgrec/cron.d/getepg /etc/cron.d/
# /var/www/epgrec/getepg.php
イロイロなブログを参考にしてみてやっていたのですが
うまくいかなかったです。