Forums » Tutorial and setups »
Tvheadend continuity errors on Synology NAS [solved]
Added by Alick Wilson almost 2 years ago
I have had an ongoing problem with regular Tvheadend continuity errors and occasional transport errors. These errors were so bad and so common that many recordings were unwatchable, and I eventually reverted to using my legacy DVR.
Other postings on this forum were helpful in leading me to fairly simple configuration changes on my Synology NAS. I think I have now solved the problem. The changes are:
- Add the following lines to /etc/sysctl.conf to increase the UDP receive buffer size:
net.core.rmem_default = 25165824
net.core.rmem_max = 25165824
- Create the following Synology Task on boot-up to give tvheadend the highest priority:
Task: renice sc-tvheadend
User: root
Event: Boot-up
User defined script
sleep 20
renice -20 --user sc-tvheadend
I have done reasonably exhaustive tests, simultaneously recording TV using four tuners, playing a recording using Kodi, backing up large files using Synology Drive backup and copying files from Synology NAS to PC. Before my changes to my Synology configuration this would generate numerous continuity errors. After my configuration changes I did not see any continuity errors.
I use my NAS primarily for tvheadend and local backup. These changes have no obvious impact other than on tvheadend.
My setup is:
- HDHomeRun Quatro DVB-T tuner
- Tvheadend on Synology NAS model DS118
- Kodi frontend on Android TV and other devices