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:
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 Olof Sandberg over 6 years ago
Gabriel Gunnarsson wrote:
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!
@Gabriel, m4tt075 uloaded a version for the rtd1296 architecture (DS118, DS218, DS418, DS418j & DS218play) a couple of days ago. I'm currently running it successfully on my DS418j. Look here and have a go at it, https://github.com/m4tt075/spksrc/releases/download/TVH-4.2.5-recrecov/tvheadend_rtd1296-6.1_4.2.5-12.spk.
RE: Tvheadend packages for Synology NAS - Added by Chris Beasley over 6 years ago
Does anybody use a Sat>IP server with their NAS Package? Every time I reset the Synology NAS, the TVH package loses the Sat>IP server until I stop the package, reset the Sat>IP Server, and start the TVH package... All is well after this. An Ubuntu installation of TVH works fine with stop / start of the TVH server irrelevant of the Sat>IP server.
RE: Tvheadend packages for Synology NAS - Added by Martin Walter over 6 years ago
Yes, I use two Sat>IP servers with my TVH NAS package and don't have this problem. If "reset" means "reboot" you might be experiencing some race condition. TVH might start quicker than drivers load or the network is properly established. I assume you have tested that already, but just stopping the TVH package and restarting it again without rebooting in between does not fix the problem, right?
RE: Tvheadend packages for Synology NAS - Added by Martin Walter over 6 years ago
As Olof has already figured, new versions of packages have been compiled. The old version could lead to recordings being stored in system directories, where they do not belong. The new version fixes the default recording directory, recovers recordings from system paths and restores them in the right place. If you have customized your recording directory, this should not make any difference, but if you haven't, an upgrade is advised (linke in post #1 has been updated). As always, please backup before upgrading. This time, please also take care of your recordings! Please remember, this is all still in beta...
RE: Tvheadend packages for Synology NAS - Added by Chris Beasley over 6 years ago
Martin Walter wrote:
Yes, I use two Sat>IP servers with my TVH NAS package and don't have this problem. If "reset" means "reboot" you might be experiencing some race condition. TVH might start quicker than drivers load or the network is properly established. I assume you have tested that already, but just stopping the TVH package and restarting it again without rebooting in between does not fix the problem, right?
Basically, if the NAS crashes, reboots or I stop / start the package, TVH will not pickup the SAT>IP server until I reboot the SAT>IP Server with the package stopped. Upon starting the package, the tuners are found normally.
Stopping the package with everything working fine and then starting it again causes the tuners to be lost; only way to get them back is to stopt the package, reboot the SAT>IP Server, wait until its running and then finally start the package.
RE: Tvheadend packages for Synology NAS - Added by Martin Walter over 6 years ago
Wow. That's strange indeed. I do not see how just stopping a perfetly working package and restarting it should lead to losing SAT>IP servers. To TVH SAT>IP servers are nothing else than encapsulated "tuners on the intranet". They do not require any specific tuner drivers on your NAS. And your NAS should NEVER crash. Not sure this is helpful, but based on what you have written, I'd probably start inquiring the crashes first and look what causes them. This isn't normal...
RE: Tvheadend packages for Synology NAS - Added by Chris Beasley over 6 years ago
We can ignore the crash bit, that was an extreme test in stability on something else... But the same remains, that upon powerloss, uncontrolled shutdowns and reboots of the NAS I appear to loose access to the tuners. The server is a Triax TSS400 MKII, which ones are you running?
I've just tested stopping the package and the starting it again and ensuring I open a new UI to TVH to ensure the WEBGUI hadn't had a spaz... It lost the tuners as before... I've got a few more tests to run but would be interested in any thoughts?
RE: Tvheadend packages for Synology NAS - Added by Martin Walter over 6 years ago
I have two Digibit R1, but if it works on your Ubuntu system and just not on the NAS, I'd assume your Triax is fine. Powerloss / uncontrolled shutdowns can of course create issues with configurations not being saved appropriately. But in TVH the tuner configuration is written upon initial configuration and should not change while TVH is running, so again, unlikely to create those problems.
Chris, I don't have an answer really, but maybe we can figure out whether it is TVH or something else: If you stop TVH, can you reproduce the same problem with Videoplayer, i.e. does Videoplayer lose the tuners, too?
RE: Tvheadend packages for Synology NAS - Added by Chris Beasley over 6 years ago
Ok, advise... Where is Videoplayer? I'm running a DS3615xs so if its a package it may not be available on mine.
RE: Tvheadend packages for Synology NAS - Added by Martin Walter over 6 years ago
Apologies, I meant Video Station, the standard Synology package for TV streaming. Open the Web-userinterface to your NAS, open the package manager, go to Multimedia and you should find it there. Install it, run it, that's it...
RE: Tvheadend packages for Synology NAS - Added by Russel Crowe over 6 years ago
Hi
I have problems with updateting to the latest version on my RS815+ (Avoton).
The package has updated succesfully but after that it won't start.
The version from January works very well.
How can I check what happend?
RE: Tvheadend packages for Synology NAS - Added by Martin Walter over 6 years ago
Hi Russel Crowe,
Wow, a very prominent user. Honored!
As follows:
(1) Depending on how many recordings you have had and whether they needed to be moved to another place, just waiting before starting the package might be sufficient. However, unless you have really recorded a lot, 30 min of waiting should be enough for the file restoration. Assuming that is not it...
(2) ssh into your NAS, cd into /usr/local/tvheadend/var. Locate the tvheadend.log and tvheadend_install.log files. Upload them somewhere (e.g. pastebinit) and post the links here. Assuming the /usr/local/tvheadend/var folder does not exist...
(3) ssh into your NAS, cd into /tmp. Locate the tvheadend_install.log file. Upload and post the link as above.
Please also post which DSM version you are currently running.
RE: Tvheadend packages for Synology NAS - Added by Russel Crowe over 6 years ago
Hi,
The last three lines of my install.log are:
Restore 'sc-tvheadend' unix permissions on package system directories
Granting 'sc-tvheadend' unix ownership on /volume1/@appstore/tvheadend/var
chown: cannot access '/volume1/@appstore/tvheadend/var': No such file or directory
That could not work due to my installation is on /volume2/@appstore/tvheadend
The unix permissions on /volume2/@appstore/tvheadend are set to sc-tvheadend:tvheadend
RE: Tvheadend packages for Synology NAS - Added by Martin Walter over 6 years ago
OK, that's the problem. How did you manage to install TVH on /volume2?
RE: Tvheadend packages for Synology NAS - Added by Russel Crowe over 6 years ago
Pretty easy
Preferences under paket center ->
default volume for apps set to volumeX
Will you be able to fix the issue?
RE: Tvheadend packages for Synology NAS - Added by Russel Crowe over 6 years ago
btw: DSM 6.1.5-15254 update1
RE: Tvheadend packages for Synology NAS - Added by Martin Walter over 6 years ago
Probably, but I'd need both of the full log files I have requested. Could you please post them?
RE: Tvheadend packages for Synology NAS - Added by Chris Beasley over 6 years ago
Martin Walter wrote:
Apologies, I meant Video Station, the standard Synology package for TV streaming. Open the Web-userinterface to your NAS, open the package manager, go to Multimedia and you should find it there. Install it, run it, that's it...
Hi Martin,
How did you add a Sat>IP stream to videostation? Its asking only for a USB Dongle and I can't find a setting to enable this.
RE: Tvheadend packages for Synology NAS - Added by Russel Crowe over 6 years ago
attached are the two files
The service is running if I use the sudo command
tvheadend.log (3.53 MB) tvheadend.log | |||
tvheadend_install.log (90.5 KB) tvheadend_install.log |
RE: Tvheadend packages for Synology NAS - Added by Martin Walter over 6 years ago
OK. Thanks. Please try the following:
1) Stop the TVHeadend package via the package center
2) ssh into your NAS box and execute the following commands:
chown sc-tvheadend:tvheadend /var/packages/tvheadend/target
chown -R sc-tvheadend:tvheadend /volume2/@appstore/tvheadend/var
3) Restart TVHeadend package via the package center
Does it work now?
RE: Tvheadend packages for Synology NAS - Added by Martin Walter over 6 years ago
@Chris I thought this was possible with Video Station, but apparently isn't. OK, dead end, next try: Please provide the TVH log files just like Russel did above. Maybe we can see something there...
RE: Tvheadend packages for Synology NAS - Added by Chris Beasley over 6 years ago
I'm beginning to think its actually the Triax TSS400 itself. It seems like it advertises itself either incredibly infrequently OR in a non-standard way that means server like TVH then ignore it.
I need to wait untill the missus isn't watching TV as I can then restart the package and see what the logs say as the current log is 3 days old and has the tuners fine. Can I just delete the tvh log file and it will create a new one?
RE: Tvheadend packages for Synology NAS - Added by Chris Beasley over 6 years ago
Is there anyway to bind TVH to a specific Sat>IP static IP? I wonder if I can do that, that might solve the issues of it losing the tuners.
RE: Tvheadend packages for Synology NAS - Added by Mark Clarkstone over 6 years ago
pass the URL to your desc.xml on your satip box to tvh.
--satip_xml "http://192.xxx.xxx.xxx:1234/desc.xml"
RE: Tvheadend packages for Synology NAS - Added by Chris Beasley over 6 years ago
Mark Clarkstone wrote:
pass the URL to your desc.xml on your satip box to tvh.
--satip_xml "http://192.xxx.xxx.xxx:1234/desc.xml"
The unit uses http://Ip:port/rootDescr without the xml extension. Can I still pass it the same? Also, what is the correct command in the cli to start tvh with this passed?