ãLinuxã§ã®TSæãé²ç»ã§ãWindowsã§å®ç¸¾ã®ããEDCBï¼EpgDataCap_Bonï¼ã使ããããã«ãªã£ãã®ã§ã¤ã³ã¹ãã¼ã«ãã¦DebianãRaspberry Pi OSã§åããã¦ã¿ãã
ãåºæ¬çã«EDCBãB25DecoderãBonDriverã¨ãã¥ã¼ãã¼ã®ãã©ã¤ããå¿
è¦ãªã¨ããã¯Windowsçã¨åãã ãã©ãGUIç»é¢ãç¡ãã®ã§Webãã©ã¦ã¶ããWebUIã§æä½ãããã¨ã«ãªããWindowsçã®EpgTimerNW.exeããæ¥ç¶ãã¦æä½ãããã¨ãåºæ¥ãã
ãCPUã第ä¸ä¸ä»£ã®Atomãã¡ã¢ãªã1GB以ä¸ã®ä½ã¹ããã¯ãªç°å¢ã§ãåä½ããããããã®CPUãã¯ã¼ãããã°HLSé
ä¿¡ã§ã®ã¹ããªã¼ãã³ã°è¦è´ã§ãã¬ããé²ç»çªçµãè¦ãããåå¹ã表示ãããããã¼ã¿æ¾éã®è¦è´ãè¡ããã
EDCBï¼EpgDataCap_Bonï¼ã®ã¤ã³ã¹ãã¼ã«
ãEDCBã¯äººæ±ç10.69ãæå¾ã«æ´æ°ããã¦ããªããããªãªã¸ãã«ã®ã½ã¼ã¹ãå
ã«éçºãç¶ãã¦ããxtne6f版EDCBãLinuxã§ãåä½ããã
ãEpgDataCap_BonãEpgTimerSrvçã¯/usr/local/binãEpgDataCap3ãSendTSTCPçãB25DecoderãBonDriverçã¯/usr/local/lib/edcbãEpgTimerSrv.iniãSettingãã©ã«ãçã¯/var/local/edcbã«å
¥ãã
ãã¤ã³ã¹ãã¼ã«ã¯å
¬å¼ã®ビルド手順ã®éããHLSé
ä¿¡ã§ã®ã¹ããªã¼ãã³ã°è¦è´ãããå ´åã¯tsreadexçãå¿
è¦ãªã®ã§make extraã¨make install_extraãè¡ãã
ãè¨å®ãã¡ã¤ã«çãæ ¼ç´ãã/var/local/edcbã¯äºãä½æãã¦EDCBãèµ·åããã¦ã¼ã¶ã¼ã®ææã«å¤æ´ããä¸ã§make setup_iniã§åæç¶æ
ã®ãã¡ã¤ã«ãã¤ã³ã¹ãã¼ã«ããã
ãå¿
è¦ãªããã±ã¼ã¸ã¯gitã³ãã³ãã使ãã®ã§gitããã«ãã«ä½¿ãã®ã§makeãgccãg++ãliblua5.2-devãmake extraãè¡ãéã«curlã³ãã³ãã使ãã®ã§curlããã®ä»ã«å
¬å¼ã§å¿
è¦ã¨æ¸ããã¦ããlua-zlibãHLSé
ä¿¡ã§ã®ã¹ããªã¼ãã³ã°è¦è´ãããå ´åã«å¿
è¦ã«ãªãffmpegãäºãã¤ã³ã¹ãã¼ã«ãã¦ããã
sudo apt install git make gcc g++ liblua5.2-dev lua-zlib curl ffmpeg -y git clone https://github.com/xtne6f/EDCB cd EDCB/Document/Unix make sudo make install make extra sudo make install_extra sudo mkdir /var/local/edcb sudo chown $USER /var/local/edcb make setup_ini cd ../../..
B25Decoderã®ã¤ã³ã¹ãã¼ã«
ãxtne6fçEDCBã«ã¯B25Decoderãå«ã¾ãã¦ããªãã®ã§ã¹ã¯ã©ã³ãã«è§£é¤ãããå ´åã¯tsukumijima版Multi2Decã«å«ã¾ããB25Decoderãå¿
è¦ã«ãªãã
ããã«ãããB25Decoder.soã¯/usr/local/lib/edcbã«é
ç½®ããã ãã§æå¹ã«ãªãã
ãå¿
è¦ãªããã±ã¼ã¸ã¯gitã³ãã³ãã使ãã®ã§gitããã«ãã«ä½¿ãã®ã§makeãg++ãlibpcsclite-devããã®ä»ã«å
¬å¼ã§å¿
è¦ã¨æ¸ããã¦ããpkg-configãåä½ã«å¿
è¦ã¨ãªãpcscdãpcsc_scanã³ãã³ãã§B-CASã«ã¼ãã®ç¢ºèªããããå ´åã¯pcsc-toolsãã¤ã³ã¹ãã¼ã«ãã¦ããã
sudo apt install git make g++ libpcsclite-dev pkg-config pcscd pcsc-tools -y git clone https://github.com/tsukumijima/Multi2Dec cd Multi2Dec/B25Decoder make sudo cp B25Decoder.so /usr/local/lib/edcb/ cd ../..
EDCB Material WebUIã®ã¤ã³ã¹ãã¼ã«
ãLinuxçEDCBã¯Windowsçã®æä½ç»é¢ã®ãããªUIã¯ç¡ãã®ã§ä»£ããã«WebUIã使ããã¨ã«ãªãããã¹ãã¼ããã©ã³çã§ãè¦ãããEPGStationã®ãããªMaterial UIã®EDCB Material WebUIãããã®ã§ã¤ã³ã¹ãã¼ã«ãã¦ããã
git clone https://github.com/EMWUI/EDCB_Material_WebUI cd EDCB_Material_WebUI cp -r HttpPublic /var/local/edcb/ cp -r Setting /var/local/edcb/ cd ..
BonDriverã«ã¤ãã¦
ãæå¾ã«BonDriverãç¨æãããBonDriverã¯PLEXç³»ãã¥ã¼ãã¼ç¨ãã©ã¤ãã®px4_drvãPT1/PT2ç¨ãã©ã¤ãã®pt1_drvãPT3ç¨ãã©ã¤ãã®pt3_drvã§ä½¿ããBonDriver_LinuxPTXãPX-S1UDçã®DVBããã¤ã¹ã¨ãã¦èªèãããã¥ã¼ãã¼ã§ä½¿ããBonDriver_DVBï¼u-n-k-n-o-w-n版BonDriverProxy_Linuxã«å«ã¾ãã¦ããï¼ãUS-3POUTï¼ããã±ããå¤åºï¼ã§ä½¿ããBonDriver_3POUTãMirakurunãmirakcã§ä½¿ããBonDriver_LinuxMirakcãããã
ãWindowsã®SpinelããLinuxã®Mirakurunçã®ãããªãã¥ã¼ãã¼ã®å
±æã¯BonDriverProxy_Linuxã®ãµã¼ãã¨ã¯ã©ã¤ã¢ã³ãã使ããã¨ã§åæ§ãªç°å¢ãçµããã¨ãåºæ¥ãã
px4_drvã®ã¤ã³ã¹ãã¼ã«
ãä»åã¯PLEX PX-W3U4ã使ãã®ã§ãã©ã¤ãã®px4_drvãã¤ã³ã¹ãã¼ã«ããããã¡ã¼ã ã¦ã§ã¢ã®æ½åºã¨é
ç½®ããã©ã¤ãã®ã¤ã³ã¹ãã¼ã«ãè¡ããã¤ã³ã¹ãã¼ã«å¾ãæ¢ã«ãã¥ã¼ãã¼ãæ¥ç¶ãã¦ããå ´åã¯sudo rebootã§ä¸æ¦åèµ·åããã
ãå¿
è¦ãªããã±ã¼ã¸ã¯gitã³ãã³ãã使ãã®ã§gitããã«ãã«ä½¿ãã®ã§makeãgccãlinux-headers-â¦ããã¡ã¼ã ã¦ã§ã¢ã®ãã¦ã³ãã¼ãã¨å±éã«ä½¿ãã®ã§wgetãunzipãã¤ã³ã¹ãã¼ã«ãã¦ããã
sudo apt install git make gcc wget unzip linux-headers-`uname -r` -y git clone https://github.com/tsukumijima/px4_drv cd px4_drv/fwtool make wget http://plex-net.co.jp/plex/pxw3u4/pxw3u4_BDA_ver1x64.zip -O pxw3u4_BDA_ver1x64.zip unzip -oj pxw3u4_BDA_ver1x64.zip pxw3u4_BDA_ver1x64/PXW3U4.sys ./fwtool PXW3U4.sys it930x-firmware.bin sudo mkdir -p /lib/firmware sudo cp it930x-firmware.bin /lib/firmware/ cd ../driver make sudo make install cd ../..
BonDriver_LinuxPTXã®ã¤ã³ã¹ãã¼ã«
ãpx4_drvã«å¯¾å¿ããBonDriver_LinuxPTXããã«ããã¦ãBonDriver_LinuxPTX.soã¨BonDriver_LinuxPTX.iniããã¥ã¼ãã¼ã®æ°ã ãååãå¤ãã¦ã³ãã¼ããå¾ãBonDriver_LinuxPTX.iniã®ããã¤ã¹åãããã¤ã¹ãã¡ã¤ã«åãå°ãã¸ã¨BS/CSã®å¯¾å¿ãæ¸ãæããã
sudo apt install git make g++ -y git clone https://github.com/nns779/BonDriver_LinuxPTX cd BonDriver_LinuxPTX make sudo cp BonDriver_LinuxPTX.so /usr/local/lib/edcb/BonDriver_LinuxPTX-0.so sudo cp BonDriver_LinuxPTX.so /usr/local/lib/edcb/BonDriver_LinuxPTX-1.so sudo cp BonDriver_LinuxPTX.so /usr/local/lib/edcb/BonDriver_LinuxPTX-2.so sudo cp BonDriver_LinuxPTX.so /usr/local/lib/edcb/BonDriver_LinuxPTX-3.so sudo cp BonDriver_LinuxPTX.ini /usr/local/lib/edcb/BonDriver_LinuxPTX-0.ini sudo cp BonDriver_LinuxPTX.ini /usr/local/lib/edcb/BonDriver_LinuxPTX-1.ini sudo cp BonDriver_LinuxPTX.ini /usr/local/lib/edcb/BonDriver_LinuxPTX-2.ini sudo cp BonDriver_LinuxPTX.ini /usr/local/lib/edcb/BonDriver_LinuxPTX-3.ini sudo sed -i -e 's/^Name=".*/Name="LinuxPTX-0"/;s/^Device=.*/Device=\/dev\/px4video0/;s/^Space=.*/Space=BS,CS110/' /usr/local/lib/edcb/BonDriver_LinuxPTX-0.ini sudo sed -i -e 's/^Name=".*/Name="LinuxPTX-1"/;s/^Device=.*/Device=\/dev\/px4video1/;s/^Space=.*/Space=BS,CS110/' /usr/local/lib/edcb/BonDriver_LinuxPTX-1.ini sudo sed -i -e 's/^Name=".*/Name="LinuxPTX-2"/;s/^Device=.*/Device=\/dev\/px4video2/;s/^Space=.*/Space=UHF,CATV/' /usr/local/lib/edcb/BonDriver_LinuxPTX-0.ini sudo sed -i -e 's/^Name=".*/Name="LinuxPTX-3"/;s/^Device=.*/Device=\/dev\/px4video3/;s/^Space=.*/Space=UHF,CATV/' /usr/local/lib/edcb/BonDriver_LinuxPTX-1.ini cd ..
å°ãè¨å®ãã¡ã¤ã«ã®BonDriver_LinuxPTX.iniã¯BSåç·¨åã®å 容ã«ãªã£ã¦ããã®ã§ãå¿ è¦ã«å¿ãã¦æ¸ãæããªãã¨ä¸é¨ã®BSãã£ã³ãã«ãåä¿¡ã§ããªãã®ã§æ³¨æã
EDCBã®ãã£ã³ãã«ã¹ãã£ã³
ãEpgDataCap_Bonã³ãã³ãã§ãã£ã³ãã«ã¹ãã£ã³ãè¡ããWindowsçã¨éãããªãã·ã§ã³ã§BonDriverã®æå®ã¨ãã£ã³ãã«ã¹ãã£ã³ã®å®è¡ãæå®ããã
EpgDataCap_Bon -d BonDriver_LinuxPTX-0.so -chscan EpgDataCap_Bon -d BonDriver_LinuxPTX-1.so -chscan EpgDataCap_Bon -d BonDriver_LinuxPTX-2.so -chscan EpgDataCap_Bon -d BonDriver_LinuxPTX-3.so -chscan
EDCBã®åæè¨å®
ãåæç¶æ ã§ã¯WebUIããã®è¨å®å¤æ´ãè¡ããªãã®ã§ã/var/local/edcb/HttpPublic/legacy/util.luaã®ALLOW_SETTING=falseãALLOW_SETTING=trueã«æ¸ãæãã¦ãè¨å®ãå¤æ´ã§ããããã«ããã
sed -i -e 's/^ALLOW_SETTING=.*/ALLOW_SETTING=true/' /var/local/edcb/HttpPublic/legacy/util.lua
ãåæç¶æ ã§ã¯WebUIãéããã³ã«ãã°ãã¡ã¤ã«ãå¢ãç¶ããã®ã§ãã°ãç¡å¹åãåä¸LANå ããã¢ã¯ã»ã¹ã§ããªãã®ã§è¨±å¯ãé²ç»å¾åä½ãLinuxçã§ã¯ãµãã¼ãããã¦ããªãä¼æ¢ã«ãªã£ã¦ããã®ã§ä½ãããªãã«å¤æ´ãWebUIã§ãã¼ã¿æ¾éãè¦è´ã§ããã®ã§ãã¼ã¿æ¾éã®é²ç»ã許å¯ãWindowsçã®EpgTimerNWããã®æ¥ç¶ã許å¯ããè¨å®ã«æ¸ãæãã/var/local/edcb/EpgTimerSrv.iniãä½æããã
tee /var/local/edcb/EpgTimerSrv.ini << 'EOT' [SET] EnableHttpSrv=1 HttpAccessControlList=+127.0.0.1,+192.168.0.0/16 RecEndMode=0 Data=1 EnableTCPSrv=1 EOT
ãåæç¶æ ã§ã¯WebUIã®ã©ã¤ãã©ãªã§é²ç»çªçµã®è¦è´ãè¡ããªãã®ã§ãè¡ããããã«é²ç»ä¿åãã©ã«ãã/var/local/edcb/HttpPublic/videoã«å¤æ´ããã
mkdir /var/local/edcb/HttpPublic/video tee /var/local/edcb/Common.ini << 'EOT' [SET] RecFolderPath0=/var/local/edcb/HttpPublic/video RecFolderNum=1 EOT
EDCBã®èµ·åã¨è¨å®
ãEpgTimerSrvãã·ã¹ãã èµ·åæã«èªåçã«èµ·åãããããã«ãµã¼ãã¹ã¨ãã¦ç»é²ãã¦æå¹åããã
sudo tee /etc/systemd/system/edcb.service << EOT [Unit] Description=EpgTimerSrv After=network-online.target [Service] ExecStart=/usr/local/bin/EpgTimerSrv Restart=always StandardError=journal StandardOutput=null TimeoutStopSec=50 Type=simple User=$USER [Install] WantedBy=default.target EOT sudo systemctl enable edcb
ãããã§EDCBï¼EpgTimerSrvï¼ãèµ·åãã¦ãWebãã©ã¦ã¶ããhttp://xxxxx:5510ï¼xxxxxã¯EDCBãèµ·åãã¦ããPCã®IPã¢ãã¬ã¹ãããã¯ãã¹ãåï¼ãéããEMWUI/ã§EDCB Material WebUIããLegacy/ã§EDCB Legacy WebUIãéããã
sudo systemctl start edcb
ãæä½éãWebUIï¼EDCB Legacy WebUIï¼ã®è¨å®ã¡ãã¥ã¼ãããBonDriverã§åBonDriverãã¨ã®ãã¥ã¼ãã¼æ°ï¼BonDriver_LinuxPTXã®å ´åã¯1ï¼ãè¨å®ããå¾ãEDCBãåèµ·åãã¦ãããWebUIï¼EDCB Legacy WebUIï¼ããEPGåå¾ãè¡ãã°ãçªçµè¡¨ã®è¡¨ç¤ºãé²ç»äºç´ãå¯è½ã«ãªãã
sudo systemctl restart edcb