Project

General

Profile

Tvheadend packages for Synology NAS

Added by Martin Walter about 7 years ago

Tvheadend 4.2.8

For those interested in native (non-docker) Tvheadend packages for their Synology NAS systems, you will find recent release packages published here:

https://synocommunity.com/

Please report any Synology package-specific issues with the Synocommunity, i.e. here:

https://github.com/SynoCommunity/spksrc/issues

Test packages

Unpublished test packages are sometimes available in this thread, but currently not available.

Some important remarks for test packages (when available):
  • All packages provided here are beta packages. Use at your own risk.
  • Always back up your Tvheadend configuration before you upgrade!
  • You cannot upgrade from a Tvheadend-Testing to a Tvheadend release package or vice versa. These packages have separate configurations. NEVER run a testing and a release package in parallel.
  • The upgrade process may take several minutes as recordings might have to be moved. Please be patient if the upgraded package does not start right away.
  • The release packages are very recent and up-to-date. I highly recommend staying away from testing packages at the moment, unless you cannot run the release packages for whatever reason and you know what you are doing.
  • If you are already running a package, which you have downloaded from here, upgrading should be safe (backup anyway!)
  • Otherwise, I recommend clean installations, especially if you have already installed packages from different sources and you have had trouble with user permissions in the past. There is some likelihood they are messed up. Also:
    - If you are currently running a Tvheadend-Testing package and you want to install a release package, you will have to start configuring it from scratch anyways.
    - If you are running an old release package on DSM5.2 and you want to upgrade your DSM and Tvheadend, upgrade your DSM first, only then upgrade TVH with a new release package. However, depending on how old your old release package is, you might still run into hicups. If that happens, you are most likely better off starting a clean configuration from scratch, too.

Updates / Edits:

- 26.02.2019: TVH 4.2.8 republished on SynoCommunity (fixes CA module regressions and upgrades of legacy packages)
- 09.02.2019: TVH 4.2.8 published on SynoCommunity (HW transcoding support via spawn profile TBC)
- 15.10.2018: TVH 4.2.7 test packages for DSM6.1+ available. Link added.
- 08.05.2018: TVH 4.2.6 packages have been published on the Synocommunity repository. Link added.
- 14.04.2018: Update to TVH 4.2.6 (latest maintenance release) and fixes for installations on non-standard volumes
- 24.03.2018: Update fixing recordings being stored in the wrong place
- 26.01.2018: Added upgrading instructions
- 16.01.2018: Update to TVH 4.2.5 (latest maintenance release)
- 21.10.2017: Update to TVH 4.2.4 (latest maintenance release)


Replies (327)

RE: Tvheadend packages for Synology NAS - Added by Gabriel Gunnarsson almost 7 years ago

Hi!

I have a Synology DS218play with the rtd1298 chip. (ARM v8) I cannot find a tvheadend package for this, so I suppose it is not supported. Would it be impossible/hard to compile tvheadend for this architecture? If so, do you know of any other software that could let me stream http IPTV (no recording)

Thanks!

RE: Tvheadend packages for Synology NAS - Added by Martin Walter almost 7 years ago

Hi Gabriel,

Unfortunately you are correct. The rtd1296 architecture is not yet supported by the spksrc cross-compilation framework that is used to compile these packages for Synology NAS systems.

I'm really not an expert when it comes to IPTV streaming, but if you don't need recording, you can do it on the client side. For instance, Kodi with the "IPTV Simple Client" add-on can do the job and runs on many different platforms.

RE: Tvheadend packages for Synology NAS - Added by nico delcrois almost 7 years ago

Martin Walter:
Solved my problem.
The non responsiveness was caused by my usb tv stick, which sat afte a usb hub. Which made video station and tvheadend both lock-up after a while.
Where tvheadend just not responded to any request. Changed it, and things seem to be solved now.

@Gabriel:
Maybe a docker setup could be a solution for you?
- install docker
- search for the linuxserver-tvheadend
- download image
- once fully downloaded, launch
- set the following (see also advanced settings):
- execute container using high privileges (only if you are using an usb tuner)
- ports: 9981 - 9981 and 9982 - 9982
- bind /recordings and /config to the folders of choice on your nas (otherwise these will be saved in the docker image)
- start the docker image and browse to http://nasip:9981

RE: Tvheadend packages for Synology NAS - Added by Kian Rafiee almost 7 years ago

Martin Walter wrote:

Hi Gabriel,

Unfortunately you are correct. The rtd1296 architecture is not yet supported by the spksrc cross-compilation framework that is used to compile these packages for Synology NAS systems.

I'm really not an expert when it comes to IPTV streaming, but if you don't need recording, you can do it on the client side. For instance, Kodi with the "IPTV Simple Client" add-on can do the job and runs on many different platforms.

The rtd1296 is supported by spksrc. It's been supported for at least a month now.

RE: Tvheadend packages for Synology NAS - Added by Martin Walter almost 7 years ago

Just for selected packages, but not broadly and not for TVHeadend. The packages linked in post #1 have been compiled via spksrc.

RE: Tvheadend packages for Synology NAS - Added by Peter Mueller almost 7 years ago

Martin Walter wrote:

  • You cannot upgrade from a Tvheadend-Testing to a Tvheadend release package or vice versa. These packages have separate configurations. NEVER run a testing and a release package in parallel.

Hi.

To not run it in parallel is clear for me. But can I install it in parallel?
I have actually a 4.1 testing version from Dierkse installed. It is using the user tvheadend-testing.
I would like to try your package before deciding to uninstall the old one.

Thank you!

RE: Tvheadend packages for Synology NAS - Added by Martin Walter almost 7 years ago

Yes, there are two options. Use at your own risk:
1) You backup your tvheadend-testing configuration, deinstall it, and restore the backup later if you want to.
2) You manipulate the spk file of tvheadend(it's actually just a tar package) and remove the file PKG_CONX from the conf folder before installing it manually.

RE: Tvheadend packages for Synology NAS - Added by Peter Mueller almost 7 years ago

Martin Walter wrote:

1) You backup your tvheadend-testing configuration, deinstall it, and restore the backup later if you want to.

Simply a copy of /var/packages/tvheadend-testing/target/var, or something additional?

RE: Tvheadend packages for Synology NAS - Added by Jose Fer almost 7 years ago

Martin Walter:
I m using this package with a ds415play
Is it possible to use transcoding in this synology?
Thanks

RE: Tvheadend packages for Synology NAS - Added by Martin Walter almost 7 years ago

peter peter: Yes, just put it somewhere safe, where it is not overwritten. You can put it in some \volume[number] folder for instance.
@Jose: Nope, not with the stable release versions. It is going to be a part of future releases, but work in progress...

RE: Tvheadend packages for Synology NAS - Added by Martin Walter almost 7 years ago

New 4.2.5 packages are available for testing. See post #1 for updates and details.

There have been some structural changes to the package, especially w.r.t. how permissions are handled and set. Any feedback on your experiences (good and bad) will be appreciated.

RE: Tvheadend packages for Synology NAS - Added by Jose Fer almost 7 years ago

Martin Walter

I m using the HTS Tvheadend 4.2.4 , your version.
Is just run the new install https://github.com/m4tt075/spksrc/releases/tag/Tvheadend-4.2.5 or skall one uninstall and then run Tvheadend-4.2.5?
Thanks

RE: Tvheadend packages for Synology NAS - Added by Martin Walter almost 7 years ago

@Jose Please always backup your data, just to be safe, but if you have used one of the packages I have posted here before, an update should work.

RE: Tvheadend packages for Synology NAS - Added by Jose Fer almost 7 years ago

Thanks Martin will try.
But i m not sure where the tvheadend data is stored .
I m using a synology 415play , if someone can point out the data location I will appreciate
Thanks

RE: Tvheadend packages for Synology NAS - Added by Martin Walter almost 7 years ago

For standard installations it is in:
/usr/local/tvheadend/var

RE: Tvheadend packages for Synology NAS - Added by Hiren Shah almost 7 years ago

Martin Walter wrote:

- 16.01.2018: Update to TVH 5.2.5 (latest maintenance release)

I'm assuming you mean 4.2.5 here?

RE: Tvheadend packages for Synology NAS - Added by Jose Fer almost 7 years ago

Martin Walter wrote:

For standard installations it is in:
/usr/local/tvheadend/var

Thank you

RE: Tvheadend packages for Synology NAS - Added by Martin Walter almost 7 years ago

Hiren Shah wrote:

I'm assuming you mean 4.2.5 here?

Indeed. Thanks. Will correct this...

RE: Tvheadend packages for Synology NAS - Added by Richard Vogt almost 7 years ago

Martin Walter
Can I please get a spk-version for my DS 710+ (x86 running on DSM 5.2 -5967 Update 6)? There is no more Update available in DSM 6.
Thanks!

RE: Tvheadend packages for Synology NAS - Added by Richard Vogt almost 7 years ago

Martin Walter
The installation worked perfect, but tvheadend does not recognize my Sundtek MediaTV Digital Home (USB 2.0) which is perfectly recognized by the sundtek driver even after enabling user authentification with tvheadend, enabling network server and all possible combinations (connect etc) and several trials with uninstalling the driver and reinstalling the driver: No chance!! Sorry ... :(

I also tried what you suggested before:
- Deinstall the package I have built for you yesterday (dropbox)
- Deinstall the Sundtek driver package
- Install the same package from the dropbox again
- Install the Sundtek driver package second

Still no sundtek TV-Adapter found! I also tried your 6.1 package on two different Synology Diskstations: 1813+ and 918+ and had the same problem there!

But:
When I deinstall your program and install tvheadend-testing I find immediately the sundtek-DVBC tuner, but then I have this terrible login-problem whitch is unresolvable using a user/password system, only by changing the start script (adding -C). Removing the -C removes automatically all set users before.

RE: Tvheadend packages for Synology NAS - Added by Martin Walter almost 7 years ago

@Richard
Yes, I understand. I have looked at the Sundtek package some time ago. It hacks the Tvheadend scripts in order to inject the drivers before Tvheadend loads. The new SynoCommunity packages I'm linking here use different scripts for proper DSM5+6 compatibility. The Sundtek hack does not work anymore.

You can try(!) the following:
- Install the Tvh release package from here, but don't start it yet.
- Then ssh into your NAS as root.
- Change into the "/var/packages/tvheadend/scripts" folder.
- Edit the "start-stop-status" script.
- In line 2 insert the following code:

if [ -e /usr/local/sundtek/opt/lib/libmediaclient.so ]; then
    export LD_PRELOAD=/usr/local/sundtek/opt/lib/libmediaclient.so
fi

- Save your changes and close everything.
- Start the Tvheadend package via the package manager.

Report back, please.
- Check whether your Sundtek is recognized now.

RE: Tvheadend packages for Synology NAS - Added by Richard Vogt almost 7 years ago

Martin Walter
Perfect work!!! Sundtek is recognized on all synology platforms (710+, 1813+ and 918+)!!(/)
Thanks a lot! :)
Richard

RE: Tvheadend packages for Synology NAS - Added by Martin Walter almost 7 years ago

@Richard
Thanks for the feedback. Glad it worked out. I will see whether this can be integrated in the release packages directly. The problem is that Sundtek needs to stop hacking scripts in this case and I'm not sure they'd do it as there is no "official" Synology version.

(26-50/327)