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 th0ma7 ^ over 3 years ago

JOAQUIM VIEGAS wrote:

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

I created beta packages of LinuxTV which includes various DVB driver support. Your mileage will vary quite much as synology is not distributing their latest kernel source code as such modules compiled for previous kernel may (or not) work out for you. Also I don't know if your DVB specifically are part of the package as I compile the entire LinuxTV set compatible for kernel 4.4. Feel free to open an issue at https://github.com/th0ma7/synology/issues and I may be able to help.

LinuxTV kernel module package are located here:
https://github.com/th0ma7/synology/tree/master/packages/SynoKernel
Documentation here:
https://github.com/SynoCommunity/spksrc/wiki/FAQ-SynocliKernel-(usbserial,-linuxtv)

I was close to release them but Synology just take too long into releasing the kernel source, hence there is no way to keep the package aligned with latest upgrades.

RE: Tvheadend packages for Synology NAS - Added by Piotr Kuchciak over 3 years ago

Which package is for platform cedarview (DS713+) ? It is version x64 ?

RE: Tvheadend packages for Synology NAS - Added by th0ma7 ^ over 3 years ago

Piotr Kuchciak wrote:

Which package is for platform cedarview (DS713+) ? It is version x64 ?

Answer located here for all models: https://github.com/SynoCommunity/spksrc/wiki/Architecture-per-Synology-model

In your case, x64.

RE: Tvheadend packages for Synology NAS - Added by Piotr Kuchciak over 3 years ago

I downloaded latest version for DSM 7 and install it but TVHeadend not show me any adapter DVB. In control panel in DSM i see my USB Tuner. But it is not show in TVHeadend. Why ?

RE: Tvheadend packages for Synology NAS - Added by th0ma7 ^ over 3 years ago

Piotr Kuchciak wrote:

I downloaded latest version for DSM 7 and install it but TVHeadend not show me any adapter DVB. In control panel in DSM i see my USB Tuner. But it is not show in TVHeadend. Why ?

Synology removed support for ALL usb DVB tuners part of DSM7. Only tuners that will work out are network/LAN types such as HDhomerun or other that has company backed support (which is really limited, I think Sundtek had some linux support). I do have LinuxTV backport kernel packages including many DVB drivers, but, as Synology is not releasing its kernel source ahead of time it currently is impossible to provide a build compatible for DSM7.

RE: Tvheadend packages for Synology NAS - Added by Markus Rechberger (Sundtek) over 3 years ago

Yes Sundtek drivers work with DSM7 due to no kernel dependency.

RE: Tvheadend packages for Synology NAS - Added by Piotr Kuchciak over 3 years ago

But in DSM 7 i see that my tuner is found and see in control panel also sa Hub USB....
But can you give me model tuner DVB-T2 works on Sundtek ?

And if i use Sundtek it will work on Synology ?
https://shop.sundtek.com/DVB-C-T-T2/Sundtek-MediaTV-Pro-III-DVB-C-DVB-T-DVB-T2-FM-Radio-AnalogTV.html

But if Synology remove support USB tuner now TVHeadend is no need... because we can not use usb tuners...

RE: Tvheadend packages for Synology NAS - Added by Markus Rechberger (Sundtek) over 3 years ago

Piotr Kuchciak wrote:

But in DSM 7 i see that my tuner is found and see in control panel also sa Hub USB....
But can you give me model tuner DVB-T2 works on Sundtek ?

And if i use Sundtek it will work on Synology ?
https://shop.sundtek.com/DVB-C-T-T2/Sundtek-MediaTV-Pro-III-DVB-C-DVB-T-DVB-T2-FM-Radio-AnalogTV.html

yes.

But if Synology remove support USB tuner now TVHeadend is no need... because we can not use usb tuners...

they remove in-kernel usb tuner support, our drivers are not kernel drivers.

RE: Tvheadend packages for Synology NAS - Added by Piotr Kuchciak over 3 years ago

But it is no possible to install any other package with driver for tuners ? to start working ?

RE: Tvheadend packages for Synology NAS - Added by Markus Rechberger (Sundtek) over 3 years ago

Piotr Kuchciak wrote:

But it is no possible to install any other package with driver for tuners ? to start working ?

we have nothing to do with other tuner driver packages (and leave all of them untouched), they will or will not work just as before.

RE: Tvheadend packages for Synology NAS - Added by Piotr Kuchciak over 3 years ago

In this situation in my opinion TVHeadend is no need for synology if tuners not working. When all tuners works (in past) i used TVHeadend and it works perfect.

RE: Tvheadend packages for Synology NAS - Added by Stefan S. over 3 years ago

Piotr Kuchciak wrote:

I downloaded latest version for DSM 7 and install it but TVHeadend not show me any adapter DVB. In control panel in DSM i see my USB Tuner. But it is not show in TVHeadend. Why ?

Did you reboot your DS?
Sometimes this makes the tuners back available in TVH.

RE: Tvheadend packages for Synology NAS - Added by Markus Rechberger (Sundtek) over 3 years ago

For those with sundtek tuners, I can confirm that the driver works with tvheadend with DSM7

After the driver installation a shellscript has to be started on the console to allow the driver to run as root (log in as "admin")

sudo /var/packages/sundtek/scripts/allowroot.sh

This just switches the user "sundtek" to "root" in /var/packages/sundtek/conf/privilege

Afterwards the driver has to be restarted (which will complete the installation).

root is actually only required for the data communication because the driver registers a shared memory segment for the
data transfer.

We will move the DSM6 installer to http://sundtek.de/synology6 (the installer itself will not be updated anymore, the installer just calls a shellscript in the background which always pulls the latest driver anyway)

The new/old Package path for DSM7 is:
http://sundtek.de/synology

RE: Tvheadend packages for Synology NAS - Added by Piotr Kuchciak over 3 years ago

Good will be if for other tuner will be availavle driver... Like AverMedia tuner..... In my country sundtek is no available....

RE: Tvheadend packages for Synology NAS - Added by Markus Rechberger (Sundtek) over 3 years ago

Which country would that be?

They're available everywhere, we're doing direct sales since customers usually contact us directly if they need support and there's not much benefit of using resellers so far.

RE: Tvheadend packages for Synology NAS - Added by Carsten Giese over 3 years ago

This is my first Package from SynoCommunity. I have just updated to latest DSM7 and instaled TVH.
During setup I could enter a password, but after finishing the setup I cannot access the GUI on Port 9981. It asks for a username! plus the password. What username is it?
I am also confused on the hints during the setup talking about a usergroup 'sc-media'. Do I need to set this up? What are the exact requirements here to do the first login?
Can someone please advise? I am not a Unix-Guru. My plan is to use TVH together with a TRIAX TSS400 in my LAN as a SAT-IP server.

RE: Tvheadend packages for Synology NAS - Added by Alick Wilson almost 3 years ago

Tvheadend problem after upgrade to to Version 4.3.20211121-31
-------------------------------------------------------------

Tvheadend has been working correctly for many months.

I've just upgraded Tvheadend to Version 4.3.20211121-31. I kept the original data files.

As dependencies for Tvheadend, Python Python 3.10.1-5 was installed and ffmpeg was upgraded to 4.3.3-39.

After the upgrade Tvheadend starts running, then stops a few seconds later. It refuses to connect to port 9981 while running.

I have uninstalled Tvheadend, Python 3.10 and ffmpeg and reinstalled all, but have not deleted the original Tvheadend data files. The error remains.

Please help!

Thanks!

RE: Tvheadend packages for Synology NAS - Added by th0ma7 ^ almost 3 years ago

Alick Wilson wrote:

Tvheadend problem after upgrade to to Version 4.3.20211121-31
-------------------------------------------------------------

Tvheadend has been working correctly for many months.

I've just upgraded Tvheadend to Version 4.3.20211121-31. I kept the original data files.

As dependencies for Tvheadend, Python Python 3.10.1-5 was installed and ffmpeg was upgraded to 4.3.3-39.

After the upgrade Tvheadend starts running, then stops a few seconds later. It refuses to connect to port 9981 while running.

I have uninstalled Tvheadend, Python 3.10 and ffmpeg and reinstalled all, but have not deleted the original Tvheadend data files. The error remains.

Please help!

Thanks!

Hi Alick, can you please provide the tvheadend.log (located under /var/packages/tvheadend/target/var for DSM6 or /var/packages/tvheadend/var for DSM7) and open-up an issue at https://github.com/SynoCommunity/spksrc

RE: Tvheadend packages for Synology NAS - Added by Alick Wilson almost 3 years ago

Hi Vincent, thanks for prompt response, much appreciated.

I've opened up an issue on Github.

Log file also below:

/var/packages/tvheadend/var/tvheadend.log


Wed Dec 22 12:12:42 NZDT 2021
Starting tvheadend command tvheadend f -C -u sc-tvheadend -g tvheadend --http_port 9981 --htsp_port 9982 -c /volume1/@appdata/tvh >
2021-12-22 12:12:50.209 [ ERROR]:config: unknown subsystem '""'
2021-12-22 12:12:50.209 [ INFO]:main: Log started
2021-12-22 12:12:50.434 [ INFO]:http: Starting HTTP server 0.0.0.0:9981
2021-12-22 12:12:50.434 [ INFO]:htsp: Starting HTSP server 0.0.0.0:9982
2021-12-22 12:12:50.647 [ INFO]:config: backup: migrating config from 4.3~c6bb43d (running 4.3~b871020)
2021-12-22 12:12:50.647 [ INFO]:config: backup: running, output file /volume1/@appdata/tvheadend/backup/4.3~c6bb43d.tar.bz2
2021-12-22 12:12:50.648 [ INFO]:spawn: Executing "/bin/tar"
2021-12-22 12:13:35.546 [ ERROR]:spawn: /bin/tar: ./#recycle: Cannot open: Permission denied
2021-12-22 12:13:35.939 [ ERROR]:spawn: /bin/tar: Exiting with failure status due to previous errors
2021-12-22 12:13:35.955 [ INFO]:config: backup: completed
2021-12-22 12:13:35.955 [ ERROR]:config: command '/bin/tar cjf /volume1/@appdata/tvheadend/backup/4.3~c6bb43d.tar.bz2 --exclude b >
2021-12-22 12:13:35.955 [ ERROR]:config: executed in directory '/volume1/@appdata/tvheadend'
2021-12-22 12:13:35.955 [ ERROR]:config: please DON'T report this as an error, you may use --nobackup to skip
2021-12-22 12:13:35.955 [ ERROR]:config: ... or run the above command in the printed directory
2021-12-22 12:13:35.955 [ ERROR]:config: ... using the same user/group as for the Tvheadend executable
2021-12-22 12:13:35.955 [ ERROR]:config: ... to check the reason for the unfinished backup
2021-12-22 12:13:35.955 [ ERROR]:config: backup: fatal error
--

RE: Tvheadend packages for Synology NAS - Added by Zoltan Szabad over 2 years ago

Hi Vincent,

Just updated my tvheadend server on my synology DS718+ (DSM 7.0.1-42218 Update 3) and if I start th service it stops in 5 seconds. It has don this for like 10 times, now it runs, but I cannot connect to the server via port 9981 (ERR_CONNECTION_REFUSED), is there any troubleshooting I can do here?

RE: Tvheadend packages for Synology NAS - Added by Thomas Heiderer over 2 years ago

Hi

I have dsm 7 and since the update to tvh 4.3.20220414-32 no longer starts, the following message always comes up: the parcel service could not be run

I have already uninstalled and repaired it, unfortunately without success.
I hope that someone can help me.

RE: Tvheadend packages for Synology NAS - Added by Zoltan Szabad over 2 years ago

Thomas Heiderer wrote:

Hi

I have dsm 7 and since the update to tvh 4.3.20220414-32 no longer starts, the following message always comes up: the parcel service could not be run

I have already uninstalled and repaired it, unfortunately without success.
I hope that someone can help me.

Read this, and/or update ffmpeg

https://github.com/SynoCommunity/spksrc/issues/5222#issuecomment-1107422125

RE: Tvheadend packages for Synology NAS - Added by Thomas Heiderer over 2 years ago

Thank you, but

Unfortunately, ffmpeg v4.4.1-42 is not offered via synopackages, only ffmpeg v4.4.1-41

RE: Tvheadend packages for Synology NAS - Added by Thomas Heiderer over 2 years ago

Thank you for your help, I manuel installed the new version of ffmpeg for my synology and TVH works fine again

RE: Tvheadend packages for Synology NAS - Added by Nigel Smith over 2 years ago

As a side issue, how do you backup the TVH settings on this build?

(301-325/327)