Sheffield's Space
Xpenology NAS Setup - Tvheadend 본문
※ 이 포스팅은 내가 잊어버리지 않기 위해 쓰는 글이야.
Xpenology Tvheadend 패키지 주소 : http://syno.dierkse.nl/
(+ TvplexendChannel plugin : https://github.com/pgaubatz/TvplexendChannel.bundle)
기본 포트 WebUI 9981, Streaming 9982. 실행 전 포트 확인할것. (실행안될수 있음)
1. 채널정보수집 : (https://nas.moe/archives/1433 에서 많은 도움을 받았습니다. 고맙습니다!)
a. FTTH 모뎀에 유선직결후 omvp 로 scan.
b. omvp : http://ohhara.sarang.net/omvp/bin/ 에서 다운로드 후 setup.bat, WinPcap_*_*_*.exe 파일을 실행.
c. Win + X, 명령 프롬프트(관리자) 실행해 omvp 폴더로 이동. (omvs -l (이더넷 어댑터 리스트))
d. omvs -i 0 -j 5 123.123.123.0/24 로 rtp scan.
(xxx.13.231.0, xxx.14.173.0, xxx.15.200.0, xxx.15.220.0, xxx.18.158.0) Two Three Three
e. 수집된 채널은 /omvp/omvs_out 에 들어감. m3u 로 들어가고 하나로 묶을수 있다.
2. Tvheadend 에 m3u 등록 : http://thskan176.tistory.com/8 에서 많은 도움을 받았습니다. 고마워요!!
a. Expert GUI 모드에서 Configuration - DVB inputs - Networks : Add. [IPTV Automatic Network]
Max. # input stream : 2~5
Create Bouquet [Enable]
Accept zero value for TSID [Enable]
URL : 웹에서 직접 다운한다. 나의 경우는 http://*.000webhostapp.com/hisatv.m3u
+ tvheadend users 계정에 streaming/recording 권한설정 해줄것.
3. EPG 설정 : https://www.clien.net/service/board/cm_nas/10797458?po=0&od=T31&sk=&sv=&category=&groupCd=
(클리앙 나스당 아기양님 감사합니다!)
a. tvheadend 서비스 중지후 putty 로 root 권한으로 접속.
cd /usr/bin
wget http://wepg.vacau.com/tv_grab_wp
chmod +x /usr/bin/tv_grab_wp
다시 서비스 실행후 그랩 모듈에서 내부 xmltv 켜주고 로그 뜨면 그래버 채널 생성완료.
b. 이제 epg2xml 로 만들어야 되는데 이걸 웹 php 로 실행하심. + 크론까지.. 멋지시다.
http://wepg.vacau.com/w.zip 아기양님이 만드신 php 파일. 이걸 무료웹호스팅 사이트에 올려서 돌린다.
무료웹호스팅 https://kr.000webhost.com
seting - general 의 hostname 과 username, 패스워드 이용해서 winscp 같은 ftp접속기로 접속후
위의 w.zip 압축풀어서 public_html 안에 전부 넣으면 된다 (이게 웹 메인화면 폴더)
수정할 것은 epg2xml.json 22행의 "default_xml_file" : "/storage/ssd5/888/1686888/public_html/xmltv.xml",
이걸 아까 무료웹호스팅 website detail 에서 정보 보고 자기에게 맞게 수정하면 된다.
settings - cronjob 에 epg2xml.php?i=ALL&o&l=2 정도로 해주면 됨.
4. Tvplexendchannel.plugin : http://3jini.tistory.com/87, https://www.clien.net/service/board/cm_nas/10418179?
(두분께 감사드립니다)
/plex/Plug-ins/TvplexendChannel.bundle/Contents/Code/__init__.py 수정이 필요함.
a. tvheadend-ng 사용시
358 라인
def createTVChannelObject(channel, chaninfo, cproduct, cplatform, container = False, checkFiles = 0): 을
def createTVChannelObject(channel, chaninfo, cproduct, cplatform, container = False, checkFiles = 0, includeBandwidths=0): 로.
b. TvplexendChannel 사용시
107라인
def Channel(channelId, container=False): 을
def Channel(channelId, container=False, includeBandwidths=0): 로.
'NAS' 카테고리의 다른 글
NAS, and Transcoding (0) | 2017.03.21 |
---|---|
NAS, 어떻게 활용해야 할까? (0) | 2017.03.16 |
자작 NAS 만들기, 뭘 써서 만들어야 하지? (11) | 2017.03.14 |
자작 NAS 만들기 #4. (0) | 2017.03.14 |
자작 NAS 만들기 #3. (0) | 2017.03.13 |