June 30, 201214 yr Trying to give this plugin a run on my test server with a HDhomerun but I think with the 5.0rc4 I'm losing network connectivity. I assume when the MEDIA tree is installed in the plugin it messes with the kernel and the realtek nic issue comes up. When I run 5.0rc5 r 8168 everything is fine. How easy is it to add MEDIA tree to the 5.0rc5-r-8168. I'm fairly new to this but I'm happy hacking away. Does anyone have any links to this? Hey, it's actually pretty simple. The link for building the kernel is here: http://lime-technology.com/wiki/index.php/Installing_Tvheadend_in_unRAID there isn't really any instructions for dvbhdhomerun...although it's not too hard. I'm not too sure about r8168. I would give it a try myself but I am very busy for the next few weeks...
June 30, 201214 yr Thanks, I had some free free time today but most of that has been burnt so I'll give that a try in the future when I get a chance but unfortunately like you I'm probably busy for a few weeks. Thanks Josh
June 30, 201214 yr Hi, Would it be possible for someone, perhaps kricker to walk me through the steps necessary to get guide data for atsc US into tvheadend. Under Linux I'd be looking for and configuring the file --> /usr/bin/tv_grab_na_dd Thanks in advance. I have everything setup to this point but without guide data I would just be using it as a glorified VCR Kryspy
July 1, 201214 yr kricker, Yes for sure. In fact I installed it on an Windows 7 laptop and made a xmltv.xml file. I am open to anything that is going to get my guide data at this point
July 1, 201214 yr I don't have a NTSC build of TVheadend, so I've not tested the XML file mc2xml generates with it yet. Running mc2xml on linux is exactly the same as on Windows. The only tweak I made was to make the .chl file to limit what channels it grabs. No reason to grab guide data for channels I never watch and would have disabled. Setup a Cron job to run mc2xml every 24-48 hours and copy the xml file to the proper TVheadend folder. Place that in th go file and you should be good to go. Do you have an NTSC build of TVheadend you can share?
July 1, 201214 yr thanks for the guide kicker. No unfortunately I am atsc only using the current plugin. Kryspy
July 1, 201214 yr Okay. I'm going to try to build one later and see if I can get it working. In the meantime let us know how the guide from mc2xml works for you.
July 2, 201214 yr seeing as how the mc2xml script is a workaround I pose a question. On Linux tvheadend uses a grabber for North America. If I do a install on Linux and extract that grabber why wouldn't it work on the unraid version ? Kryspy
July 2, 201214 yr I was thinking the same thing, but had not tested it. I knew how to use mc2xml, so I suggested it as an alternative.
July 4, 201214 yr Hi all, Firstly I am very excited to give this a go but I am having a particularly stressful time getting this up and running. I have a N40l with a TBS DVB-S2 (TBS 6981 PCI-E) dual tuner, I installed the plugin then from the plugin page I installed media tree\TBS package. It asked me to reboot and the plugin shows the following: System requirements: PASSED MEDIA tree: DETECTED DVB tuner: DETECTED Tvheadend login/password: ACCEPTED I adjusted the user/pass/xml and enabled tvheadend, running as nobody with a persistent data dir. Initially tower:9981 would not accept user/pass, a quick fiddle with the superuser fixed that and I can logon to the page, but I am now left with three? problems. 1) the plugin status is always showing Status: STOPPED. I select enable tvheadend and apply but when I click start the ui freezes. If I refresh the page it still says stopped but i can still connect to tower:9981. (im using simple features) 2) after a clean powerdown or restart the array does not start and the webpage is inaccessible, I have to delete the plugin and corresponding folder and unceanly reboot to get the array/webpage up again. 3) when I am able to onnect to the tvheadend webpage no tuners are listed and in the unraid log I have noticed the following tower sudo: root : TTY=console ; PWD=/ ; USER=nobody ; COMMAND=/usr/bin/tvheadend -c /mnt/cache/ServerApps/tvheadend/.htsconfig -u nobody -g video -f 2>&1 >/dev/null tower tvheadend[21163]: dvb: Unable to open /dev/dvb/adapter0/frontend0 -- Permission denied tower tvheadend[21163]: dvb: Unable to open /dev/dvb/adapter1/frontend0 -- Permission denied tower tvheadend[21163]: dvr: Creating new configuration '' tower tvheadend[21163]: dvr: Output directory for video recording is not yet configured for DVR configuration "". Defaulting to to "/". This can be changed from the web user interface. tower tvheadend[21163]: CSA: Using SSE2 128bit parallel descrambling tower tvheadend[21163]: START: HTS Tvheadend version started, running as PID:21163 UID:99 GID:100, settings located in '/mnt/cache/ServerApps/tvheadend/.htsconfig', dataroot: /usr/share/tvheadend Any help is greatly appreciated! p.s. I know I can "uninstall" by deleting the .plg and corresponding folder but I dont know how to remove media tree so havent been able to try a 'complete' reinstall.
July 4, 201214 yr Ok a little further along . . . I completely un-installed the plugin, plugin data and reverted bzimage and root to default, and started the procedure again. First installing the plugin, the from the plugin page installing tvheadend then media tree\drivers and restarted. SUCCESS the array came back online and the web gui was accessable I was also able to login to tvheadend without a user\pass! BUT I am still seeing a problem with the service showing stopped on the plugin web page. Tvheadend is enabled but when i click apply or start i get the following: Starting Tvheadend: sudo -u nobody /usr/bin/tvheadend -c /mnt/cache/ServerApps/tvheadend/.htsconfig -u nobody -g video -f 2>&1 >/dev/null and the page just sits on refreshing . . . despite this i am able to log onto the tvheadend page but that still lists no tuners under configuration. What am i missing\doing wrong?
July 14, 201213 yr Try run with root user ... and check dmesg log - for see if tuner are good started ...
July 14, 201213 yr Finally got it all working, in part thanks to the great british summer! For anyone else facing the same problem, or if it might be a bug, here is what i did altogether to get it working: 1) updated other plugins to "influencers" latest 2) downloaded the tvheadend plugin, created my settings, installed tvheadend then downloaded the TBS media tree ... ... ... rebooted 3) (for another reason i run permission fix) then the first run of tvheadend was as "root", it all fired up (previously as nobody i had the problems above) 4) changed permissions of "/dev/dvb/" (chmod -R .. ... ...) stopped tvheadend and fired her up as "nobody" 5) quick check and everything is detected accessible and stopping the array/rebooting is working with the webserver coming back up ok I don't know where in here i actually fixed my problem, but its all working now. I suppose i want to check if anyone knows why i was having problems and just to check if what i have done is 'kosha' as perhaps a little foolishly this was on my production server? Thank you for the plugin!
July 23, 201213 yr latest XMLTV https://dl.dropbox.com/u/49442039/xmltv-0.5.63-i486-1_W-W%28full%29.txz dont forget install perl package Plugin working great, except for xmltv. I installed PERL through UNmenu, but can't work out how to install this package. (Unraid newb, but experienced with tvheadend!)
July 23, 201213 yr The perl in unmenu is older than what the xmltv plugin is expecting. I'm also missing a whole host of other perl dependancies. Anyone know what you need to install the xmltv scrapers?
July 23, 201213 yr Actually the plugin seems to use a modified version of the tv_grab_file script to pull in an xml file. Had to delete my old epgdb and rebuild the channel associations but it looks to be working now.
July 23, 201213 yr Can you clarify the steps you did to get the XMLTV part working then? Did you need the unmenu Pearl plugin?
July 23, 201213 yr Well, I feel like a total NEWB here, but I've gotten pretty far into this setup so far Firstly, THANKS for tackling this plugin, it's great to see such an active community helping each other out! There seems to be a real lack of "how to", I'm assuming most in here are regular TVHeadend users, alas I have never used it before so I'm sure to have some "annoying" questions. 1) MC2XML seems to have dropped off the planet, anyone willing to share their copy? 2) I'm not sure how to get channels to show up, or is this because I have no MC2XML output? I can see my card, and it's registering that there are signals in there, it's adding services. I just don't see where to map those services to channels or anything... EDIT: Ok, now it's displaying channels and I can tune them in under XBMC, so WOOT Maybe it just needed time to populate? The only thing I have to get going now is the EPG. I have subscribed to SchedulesDirect, is that of any help?
July 24, 201213 yr Hopefully lem will come back and document his steps to getting XMLTV working properly.
July 24, 201213 yr Ok, well I finally got it up and running... LOTS to learn For those who are interested (and may be struggling like I was) I'm happy to post some of my findings! I am using the Windows-based XMLTV utility which grabs my lineup from Schedules Direct and saves it to an XML file. I downloaded the XMLTV zip and extracted it to my windows machine's C: drive. I then configured the XMLTV program (in Windows) by running: xmltv tv_grab_na_dd --configure I set it up for my Schedules Direct lineup and then I was ready to grab the actual EPG. The command I'm using (as I'm in Canada) is: xmltv tv_grab_na_dd --days 14 --out channels.xml This grabs 14 days of EPG data and saves it to a file called "channels.xml". This file is then copied to /mnt/extra/plugins/tvheadend/epg on my unRAID server. I created a batch file that runs this command and then scheduled a windows task to fire it every day at 5:00AM. I modified the tv_grab_file line '7' to read 'cat /mnt/extra/plugins/tvheadend/epg/channels.xml' - so it looks for that file. After I did that, when I clicked on "Save Configuration" under the XMLTV table in TVHEADEND's WEbGUI, it loaded the file, but still was not populating the EPG. I then discovered that I had to go into Channel Configuration and "point" each channel to it's EPG equivalent. This was done by clicking in the XMLTV SOURCE feild in the Channels tab of the TVHEADEND webGUI. Once I did that, it extracted a list of the "discovered" channels from my channels.xml file. I matched them all up, hit "Save Configuration" again in the XMLTV GUI and blammo, populated with all kinds of data So, that's how I got things going, I hope it helps someone else. I did discover too, that the intial scan of "services" on my DVB card took a LONG time, that's why I didn't see how to add services to channels. Once it had scanned in, I was able to map the channels. I'm thinking about creating a YouTube video of my trials and travails... maybe some people would get a little comfort in seeing it all laid out the way I did it. I'd still like to figure out how to have the tv_grab_na_dd work from the unRAID box, so I don't have to rely on the Windows box, but it's not that big a deal since I run a "master" XBMC on that box which updates the library/thumbnails etc for all my shared clients. The next thing I'd like to know is if this will work with multiple tuners, so I could get a couple of 2250s and have four (4) independent tuners to satisfy the people in the house. Also, would it work with USB tuners?
July 24, 201213 yr Unfortunately what worked for me isn't going to work for you as it does not support Canada or the US. My situation was a little complicated by the fact that I'd pulled in a tvheadend config from another machine. On the server I was using an xmltv scraper for the uk called tv_grab_uk_rt I tried installing the xmltv package listed earlier in this thread, but it references a newer perl package than the one available in the unmenu package section. I tried symlinking to the old perl and pulling in a newer slackware build but either way started running into dependency hell and gave up. I then noticed in the advanced config that there is xmltv support for most european countries. This uses a modified version of the tv_grab_file script to wget an xml file from a predefined server and the import it. This seems to work well for the UK, although the xml file content is quite different to my previous one so I had to delete my epgdb and start again. This is a great and well written plugin, but could benefit from a little documentation. I'm pretty new to unraid (built mine on Sunday!) - Will see if I can start a wiki entry for this with what I have learnt and hopefully it will build from there.
July 26, 201213 yr So, does anyone know whether this works ok with multiple adapters? USB Tuners? Cheerio
July 26, 201213 yr Check the TVheadend site and forums for specifics about the application. This plugin in merely a way to help you install it on unRaid "easily".
July 26, 201213 yr Quick question, the precompiled TVheadend plugin with the HDHomeRun tuners, was that for the ATSC one or the DVB version? I had a few seconds before work to get the plugin installed with a working network card and the TV adapter tab only had the ATSC version listed. Thanks Josh
Archived
This topic is now archived and is closed to further replies.