March 1, 201511 yr The Problem Is the Format of the packages, mine has tgz I think and you need txz. When you try, remove all tv headend packages from /boot/packages and edit the plg file to download the piotrasd file. Then install it. I tried that, <FILE Name="/boot/packages/tvheadend.txz" Run="upgradepkg --install-new"> <URL>--no-check-certificate https://fs10n5.sendspace.com/dl/a0b8475fce185eff78544adbf31e9482/54f2e10a501eca23/cypbh9/tvheadend-20150227-x86_64-1PTr.txz</URL> </FILE> Didn't seem to work. hung on starting tvheadend. Installed manually with installpkg but now can't remember how to run, do I need any dependencies?
March 1, 201511 yr Author for anyone .. maybe this depends for tvheadend you will be need: https://www.sendspace.com/file/benwzp libiconv-1.13.1-x86_64-2_PTr.txz https://www.sendspace.com/file/dbqf96 uriparser-0.7.5-x86_64-1PTr.txz just put to extra folder about using sendspace link in plugin ... sendspace using one time used link so, when you try again download from this same link example: https://fs10n5.sendspace.com/dl/584db577c60fc05289a8b7bf084ba175/54f2f0635e4710f0/cypbh9/tvheadend-20150227-x86_64-1PTr.txz this dont will work anymore ... you can upload files to own hostfile service or put to packages or extra folder for install every restart
March 1, 201511 yr for anyone .. maybe this depends for tvheadend you will be need: https://www.sendspace.com/file/benwzp libiconv-1.13.1-x86_64-2_PTr.txz https://www.sendspace.com/file/dbqf96 uriparser-0.7.5-x86_64-1PTr.txz just put to extra folder about using sendspace link in plugin ... sendspace using one time used link so, when you try again download from this same link example: https://fs10n5.sendspace.com/dl/584db577c60fc05289a8b7bf084ba175/54f2f0635e4710f0/cypbh9/tvheadend-20150227-x86_64-1PTr.txz this dont will work anymore ... you can upload files to own hostfile service or put to packages or extra folder for install every restart That makes sense: So the steps I'm going to try are: 1. Add this to my go file, as it's not in the plugin. installpkg /boot/packages/libiconv-1.13.1-x86_64-2_PTr.txz 2.Place tvheadend-20150227-x86_64-1PTr.txz in boot/packages renamed to tvheadend.txz 3. Install plugin from mettbrot Now if my assumptions are correct that should start the newest build of tvheadend with the current dependencies met as uriparser-0.7.5-x86_64-1PTr.txz is already contained in the plugin. Am I missing something? By the way, my card was detected with the new build so that's working. Thanks piotrasd
March 1, 201511 yr Author installpkg /boot/packages/libiconv-1.13.1-x86_64-2_PTr.txz just put this file to /boot/extra and you dont must add to go file this will be installed every reboot btw. i dont have time but maybe someone can update plugin tvheadend to new unraid plugin system from beta12 and add depends. and put source for github for easy update from plugin/update ...(then i can will put pull request and update myself new compiled version)
March 1, 201511 yr i quickly added the dependency for libiconv. https://dl.dropboxusercontent.com/u/17326625/tvheadend-2.2.64bit.plg I am pretty sure your problem with piotrasds version is that unraid cannot download directly from sendspace. Put the txz file on your dropbox and use this link.
March 1, 201511 yr I'll try that, Thanks guys. I did remove the download link and try and do it manually. But when I start it i get: /etc/rc.d/rc.tvheadend enable root video /usr/local/tvheadend/.htsconfig admin admin 2>&1 Installing latest version of Tvheadend... Verifying package tvheadend.txz. xz: (stdin): File format not recognized Installing package tvheadend.txz: PACKAGE DESCRIPTION: WARNING: Package has not been created with 'makepkg' Package tvheadend.txz installed. ... OK Starting Tvheadend: sudo -u root tvheadend -c /usr/local/tvheadend/.htsconfig -u root -g video -f >/dev/null 2>&1 Then my server hangs.
March 1, 201511 yr Author try manual install package installpkg package_name.txz then try manual start tvheadend sudo -u root tvheadend -c /usr/local/tvheadend/.htsconfig -u root -g video and tell us - what error you get (btw. dont keep config in that location )
March 1, 201511 yr try manual install package installpkg package_name.txz then try manual start tvheadend sudo -u root tvheadend -c /usr/local/tvheadend/.htsconfig -u root -g video and tell us - what error you get (btw. dont keep config in that location ) Yep, that worked. Feel a complete idiot, as soon as I saw that it reminded me that I had pretty much the exact thing in my go config file when I used to run Unraid. One last question, default username and password? EDIT: admin / admin Now just got to remember how to set up tvheadend! Working, can see my DVB-T cards, thanks fellas for all the help, feel really stupid! I used to know all that stuff!
March 1, 201511 yr Author start tvheadend with -C and setup log and pass from web example: sudo -u root tvheadend -c /usr/local/tvheadend/.htsconfig -u root -g video -C -f after you setup log and pass you can run normal tvheadend over plugin or manual without -C
March 2, 201511 yr Yeah my new DVBSky arrived, so in the next days i can setup everything. @piotrasd: Could you please update the start post with the new files? The longer the Thread gets the harder it will be to find the newest files in it. Maybe you could also adds mettbrots plg's there? We also have to see how to get the TVHeadend stuff to Github like you suggested. You got too much afford already in here so we have to preserve your great work.
March 3, 201511 yr @tvheadend users: Do you all have your Server on 24/7 or has anybody already figured out how to wake the server for an upcoming recording?
March 3, 201511 yr @darkside40, no, I'm not running the server 24/7 and would also see the requirement of having somthing that is waking up the server when needed. Haven't seen any solution so far except this one that is pretty complex and for VDR instead of TVHeadend: The server is asking the client (via vdrpsend) when the next recording is running. It is then transferring that event into the die RTC-wakeup device. The example that I have seen was based on a Promox server and had additional requirements: ACPI-Wakeup must be working svdrpsend-script from VDR must be copied to the server and has to run via Perl This goes far beyond my skills. More details are here (post #7): www.vdr-portal.de/board60-linux/board104-server/118647-nas-und-vdr-in-einem
March 3, 201511 yr When you use s3 sleep it might be sufficient to set an rtc wake event as pre sleep activity. Just get the time for the next recording, subtract like 5 minutes and you should be good. (As long as it is configured not to sleep during recording (like recording directly to a disk, not to cache)) Google "rtc wake tvheadend" and you'll find an article.
March 3, 201511 yr Okay found something. Unfortunately i wont be at Home until the weekend (work sucks), but i hopefully can try it than and post the results.
March 8, 201511 yr Just a quick feedback by me. First at all thanks for the mediatree Kernel to piotrasd and for the TVHeadend Plugin to Mettbrot. After some quirks it works great. For my DVBSky S952 i just have to stop TVHeadend, unload the drivers and do the reverse to get it to work with S3 Sleep. At least less hassle as with Windows. Thanks to the almighty that the S3 Sleep Script lets me issue custom commands, so it was just a matter of minutes getting this to work. Channel switching is fast also my HD+ scrambled channeld work great. Now i just have to implement the script to wake up the unRaid for scheduled records, but not today. Btw. which version of TVHeadend is this? The "About" screen shows only 0.0.0.0~unknown ;-)
March 8, 201511 yr Author latest i think master 50016a15f22c08e543e9214965bcd05f029b3da9 https://github.com/tvheadend/tvheadend/commit/50016a15f22c08e543e9214965bcd05f029b3da9
March 8, 201511 yr darkside40, would you mind to share how you stop TVHeadend and unload the drivers? Are you using the S3 Sleep plugin from dmacias? Thanks in advance.
March 8, 201511 yr This should work: #Stop Tvheadend: /etc/rc.d/rc.tvheadend stop modprobe -r dvb_usb_af9015 #Start Tvheadend modprobe dvb_usb_af9015 /etc/rc.d/rc.tvheadend start
March 8, 201511 yr I am using the dynamix S3 Sleep Plugin. What Mettbrot suggested is correct, but you have adjust the modprobe command to your needs. For me the command is modprobe -r smipcie dvb_core m88rs6000 to unload and modprobe smipcie dvb_core m88rs6000 to reload. Only unloading the module for the DVBCard doesnt work for me.
March 9, 201511 yr Thanks @mettbrot & @darkside40. Worked for me a little bit different; I added those lines to the S3 SleepSetting: Custom commands before sleep: /usr/bin/docker stop Tvheadend-Unstable modprobe -r dvb_usb_af9015 Custom commands after wake-up: modprobe dvb_usb_af9015 /usr/bin/docker start Tvheadend-Unstable Log is showing the following: Mar 9 14:47:29 Tower2 php: /usr/bin/docker stop Tvheadend-Unstable Mar 9 14:47:29 Tower2 php: Tvheadend-Unstable Mar 9 14:47:39 Tower2 kernel: usbcore: deregistering interface driver dvb_usb_af9015 Mar 9 14:47:39 Tower2 kernel: usb 2-1.4: dvb_usb_v2: 'Afatech AF9015 reference design' successfully deinitialized and disconnected Mar 9 14:47:57 Tower2 kernel: usb 2-1.4: dvb_usb_v2: found a 'Afatech AF9015 reference design' in warm state Mar 9 14:47:58 Tower2 kernel: usb 2-1.4: dvb_usb_v2: will pass the complete MPEG2 transport stream to the software demuxer Mar 9 14:47:58 Tower2 kernel: DVB: registering new adapter (Afatech AF9015 reference design) Mar 9 14:47:58 Tower2 kernel: i2c i2c-4: af9013: firmware version 4.95.0.0 Mar 9 14:47:58 Tower2 kernel: usb 2-1.4: DVB: registering adapter 2 frontend 0 (Afatech AF9013)... Mar 9 14:47:58 Tower2 kernel: MT2060: successfully identified (IF1 = 1220) Mar 9 14:47:58 Tower2 kernel: usb 2-1.4: dvb_usb_v2: 'Afatech AF9015 reference design' successfully initialized and connected Mar 9 14:47:58 Tower2 kernel: usbcore: registered new interface driver dvb_usb_af9015 TVHeadend restart is causing issues: Mar 9 14:48:09 Tower2 php: /usr/bin/docker start Tvheadend-Unstable Mar 9 14:48:09 Tower2 php: Tvheadend-Unstable Mar 9 14:48:12 Tower2 kernel: DDBridge I2C timeout, card 0, port 0 Mar 9 14:48:12 Tower2 kernel: ddbridge 0000:05:00.0: DDBridge IRS 00000001 Mar 9 14:48:13 Tower2 kernel: DDBridge I2C timeout, card 0, port 0 Mar 9 14:48:13 Tower2 kernel: ddbridge 0000:05:00.0: DDBridge IRS 00000001 Mar 9 14:48:13 Tower2 kernel: ddbridge 0000:05:00.0: DVB: adapter 1 frontend 0 frequency 0 out of range (950000..2150000) Mar 9 14:48:14 Tower2 kernel: DDBridge I2C timeout, card 0, port 0 Mar 9 14:48:14 Tower2 kernel: ddbridge 0000:05:00.0: DDBridge IRS 00000001 Mar 9 14:48:15 Tower2 kernel: DDBridge I2C timeout, card 0, port 0 Mar 9 14:48:15 Tower2 kernel: ddbridge 0000:05:00.0: DDBridge IRS 00000001 Mar 9 14:48:16 Tower2 kernel: DDBridge I2C timeout, card 0, port 0 Mar 9 14:48:16 Tower2 kernel: ddbridge 0000:05:00.0: DDBridge IRS 00000001 Mar 9 14:48:17 Tower2 kernel: DDBridge I2C timeout, card 0, port 0 Mar 9 14:48:17 Tower2 kernel: ddbridge 0000:05:00.0: DDBridge IRS 00000001 Mar 9 14:48:17 Tower2 kernel: ddbridge 0000:05:00.0: DVB: adapter 0 frontend 0 frequency 0 out of range (950000..2150000) Mar 9 14:48:18 Tower2 kernel: DDBridge I2C timeout, card 0, port 0 Mar 9 14:48:18 Tower2 kernel: ddbridge 0000:05:00.0: DDBridge IRS 00000001 Mar 9 14:48:19 Tower2 kernel: DDBridge I2C timeout, card 0, port 0 Mar 9 14:48:19 Tower2 kernel: ddbridge 0000:05:00.0: DDBridge IRS 00000001 Mar 9 14:48:20 Tower2 kernel: DDBridge I2C timeout, card 0, port 0 Mar 9 14:48:20 Tower2 kernel: ddbridge 0000:05:00.0: DDBridge IRS 00000001 Mar 9 14:48:21 Tower2 kernel: DDBridge I2C timeout, card 0, port 0 Mar 9 14:48:21 Tower2 kernel: ddbridge 0000:05:00.0: DDBridge IRS 00000001 Mar 9 14:48:57 Tower2 kernel: DDBridge I2C timeout, card 0, port 0 Mar 9 14:48:57 Tower2 kernel: ddbridge 0000:05:00.0: DDBridge IRS 00000001 Mar 9 14:48:58 Tower2 kernel: DDBridge I2C timeout, card 0, port 0 Mar 9 14:48:58 Tower2 kernel: ddbridge 0000:05:00.0: DDBridge IRS 00000001 Mar 9 14:48:58 Tower2 kernel: ddbridge 0000:05:00.0: DVB: adapter 1 frontend 0 frequency 0 out of range (950000..2150000) Mar 9 14:48:59 Tower2 kernel: DDBridge I2C timeout, card 0, port 0 Mar 9 14:48:59 Tower2 kernel: ddbridge 0000:05:00.0: DDBridge IRS 00000001 Mar 9 14:49:00 Tower2 kernel: DDBridge I2C timeout, card 0, port 0 Mar 9 14:49:00 Tower2 kernel: ddbridge 0000:05:00.0: DDBridge IRS 00000001 Mar 9 14:49:01 Tower2 kernel: DDBridge I2C timeout, card 0, port 0 Mar 9 14:49:01 Tower2 kernel: ddbridge 0000:05:00.0: DDBridge IRS 00000001 Mar 9 14:49:02 Tower2 kernel: DDBridge I2C timeout, card 0, port 0 Mar 9 14:49:02 Tower2 kernel: ddbridge 0000:05:00.0: DDBridge IRS 00000001 Mar 9 14:49:02 Tower2 kernel: ddbridge 0000:05:00.0: DVB: adapter 0 frontend 0 frequency 0 out of range (950000..2150000) Mar 9 14:49:03 Tower2 kernel: DDBridge I2C timeout, card 0, port 0 Mar 9 14:49:03 Tower2 kernel: ddbridge 0000:05:00.0: DDBridge IRS 00000001 Mar 9 14:49:04 Tower2 kernel: DDBridge I2C timeout, card 0, port 0 Mar 9 14:49:04 Tower2 kernel: ddbridge 0000:05:00.0: DDBridge IRS 00000001 Mar 9 14:49:05 Tower2 kernel: DDBridge I2C timeout, card 0, port 0 Mar 9 14:49:05 Tower2 kernel: ddbridge 0000:05:00.0: DDBridge IRS 00000001 Mar 9 14:49:06 Tower2 kernel: DDBridge I2C timeout, card 0, port 0 Mar 9 14:49:06 Tower2 kernel: ddbridge 0000:05:00.0: DDBridge IRS 00000001 Mar 9 14:49:53 Tower2 s3_sleep: ---------------------------------------------- Seems that I also having to unload the DDCine S2 driver (I don't use the adapter currently but it is plugged in and registered in TVHeadend). How do you identify the correct name, so basically what to remove by using modprobe -r ?
March 9, 201511 yr To be honest, i googled it and found it out that way. But i also don't have TVHeadend installed in Docker. I have it running on my actual unRaid using mettbrots plg because my HW does not have the ability to passthrought.
March 12, 201511 yr Okay Wakeup works. Just had to take the timer script from here https://tvheadend.org/projects/tvheadend/wiki/Wakeup and modify the log file location. Next thing is to get XMLTV running, so the TVTuner does not have to grab the EPG all the time. Anybody has a hint how to do this on unraid?
March 12, 201511 yr You can check if it's possible to grab your channels with my Webgrab+Plus docker if you run unraid 6. http://lime-technology.com/forum/index.php?topic=37671.0 You can check here if it's available http://webgrabplus.com/epg-channels There is a import script for tvheadend on the Webgrab+Plus page under "How to interact with your PVR Software".
Archived
This topic is now archived and is closed to further replies.