TV˜^‰æ—\–ņŽ‹’ŪƒT[ƒo[‚ĖƒXƒ}ƒz‘Ήž(EPGRemote)

ÅIXV“úF 2017.08.27

<<ƒgƒbƒvƒy[ƒW <<V’…î•ņ <<‹tˆø‚ŦW <<ƒŠƒ“ƒNW <<ƒTƒCƒg“āŒŸõ <<ƒƒ‹ƒ}ƒK <<Scientific Linux‚ÅŽĐ‘îƒT[ƒo[\’z <<Fedora‚ÅŽĐ‘îƒT[ƒo[\’z

ĄŠT—v

TV˜^‰æ—\–ņŽ‹’ŪƒT[ƒo[(epgrec UNA)‚ðƒXƒ}ƒz‚Đ‚į‚ā—˜—p‚Å‚Ŧ‚é‚æ‚Ī‚É‚·‚éB‚ą‚ą‚ł́AEPGRemote‚ð“ą“ü‚ĩ‚āAPC‚Æ“Ŋ—l‚Ė‚ą‚Æ(•ú‘—’†”Ô‘g‚ĖŽ‹’ŪA˜^‰æÏ”Ô‘g‚ĖŽ‹’ŪA˜^‰æ—\–ņ“™)‚ðƒXƒ}ƒz‚Đ‚į‚ā‚Å‚Ŧ‚é‚æ‚Ī‚É‚·‚éBËƒXƒNƒŠ[ƒ“ƒVƒ‡ƒbƒg



ĄBonDriverProxy&recbondƒCƒ“ƒXƒg[ƒ‹

epgrec UNA‚ÆEPGRemote‚ÅTVƒ`ƒ…[ƒi[‚ð‹Ī—p‚Å‚Ŧ‚é‚æ‚Ī‚É‚·‚é‚―‚߁ABonDriverProxy+recbond‚ð“ą“ü‚·‚éB

i‚PjBonDriverProxyƒCƒ“ƒXƒg[ƒ‹
[root@centos ~]# mkdir /usr/local/lib/BonDriver@Đ@BonDriverProxyƒCƒ“ƒXƒg[ƒ‹æƒfƒBƒŒƒNƒgƒŠėŽ

[root@centos ~]# git clone https://github.com/sudosan/BonDriverProxy_Linux@Đ@BonDriverProxy_Linuxƒ_ƒEƒ“ƒ[ƒh

[root@centos ~]# cd BonDriverProxy_Linux/@Đ@BonDriverProxy_Linuxƒ_ƒEƒ“ƒ[ƒhæ‚ÖˆÚ“Ū

[root@centos BonDriverProxy_Linux]# git clone https://github.com/dogeel/recbond@Đ@recbondƒRƒ}ƒ“ƒhƒ_ƒEƒ“ƒ[ƒh

[root@centos BonDriverProxy_Linux]# patch < recbond/linux_ch.diff@Đ@BonDriver‚Ö‘Sƒ`ƒƒƒ“ƒlƒ‹‘Ήžƒpƒbƒ`Ž{s
patching file BonDriver_DVB.cpp
Hunk #1 succeeded at 232 (offset 10 lines).
Hunk #2 succeeded at 244 (offset 10 lines).
Hunk #3 succeeded at 709 (offset -8 lines).
patching file BonDriver_LinuxPT.cpp
Hunk #1 succeeded at 251 (offset 10 lines).
Hunk #2 succeeded at 263 (offset 10 lines).
Hunk #3 succeeded at 598 (offset -8 lines).

[root@centos BonDriverProxy_Linux]# make@Đ@BonDriverƒRƒ“ƒpƒCƒ‹

[root@centos BonDriverProxy_Linux]# cp BonDriver_LinuxPT.so /usr/local/lib/BonDriver/BonDriver_LinuxPT-S0.so@Đ@BonDriverƒRƒs[(BS/CS”gƒ`ƒ…[ƒi[0—p)
[root@centos BonDriverProxy_Linux]# cp BonDriver_LinuxPT.so /usr/local/lib/BonDriver/BonDriver_LinuxPT-S1.so@Đ@BonDriverƒRƒs[(BS/CS”gƒ`ƒ…[ƒi[1—p)
[root@centos BonDriverProxy_Linux]# cp BonDriver_LinuxPT.so /usr/local/lib/BonDriver/BonDriver_LinuxPT-T0.so@Đ@BonDriverƒRƒs[(’nã”gƒ`ƒ…[ƒi[0—p)
[root@centos BonDriverProxy_Linux]# cp BonDriver_LinuxPT.so /usr/local/lib/BonDriver/BonDriver_LinuxPT-T1.so@Đ@BonDriverƒRƒs[(’nã”gƒ`ƒ…[ƒi[1—p)

[root@centos BonDriverProxy_Linux]# vi BonDriver_LinuxPT.conf@Đ@BonDriverÝ’čƒtƒ@ƒCƒ‹•ŌW
CS‚Ėƒ`ƒƒƒ“ƒlƒ‹”ԍ†(2—ņ–Ú)‚ð‰š‹L‚Ė‚Æ‚Ļ‚čCģ(CSƒ`ƒƒƒ“ƒlƒ‹‚ļ‚ę‘Ήž)
Ķ—ņŠÔ‚̓^ƒu‹æØ‚č‚Ė‚―‚߉š‹L‚ð‚ŧ‚Ė‚܂܃Rƒs[‚ĩ‚Č‚Ē‚ą‚Æ
; CS110
ND2     34      12      0
ND4     35      13      0
ND6     36      14      0
ND8     37      15      0
ND10    38      16      0
ND12    39      17      0
ND14    40      18      0
ND16    41      19      0
ND18    42      20      0
ND20    43      21      0
ND22    44      22      0
ND24    45      23      0

[root@centos BonDriverProxy_Linux]# cp BonDriver_LinuxPT.conf /usr/local/lib/BonDriver/BonDriver_LinuxPT-S0.so.conf@Đ@BonDriverÝ’čƒtƒ@ƒCƒ‹ƒRƒs[(BS/CS”gƒ`ƒ…[ƒi[0—p)
[root@centos BonDriverProxy_Linux]# cp BonDriver_LinuxPT.conf /usr/local/lib/BonDriver/BonDriver_LinuxPT-S1.so.conf@Đ@BonDriverÝ’čƒtƒ@ƒCƒ‹ƒRƒs[(BS/CS”gƒ`ƒ…[ƒi[1—p)
[root@centos BonDriverProxy_Linux]# cp BonDriver_LinuxPT.conf /usr/local/lib/BonDriver/BonDriver_LinuxPT-T0.so.conf@Đ@BonDriverÝ’čƒtƒ@ƒCƒ‹ƒRƒs[(’nã”gƒ`ƒ…[ƒi[0—p)
[root@centos BonDriverProxy_Linux]# cp BonDriver_LinuxPT.conf /usr/local/lib/BonDriver/BonDriver_LinuxPT-T1.so.conf@Đ@BonDriverÝ’čƒtƒ@ƒCƒ‹ƒRƒs[(’nã”gƒ`ƒ…[ƒi[1—p)

[root@centos BonDriverProxy_Linux]# sed -i "s/pt3video./pt3video0/g" /usr/local/lib/BonDriver/BonDriver_LinuxPT-S0.so.conf@Đ@BonDriverÝ’čƒtƒ@ƒCƒ‹’†‚ĖTVƒ`ƒ…[ƒi[ƒfƒoƒCƒX–ž•ÏX(BS/CS”gƒ`ƒ…[ƒi[0—p)
[root@centos BonDriverProxy_Linux]# sed -i "s/pt3video./pt3video1/g" /usr/local/lib/BonDriver/BonDriver_LinuxPT-S1.so.conf@Đ@BonDriverÝ’čƒtƒ@ƒCƒ‹’†‚ĖTVƒ`ƒ…[ƒi[ƒfƒoƒCƒX–ž•ÏX(BS/CS”gƒ`ƒ…[ƒi[1—p)
[root@centos BonDriverProxy_Linux]# sed -i "s/pt3video./pt3video2/g" /usr/local/lib/BonDriver/BonDriver_LinuxPT-T0.so.conf@Đ@BonDriverÝ’čƒtƒ@ƒCƒ‹’†‚ĖTVƒ`ƒ…[ƒi[ƒfƒoƒCƒX–ž•ÏX(’nã”gƒ`ƒ…[ƒi[0—p)
[root@centos BonDriverProxy_Linux]# sed -i "s/pt3video./pt3video3/g" /usr/local/lib/BonDriver/BonDriver_LinuxPT-T1.so.conf@Đ@BonDriverÝ’čƒtƒ@ƒCƒ‹’†‚ĖTVƒ`ƒ…[ƒi[ƒfƒoƒCƒX–ž•ÏX(’nã”gƒ`ƒ…[ƒi[1—p)

[root@centos BonDriverProxy_Linux]# grep pt3video /usr/local/lib/BonDriver/BonDriver_LinuxPT-*.so.conf@Đ@BonDriverÝ’čƒtƒ@ƒCƒ‹’†‚ĖTVƒ`ƒ…[ƒi[ƒfƒoƒCƒX–žŠm”F
/usr/local/lib/BonDriver/BonDriver_LinuxPT-S0.so.conf:#DEVICE=/dev/pt3video0@Đ@BonDriverÝ’čƒtƒ@ƒCƒ‹’†‚ĖTVƒ`ƒ…[ƒi[ƒfƒoƒCƒX–ž(BS/CS”gƒ`ƒ…[ƒi[0—p)
/usr/local/lib/BonDriver/BonDriver_LinuxPT-S1.so.conf:#DEVICE=/dev/pt3video1@Đ@BonDriverÝ’čƒtƒ@ƒCƒ‹’†‚ĖTVƒ`ƒ…[ƒi[ƒfƒoƒCƒX–ž(BS/CS”gƒ`ƒ…[ƒi[1—p)
/usr/local/lib/BonDriver/BonDriver_LinuxPT-T0.so.conf:#DEVICE=/dev/pt3video2@Đ@BonDriverÝ’čƒtƒ@ƒCƒ‹’†‚ĖTVƒ`ƒ…[ƒi[ƒfƒoƒCƒX–ž(’nã”gƒ`ƒ…[ƒi[0—p)
/usr/local/lib/BonDriver/BonDriver_LinuxPT-T1.so.conf:#DEVICE=/dev/pt3video3@Đ@BonDriverÝ’čƒtƒ@ƒCƒ‹’†‚ĖTVƒ`ƒ…[ƒi[ƒfƒoƒCƒX–ž(’nã”gƒ`ƒ…[ƒi[1—p)

[root@centos BonDriverProxy_Linux]# cp BonDriverProxyEx /usr/local/lib/BonDriver/@Đ@BonDriverProxyEx‚ðƒRƒs[

[root@centos BonDriverProxy_Linux]# cp BonDriverProxyEx.conf /usr/local/lib/BonDriver/@Đ@BonDriverProxyExÝ’čƒtƒ@ƒCƒ‹‚ðƒRƒs[

[root@centos BonDriverProxy_Linux]# sed -i 's/\/home\/unknown\/work/\/usr\/local\/lib\/BonDriver/g' /usr/local/lib/BonDriver/BonDriverProxyEx.conf@Đ@BonDriverProxyExÝ’čƒtƒ@ƒCƒ‹’†‚ĖBonDriverƒpƒXCģ

[root@centos BonDriverProxy_Linux]# grep BonDriver /usr/local/lib/BonDriver/BonDriverProxyEx.conf@Đ@BonDriverProxyExÝ’čƒtƒ@ƒCƒ‹’†‚ĖBonDriverƒpƒXŠm”F
00=PT-T;/usr/local/lib/BonDriver/BonDriver_LinuxPT-T0.so;/usr/local/lib/BonDriver/BonDriver_LinuxPT-T1.so@Đ@BonDriverProxyExÝ’čƒtƒ@ƒCƒ‹’†‚ĖBonDriverƒpƒX(’nã”gƒ`ƒ…[ƒi[—p)
01=PT-S;/usr/local/lib/BonDriver/BonDriver_LinuxPT-S0.so;/usr/local/lib/BonDriver/BonDriver_LinuxPT-S1.so@Đ@BonDriverProxyExÝ’čƒtƒ@ƒCƒ‹’†‚ĖBonDriverƒpƒX(BS/CS”gƒ`ƒ…[ƒi[—p)

[root@centos BonDriverProxy_Linux]# cp BonDriver_Proxy.so /usr/local/lib/BonDriver/BonDriver_Proxy-S.so@Đ@BonDriver_Proxy‚ðƒRƒs[(BS/CS”gƒ`ƒ…[ƒi[—p)
[root@centos BonDriverProxy_Linux]# cp BonDriver_Proxy.so /usr/local/lib/BonDriver/BonDriver_Proxy-T.so@Đ@BonDriver_Proxy‚ðƒRƒs[(’nã”gƒ`ƒ…[ƒi[—p)

[root@centos BonDriverProxy_Linux]# cp BonDriver_Proxy.conf /usr/local/lib/BonDriver/BonDriver_Proxy-S.so.conf@Đ@BonDriver_ProxyÝ’čƒtƒ@ƒCƒ‹‚ðƒRƒs[(BS/CS”gƒ`ƒ…[ƒi[—p)
[root@centos BonDriverProxy_Linux]# cp BonDriver_Proxy.conf /usr/local/lib/BonDriver/BonDriver_Proxy-T.so.conf@Đ@BonDriver_ProxyÝ’čƒtƒ@ƒCƒ‹‚ðƒRƒs[(’nã”gƒ`ƒ…[ƒi[—p)

[root@centos BonDriverProxy_Linux]# sed -i "s/ADDRESS=.*/ADDRESS=127.0.0.1/g" /usr/local/lib/BonDriver/BonDriver_Proxy-S.so.conf@Đ@BonDriver_ProxyÝ’čƒtƒ@ƒCƒ‹’†‚ĖƒT[ƒo[IPƒAƒhƒŒƒXCģ(BS/CS”gƒ`ƒ…[ƒi[—p)
[root@centos BonDriverProxy_Linux]# sed -i "s/ADDRESS=.*/ADDRESS=127.0.0.1/g" /usr/local/lib/BonDriver/BonDriver_Proxy-T.so.conf@Đ@BonDriver_ProxyÝ’čƒtƒ@ƒCƒ‹’†‚ĖƒT[ƒo[IPƒAƒhƒŒƒXCģ(’nã”gƒ`ƒ…[ƒi[—p)

[root@centos BonDriverProxy_Linux]# grep ADDRESS /usr/local/lib/BonDriver/BonDriver_Proxy-*.conf@Đ@BonDriver_ProxyÝ’čƒtƒ@ƒCƒ‹’†‚ĖADDRESSŠm”F
/usr/local/lib/BonDriver/BonDriver_Proxy-S.so.conf:ADDRESS=127.0.0.1@Đ@BonDriver_ProxyÝ’čƒtƒ@ƒCƒ‹’†‚ĖADDRESS(BS/CS”gƒ`ƒ…[ƒi[—p)
/usr/local/lib/BonDriver/BonDriver_Proxy-S.so.conf:TARGET_ADDRESS=127.0.0.1@Đ@BonDriver_ProxyÝ’čƒtƒ@ƒCƒ‹’†‚ĖADDRESS(BS/CS”gƒ`ƒ…[ƒi[—p)
/usr/local/lib/BonDriver/BonDriver_Proxy-S.so.conf:TARGET_MACADDRESS=127.0.0.1@Đ@BonDriver_ProxyÝ’čƒtƒ@ƒCƒ‹’†‚ĖADDRESS(BS/CS”gƒ`ƒ…[ƒi[—p)
/usr/local/lib/BonDriver/BonDriver_Proxy-T.so.conf:ADDRESS=127.0.0.1@Đ@BonDriver_ProxyÝ’čƒtƒ@ƒCƒ‹’†‚ĖADDRESS(’nã”gƒ`ƒ…[ƒi[—p)
/usr/local/lib/BonDriver/BonDriver_Proxy-T.so.conf:TARGET_ADDRESS=127.0.0.1@Đ@BonDriver_ProxyÝ’čƒtƒ@ƒCƒ‹’†‚ĖADDRESS(’nã”gƒ`ƒ…[ƒi[—p)
/usr/local/lib/BonDriver/BonDriver_Proxy-T.so.conf:TARGET_MACADDRESS=127.0.0.1@Đ@BonDriver_ProxyÝ’čƒtƒ@ƒCƒ‹’†‚ĖADDRESS(’nã”gƒ`ƒ…[ƒi[—p)

[root@centos BonDriverProxy_Linux]# sed -i "s/BONDRIVER=.*/BONDRIVER=PT-S/g" /usr/local/lib/BonDriver/BonDriver_Proxy-S.so.conf@Đ@BonDriver_ProxyÝ’čƒtƒ@ƒCƒ‹’†‚ĖBONDRIVER–žCģ(BS/CS”gƒ`ƒ…[ƒi[—p)
[root@centos BonDriverProxy_Linux]# sed -i "s/BONDRIVER=.*/BONDRIVER=PT-T/g" /usr/local/lib/BonDriver/BonDriver_Proxy-T.so.conf@Đ@BonDriver_ProxyÝ’čƒtƒ@ƒCƒ‹’†‚ĖBONDRIVER–žCģ(’nã”gƒ`ƒ…[ƒi[—p)

[root@centos BonDriverProxy_Linux]# grep BONDRIVER /usr/local/lib/BonDriver/BonDriver_Proxy-*.conf@Đ@BonDriver_ProxyÝ’čƒtƒ@ƒCƒ‹’†‚ĖBONDRIVER–žŠm”F
/usr/local/lib/BonDriver/BonDriver_Proxy-S.so.conf:BONDRIVER=PT-S@Đ@BonDriver_ProxyÝ’čƒtƒ@ƒCƒ‹’†‚ĖBONDRIVER–ž(BS/CS”gƒ`ƒ…[ƒi[—p)
/usr/local/lib/BonDriver/BonDriver_Proxy-T.so.conf:BONDRIVER=PT-T@Đ@BonDriver_ProxyÝ’čƒtƒ@ƒCƒ‹’†‚ĖBONDRIVER–ž(’nã”gƒ`ƒ…[ƒi[—p)

i‚QjrecbondƒCƒ“ƒXƒg[ƒ‹
[root@centos BonDriverProxy_Linux]# cd recbond/@Đ@recbondƒRƒ}ƒ“ƒhƒ_ƒEƒ“ƒ[ƒhæ‚ÖˆÚ“Ū


[root@centos recbond]# ./autogen.sh && ./configure --enable-b25 && make && make install@Đ@recbondƒRƒ}ƒ“ƒhƒCƒ“ƒXƒg[ƒ‹

[root@centos recbond]# cd@Đ@ƒz[ƒ€ƒfƒBƒŒƒNƒgƒŠ‚Ö–ß‚é

[root@centos ~]# rm -rf BonDriverProxy_Linux/@Đ@ƒ_ƒEƒ“ƒ[ƒhƒfƒBƒŒƒNƒgƒŠ‚ðíœ

ĄBonDriverProxyEx‹N“Ū

[root@centos ~]# vi /etc/systemd/system/BonDriverProxyEx.service@Đ@BonDriverProxyEx‹N“ŪƒXƒNƒŠƒvƒgėŽ
[Unit]
Description=BonDriverProxyEx
After=network.target

[Service]
Type=forking
User=root
ExecStart=/usr/local/lib/BonDriver/BonDriverProxyEx 127.0.0.1 1192
Restart=always

[Install]
WantedBy=multi-user.target

[root@centos ~]# systemctl start BonDriverProxyEx@Đ@BonDriverProxyEx‹N“Ū

[root@centos ~]# systemctl enable BonDriverProxyEx@Đ@BonDriverProxyExŽĐ“Ū‹N“ŪÝ’č

ĄBonDriverProxy&recbondŠm”F

[root@centos ~]# recbond --driver /usr/local/lib/BonDriver/BonDriver_Proxy-T.so --b25 27 5 test.ts@Đ@27ƒ`ƒƒƒ“ƒlƒ‹(ŠÖ“ŒŒ—‚ĖNHK‘‡(’))‚ð10•bŠÔ˜^‰æ‚ĩ‚Ätest.ts‚Æ‚Ē‚Ī–ž‘O‚Å•Û‘ķ
using driver: /usr/local/lib/BonDriver/BonDriver_Proxy-T.so
using B25...
pid = 22522
driver = /usr/local/lib/BonDriver/BonDriver_Proxy-T.so
C/N = 32.574532dB
Recording...
Recorded 6sec
(’)ƒ`ƒƒƒ“ƒlƒ‹‚Í’nˆæ‚É‚æ‚Á‚ĈŲ‚Č‚é‚Ė‚ŁA’nãƒfƒWƒ^ƒ‹•ú‘—ƒ`ƒƒƒ“ƒlƒ‹ˆę——•\‚ÅŠm”F‚·‚é‚ą‚Æ
—á‚Æ‚ĩ‚āAŠÖ“Œ‚Å“Œ‹žƒXƒJƒCƒcƒŠ[‚Đ‚į“d”g‚ðŽóM‚ĩ‚Ä‚Ē‚éę‡ANHK‘‡‚Ėƒ`ƒƒƒ“ƒlƒ‹”ԍ†‚Í27

 WinSCP‚Ř^‰æƒtƒ@ƒCƒ‹‚ðƒ_ƒEƒ“ƒ[ƒh‚ĩ‚ÄVLC media player‚ōĐķ‚Å‚Ŧ‚é‚ĐŠm”F

[root@centos ~]# rm -f test.ts@Đ@˜^‰æƒtƒ@ƒCƒ‹íœ



ĄEPGRemoteƒCƒ“ƒXƒg[ƒ‹

[root@centos ~]# yum -y install nodejs@Đ@EPGRemote‚É•K—v‚ČƒpƒbƒP[ƒW‚ðƒCƒ“ƒXƒg[ƒ‹

[root@centos ~]# cd /usr/local/@Đ@EPGRemoteƒCƒ“ƒXƒg[ƒ‹æ‚ÖˆÚ“Ū

[root@centos local]# git clone https://github.com/l3tnun/EPGRemote.git@Đ@EPGRemoteƒ_ƒEƒ“ƒ[ƒh

[root@centos local]# cd EPGRemote@Đ@EPGRemoteƒ_ƒEƒ“ƒ[ƒhæ‚ÖˆÚ“Ū

[root@centos EPGRemote]# npm install && npm run build@Đ@EPGRemoteƒCƒ“ƒXƒg[ƒ‹

ĄEPGRemoteÝ’č

[root@centos EPGRemote]# cp -r php/epgremote /var/www/epgrec/@Đ@EPGRemote—pPHP‚ðepgrec UNAƒCƒ“ƒXƒg[ƒ‹æ‚ÖƒRƒs[

[root@centos EPGRemote]# cp config/config.json.sample config/config.json@Đ@EPGRemoteÝ’čƒtƒ@ƒCƒ‹‚ðƒTƒ“ƒvƒ‹‚æ‚čƒRƒs[

[root@centos EPGRemote]# cp config/logConfig.json.sample config/logConfig.json@Đ@EPGRemoteƒƒOÝ’čƒtƒ@ƒCƒ‹‚ðƒTƒ“ƒvƒ‹‚æ‚čƒRƒs[

[root@centos EPGRemote]# vi config/config.json@Đ@EPGRemoteÝ’čƒtƒ@ƒCƒ‹•ŌW
    "enableLiveStream" : false,@Đ@•ú‘—’†”Ô‘g‚ĖHLS”zM‚ð–ģŒø‰ŧ
    "enableLiveHttpStream" : true,@Đ@ƒXƒ}ƒz‚Đ‚į‚Ė•ú‘—’†”Ô‘g‚ĖŽ‹’Ū‚ð—LŒø‰ŧ
    "enableLivePCHttpStream" : false,@Đ@PC‚Đ‚į‚Ė•ú‘—’†”Ô‘g‚ĖŽ‹’Ū‚ð–ģŒø‰ŧĶPC‚Đ‚į‚Ė•ú‘—’†”Ô‘g‚ĖŽ‹’Ū‚Íepgrec UNA‚ōs‚Ī
    "enableRecordedStream" : false,@Đ@˜^‰æÏ”Ô‘g‚ĖHLS”zM‚ð–ģŒø‰ŧĶ˜^‰æÏ”Ô‘g‚ĖŽ‹’Ū‚ÍTSƒtƒ@ƒCƒ‹‚ðÄķ

    "broadcast" :  { "GR" : true, "BS" : true, "CS" : true, "EX" : false },@Đ@Ž‹’Ū‰Â”\‚Č•ú‘—”g‚ðepgrec UNA‚ɍ‡‚í‚đ‚Ätrue‚É‚·‚é

    "liveHttpVideoSetting" : [
        {
            "id"      : 1,
            "name"    : "–ģ•ÏŠ·(main)",
            "command" : "/usr/bin/ffmpeg -re -dual_mono_mode main -i pipe:0 -acodec libfdk_aac -ar 48000 -ab 192k -ac 2 -vcodec copy -f mpegts -movflags frag_keyframe+empty_moov pipe:1"@Đ@ffmpegƒRƒ}ƒ“ƒhƒpƒX•ÏX
        },
        {
            "id"      : 2,
            "name"    : "–ģ•ÏŠ·(sub)",
            "command" : "/usr/bin/ffmpeg -re -dual_mono_mode sub -i pipe:0 -acodec libfdk_aac -ar 48000 -ab 192k -ac 2 -vcodec copy -f mpegts -movflags frag_keyframe+empty_moov pipe:1"@Đ@ffmpegƒRƒ}ƒ“ƒhƒpƒX•ÏX
        },
        {
            "id"      : 3,
            "name"    : "720x480(main)",
            "command" : "/usr/bin/ffmpeg -re -dual_mono_mode main -i pipe:0 -acodec libfdk_aac -ar 48000 -ab 192k -ac 2 -vcodec libx264 -s 720x480 -filter:v yadif -aspect 16:9 -vb 1500k -f mpegts -movflags frag_keyframe+empty_moov pipe:1"@Đ@ffmpegƒRƒ}ƒ“ƒhƒpƒX•ÏX
        },
        {
            "id"      : 4,
            "name"    : "720x480(sub)",
            "command" : "/usr/bin/ffmpeg -re -dual_mono_mode sub -i pipe:0 -acodec libfdk_aac -ar 48000 -ab 192k -ac 2 -vcodec libx264 -s 720x480 -filter:v yadif -aspect 16:9 -vb 1500k -f mpegts -movflags frag_keyframe+empty_moov pipe:1"@Đ@ffmpegƒRƒ}ƒ“ƒhƒpƒX•ÏX
        }
    ],

    ||ƒ`ƒ…[ƒi[’č‹`·‚ĩ‘Ö‚Ķ(‚ą‚ą‚Đ‚į)||
    "tuners": [
        {
            "id"        : 1,
            "name"      : "PT3-S",
            "types"     : [ "BS", "CS" ],
            "command"   : "/usr/local/bin/recbond --driver /usr/local/lib/BonDriver/BonDriver_Proxy-S.so --b25 --sid   - - "
        },
        {
            "id"        : 2,
            "name"      : "PT3-T",
            "types"     : [ "GR" ],
            "command"   : "/usr/local/bin/recbond --driver /usr/local/lib/BonDriver/BonDriver_Proxy-T.so --b25 --sid   - - "
        }
    ],
    ||ƒ`ƒ…[ƒi[’č‹`·‚ĩ‘Ö‚Ķ(‚ą‚ą‚Ü‚Å)||

    "EpgrecDatabaseConfig" : {
        "host": "localhost",
        "user": "epgrec",
        "password": "xxxxxxxx",@Đ@epgrec UNA—pDBƒpƒXƒ[ƒh‚ðŽw’č
        "database": "epgrec",
        "timeout": 5000
    },

    "epgrecConfig" : {
        "host" : "http://127.0.0.1/epgrec/",@Đ@epgrec UNA‚ĖƒAƒhƒŒƒX‚ðŽw’č
        "openHost": "http://192.168.0.2:1180",
        "rootPath": "/var/www/epgrec",
        "videoPath" : "/var/www/epgrec/video",
        "thumbsPath" : "/var/www/epgrec/thumbs",
        "recMode" : [
                        { "id" : 0, "name" : "Full TS" },
                        { "id" : 1, "name" : "HD TS" },
                        { "id" : 2, "name" : "SD TS" },
                        { "id" : 3, "name" : "H264-HD" },
                        { "id" : 4, "name" : "H264-SD" }
                    ],
        "recModeDefaultId" : 1,@Đ@ƒfƒtƒHƒ‹ƒg‚Ė˜^‰æŒ`ŽŪ‚ðepgrec UNA‚Æ“Ŋ‚ķ"HD TS"‚É‚·‚é
        "startTranscodeId" : 3
    },

[root@centos EPGRemote]# vi config/logConfig.json@Đ@EPGRemoteƒƒOÝ’čƒtƒ@ƒCƒ‹•ŌW
        {
            "type":     "file",
            "category": "system",
            "maxLogSize": 1048576,
            "backups": 3,
            "category": "system",
            "filename": "/usr/local/EPGRemote/logs/system.log",@Đ@ƒƒOƒtƒ@ƒCƒ‹–žCģ(system.log)
            "pattern":  "-yyyy-MM-dd"
        },
        {
            "type":     "file",
            "category": "access",
            "maxLogSize": 1048576,
            "backups": 3,
            "category": "access",
            "filename": "/usr/local/EPGRemote/logs/access.log",@Đ@ƒƒOƒtƒ@ƒCƒ‹–žCģ(access.log)
            "pattern":  "-yyyy-MM-dd"
        },
        {
            "type":     "file",
            "category": "stream",
            "maxLogSize": 1048576,
            "backups": 3,
            "category": "stream",
            "filename": "/usr/local/EPGRemote/logs/stream.log",@Đ@ƒƒOƒtƒ@ƒCƒ‹–žCģ(stream.log)
            "pattern":  "-yyyy-MM-dd"
        },

[root@centos EPGRemote]# cd@Đ@ƒz[ƒ€ƒfƒBƒŒƒNƒgƒŠ‚Ö–ß‚é

ĄEPGRemote‹N“Ū

[root@centos ~]# npm install pm2 -g@Đ@pm2ƒCƒ“ƒXƒg[ƒ‹

[root@centos ~]# pm2 start /usr/local/EPGRemote/build-server/index.js --name epgremote@Đ@pm2‚ÅEPGRemote‹N“Ū

[root@centos ~]# pm2 startup systemd@Đ@pm2ŽĐ“Ū‹N“ŪÝ’č‰ŧ

[root@centos ~]# systemctl enable pm2-root@Đ@pm2ŽĐ“Ū‹N“ŪÝ’č

Ąepgrec UNAÝ’č

[root@centos recbond]# vi /var/www/epgrec/config.php@Đ@epgrec UNAÝ’čƒtƒ@ƒCƒ‹•ŌW
define( 'TUNER_UNIT1', 0 );@Đ@ƒ`ƒ…[ƒi[”‚ðƒ[ƒ‚É‚·‚é

$rec_cmds = array(
        // PTn(recpt1)
        0 => array(
                'cmd'      => '/usr/local/bin/recpt1',          // ƒRƒ}ƒ“ƒhƒtƒ‹ƒpƒX
                'b25'      => ' --b25 --strip',                         // B25ƒIƒvƒVƒ‡ƒ“
                'sidEXT'   => '',                                                       // ˜^‰æŽž--sid’Į‰ÁƒIƒvƒVƒ‡ƒ“
                'falldely' => 0,                                                        // ˜^‰æƒRƒ}ƒ“ƒhŽļ”sŽž‚Ėwait(•b)
                'epgTs'    => TRUE,                                                     // EPG—pTSo—̓pƒbƒ`Žg—pŽž‚ÍTRUE
                'cntrl'    => TRUE,                                                     // recpt1ctl‘Ήžƒpƒbƒ`Žg—pŽž‚ÍTRUE
                'httpS'    => FALSE,                                            // httpƒT[ƒo[‹@”\‘ΉžŽž‚ÍTRUE
        ),
        // DVB(recdvb)
        1 => array(
                'cmd'      => '/usr/local/bin/recdvb',
                'b25'      => ' --b25 --strip',
                'sidEXT'   => '',
                'falldely' => 0,
                'epgTs'    => TRUE,
                'cntrl'    => TRUE,
                'httpS'    => TRUE,
        ),
        // recfsusb2n
        2 => array(
                'cmd'      => '/usr/local/bin/recfsusb2n',
                'b25'      => ' --b25',
                'sidEXT'   => '',
                'falldely' => 10,
                'epgTs'    => FALSE,
                'cntrl'    => FALSE,
                'httpS'    => FALSE,
        ),
        // recfriio
        3 => array(
                'cmd'      => '/usr/local/bin/recfriio',
                'b25'      => ' --b25',
                'sidEXT'   => '',
                'falldely' => 0,
                'epgTs'    => FALSE,
                'cntrl'    => FALSE,
                'httpS'    => FALSE,
        ),
        ||recbondƒRƒ}ƒ“ƒh’č‹`’Į‰Á(‚ą‚ą‚Đ‚į)||
        4 => array(
                'cmd'      => '/usr/local/bin/recbond',
                'b25'      => ' --b25 --strip',
                'sidEXT'   => '',
                'falldely' => 0,
                'epgTs'    => TRUE,
                'cntrl'    => TRUE,
                'httpS'    => TRUE,
        ),
        ||recbondƒRƒ}ƒ“ƒh’č‹`’Į‰Á(‚ą‚ą‚Ü‚Å)||

);

$OTHER_TUNERS_CHARA = array(
        // ’nƒfƒW
        'GR' => array(
                0 => array(
                        'reccmd'   => 4,@Đ@Žg—pƒRƒ}ƒ“ƒh‚ðrecbond‚É‚·‚é(’nã”gƒ`ƒ…[ƒi[0—p)
                        'device'   => '--driver /usr/local/lib/BonDriver/BonDriver_Proxy-T.so',@Đ@recbondƒRƒ}ƒ“ƒhƒIƒvƒVƒ‡ƒ“(driver)‚ðŽw’č(’nã”gƒ`ƒ…[ƒi[—p)
                ),
                1 => array(
                        'reccmd'   => 4,@Đ@Žg—pƒRƒ}ƒ“ƒh‚ðrecbond‚É‚·‚é(’nã”gƒ`ƒ…[ƒi[1—p)
                        'device'   => '--driver /usr/local/lib/BonDriver/BonDriver_Proxy-T.so',@Đ@recbondƒRƒ}ƒ“ƒhƒIƒvƒVƒ‡ƒ“(driver)‚ðŽw’č(’nã”gƒ`ƒ…[ƒi[—p)
                ),
        ),
        // ‰qŊ(BS/CS)
        'BS' => array(
                0 => array(
                        'reccmd'   => 4,@Đ@Žg—pƒRƒ}ƒ“ƒh‚ðrecbond‚É‚·‚é(BS/CS”gƒ`ƒ…[ƒi[0—p)
                        'device'   => '--driver /usr/local/lib/BonDriver/BonDriver_Proxy-S.so',@Đ@recbondƒRƒ}ƒ“ƒhƒIƒvƒVƒ‡ƒ“(driver)‚ðŽw’č(BS/CS”gƒ`ƒ…[ƒi[—p)
                ),
                1 => array(
                        'reccmd'   => 4,@Đ@Žg—pƒRƒ}ƒ“ƒh‚ðrecbond‚É‚·‚é(BS/CS”gƒ`ƒ…[ƒi[1—p)
                        'device'   => '--driver /usr/local/lib/BonDriver/BonDriver_Proxy-S.so',@Đ@recbondƒRƒ}ƒ“ƒhƒIƒvƒVƒ‡ƒ“(driver)‚ðŽw’č(BS/CS”gƒ`ƒ…[ƒi[—p)
                ),
        )
);

ĄEPGRemoteŠm”F

 ƒXƒ}ƒz‚Đ‚įhttp://ƒT[ƒo[IPƒAƒhƒŒƒX:8888‚ÖƒAƒNƒZƒX‚ĩ‚ÄEPGRemoteƒy[ƒW‚Š•\ŽĶ‚ģ‚ę‚é‚ą‚Æ
 ƒXƒ}ƒz‚Đ‚į•ú‘—’†”Ô‘g‚ðŽ‹’Ū‚Å‚Ŧ‚é‚ą‚ƁĶ‚ ‚į‚Đ‚ķ‚ßVLC for Mobile - VideoLAN(iOS‚Ėę‡)‚Ü‚―‚ÍMX PlayerƒAƒvƒŠ(Android)‚ðƒCƒ“ƒXƒg[ƒ‹‚ĩ‚Ä‚Ļ‚­‚ą‚Æ
 ƒXƒ}ƒz‚Đ‚į˜^‰æÏ”Ô‘g‚ðŽ‹’Ū‚Å‚Ŧ‚é‚ą‚ƁĶ‚ ‚į‚Đ‚ķ‚ßInfuse 5 ~ an elegant video player - Firecore, LLC(iOS‚Ėę‡)‚Ü‚―‚ÍMX PlayerƒAƒvƒŠ(Android)‚ðƒCƒ“ƒXƒg[ƒ‹‚ĩ‚Ä‚Ļ‚­‚ą‚Æ
 ƒXƒ}ƒz‚Đ‚į‚ŧ‚Ė‘ž‘€ė(”Ô‘g•\‰{——A˜^‰æ—\–ņA˜^‰æ—\–ņˆę——‰{——A”Ô‘gŒŸõAepgrec“ŪėƒƒO‰{——)‚Šs‚Ķ‚é‚ą‚Æ






Ģ‚ą‚Ėƒy[ƒW‚Ėƒgƒbƒv‚Ö–ß‚é

LPIƒƒS Copyright© 2005-2017 fallenangels, All rights reserved.
‚ēŽĐ—R‚ɃŠƒ“ƒN‚ĩ‚Ä‚­‚ū‚ģ‚Ē(˜A—‚Í•s—v‚Å‚·)
–{ƒy[ƒW‚Ö‚Ė‚ēˆÓŒĐE‚ē—v–]AŒëŽšE’EŽšEƒŠƒ“ƒNØ‚ę“™‚Ė‚ē˜A—‚Í‚ą‚ŋ‚į‚Đ‚į‚ĻŠč‚Ē‚ĩ‚Ü‚·