Fedora14ã§PT2対å¿ããã£ããã¨ã¾ã¨ã
PT2ãè²·ã£ã¦è¨å®ãã¦é 調ã«ããã£ãã
PT2é¢é£ã®è¨äºã¯è
ãã»ã©ããã®ã§ãããã£ãã¨ãã®ã¿ãç´¹ä»ã
ç°å¢ã¯Fedora14ã
CentOS5.4ãµã¼ãæ©ã«PT2ãå
¥ãã¦å°ãã¸é²ç»ãµã¼ãã«ãã: tadachi-net åºå¼µæ
ãåºæ¬è¦ãªãããã£ã¦ããã ãã©â¦èªå®
ãµã¼ãFedora14ãªã®ã«CentOSã®è¨äºè¦ã¦ããããããããããã
â¦ä¼ç¤¾ã¨ãå人ã§ç©ãã¦ãVPSã¨ãå
¨é¨CentOSãªãã ããâ¦
以ä¸å¤±æé
Kouji's Blog
ã«ã¼ãã«ã½ã¼ã¹ãå ¥ã£ã¦ãªããã失æ
yum install kernel-dev
ã§è§£æ±º
fedora14ã§ã¯ä¸»æµã§åèè¨äºã§ä½¿ã£ã¦ãchardevçãããªãã¦ãDBVçãå ¥ã£ã¦ããããã¤ã³ã¹ãã¼ã«ãããªãããã«ããã
ãããä¸çªããã£ãâ¦
ç¾è±¡ã¨ãã¦ã¯ã¤ã³ã¹ãã¼ã«ã¾ã§ã¯æ®éã«ã§ãããã ãã©ã/dev/pt1video* ã表示ãããªãã
/etc/modprobe.d/blacklist.conf
ãã©ã¤ãã¯ãchardevçãã¨ãDVBçãã®2種é¡åå¨ãã¾ããFedora14以éã®æè¿ã®ã«ã¼ãã«ã¯ãDVBçãã®PT1(PT2)ãã©ã¤ããæ¨æºå®è£ ãã¦ããããã主æµã¨ãªã£ã¦ãããchardevçãã®ã¤ã³ã¹ãã¼ã«æã«ãã©ã¤ãã¼ãéè¤ããã¤ã³ã¹ãã¼ã«ã§ãã¾ããã ä¸è¨ã®ã³ãã³ãã«ã¦ããchardevçãã®PT2ãã©ã¤ãã¼ãã¤ã³ã¹ãã¼ã«ãããã¨ãå¯è½ã§ãããDVBçãã®æ¹ããã¼ãããªãããã«blacklistã®ä¸è¡ã追å ãã¾ãã
vi /etc/modprobe.d/blacklist.conf
blacklist earth-pt1
ããã¯Kouji's Blogãããåèã«ããã
fedora14ã ã¨ã«ã¼ããªã¼ããèªããªããããé¢é£ãã¦ã³ã°ã¬ã¼ã
FedoraCore14ã§PTï¼ » ãã«ã£ã
ãã¡ãã§ç´¹ä»ããã¦ãããpcscé¢ä¿ã®ãã¦ã³ã°ã¬ã¼ãããã£ãã
yum erase pcsc-lite pcsc-lite-libs pcsc-lite-devel ccid
ã§ãff14ç¨ãä¸æ¦æ¶ãã¦(å
¥ã£ã¦ããã)
wget http://ftp.riken.jp/Linux/fedora/releases/13/Fedora/x86_64/os/Packages/pcsc-lite-1.5.5-4.fc13.x86_64.rpm
wget http://ftp.riken.jp/Linux/fedora/releases/13/Fedora/x86_64/os/Packages/pcsc-lite-libs-1.5.5-4.fc13.x86_64.rpm
wget http://ftp.riken.jp/Linux/fedora/releases/13/Fedora/x86_64/os/Packages/pcsc-lite-devel-1.5.5-4.fc13.x86_64.rpm
wget http://ftp.riken.jp/Linux/fedora/releases/13/Fedora/x86_64/os/Packages/ccid-1.3.11-1.fc13.x86_64.rpm
(åèã«ãããã¼ã¸ã§ãrpmã¸ã®ãªã³ã¯ã404ã ã£ãã®ã§ãURLã¯å¾®ä¿®æ£)
rpm –import https://fedoraproject.org/static/E8E40FDE.txt
sudo rpm -ivh pcsc-lite-1.5.5-4.fc13.x86_64.rpm pcsc-lite-libs-1.5.5-4.fc13.x86_64.rpm pcsc-lite-devel-1.5.5-4.fc13.x86_64.rpm ccid-1.3.11-1.fc13.x86_64.rpm
(ä¾åé¢ä¿ã®åé¡ã§ãåæã«ãããªãã¨ãã¡)
B-CASã«ã¼ãã®èªè確èª
pcscdãåèµ·åããªãã¨èªèããªã
/etc/rc.d/init.d/pcscd restart
epgrecã®installç»é¢ã®step3ãçã£ç½
ãã®èªå®
é¯ã¯ããã¾ç°å¢æ§ç¯ãã¦ãªãã£ãã®ã§æä½éphpå
¥ããçµæãããã足ããâ¦
php-mysqlå
¥ãå¿ããã®ãåå ã§ãã
ãããã
// ãã¼ã¿ãã¼ã¹æ¥ç¶ãã§ã㯠$dbh = @mysql_connect( $settings->db_host, $settings->db_user, $settings->db_pass ); if( $dbh == false ) { jdialog( "MySQLã«æ¥ç¶ã§ãã¾ããããã¹ãå/ã¦ã¼ã¶ã¼å/ãã¹ã¯ã¼ããåãã§ãã¯ãã¦ãã ãã". "step2.php" ); exit(); }
ãããçã£ç½ã«ãªããâ¦@使ã£ã¦ãã ããã
ãã£ããã¨ã©ã¼ãã§ãã¯ãã£ããæ¸ãã¦ãã ãã@ãæ¶ãã¨ãã¦ãããã°ããåå åãã£ãã®ã«ãªâ¦
getepg.phpå®è¡ãã¦ãçªçµè¡¨æ´æ°ãããªããâ¦
LD_LIBRARY_PATHãéã£ã¦ãªãã¦ãlibalib.so.0ãèªããªãã£ãã®ãåå ã
å
¨é¨ã®å¼ã³åºãé¨åã®ã³ãã³ãåã«ãLD_LIBRARY_PATH=/usr/local/libãã追å ããã¨ããæ±ãªã解決ãâ¦atã§åä½ããã¹ã¯ãªããã¨ãã©ãã§ç°å¢å¤æ°è¨å®ãããåãããªãã£ãã®ã§ã¨ããããâ¦
ãã£ã¨ã¹ãã¼ãã«åºæ¥ããã ã¨ã¯æãã®ã§ã¢ããã¤ã¹ãã£ãããé¡ããã¾ãï¼
é²ç»äºç´ãã¦ãé²ç»ãããªã
ä¸ã¨ä¸ç·ãphp-mbstring
ãå
¥ãã¨ããªãã¨ãã¡ãã¿ã¤ãã«å©ç¨ããã¨ãã§è½ã¡ã¦ãã®ã§ããäºç´ãã¦ãé²ç»ãããªããã£ã¤ã¼ãããç¶æ³ã«ãªãã®ã§ã注æãã
çtsã ã¨ã¯ã³ã»ã°ãåçããããã¨ãããã大å¤
epgrec ã® do-record.sh ããããããã£ã¦ã¿ã - ãã¹ãããã° - Garbage Collection Log
ãã¡ãåèâ¦ã¨ããåã®ä¸¸ãã¯ããããã¯ã³ã»ã°ã¨ãä½è¨ãªãã¼ã¿å
¥ã£ã¦ããçtsããã¡ã¤ã³ã®ã¹ããªã¼ã ã ãåé¢ã
åãé¢æ±ãªã®ã§ãprogramid(ffmpeg -iããã表示ããã)ãåãã§ã»ã¨ãã©æµç¨ã§ãã¾ããï¼ç´ æ´ããã!
ãã ãå¾è¿°ããtssplitter_liteãåããªãããã§ããã®é¨åã®ã¿æ¹å¤ãã¾ããã
tssplitter_liteãåããªãã
åå ä¸æã ãã©ãåããªãã£ãã
ã¨ã©ã¼ã¯åããªããã©ãä½ããµã¤ãºãæ°100kbãããã§ããããã¾ã«ãã¡ã
SPLITTER=/usr/local/bin/tssplitter_lite ... $SPLITTER $input_tsfile $output_tsfile $progid
âã«æ¹å¤
SPLITTER=/usr/bin/ffmpeg ... $SPLITTER -programid $progid -vcodec copy -acodec copy -i $input_tsfile $output_tsfile
ã¾ã¨ã
å®éåé¡çµæ§è¦å´ããâ¦ã¾ã å¾®å¦ã«åé¿å¯è½ãªããã£ã¦ããã¨ãããã©ãã¨ããããããã ãã
ã§ããepgrec使ã£ãé²ç»ã¯ãã£ã£ã£ã£ãã便å©ã
ã¡ãã£ã¨åã¾ã§PT2ãåèã ã£ãã®ã§ããã£ã¦ãªãã£ããã©ããã£ã¨æ©ãããã°è¯ãã£ãã
ãªã¹ã¹ã¡ã§ãã