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 Juan Manuel Juan about 6 years ago
Hi, thanks for yor answer.
1) 4.2.6-11 from synocmmunity work ok (braswell). Version 4.2.6-13 have the same problem with transcode.
2) Trasncode with libx264.
3) Log in tvheadend with try transcoding (only get black screen and audio):
2018-10-28 19:39:48.907 capmt: tvheadend: Starting CAPMT server for service "LALIGA123TV" on adapter 0
2018-10-28 19:39:48.907 subscription: 00B0: "HTTP" subscribing on channel "LaLiga 123 TV", weight: 100, adapter: "SAT>IP DVB-S Tuner #1 (192.168.1.14)", network: "Satelite M+", mux: "11038V", provider: "Movistar+", service: "LALIGA123TV", profile="moviles2", hostname="31.4.231.1", username="moviles", client="VLC/3.0.4 LibVLC/3.0.4"
2018-10-28 19:39:49.588 transcode: 0002: 1:MPEG2VIDEO 720x576 > H264 600x480 (libx264)
2018-10-28 19:39:49.588 transcode: 0002: 2:MPEG2AUDIO > AAC (aac)
2018-10-28 19:39:50.099 transcode: 0002: Using preset faster
2018-10-28 19:39:50.099 libav: Undefined constant or missing '(' in 'high'
2018-10-28 19:39:50.099 libav: Unable to parse option value "high"
2018-10-28 19:39:50.099 libav: Error setting option profile to value high.
2018-10-28 19:39:50.099 transcode: 0002: Unable to open libx264 encoder
Thanks
RE: Tvheadend packages for Synology NAS - Added by Martin Walter about 6 years ago
Thanks. The log messages might help. But will need Jaroslav to look at it...
@perexg ^^ Do you know what triggers this error in libav?
RE: Tvheadend packages for Synology NAS - Added by Martin Walter about 6 years ago
Juan Gonzales: Missed it earlier, but transcoding actually should not work in those builds. It requires ffmpeg to support it. Jaroslav has included the transcoding option in his statically linked version that ships with TVH. However, the SynoCommunity cross-compilation requires ffmpeg to be dynamically linked. That ffmpeg version does not (yet?) include transcoding support. There is a pending PR, but it only works for a subset of Synology NASes, which makes broader integration difficult.
Could it be that the 4.2.6-11 version that worked for was a testing version? Not sure anymore, but could be I built one some time ago when playing around with the pending PR I mentioned. Anyways, if you are not depending on any of the 4.2.6 -> 4.2.7 changes in TVH itself, I recommend reverting to that special build instead...
RE: Tvheadend packages for Synology NAS - Added by Juan Manuel Juan about 6 years ago
Thaks for your reply.
RE: Tvheadend packages for Synology NAS - Added by Ketan Surti about 6 years ago
TVheadend setup on Synology with Triax TSS 400 setup I have but TVheadend cant see the Triax in the TV Adapaters tab at all - any ideas ?
RE: Tvheadend packages for Synology NAS - Added by Chris Beasley about 6 years ago
Kets Surti wrote:
TVheadend setup on Synology with Triax TSS 400 setup I have but TVheadend cant see the Triax in the TV Adapaters tab at all - any ideas ?
Yes as I had the same issue.
You need to read the earlier content in this thread: https://tvheadend.org/boards/5/topics/27780?r=32038#message-32038 as this will tell you what you need to do and slightly further down how to put it in the right place. Mine now survives reboots, however on a package update you have to redo it as it loses the setting.
interestingly the latest LinuxIO docker image using TVH 4.3 doesn't require anything and detects the SATIP device with ease.
RE: Tvheadend packages for Synology NAS - Added by horst epipe about 6 years ago
Hello
anyone got an idea how to fix this error in tvheadend (4.2.6)?
2018-11-11 20:27:06.092 linuxdvb: Sundtek DVB-S/S2 (VII) #0 : DVB-S #0 - DTV_CLEAR failed [e=Permission denied]
I made a clean installation of the package.
Any hints are very welcome.
Best regards
RE: Tvheadend packages for Synology NAS - Added by Martin Walter almost 6 years ago
Juan Gonzales It seems the error you've encountered is not related to hardware transcoding, but a broader issue with software transcoding as well. Jaroslav pushed a commit 3 days ago, which might fix the issue. I've created a 4.2.7 test build with (just) that fix for your braswell 6.1+ system. You can download it here:
https://www.dropbox.com/s/3hmg79vee31pr5a/tvheadend_braswell-6.1_4.2.7-14.spk?dl=0
Could you test it and report back, please?
@´horst´ As you have not received a response here and I'm not familiar with Sundtek devices at all, I recommend you ask on the Sundtek forum instead. But maybe you have done that already...
RE: Tvheadend packages for Synology NAS - Added by Juan Manuel Juan almost 6 years ago
Martin Walter wrote:
Juan Gonzales It seems the error you've encountered is not related to hardware transcoding, but a broader issue with software transcoding as well. Jaroslav pushed a commit 3 days ago, which might fix the issue. I've created a 4.2.7 test build with (just) that fix for your braswell 6.1+ system. You can download it here:
https://www.dropbox.com/s/3hmg79vee31pr5a/tvheadend_braswell-6.1_4.2.7-14.spk?dl=0
Could you test it and report back, please?@´horst´ As you have not received a response here and I'm not familiar with Sundtek devices at all, I recommend you ask on the Sundtek forum instead. But maybe you have done that already...
Working OK, THANKS :0
RE: Tvheadend packages for Synology NAS - Added by KenyBDG K. almost 6 years ago
Is there any possibility to set IP of SAT IP server which is on different localization ?(via internet) if yes, someone could give me example how to do it ?
RE: Tvheadend packages for Synology NAS - Added by Martin Walter almost 6 years ago
Yes. There is some command-line option, that you have to include when you start Tvheadend. Don't remember the details, but you will find it in one of our forums.
In order to insert that option in your Synology installation, do the following:
1) Stop TVH in the DSM package manager
2) ssh into your NAS as admin
3) Gain root priviledges (sudo su -)
4) cd /var/packages/tvheadend/scripts
5) Edit the "service-setup" file and add the missing command-line option to the available "SERVICE_COMMAND" string
6) Save the file and exit the ssh session
7) Restart TVH in the DSM package manager
This will NOT survive package updates, so you'd have to repeat it after each update.
RE: Tvheadend packages for Synology NAS - Added by KenyBDG K. almost 6 years ago
Thanks for your quick answer.
I added missing parameter to SERVICE_COMMAND line
SERVICE_COMMAND="${SYNOPKG_PKGDEST}/bin/tvheadend -f -u ${EFF_USER} -g ${GRPN} --http_port ${HTTPP} --htsp_port ${HTSPP} -c ${HOME_DIR} -p ${PID_FILE} --satip_xml "http://85.XX.199.XX:9981/satip_server/desc.xml"
..and now I see SatIP adapters in DVB Inputs. Thanks !
RE: Tvheadend packages for Synology NAS - Added by Martin Walter almost 6 years ago
The latest maintenance release, Tvheadend 4.2.8, is now available via the SynoCommunity. Will update post #1 in a minute.
Of note: It comes with an update of ffmpeg to 4.1 and VAAPI HW transcoding support on x64 platforms. I have an old evansport platform so cannot test it, but would be interested in your experiences with this feature.
RE: Tvheadend packages for Synology NAS - Added by Stefan S. almost 6 years ago
Hi Martin,
I've just updated my TVH 4.2.6 package on my DS216+ II (latest DSM version) to 4.2.8.
Basically everything is working after the update except for my two Sundtek TV tuners - they don't get recognized in TVH anymore after this update. Before, they were present and working.
Sundtek driver is the latest (v0.38) and I am using the following tuners:
MediaTV Pro III (EU) --> DVB-C
SkyTV Ultimate 6 2016/Q1 --> DVB-S2
I already uninstalled the Sundtek driver and re-installed it (incl. reboot of the NAS) but no change.
Any hint / clue how to make them work again with current TVH version?
*EDIT: It's working now... seems that just another reboot was neccessary ;-) *
Many thanks and BR
Stefan
RE: Tvheadend packages for Synology NAS - Added by Christian Kneissl almost 6 years ago
Hello!
I just upgraded to 4.2.8 on my DS418play.
It seems that the CAM-Reader support for my TechnoTrend TT-connect CT-3650CI USB-Tuner has gone.
The cardreader is no longer listed under the TV Adapters, where it was before as /dev/dvb/adapter0/ca0 (see attached jpg)
So now I am not longer able to view/decode encrypted TV channels, unencrypted channels are working as before.
Is there a solution, or has there been a change in handling the CAMs?
Thanks a lot,
Christian
RE: Tvheadend packages for Synology NAS - Added by Martin Walter almost 6 years ago
Hmh, not sure. Maybe the driver got stuck. Have you rebooted your NAS already? If not, I'd try this and see whether the tuner appears. Otherwise, I'd ssh into the box and check whether the adapter works on OS level in the first place, i.e. check /dev/dvb/adapter... and dmesg, etc.
RE: Tvheadend packages for Synology NAS - Added by Christian Kneissl almost 6 years ago
Hi!
The interesting dmesg output:
[ 175.442860] dvb-usb: found a 'Technotrend TT-connect CT-3650' in warm state. [ 175.452456] dvb-usb: will pass the complete MPEG2 transport stream to the software demuxer. [ 175.461865] dvb-usb: will pass the complete MPEG2 transport stream to the software demuxer. [ 175.471680] DVB: registering new adapter (Technotrend TT-connect CT-3650) [ 175.483123] ttusb2: CI initialized. [ 175.487040] usb 1-1: DVB: registering adapter 0 frontend 0 (Philips TDA10023 DVB-C)... [ 175.503319] usb 1-1: DVB: registering adapter 0 frontend 1 (NXP TDA10048HN DVB-T)... [ 175.535224] IR keymap rc-tt-1500 not found [ 175.539818] Registered IR keymap rc-empty [ 175.545932] input: IR-receiver inside an USB DVB receiver as /devices/pci0000:00/0000:00:15.0/usb1/1-1/rc/rc0/input2 [ 175.557806] rc0: IR-receiver inside an USB DVB receiver as /devices/pci0000:00/0000:00:15.0/usb1/1-1/rc/rc0 [ 175.569242] dvb-usb: schedule remote query interval to 150 msecs. [ 177.575371] dvb-usb: recv bulk message failed: -110 [ 177.580845] ttusb2: there might have been an error during control message transfer. (rlen = 0, was 0) [ 179.580482] dvb-usb: recv bulk message failed: -110 [ 179.586031] ttusb2: there might have been an error during control message transfer. (rlen = 0, was 0) [ 179.596945] dvb-usb: Technotrend TT-connect CT-3650 successfully initialized and connected. [ 179.607524] usbcore: registered new interface driver dvb_usb_ttusb2 [ 180.127940] usb 1-1: DVB: adapter 0 frontend 0 frequency 0 out of range (47000000..862000000) [ 182.686162] dvb_ca adapter 0: Invalid PC card inserted :( [ 183.277670] usb 1-1: DVB: adapter 0 frontend 0 frequency 0 out of range (47000000..862000000) [ 183.821614] usb 1-1: DVB: adapter 0 frontend 1 frequency 0 out of range (177000000..858000000)
Because I saw "Invalid PC card inserted :(", I removed and inserted the PC Card, after that I got
[ 840.397021] dvb_ca adapter 0: DVB CAM detected and initialised successfully
But there is still no Cardreader listed in tvheadend (also after restart) and no decoding.
In the shell I can see everything:
/dev/dvb/adapter0# ls ca0 demux0 dvr0 frontend0 frontend1 net0
RE: Tvheadend packages for Synology NAS - Added by Martin Walter almost 6 years ago
If you are sure that the CAM is detected and initialised correctly, I'd stop and restart the Tvheadend package and start inquiring log files. But I'm neither driver nor CAM expert. Maybe it is better you start a separate forum issue or ticket with the information above, so that more people see it. If others have encountered similar issue on non-Synology platforms they might be better positioned to help...
RE: Tvheadend packages for Synology NAS - Added by Christian Kneissl almost 6 years ago
I posted my issue under the general Descrambling-Forum.
Here I also found the following topic:
https://tvheadend.org/boards/13/topics/22272
It seems that TVHeadend has to be compiled with the --enable-liben50221 option, that hardware CI CAMs work.
Do you know how this option was set for this Synology release?
RE: Tvheadend packages for Synology NAS - Added by Martin Walter almost 6 years ago
Thank You. I think you are right! That option and the dvb-apps dependency has been removed in the Tvheadend Master branch 15 months ago. I removed it from the 4.2.7 update, assuming it had been backported into the 4.2.x branch already. That was wrong. I just checked and the configuration option still exists. Suprised this did not come up earlier. Could you let me know your Syno Model and DSM version, please? I'll create a test build for you.
RE: Tvheadend packages for Synology NAS - Added by Christian Kneissl almost 6 years ago
Oh great, I will write this to my other thread.
I have a Synology DS418play - INTEL Celeron J3355 - DSM 6.2.1-23824 Update 4
RE: Tvheadend packages for Synology NAS - Added by Martin Walter almost 6 years ago
Don't write too quickly. Maybe it is something else... ;-)
Will take some time though. Compiling on an old laptop...
RE: Tvheadend packages for Synology NAS - Added by Martin Walter almost 6 years ago
OK. Here you go:
https://www.dropbox.com/s/x1spbigjho6zu38/tvheadend_x64-6.1_4.2.8-15.spk?dl=0
Please install manually and let me know whether it works now...
RE: Tvheadend packages for Synology NAS - Added by Juan Manuel Juan almost 6 years ago
Hi,
I have installed the last version 4.2.8 in synology 918+ (Celeron j3455).
I have problem with vaapi transcoding (software transcoding is OK).
The video when i use trasncoding with vaapi (i try vaapi h264 and vaapi mpg2)no is ok, i saw video 5 second, stop one second, continue 5 second, stop 1 second.......
I paste debugging.
Thanks for your work.
tvheadend.txt (109 KB) tvheadend.txt |
RE: Tvheadend packages for Synology NAS - Added by Christian Kneissl almost 6 years ago
Martin Walter wrote:
OK. Here you go:
https://www.dropbox.com/s/x1spbigjho6zu38/tvheadend_x64-6.1_4.2.8-15.spk?dl=0
Please install manually and let me know whether it works now...
Hi Martin!
The CI-Cardreader is showing up and everything is working fine again with this release, even after a reboot of the NAS!
Thanks a lot! Br, Christian