Project

General

Profile

Tvheadend packages for Synology NAS

Added by Martin Walter over 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 Martin Walter almost 7 years ago

@Richard
Could you do me a favor, please? There are two packages for you, a 5.2 package for your 710+ and a 6.1 package for your 918+. You will find them here: https://www.dropbox.com/sh/zl67clwy5rio8kn/AADpWJhkHQ6RgqaCbLxbNIJoa?dl=0
Could you please install them (without editing any files) and see whether your Sundtek is still identified correctly? Ideally, you would test upgrades as well as clean installs.

RE: Tvheadend packages for Synology NAS - Added by Robert Cameron almost 7 years ago

Just this week I cloned the spksrc repo to create my own package as the SynoCommunity is out of date. Then I remembered seeing this thread and figured I'd check it out. I'll have to look into how you've reworked the service/startup to manage permissions better, but it's looking good.

Are you open to receiving patches? I have one for the cross/tvheadend Makefile to pull 4.2.5-18 (from 20 Jan) to get the version up to date. Also, perhaps the URLs in the Makefiles could be updated to https://tvheadend.org.

Finally, I have a (hack-y) patch for the tvhdhomerun code: it modifies the tvhdhomerun frontend code to allow for support for the CableCARD Prime by changing the way that ATSC-C muxes are tuned by using the mux frequency (in MHz) as the virtual channel to tune using libhdhomerun's hdhomerun_device_set_tuner_vchannel method, and ignoring calls to set/change the PID filter. While clearly a hack (service information isn't properly returned, so they're only identified by their channel number), it may be of use to others.

If not, I have no problems maintaining my own fork, but figured it might be nice to consolidate efforts.

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

Thanks for reaching out. I think consolidating efforts is a great idea.
The test packages, that are linked in the first post, stem from the SynoCommunity and correspond to the following PR: https://github.com/SynoCommunity/spksrc/pull/3050
W.r.t. your patches I think the following:
- If you want to stay really up-to-date on indvidual commits within the release branch, I'd keep that local, as the SynoCommunity release cycle has been anything but quick. Any update would trigger new testing requirements. I will already be happy when the actual releases are finally published.
- For the URLs a patch would certainly be welcome
- For you patch of the tvhdhomerun code, I'd recommend you PR against https://github.com/tvheadend/tvheadend instead. I'm pretty sure that Jaroslav (perexg) will take it up and help you to support those devices in a proper, non-hacky way.
OK for you?

RE: Tvheadend packages for Synology NAS - Added by Robert Cameron almost 7 years ago

Considering the SC repo is still at 4.2.4, I realized that tracking their repo directly would be pointless.

As for the tvhdhomerun hack: I am currently working against the sources to implement proper CableCARD support as a separate network type, and refactoring the tvhdhomerun code to support it. Overriding the ATSC-C Network is just a quick stopgap until the other code is complete. Once the CableCARD code is ready I'll do a PR.

I'll see about doing a PR for the Makefiles/digest to track the updates to 4.2.5, which as of last night is now at r27.

RE: Tvheadend packages for Synology NAS - Added by Greg Rand almost 7 years ago

Hi, my synology has just updated to the latest package.

I'd loaded in some extra modules, firewire-core and firewire-ohci, then firedtv for the tv cards. Which was previously working under the previous synology version.

However since the update TVheadend hangs on opening, it doesn't show the login prompt. I've checked by ssh that the adapters are created under dev/dvb/ and all the modules load. However it appears that TVHeadend cannot access them.

Videostation is installed.

Can you give me any tips on troubleshooting this please.

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

Not sure I fully understand. Can you clarify?

1) Has you Synology (automatically) updated the firmware, i.e. DSM version? If yes, from which to which version?
2) Or have you manually updated your TVH package with the one linked in this thread (this cannot happen automatically)? If yes, from which to which version?
3) In any case, which DSM version and which TVH package (from where) are you running right now?
4) I understand Videostation is installed, but are the adapters recognized by Videostation if you run it?

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

Martin Walter wrote:

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.

What ever the reason is, I can not untar tvheadend_monaco-6.1_4.2.5-12.spk. It did work with the version before, I guess from your dropbox.

RE: Tvheadend packages for Synology NAS - Added by Greg Rand almost 7 years ago

Martin Walter wrote:

Not sure I fully understand. Can you clarify?

1) Has you Synology (automatically) updated the firmware, i.e. DSM version? If yes, from which to which version?
2) Or have you manually updated your TVH package with the one linked in this thread (this cannot happen automatically)? If yes, from which to which version?
3) In any case, which DSM version and which TVH package (from where) are you running right now?
4) I understand Videostation is installed, but are the adapters recognized by Videostation if you run it?

Sorry I was a bit light on the details.
Synology has just updated to version DSM 6.1.5-15254 bromolow source.
I was originally running TvHeadend 4.2.4-11 but when that wasn't working I removed it and installed 4.2.5-12 bromolow source as it's easier to look at the log.

The adapters have never been recognised under videostation as they are not officially supported under synology, however they were working before the last update even with videostation not recognising them.

The log shows

[Debug]:fsmonitor: watch /dev
[Debug]:fsmonitor: watch /dev/dvb

If I unload the modules for the tv adapter (firedtv) TvHeadend loads in okay, but with no adapters. When I load the modules in, TvHeadend hangs.

I realise I've made some changes to the synology config, so I'm not looking for someone to fix it for me, just some pointers to troubleshoot would be great, I'm not overly used to linux.

Thanks

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

Difficult to judge. I suspect an issue with your firedtv drivers, as TVH has not changed dramatically between 4.2.4 and 4.2.5. I'd start looking at the syslogs to see whether those drivers load fine.

RE: Tvheadend packages for Synology NAS - Added by Greg Rand almost 7 years ago

Looking through the syslogs it appears the drivers load okay, it recognises the cards and dev/dvb/adapters are created.

It looks like someone else is having trouble with a usb dvb device using plex. My suspicion is that the group permissions have been changed and the software is no longer able to access the adapters. But I'm hitting a lot of deadends with the logs. :-(

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

If that's the case, you should be able to see "permission denied" messages once you launch TVH and it tries to access the tuners. Do you get those?

RE: Tvheadend packages for Synology NAS - Added by Greg Rand almost 7 years ago

No it hangs on access to the dev/dvb/adapter

If I stop Tvheadend and restart it, it says unable to access the first adapter, if I stop and reload again it says unable to access both adapters and then loads up with a login prompt.

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

Peter Mueller wrote:

Martin Walter wrote:

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.

What ever the reason is, I can not untar tvheadend_monaco-6.1_4.2.5-12.spk. It did work with the version before, I guess from your dropbox.

I'm not able to extract it with tar xvf

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

peter peter Mueller

I have just downloaded the monaco package from the link in post #1 and have been able to unpack it. I used 7zip on a Windows platform, but still. No indication the package would be corrupted...

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

Martin Walter wrote:

I have just downloaded the monaco package from the link in post #1 and have been able to unpack it. I used 7zip on a Windows platform, but still. No indication the package would be corrupted...

Yes, it works with 7zip. But something is not understandable for me. The 3 files in conf are tripeled. Two copies of the files are zero byte files. Depending how the extraction is done, the "good" files are overwritten or not overwritten by the zero byte files. Hm.

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

Right. This is a known bug with some spksrc scripts but won't hold you back. Just don't allow the 0kb files to overwrite the others.

RE: Tvheadend packages for Synology NAS - Added by Greg Rand almost 7 years ago

Martin Walter Walter
I ended up recompiling some of the dvb modules, I think the only one that was relevant was dvb-core.ko and that fixed the issue. I'm guessing synology modified it in some way on the last update.

Thanks for your suggestions, I'm new with linux based os and it's a steep learning curve.

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

@Greg Rand
Well, if you are new to linux and you have already managed to compile dvb modules, there is no doubt your learning curve has been steep... :)
Happy to hear that. Congrats. Well done!

RE: Tvheadend packages for Synology NAS - Added by Robert Cameron almost 7 years ago

Martin,

I finally got around to generating a PR for your spksrc repo to update TVH to the lastest 4.2.5.

(First time trying a GitHub PR, but I think it's all done properly. Let me know if there are any issues. It built fine for me, but I only tried it for my own needs, armada375.)

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

Martin Walter wrote:

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.

In addition another ports as 9981/9982 have to be used

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

Correct. And you should REALLY know what you are doing. And better don't run both packages at the same time as they can lock the same tuners, which can wreak havoc...

RE: Tvheadend packages for Synology NAS - Added by Cédric M. over 6 years ago

Hello.

I try to install your package on a 214play but I get an error [290], what does it mean ? :(

Model: DS214play
Version: DSM 6.1.5-15254 Update 1

  1. synopkg install tvheadend_x86-6.1_4.2.5-12.spk
    Failed to install package tvheadend_x86-6.1_4.2.5-12.spk, error = [290]

From what I know, the DS214play is well an x86 machine,
and I have no previous install of TVH, so...

Thanks for the help.

Cédric.

RE: Tvheadend packages for Synology NAS - Added by Robert Cameron over 6 years ago

Cédric M. wrote:

Hello.

I try to install your package on a 214play but I get an error [290], what does it mean ? :(

Model: DS214play
Version: DSM 6.1.5-15254 Update 1

  1. synopkg install tvheadend_x86-6.1_4.2.5-12.spk
    Failed to install package tvheadend_x86-6.1_4.2.5-12.spk, error = [290]

From what I know, the DS214play is well an x86 machine,
and I have no previous install of TVH, so...

Thanks for the help.

Cédric.

The 214play is not x86, but a variety of arm. I'm not fully sure which, but some type of armada processor I believe.

I just pulled up the datasheet. I stand corrected, the DS214play is indeed using an Intel Atom processor.

After a little more digging through the spksrc wiki, the DS214play needs the evansport architecture, not generic x86.

RE: Tvheadend packages for Synology NAS - Added by Cédric M. over 6 years ago

Thanks for the digging :)

Indeed, it's well an evansport kernel

  1. uname -a
    Linux xxxx 3.2.40 #15254 SMP PREEMPT Fri Jan 26 06:38:43 CST 2018 i686 GNU/Linux synology_evansport_214play

Sorry, my bad ..

The install does not work on the CLI

  1. synopkg install tvheadend_evansport-6.1_4.2.5-12.spk
    Failed to install package tvheadend_evansport-6.1_4.2.5-12.spk, error = [290]

But it works in DSM ! :D

Many thanks.

RE: Tvheadend packages for Synology NAS - Added by Chad d over 6 years ago

Just found this package and want to add big thank you. Is there any sort of idiots guide for integrating Comskip? Maybe it could be added to future builds? I've seen several links but it would be great if there were any details instructions for installing and configuring Comskip with this package. Thank you

(51-75/327)