Forums » Tutorial and setups »
[Solved] Freenas: Adding HDHRPrime as IPTV (no services)
Added by Jonathan McGuire over 5 years ago
I'm new to TvHeadend but I did search around first without finding a solution. I did a fresh install on Freenas 11.2 by creating an iocage jail...
echo '{"pkgs":["tvheadend"]}' > /tmp/pkg.json
iocage create -n "tvheadend" -p /tmp/pkg.json -r 11.2-RELEASE ip4_addr="vnet0|<IP>/<MASK>" defaultrouter="<GATEWAY>" vnet="on" allow_raw_sockets="1" boot="on"
rm /tmp/pkg.json
Edited the rc.conf and enabled tvheadend_enable=YES and started with the -C argument to login...
iocage exec tvheadend ee /etc/rc.conf
I after getting into the UI I set the user:password and my HDHR Prime tuners all showed up. I followed this video (https://www.youtube.com/watch?v=6Dgjn1IKrFM) from KordKutters (Nate from Kodi) and got stuck when no services were activated on my Mux.
Here is the log, any suggestions on what I'm doing wrong are appreciated.
2019-02-24 20:37:42.797 mpegts: adding mux Multiplex [onid:FFFF tsid:FFFF] in HDHomerun to scan queue weight 5 flags 1000
2019-02-24 20:37:45.732 settings: saving to /usr/local/etc/tvheadend/input/iptv/networks/a78ebe8433005626039dc6be81c6399f/muxes/d9505c20324f03b88ba7585cbd441cb7
2019-02-24 20:37:52.743 mpegts: ESPNHD in HDHomerun - add raw service
2019-02-24 20:37:52.743 service: 1: ESPNHD in HDHomerun si 0x80503c240 weight 0 prio 11 error 0 (OK)
2019-02-24 20:37:52.743 mpegts: ESPNHD in HDHomerun - tuning on IPTV
2019-02-24 20:37:52.744 mpegts: ESPNHD in HDHomerun - started
2019-02-24 20:37:52.744 epggrab: ESPNHD in HDHomerun - registering mux for OTA EPG
2019-02-24 20:37:52.744 settings: saving to /usr/local/etc/tvheadend/epggrab/otamux/d9505c20324f03b88ba7585cbd441cb7
2019-02-24 20:37:52.744 settings: saving to /usr/local/etc/tvheadend/epggrab/otamux/d9505c20324f03b88ba7585cbd441cb7
2019-02-24 20:37:52.744 mpegts: ESPNHD in HDHomerun - open PID 0012 (18) [20/0x806213000]
2019-02-24 20:37:52.744 tbl-eit: eit: installed table handlers
2019-02-24 20:37:52.744 tbl-eit: eit: grab started
2019-02-24 20:37:52.744 mpegts: ESPNHD in HDHomerun - open PID 1FFB (8187) [20/0x806413000]
2019-02-24 20:37:52.744 tbl-eit: mgt: installed table handlers
2019-02-24 20:37:52.744 psip: psip: grab started
2019-02-24 20:37:52.744 mpegts: ESPNHD in HDHomerun - open PID tables subscription [0042/0x80501e400]
2019-02-24 20:37:52.744 subscription: 000A: "scan" subscribing to mux "ESPNHD", weight: 5, adapter: "IPTV", network: "HDHomerun", service: "Raw PID Subscription"
2019-02-24 20:37:53.207 mpegts: ESPNHD in HDHomerun - open PID 0000 (0) [20/0x80634e000]
2019-02-24 20:37:53.207 mpegts: ESPNHD in HDHomerun - open PID 0001 (1) [16/0x80634f800]
2019-02-24 20:37:53.207 mpegts: ESPNHD in HDHomerun - open PID 0010 (16) [16/0x806214800]
2019-02-24 20:37:53.207 mpegts: ESPNHD in HDHomerun - open PID 0011 (17) [20/0x806270000]
2019-02-24 20:37:53.207 mpegts: ESPNHD in HDHomerun - open PID 0011 (17) [16/0x8062a5800]
2019-02-24 20:37:53.207 service: ESPNHD in HDHomerun: Status changed to [Demuxed packets]
2019-02-24 20:37:53.207 service: ESPNHD in HDHomerun: Status changed to [Demuxed packets] [Reassembled packets]
2019-02-24 20:37:53.207 tbl-base: pat: ESPNHD in HDHomerun: TSID zero value detected, ignoring
2019-02-24 20:37:53.464 tbl-base: pat: completed pid 0 table 00000000 / 00000000
2019-02-24 20:37:54.745 service: ESPNHD in HDHomerun: Status changed to [Demuxed packets] [Reassembled packets] [CA check]
2019-02-24 20:38:07.752 mpegts: ESPNHD in HDHomerun - close PID 0011 (17) [20/0x806270000]
2019-02-24 20:38:07.752 mpegts: ESPNHD in HDHomerun - close PID 0010 (16) [16/0x806214800]
2019-02-24 20:38:07.752 mpegts: ESPNHD in HDHomerun - close PID 0001 (1) [16/0x80634f800]
2019-02-24 20:38:07.752 mpegts: ESPNHD in HDHomerun - 0000 (0) pat complete
2019-02-24 20:38:07.752 mpegts: ESPNHD in HDHomerun scan complete
2019-02-24 20:38:07.752 subscription: 000A: "scan" unsubscribing
2019-02-24 20:38:07.752 mpegts: ESPNHD in HDHomerun - close PID tables subscription [0042/0x80501e400]
2019-02-24 20:38:07.752 mpegts: ESPNHD in HDHomerun - stopping mux
2019-02-24 20:38:07.753 mpegts: ESPNHD in HDHomerun - close PID 0000 (0) [20/0x80634e000]
2019-02-24 20:38:07.753 mpegts: ESPNHD in HDHomerun - close PID 0011 (17) [16/0x8062a5800]
2019-02-24 20:38:07.753 mpegts: ESPNHD in HDHomerun - close PID 0012 (18) [20/0x806213000]
2019-02-24 20:38:07.753 mpegts: ESPNHD in HDHomerun - close PID 1FFB (8187) [20/0x806413000]
2019-02-24 20:38:07.753 epggrab: grab done for ESPNHD in HDHomerun (stolen)
2019-02-24 20:38:07.753 mpegts: removing mux ESPNHD in HDHomerun from scan queue
2019-02-24 20:38:10.763 settings: saving to /usr/local/etc/tvheadend/input/iptv/networks/a78ebe8433005626039dc6be81c6399f/muxes/d9505c20324f03b88ba7585cbd441cb7
Replies (3)
RE: Freenas: Adding HDHRPrime as IPTV (no services) - Added by Mark Clarkstone over 5 years ago
Go into Config -> DVB Inputs -> Muxes, select all muxes (ctrl a) and click Edit - change the view level to Expert -> Tick the checkboxes next to "Accept zero value for TSID" (both of them) and save.
Finally in the muxes tab hit "Force scan" for your network - hopefully your services should appear now!
HTH
RE: Freenas: Adding HDHRPrime as IPTV (no services) - Added by Jonathan McGuire over 5 years ago
Thank you, that fixed it! Now I've run into another issue...
I'm trying the get schedules direct to work for epg and have installed xmltv
iocage console tvheadend
pkg install p5-xmltv
tv_grab_zz_sdjson --configure
I went through the configuration process just fine but something is failing. The grabber module is installed and enabled (disabled all others and set SD to priority 1). I think it may have to do with not running as "hts". The Freenas package didn't create an hts user during installation so I have probably missed a step if that is my issue. Here is the error log, but again I did go through the config using command line so it is somewhat misleading.
2019-02-25 00:58:05.453 spawn: Name "Params::Validate::NO_VALIDATION" used only once: possible typo at /usr/local/bin/tv_grab_zz_sdjson line 238.
2019-02-25 00:58:05.509 spawn: You need to configure the grabber by running it with --configure
2019-02-25 00:58:05.513 xmltv: /usr/local/bin/tv_grab_zz_sdjson: no output detected
2019-02-25 00:58:05.513 xmltv: /usr/local/bin/tv_grab_zz_sdjson: grab returned no data
RE: Freenas: Adding HDHRPrime as IPTV (no services) - Added by Mark Clarkstone over 5 years ago
you need to configure the script using the same user as tvheadend (on debian that would be sudo-u hts bash ... script ---configure... exit)