Project

General

Profile

Tvheadend packages for Synology NAS

Added by Martin Walter almost 4 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 (316)

RE: Tvheadend packages for Synology NAS - Added by MJ Derksen over 1 year ago

I cannot update the 4.2.8 package to the newer one 4.3 on my Synology 916+. It stays in an update loop and doesn't do anything. Cannot abort it too.
Even tried to update it via SSH with root: synopkg install /volume1/cache/tvheadend.v17.f15047.spk but not response.

The logfiles in /volume1/@appstore/tvheadend/var does not show anything.

Anything else i can try?

RE: Tvheadend packages for Synology NAS - Added by MJ Derksen over 1 year ago

When deleting the older version i can install the newer version.

So upgrading does not work but clean install does.

RE: Tvheadend packages for Synology NAS - Added by Stefan S. over 1 year ago

Thanks for the info, but not an option for most of the users, I'd say. Especially because it's hard to backup all the TVH stuff properly and a full re-config by hand takes a lot of time...

Really looking forward to the new version once an update from 4.2.8 is possible.

Cheers!

RE: Tvheadend packages for Synology NAS - Added by th0ma7 ^ over 1 year ago

Updating from 4.2.8 should overall work although there where many changes from 4.2 vs 4.3 which may break your configuration.
As for the issue found by MJ Derksen it's the first time I hear about it, capturing logs or status would have helped debugging.

Overall I'd say better backup your configuration before upgrading.
And restarting clean ain't a so bad idea, subsequent updates from the 4.3 branch should be easier afterwards.

BTW, updated packages periodically made available on my github at:
https://github.com/th0ma7/synology/tree/master/packages

RE: Tvheadend packages for Synology NAS - Added by Stefan S. over 1 year ago

th0ma7 ^ wrote:

Updating from 4.2.8 should overall work although there where many changes from 4.2 vs 4.3 which may break your configuration.
As for the issue found by MJ Derksen it's the first time I hear about it, capturing logs or status would have helped debugging.

Overall I'd say better backup your configuration before upgrading.
And restarting clean ain't a so bad idea, subsequent updates from the 4.3 branch should be easier afterwards.

BTW, updated packages periodically made available on my github at:
https://github.com/th0ma7/synology/tree/master/packages

Is there any way to backup actual v4.2.8 networks/muxes/channel and Recording config and to import these after 4.3 has been installed from scratch? Because these are the most time consuming items.

Thanks.

RE: Tvheadend packages for Synology NAS - Added by Chris Beasley over 1 year ago

th0ma7 ^ wrote:

Updating from 4.2.8 should overall work although there where many changes from 4.2 vs 4.3 which may break your configuration.
As for the issue found by MJ Derksen it's the first time I hear about it, capturing logs or status would have helped debugging.

Overall I'd say better backup your configuration before upgrading.
And restarting clean ain't a so bad idea, subsequent updates from the 4.3 branch should be easier afterwards.

BTW, updated packages periodically made available on my github at:
https://github.com/th0ma7/synology/tree/master/packages

Do you have any Bromolow builds? I've got a DS3615xs which I use as my tv server but I can't find an updated build with that name...

RE: Tvheadend packages for Synology NAS - Added by Christian Kneissl over 1 year ago

With latest version 4.3 I still have an issue which started with 4.2.8: After a restart of TVHeadend (and also of the whole NAS) my Cardreader reports an "empty slot" for the CAM.
After a manual disable/enable of the ca0 device it recognises the CAM correct.
I am using a Synology DS418play and a the TechnoTrend TT-connect CT-3650 CI USB Tuner with integrated CardReader.

Edit: It seems that this got worse with 4.3 - In 4.2 this problem only occured once after a restart.
Now (4.3) the "empty slot" occurs randomly during operation.
I already tried different CAM-Modules and Smartcards which did not help.

Br,
Christian

RE: Tvheadend packages for Synology NAS - Added by Richard Vogt over 1 year ago

I do have the following questions to make an update easyer:

1. Will it be possible to implement constantly the Sundtek recognition in the start-stop-status script?
2. Will it be possible to still have the channel logos after an update?

Thanks

RE: Tvheadend packages for Synology NAS - Added by th0ma7 ^ 11 months ago

For build/change requests and issues related to SynoCommunity build/releases feel free to open-up an issue on the project home page at: https://github.com/SynoCommunity/spksrc

Note that some bugs may requires you to be able to reproduce them on officially supported builds provided by tvheadend.org. Look for https://tvheadend.org/projects/tvheadend/wiki/download for supported platforms.

RE: Tvheadend packages for Synology NAS - Added by Mitcho Klem 8 months ago

Hey Th0ma7,...
do you have any solution for synology DSM 7.0 beta? There is no going back to DSM 6.3.2.
FFmpeg and also TVHeadend is not working.

Please... I need it daily for TV.

RE: Tvheadend packages for Synology NAS - Added by MJ Derksen 8 months ago

Mitcho Klem wrote:

Hey Th0ma7,...
do you have any solution for synology DSM 7.0 beta? There is no going back to DSM 6.3.2.
FFmpeg and also TVHeadend is not working.

Please... I need it daily for TV.

Updating to new DSM major releases is not something you should do when it's just out. DSM 7 is just in beta.
There is a status page where SynoCommunity is updating their packages for DSM 7: https://github.com/SynoCommunity/spksrc/projects/9

Since you cannot roll back, the only options for you are;
1: Waiting for DSM7 package but that can some time because it's just in beta.
2: Use Docker and search for the tvheadend image there.

RE: Tvheadend packages for Synology NAS - Added by Mitcho Klem 8 months ago

OK i'll try docker if I manage it through.

Thanx for quick answer, MJ

RE: Tvheadend packages for Synology NAS - Added by Mitcho Klem 8 months ago

I tried Dreamcat4/Tvheadend and marcoh00-tvheadend-sundtek docker... its working on 9981 port but have problems with driver or my Sundtek Tuner.
Now its little late, but I'm sorry to rush to beta state.

RE: Tvheadend packages for Synology NAS - Added by Mitcho Klem 8 months ago

I tried Dreamcat4/Tvheadend and marcoh00-tvheadend-sundtek docker... its working on 9981 port but have problems with driver or my Sundtek Tuner.
Now its little late, but I'm sorry to rush to beta state.

RE: Tvheadend packages for Synology NAS - Added by th0ma7 ^ 8 months ago

Mitcho Klem wrote:

Hey Th0ma7,...
do you have any solution for synology DSM 7.0 beta? There is no going back to DSM 6.3.2.
FFmpeg and also TVHeadend is not working.

Please... I need it daily for TV.

It is on my todo list but don't expect this anytime soon. This will take me a few weeks+++ (if not months) to tackle.

RE: Tvheadend packages for Synology NAS - Added by Markus Rechberger (Sundtek) 8 months ago

Mitcho, are your problems resolved?

DSM7 is not recommended at this time, our driver won't install due to package issues (when installing our driver manually on the console manually it works (just copying files), so no binary incompatibilities but package parameters have changed somewhat).

The tvheadend start-stop script would need following check in order to support our units automatically:

if [ -e /var/packages/sundtek/target/opt/lib/libmediaclient.so ]; then
export LD_PRELOAD=/var/packages/sundtek/target/opt/lib/libmediaclient.so
fi

Actually our installer is modifying the tvheadend start-script; that's why we recommend to install our driver after tvheadend is installed, and restart tvheadend once the installation is done.

in case multiple preloads are needed for other things just build up a variable and export it before starting the tvheadend binary.

RE: Tvheadend packages for Synology NAS - Added by Mitcho Klem 8 months ago

Hi Markus,
Your driver still works no problem (it was installed already on DSM6), but its problem with ffmpeg and Tvheadend which dont work yet with DSM7. In DSM6 everything from Th0ma7 worked great!

RE: Tvheadend packages for Synology NAS - Added by Mitcho Klem 8 months ago

Marcus:
docker marcoh00-tvheadend-sundtek1 is yours?
When I run it I cant find any channel. I tried and stoped Sundtek driver in DSM packages but no luck. How must Docker package be configured?

Thanx, Mitcho

RE: Tvheadend packages for Synology NAS - Added by th0ma7 ^ 5 months ago

Hi Markus,

If you open-up an issue on github spksrc repo with a bit of details related to the `libmediaclient.so` (where to find the code, what's for, etc) I could probably figure out something and compile & package the library part of the default tvheadend native package.

Just a thought, cheers!

- th0ma7

RE: Tvheadend packages for Synology NAS - Added by Markus Rechberger (Sundtek) 5 months ago

Marcus:
docker marcoh00-tvheadend-sundtek1 is yours?
When I run it I cant find any channel. I tried and stoped Sundtek driver in DSM packages but no luck. How must Docker package be configured?

no that's not mine.

We have some documentation online about docker:

https://sundtek.de/wiki/index.php?title=Docker

Hi Markus,

If you open-up an issue on github spksrc repo with a bit of details related to the `libmediaclient.so` (where to find the code, what's for,
etc) I could probably figure out something and compile & package the library part of the default tvheadend native package.
Just a thought, cheers!
- th0ma7

libmediaclient is just an emulation layer for the dvb framework, it redirects the datastream from the mediasrv (driver process on ring 3) to tvheadend. Our driver runs on application level, rather than in kernelspace.
It really has nothing to do with tvheadend and should not be part of it, if there are any questions just let me know.
There are other ways to get the tuners integrated in tvheadend, we're also working on that (and it will make the tuners even more valuable due to the high compatibility with so many architectures)

RE: Tvheadend packages for Synology NAS - Added by th0ma7 ^ 5 months ago

I took a rather different approach where I'm about to release DVB kernel driver packages for Synology NAS that uses LinuxTV backport over 3.10 and 4.4 kernels in usage.
Sadly not all arches will be available but, for a start, packages for apollolake are available here:
https://github.com/th0ma7/synology/tree/master/packages/inogueira82
Package will soon be made available on SynoCommunity for x86_64 arches mainly, and DSM-6.2.3 only for a start.

RE: Tvheadend packages for Synology NAS - Added by Mitcho Klem 5 months ago

th0ma7
I can test TVheadend in DSM7 and DS918+. I use Sundtek USB DVB-C tuner.
Now I run it in Docker.

RE: Tvheadend packages for Synology NAS - Added by JOAQUIM VIEGAS 4 months ago

Mitcho Klem wrote:

Hey Th0ma7,...
do you have any solution for synology DSM 7.0 beta? There is no going back to DSM 6.3.2.
FFmpeg and also TVHeadend is not working.

Please... I need it daily for TV.

Hello,

I'm using DSM 6.2.4 on a Synology DS620 slim
I have 2 USB TV Tuner dongles (Elegato EyeTV).
None is found by my Tvheadend server.
Obviously, I notived that Synology no more offer, maintain or guarentee TV usb stick usage since DSM 6.
However, I understood that it may be possible to manually install drivers for those kind of hardware.
I must admit that I'm not really fluent in Linux commands but I can follow recommandation in SSH mode.
I would highly appreciate advices about all this.

Thank you in advance for you help.
Joaquim

RE: Tvheadend packages for Synology NAS - Added by KenyBDG K. 4 months ago

From few hour I've been struggling to configure TVH on my DS720+ on previous DS218+ everything worked fine.
On remote site I've TVH on LXC proxmox with two TSB6902, now I'd like connect via SAT>IP my DS720+ (through internet)
I think that I succeed connected to SAT>IP server because on Synology TVH I'see SAT>IP DVBS2 Tuner, but I cannot find any channels.
Here is what I see on log's on DS720+

2021-04-18 21:06:37.574 subscription: 04D7: "scan" subscribing to mux "10892H", weight: 6, adapter: "SAT>IP DVB-S Tuner #1 (XXX.XXX.XXX.XXX:[email protected])", network: "Hot Bird", service: "Raw PID Subscription"
2021-04-18 21:06:37.672 satip: SAT>IP DVB-S Tuner #1 (XXX.XXX.XXX.XXX:[email protected]) - RTSP SETUP error -5 (Input/output error) [6-400]
2021-04-18 21:06:47.574 mpegts: 10892H in Hot Bird - scan no data, failed
2021-04-18 21:06:47.574 subscription: 04D7: "scan" unsubscribing

Here is a log's from SAT>IP server
2021-04-18 21:06:37.654 http: XX.XX.XX.158: RTSP/1.0 SETUP rtsp://XXX.XXX.XXX.XXX:9983/?src=1&fe=1&freq=10892&sr=27500&msys=dvbs&mtype=qpsk&pol=h&fec=34&ro=0.35&pids=0 -- 400

I've no idea where is the issue

12.jpg (31.1 KB) 12.jpg

RE: Tvheadend packages for Synology NAS - Added by th0ma7 ^ about 1 month ago

New beta packages of ffmpeg + tvheadend now available for testing on my github.
Pending official release.
https://github.com/th0ma7/synology/tree/master/packages/dsm7-beta

(276-300/316)