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

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

possibility scan over already added frequencies for DVB-T/C or over Transponders DVB-S2

(dvbscan files are database of satelites etc, you dont must add manual one by one )

I will try to rescan my channels later, thanks for the info piotr.

 

Still looking to buy an intel NIC so i can upgrade to RC10 :(

i try add Realtek driver like in rc8 ;) later i will relase rc10 realtek fix ;)

i try add Realtek driver like in rc8 ;) later i will relase rc10 realtek fix ;)

 

Thanks piotr, RC11 is out already  :o

new unRaid custom with DVB driver based on rc11

 

- latest TBS driver from 2013-01-26

- all driver of tuners from kernel turned ON

- added Firmwares of tuners

- some fix for realtek NIC (i hope enough)

- added exFAT and NTFS support (latest driver 2013)

- added mc

 

https://dl.dropbox.com/u/49442039/unraid.rc11.tbs.zip

 

BTW. unraid 5.0 final come with 64bit support, and i just only tell the package of tvheadend and driver are ready for 64bit system ;)

 

Im on RC11, thanks PIOTR :D

Hi, i'm having some issues with the new release and as a rather inexperienced user of Linux and unRAID I hope someone can point me in the right direction. Basically I have tried installing unRAID 5 rc11 from fresh and tried to use the update for tvheadend in the above post. I'm probably not installing it correctly but I am getting the following error after running - installpkg tvheadend-20130128-i686-1PTr.txz (this says it is successfully installed) from the plugins folder: but then I get "tvheadend: error while loading shared libraries: libcurl.so.4: cannot open shared object file: no such file or directory....... if i stop and start tvheadend from the web gui.

I would not recommend using the plg file from the original post, it crashed my system last time  :(

If you just follow these instructions here: https://github.com/spylex/tvheadend_unraid it will all be fine.

 

When I manually start tvheadend for the first time I also get something about a library but thats just a notice and tvheadend runs anyway...

Tried the above but still getting the same error and nothing appears in the web gui for tvheadend  :(

Actually, worked out what was wrong...... curl wasn't installed!!

I've built a bzroot/bzimage with the media tree and hdhomerun drivers built in.  You can get it here:

 

https://www.dropbox.com/s/kvncsfx9ra2g3p8/rc10_hdhomerun.zip

 

The lines in my go script that are necessary to make this work are:

 

cd /lib/modules/3.4.24-unRAID/extra/ && modprobe dvb_hdhomerun
ln -s /boot/unraid-custom/src/dvbhdhomerun/userhdhomerun/build/userhdhomerun /usr/bin/userhdhomerun
userhdhomerun &
sleep 5
/etc/rc.d/rc.tvheadend restart

 

I've only been testing it for about 5 minutes, but so far, so good :)

 

Botez,

 

Thanks for the rc10 build - could I also get the ushdhomerun file to put in the directory? Your old link no longer works and I can't find it anywhere else

 

Many thanks

 

Jon

 

Looks like my subscribe emails to this post aren't working.  Sorry for those who asked me something and I didn't respond!

 

Jon -- here is the compiled userhdhomerun file

 

https://www.dropbox.com/s/99bsn9910phmm9n/userhdhomerun

I've built a bzroot/bzimage with the media tree and hdhomerun drivers built in.  You can get it here:

 

https://www.dropbox.com/s/kvncsfx9ra2g3p8/rc10_hdhomerun.zip

 

The lines in my go script that are necessary to make this work are:

 

cd /lib/modules/3.4.24-unRAID/extra/ && modprobe dvb_hdhomerun
ln -s /boot/unraid-custom/src/dvbhdhomerun/userhdhomerun/build/userhdhomerun /usr/bin/userhdhomerun
userhdhomerun &
sleep 5
/etc/rc.d/rc.tvheadend restart

 

I've only been testing it for about 5 minutes, but so far, so good :)

 

Thanks, can you put your .config file somewhere too?

 

Sambo -- which .config file are you looking for?  The one I used to compile the kernel or something else?

And we are already up to RC11 since I last checked in.  I'll recompile the userhdhomerun for the RC11 build and post it by the end of the day.

 

Edited to add -- the dvdhdhomerun drivers don't appear to be in piotr's builds.  I'll add those in to his build and repost them when I get a chance, for those of you who have the hdhomerun.

Okay -- here is the bzimage/bzroot for 5.0 RC11, with the hdhomerun drivers installed:

 

https://www.dropbox.com/s/3zzz7c3g14g848g/unraid5.0rc11_hdhomerun.zip

 

Drop those in /boot and restart your server.

 

Here is the "userhdhomerun" executable for RC11

 

https://www.dropbox.com/s/kq2xnwyq6qrtnyk/userhdhomerun_rc11.zip

 

And finally, here are the steps to use this:

 

1) Place the tvheadend .txz file from piotr in /boot/extras (this assures that it gets installed on startup).  Install the package if you haven't already.

2) Place "userhdhomerun" somewhere that doesn't get deleted on reboot, for instance /boot/packages

3) If you need it, make sure you have the tv_grab_file somewhere that doesn't get deleted on reboot, such as /boot/scripts

4) Put the following in your go script

 

cd /lib/modules/3.4.26-unRAID/extra/ && modprobe dvb_hdhomerun
ln -s /boot/packages/userhdhomerun /usr/bin/userhdhomerun
userhdhomerun &
sleep 5
cp /boot/scripts/tv_grab_file /usr/bin/tv_grab_file
chown -R root:videos /usr/bin/tv_grab_file
sudo -u root tvheadend -c /mnt/cache/.tvheadend -u root -g video -f 2>&1 >/dev/null

 

5) Watch TV :)

I get the problem where I have:

 

Feb  1 18:05:17 Server sudo:     root : TTY=console ; PWD=/boot/packages ; USER=root ; COMMAND=/usr/bin/tvheadend -c /mnt/disk1/.apps/tvheadend -u root -g video -f
Feb  1 18:05:17 Server tvheadend[7939]: START: Configuration path /mnt/disk1/.apps/tvheadend is not read/write:able by user (UID:0, GID:18) -- No such file or directory

at startup

I think tvheadend starts to soon in the bootup process. When I "killall tvheadend" it and launch it again with the command from the go file, I am fine. How can I make sure it isn't started before the directory is up?

Mettbrot

 

Are you using the plugin to start tvheadend or are you starting it manually via your go script? 

 

When I was using the plugin I had to restart tvheadend due to the timing of when the plugin loads and when the tv adapter became available.  Via the command line or in your go script you would just add the following at the end:

 

/etc/rc.d/rc.tvheadend restart

 

and you should be up and running.

I just use the go script, no plugin installed

sudo -u root tvheadend -c /mnt/disk1/.apps/tvheadend -u root -g video -f 2>&1 >/dev/null

You could add a "sleep" command before it, then adjust the value until it works?

 

sleep 10 && sudo -u root tvheadend -c /mnt/disk1/.apps/tvheadend -u root -g video -f 2>&1 >/dev/null

Thank you, I have thought of that before.

Maybe someone could come up with something like "wait till /directory is readable and start tvheadend" :-P

I think you can check if a file is readable with a bash script like this --

 

if [[ -r "file" && -f "file" ]]; then
sudo -u root tvheadend -c /mnt/disk1/.apps/tvheadend -u root -g video -f 2>&1 >/dev/null
fi

Thanks so much for the help getting this up and running.... last hurdle (I hope) is that every password combination I try, it won't let me login into the web config (including nothing).  Anybody help?

Try starting it with /usr/bin/tvheadend -C /mnt/cache/tvheadend/.htsconfig -u nobody -g video -f  <-- change install location to yours

 

Kryspy

 

 

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.