Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Tvheadend plugin for unRAID V5.0

Featured Replies

Can someone confirm if the latest efforts support HDHomerun Prime with Cable Card(copy freely) and TVHeadEnd?

 

I have followed this for awhile and originally got everything working for regular channels but could not get scrambled channels working even though they were copy freely. 

 

Thanks for everyone's efforts!

 

Abner

  • Replies 983
  • Views 250.6k
  • Created
  • Last Reply

Hi all.

At the outset apologize for my English but I use a translator.

 

I have a problem running the card dvb-t model: the MEDIA-tech MT4168 chipset IT9135 and WandTV also on such a.

Is there any option to upload additional drivers because Tvheadend not detect any of the cards?

I performed the following steps below in an attempt to use my HDHomerun Prime(Cable Card) with Tvheadend.  Three HDHomerun adapters appeared correctly in Tvheadend.  I created a Network based on ATSC and it identified 157 muxes and 553 services.  However not one service has a name.

 

I did find the following: http://sourceforge.net/apps/trac/dvbhdhomerun/ticket/12 that included patches for HDHomerun Prime Cable Card support in dvbhdhomerun.  Can a version of dvbhdhomerun with these patches be included for Unraid?  Maybe Kidcastro can help here?  I will test, test, test.

 

Steps:

 

1. Installed bzroot and bzimage files for unRAID 5.0 that have been compiled with the media tree modules Reply #737 - https://www.dropbox.com/s/j5jq9oe0yzef9gb/unraid_5.0_media_all.zip

 

2. HDHomerun drivers Reply #586 - userhdhomerun.zip & dvbhdhomerun.zip

 

dvbhdhomerun contains the following:

 

[1313CFCF-0]

tuner_type=ATSC

[1313CFCF-1]

tuner_type=ATSC

[1313CFCF-2]

tuner_type=ATSC

 

3. Tvheadend plugin Reply #818 - https://dl.dropboxusercontent.com/u/17326625/tvheadend-0.6.plg

 

4. Added lines to go script -

 

ln -s /boot/custom/dvbhdhomerun /etc/dvbhdhomerun

ln -s /boot/custom/userhdhomerun /usr/bin/userhdhomerun

modprobe dvb_hdhomerun && sleep 10 && /usr/bin/userhdhomerun &

sleep 20 && sudo -u root tvheadend -c /mnt/cache/.custom/tvheadend -u root -g video -f 2>&1 >/dev/null

 

Thanks to:

 

Piotrasd

KidCastro

Mettbrot

Balthazar

Mack

I already have Perl 5.16 installed and the xmltv package from W-W installed...

 

I tried using W-W xmltv package also and apparently it has Perl dependencies I was not able to resolve using 5.10.0 or 5.10.1 Perl Packages for Unraid.

 

If you look at /usr/lib/perl5/vendor_perl, you will notice XMLTV installed in 5.12.3 sub-directory.  For me this directory wasn't included in my PERL5LIB path to begin with.  Even adding the path, other dependencies prevented me from ever getting it to work.  I resorted to mc2xml and tv_grab_file with Schedules Direct.

 

 

some scraper from xmltv need aditional modules from perl to work

(next time please just read README ! )

 

 

from README of XMLTV

 

Zrzut%20ekranu%202014-01-03%2021.43.38.png?dl=1&token_hash=AAFmMaoSUiXrP8EhP1eQOpeXpNO17Fci4olmnYtseUdQ2g

latest XMLTV

https://dl.dropbox.com/u/49442039/xmltv-0.5.63-i486-1_W-W%28full%29.txz

 

dont forget install perl package ;)

 

Thanks Piotrasd!  I used the xmltv package above and 5.10.1 Perl Package so to be honest I wasnt sure what it did or where it even installed.  The only thing I was certain of was /usr/bin contained all of the tv_* scripts once it was installed.

 

I will research how to add Perl modules to Unraid, more concerned about getting Perl modules to persist after each reboot. 

 

Thanks again!

 

UPDATE: SUCCESS with XMLTV once additional Perl Packages were installed.  No more mc2xml for me, all XMLTV grabbers appear correctly in Tvheadend Internal Grabber drop-down.  I use tv_grab_na_dd once configured from the commandline works like a charm.  Now I just need HDHomerun Prime Cable Card Support.  :D

How to make tvheadend shutdown correctly:

 

Add this to your go script:

 

#tvheadend shutdown

mkdir -p /usr/local/emhttp/plugins/tvheadend/event/

cp /boot/custom/tvheadend_shutdown /usr/local/emhttp/plugins/tvheadend/event/stopping_svcs

chmod +x /usr/local/emhttp/plugins/tvheadend/event/stopping_svcs

 

Create tvheadend_shutdown and put it in /boot/custom:

 

killall tvheadend

 

I haven't been able to test this yet so please let me know if it works or doesn't work.

 

abnersnell,

 

Did you manually install the Perl modules or were you able to find .txz/.tgz packages for all of the dependencies?

How to make tvheadend shutdown correctly:

 

Add this to your go script:

 

#tvheadend shutdown

mkdir -p /usr/local/emhttp/plugins/tvheadend/event/

cp /boot/custom/tvheadend_shutdown /usr/local/emhttp/plugins/tvheadend/event/stopping_svcs

chmod +x /usr/local/emhttp/plugins/tvheadend/event/stopping_svcs

 

Create tvheadend_shutdown and put it in /boot/custom:

 

killall tvheadend

 

I haven't been able to test this yet so please let me know if it works or doesn't work.

Or just use the plg :P. It uses the regular unRaid hooks...

Mettbrot,

 

Sounds like a good idea.

Been running TVHeadend for about a week now and for some reason, all of a sudden it won't tune to any channels when selected via XBMC.

Using a Sony PlayTV (Connected via USB) as my DVB. Does anyone have any idea's what could be causing this?

 

**Edit** - Just done a power down, moved usb ports and booted it back up and its all working. Strange problem really!

I performed the following steps below in an attempt to use my HDHomerun Prime(Cable Card) with Tvheadend.  Three HDHomerun adapters appeared correctly in Tvheadend.  I created a Network based on ATSC and it identified 157 muxes and 553 services.  However not one service has a name.

 

I did find the following: http://sourceforge.net/apps/trac/dvbhdhomerun/ticket/12 that included patches for HDHomerun Prime Cable Card support in dvbhdhomerun.  Can a version of dvbhdhomerun with these patches be included for Unraid?  Maybe Kidcastro can help here?  I will test, test, test.

 

Steps:

 

1. Installed bzroot and bzimage files for unRAID 5.0 that have been compiled with the media tree modules Reply #737 - https://www.dropbox.com/s/j5jq9oe0yzef9gb/unraid_5.0_media_all.zip

 

2. HDHomerun drivers Reply #586 - userhdhomerun.zip & dvbhdhomerun.zip

 

dvbhdhomerun contains the following:

 

[1313CFCF-0]

tuner_type=ATSC

[1313CFCF-1]

tuner_type=ATSC

[1313CFCF-2]

tuner_type=ATSC

 

3. Tvheadend plugin Reply #818 - https://dl.dropboxusercontent.com/u/17326625/tvheadend-0.6.plg

 

4. Added lines to go script -

 

ln -s /boot/custom/dvbhdhomerun /etc/dvbhdhomerun

ln -s /boot/custom/userhdhomerun /usr/bin/userhdhomerun

modprobe dvb_hdhomerun && sleep 10 && /usr/bin/userhdhomerun &

sleep 20 && sudo -u root tvheadend -c /mnt/cache/.custom/tvheadend -u root -g video -f 2>&1 >/dev/null

 

Thanks to:

 

Piotrasd

KidCastro

Mettbrot

Balthazar

Mack

 

Hi there.

 

Thanks to you and others for help. Sorry, but your way when you reboot the server will not start graphical interface is an error somewhere. Maybe I do, I do not know.

 

Card DVB-T Media-Tech MT4168 chipset IT9135 ran with a version of unraid:

https://app.dumptruck.goldenfrog.com/p/Z5ZmFlCsMH/unRAID_rc12_VDR.zip

and only this version Tvheadend working properly:

https://github.com/WW/unRAID/raw/master/tvheadend_mod.plg

A newer version of the 0.6 given by you makes the whole web interface is scattered. In the evening, throw images on the screen.

Hi,

 

Sorry, but I didn't understand what you are trying to say...

First: the huge post you quoted is about hdhomerun card. Since you do not have one it is useless for you :P

Second: the plg from W-W is 2 years+ old and downloads it's own tvheadend version which is as old as itself. I don't know what happens if you put the new *.txz file on your server. Maybe it updates to the newer version, maybe not.

That's why I created the new plg file, where I stripped out everything "advanced" from the original file.

I didnt understand what your problem is with the new interface nor what you where saying in the last paragraph :D

Hi

this is latest version of TVHeadend after rewrite

 

https://copy.com/FYthOCz1KFsA2ZHJ (tvheadend-20131221-i686-1PTr.txz)

 

and oscam (becuase is many changes in campt witch only work with higher version from 9095)

https://copy.com/HZAMoLgsIGAjVj4s (oscam-1.20-unstable_svn9131-i486-slackware-linux)

 

enjoy ;)

 

How can i install this oscam-1.20-unstable_svn9131-i486-slackware-linux

 

Today I got home I check the image is in xbmc and on the phone. But I wanted to add other multiplexes to Tvheadend and saw only this:

1.png

2.png

 

after reboot still the same.

What to do?

Switch to a Different browser, or delete the cache. I had the same a few weeks ago with Crome.

 

  • 2 weeks later...

Any chance you could compile a version of the latest git trunk with transcoding support enabled?

 

"change in src/plumbing/transcode.c -> enable_transcode to 1 and

 

./configure and make it."

 

Really want to see if I can get live http transcoding working via Plex.

 

Thanks!

 

Any chance you could compile a version of the latest git trunk with transcoding support enabled?

 

"change in src/plumbing/transcode.c -> enable_transcode to 1 and

 

./configure and make it."

 

Really want to see if I can get live http transcoding working via Plex.

 

Thanks!

 

+1 to that!! ;-)

 

Sent from my Nexus 7 using Tapatalk

 

 

It's starting to sound like Tom's Xen development is going to make it so that we can all run base unraid 6.0 and simply virtualize a tvheadend server.  Great news!

 

I think I'm going to wait a couple more weeks before I play around with this.

    Any chance you could compile a version of the latest git trunk with transcoding support enabled?

 

    "change in src/plumbing/transcode.c -> enable_transcode to 1 and

 

    ./configure and make it."

 

    Really want to see if I can get live http transcoding working via Plex.

 

    Thanks!

 

 

+1 to that!! ;-)

 

Sent from my Nexus 7 using Tapatalk

 

I know how this maked, but stoped me compatybility with other plugins wich use ffmpeg like Plex, serviio etc.

Now i think i make new version x64bit for unraid 6 (there will be transcode enabled)

 

base unraid 6.0 and simply virtualize a tvheadend server

 

It no so easy how you think ;) for first must work PCI passthrough to map DVB tuner to virtual system

(and this is only possible if hardware have vt-d technlogy (mainboard and CPU must support this)

 

For second some chipset of PCIE Bridge from DVB Tuners - like CX28885 after map to virtual could work no proper

and you will see in log of tvheadend or VDR - buffer overflow or other issue

 

I was testing vt-d with PCIE passthrough on VMware ESXI and that was the best solution - stable

(chipset CX28885 need some special tweek with map , but after that work stable)

im not sure how good work PCIE passthrough on Xen (when i read article some time ago ESXI

was best choose for that)

 

other solution more easy is map USB - and this work almost on all virtual machine software proper.

 

Anyway i this week i will release new version of Tvheadend for unraid 6 and VDR ;) 64bit

im now preparing new compiling environment.

I knew pci passthrough would be an issue but I didn't know that there would still be problems with pcie bridges after that.

 

64-bit tvheadend still sounds good and I can load everything else into Xen.  Is a custom kernel still needed or did Tom add support for modules?

 

Hopefully someone finds a way to manage xen via a gui on unraid 6 soon.

im not sure how good work PCIE passthrough on Xen (when i read article some time ago ESXI

was best choose for that)

 

ESXi is notorious for being YEARS behind KVM / Xen when it comes to passthrough.

 

You have 10,000+ open source developers working on the Linux Kernel, Xen  and KVM where as ESXi is one one company working on their custom / private Kernel and their passthrough (which might break or be fixed depending on your hardware or what version you run 5.0, 5.1 or 5.5)

 

Passing through a TV Card in Xen or KVM is simple, easy and works.

 

Anyway i this week i will release new version of Tvheadend for unraid 6 and VDR ;) 64bit

im now preparing new compiling environment.

 

Passing through the TV Cards to a VM is a much better solution than dealing with the plugin mess that you highlighted earlier.

  • 2 weeks later...

    Any chance you could compile a version of the latest git trunk with transcoding support enabled?

 

    "change in src/plumbing/transcode.c -> enable_transcode to 1 and

 

    ./configure and make it."

 

    Really want to see if I can get live http transcoding working via Plex.

 

    Thanks!

 

 

+1 to that!! ;-)

 

Sent from my Nexus 7 using Tapatalk

 

I know how this maked, but stoped me compatybility with other plugins wich use ffmpeg like Plex, serviio etc.

Now i think i make new version x64bit for unraid 6 (there will be transcode enable)

 

You sure thats the case with plex? there is a fully functioning plex tvheadend plugin/channel that has transcoding enabled in tvheadend so i don't think it interferes ? After contemplating for..well..forever, i'll probably attempt new build on 5.0.5 with tvheadend/oscam support in the coming weeks and the plex tvheadend plugin and i'll try to switch on transcoding and see what happens :)

 

I'll share anything built (and deemed working) with these threads if helpful.

KidCastro,

Awesome write up on 6/23/2013. Thank you very much for spending the time to document this that well. Are those instructions still current?

 

I tried to use the 5.05 version and the plugin on lime tech webpage but did not have success.

 

Specifically, should I start my unRAID NAS build over with 5.0rc12a instead of 5.05?

 

Also, the link you provided to piotrasd's repository didn't work. But, on 1/12/14 he posted "latest version". I would assume it should be used. His link was: https://copy.com/MreQNvSCOnWbeyCo/tvheadend-20140112-i686-1PTr.txz

 

thanks again,

Jay

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.