TVH as backend at RPi3 is used with 2 DVB-T sticks for viewing and recording SD TV. HTS Tvheadend 4.0.9 ~ LibreELEC Tvh-addon v7.0.101.
All is peerfect for weeks at the time. Than for no apparant reason, TVH starts acting up, refuses to switch tuners, refuses to tune. After I restart RPi and to not touch anything else, all is perfect again!?!
In most situations, problem gets noticed when one mux is being recorderd and we try to switch to another mux. Second tuners seems not to exist. Most recent issue was: it was recording, but the stream was 0 bytes! And we could not get to another tuner.
I have switched multiple tuners around, I do not see them related to the problem. The antenna signal is decent and fairly constant.
TVH can work for a weeks and then fail. Recently it failed after only 2 days, but this is rare. Normaly a problemm presents after a week or two of perfect operation. Everything is on UPS on my end.
I have two TVH logs describing these two situations.
2016-11-06 16:46:20.157 linuxdvb: Realtek RTL2832 (DVB-T) : DVB-T #0 - poll TIMEOUT
2016-11-06 16:46:27.815 linuxdvb: Realtek RTL2832 (DVB-T) : DVB-T #0 - poll TIMEOUT
2016-11-06 16:46:34.422 subscription: 00BB: "192.168.1.8 [ Kodi Media Center ]" unsubscribing from "RTL 2", hostname="192.168.1.8", client="Kodi Media Center"
2016-11-06 16:46:35.474 linuxdvb: Realtek RTL2832 (DVB-T) : DVB-T #0 - poll TIMEOUT
2016-11-06 16:46:43.133 linuxdvb: Realtek RTL2832 (DVB-T) : DVB-T #0 - poll TIMEOUT
2016-11-06 16:46:50.792 linuxdvb: Realtek RTL2832 (DVB-T) : DVB-T #0 - poll TIMEOUT
2016-11-06 16:46:58.451 linuxdvb: Realtek RTL2832 (DVB-T) : DVB-T #0 - poll TIMEOUT
2016-11-06 16:47:02.952 subscription: 00AA: "DVR: Ovo je opera: Rossini, Bellini, Donizetti - Belkanto (7/30)" unsubscribing from "HTV1"
2016-11-06 16:47:06.110 linuxdvb: Realtek RTL2832 (DVB-T) : DVB-T #0 - poll TIMEOUT
2016-11-06 16:47:06.423 dvr: "Ovo je opera: Rossini, Bellini, Donizetti - Belkanto (7/30)" on "HTV1": End of program: Completed OK
2016-11-06 16:47:13.769 linuxdvb: Realtek RTL2832 (DVB-T) : DVB-T #0 - poll TIMEOUT
2016-11-06 16:47:21.428 linuxdvb: Realtek RTL2832 (DVB-T) : DVB-T #0 - poll TIMEOUT
2016-11-06 16:47:29.087 linuxdvb: Realtek RTL2832 (DVB-T) : DVB-T #0 - poll TIMEOUT
2016-11-06 16:47:29.184 subscription: 00BC: "192.168.1.8 [ Kodi Media Center ]" subscribing on channel "RTL 2", weight: 150, adapter: "Realtek RTL2832 (DVB-T) : DVB-T #0", network: "Hr", mux: "730MHz", provider: "OiV", service: "RTL 2", profile="htsp", hostname="192.168.1.8", client="Kodi Media Center"
2016-11-06 16:47:33.216 subscription: 00BC: "192.168.1.8 [ Kodi Media Center ]" unsubscribing from "RTL 2", hostname="192.168.1.8", client="Kodi Media Center"
2016-11-06 16:47:33.218 subscription: 00BD: "192.168.1.8 [ Kodi Media Center ]" subscribing on channel "HRT3", weight: 150, adapter: "Realtek RTL2832 (DVB-T) : DVB-T #0", network: "Hr", mux: "730MHz", provider: "OiV", service: "HRT3", profile="htsp", hostname="192.168.1.8", client="Kodi Media Center"
2016-11-06 16:47:36.822 linuxdvb: Realtek RTL2832 (DVB-T) : DVB-T #0 - poll TIMEOUT
2016-11-06 16:47:39.000 subscription: 00BD: service instance is bad, reason: No input detected
2016-11-06 16:47:39.001 subscription: 00BD: "192.168.1.8 [ Kodi Media Center ]" subscribing on channel "HRT3", weight: 150, adapter: "Realtek RTL2832 (DVB-T) : DVB-T #0", network: "Hr", mux: "730MHz", provider: "OiV", service: "HRT3", profile="htsp", hostname="192.168.1.8", client="Kodi Media Center"
2016-11-06 16:47:44.558 linuxdvb: Realtek RTL2832 (DVB-T) : DVB-T #0 - poll TIMEOUT
2016-11-06 16:47:45.000 subscription: 00BD: service instance is bad, reason: No input detected
2016-11-06 16:47:49.000 subscription: 00BD: restarting channel HRT3
2016-11-06 16:47:51.000 subscription: 00BD: "192.168.1.8 [ Kodi Media Center ]" subscribing on channel "HRT3", weight: 150, adapter: "Realtek RTL2832 (DVB-T) : DVB-T #0", network: "Hr", mux: "730MHz", provider: "OiV", service: "HRT3", profile="htsp", hostname="192.168.1.8", client="Kodi Media Center"
2016-11-06 16:47:52.502 linuxdvb: Realtek RTL2832 (DVB-T) : DVB-T #0 - poll TIMEOUT
2016-11-06 16:47:57.000 subscription: 00BD: service instance is bad, reason: No input detected
2016-11-06 16:47:57.000 subscription: 00BD: "192.168.1.8 [ Kodi Media Center ]" subscribing on channel "HRT3", weight: 150, adapter: "Realtek RTL2832 (DVB-T) : DVB-T #0", network: "Hr", mux: "730MHz", provider: "OiV", service: "HRT3", profile="htsp", hostname="192.168.1.8", client="Kodi Media Center"
2016-11-06 16:48:00.307 linuxdvb: Realtek RTL2832 (DVB-T) : DVB-T #0 - poll TIMEOUT
2016-11-06 16:48:03.000 subscription: 00BD: service instance is bad, reason: No input detected
2016-11-06 16:48:07.000 subscription: 00BD: restarting channel HRT3
2016-11-06 16:48:08.107 linuxdvb: Realtek RTL2832 (DVB-T) : DVB-T #0 - poll TIMEOUT
2016-11-06 16:48:09.000 subscription: 00BD: "192.168.1.8 [ Kodi Media Center ]" subscribing on channel "HRT3", weight: 150, adapter: "Realtek RTL2832 (DVB-T) : DVB-T #0", network: "Hr", mux: "730MHz", provider: "OiV", service: "HRT3", profile="htsp", hostname="192.168.1.8", client="Kodi Media Center"
2016-11-06 16:48:15.000 subscription: 00BD: service instance is bad, reason: No input detected
2016-11-06 16:48:15.000 subscription: 00BD: "192.168.1.8 [ Kodi Media Center ]" subscribing on channel "HRT3", weight: 150, adapter: "Realtek RTL2832 (DVB-T) : DVB-T #0", network: "Hr", mux: "730MHz", provider: "OiV", service: "HRT3", profile="htsp", hostname="192.168.1.8", client="Kodi Media Center"
2016-11-06 16:48:16.052 linuxdvb: Realtek RTL2832 (DVB-T) : DVB-T #0 - poll TIMEOUT
2016-11-06 16:48:18.867 linuxdvb: adapter removed /dev/dvb/adapter1
2016-11-06 16:48:19.000 mpegts: 730MHz in Hr - tuning on Silicon Labs 1
2016-11-06 16:48:29.322 subscription: 00AB: "DVR: Top gear" subscribing on channel "RTL 2", weight: 300, adapter: "Silicon Labs 1", network: "Hr", mux: "730MHz", provider: "OiV", service: "RTL 2", profile="matroska"
2016-11-06 16:48:29.322 subscription: 00BD: "192.168.1.8 [ Kodi Media Center ]" subscribing on channel "HRT3", weight: 150, adapter: "Silicon Labs 1", network: "Hr", mux: "730MHz", provider: "OiV", service: "HRT3", profile="htsp", hostname="192.168.1.8", client="Kodi Media Center"
2016-11-06 16:48:29.323 http: 192.168.1.100: HTTP/1.1 POST /api/idnode/save -- 400
2016-11-06 16:48:29.824 http: 192.168.1.100: HTTP/1.1 POST /api/mpegts/input/network_list -- 4002016-11-06 16:48:31.000 subscription: 00AB: service instance is bad, reason: No input detected
2016-11-06 16:48:31.000 subscription: 00BD: service instance is bad, reason: No input detected
2016-11-06 16:48:35.000 subscription: 00AB: restarting channel RTL 2
2016-11-06 16:48:35.000 subscription: 00BD: restarting channel HRT3
2016-11-06 16:48:35.786 linuxdvb: adapter added /dev/dvb/adapter1
2016-11-06 16:48:37.000 mpegts: 730MHz in Hr - tuning on Silicon Labs 1
2016-11-06 16:48:57.322 subscription: 00AB: "DVR: Top gear" subscribing on channel "RTL 2", weight: 300, adapter: "Silicon Labs 1", network: "Hr", mux: "730MHz", provider: "OiV", service: "RTL 2", profile="matroska"
2016-11-06 16:48:57.322 subscription: 00BD: "192.168.1.8 [ Kodi Media Center ]" subscribing on channel "HRT3", weight: 150, adapter: "Silicon Labs 1", network: "Hr", mux: "730MHz", provider: "OiV", service: "HRT3", profile="htsp", hostname="192.168.1.8", client="Kodi Media Center"
2016-11-06 16:48:59.000 subscription: 00AB: service instance is bad, reason: No input detected
2016-11-06 16:48:59.000 subscription: 00AB: "DVR: Top gear" subscribing on channel "RTL 2", weight: 300, adapter: "Silicon Labs 1", network: "Hr", mux: "730MHz", provider: "OiV", service: "RTL 2", profile="matroska"
2016-11-06 16:48:59.000 subscription: 00BD: service instance is bad, reason: No input detected
2016-11-06 16:48:59.000 subscription: 00BD: "192.168.1.8 [ Kodi Media Center ]" subscribing on channel "HRT3", weight: 150, adapter: "Silicon Labs 1", network: "Hr", mux: "730MHz", provider: "OiV", service: "HRT3", profile="htsp", hostname="192.168.1.8", client="Kodi Media Center"
2016-11-06 16:49:05.000 subscription: 00AB: service instance is bad, reason: No input detected
2016-11-06 16:49:05.000 subscription: 00BD: service instance is bad, reason: No input detected
2016-11-06 16:49:09.000 subscription: 00AB: restarting channel RTL 2
2016-11-06 16:49:09.000 subscription: 00BD: restarting channel HRT3
2016-11-06 16:49:11.000 mpegts: 730MHz in Hr - tuning on Realtek RTL2832 (DVB-T) : DVB-T #0
2016-11-06 16:49:11.747 subscription: 00AB: "DVR: Top gear" subscribing on channel "RTL 2", weight: 300, adapter: "Realtek RTL2832 (DVB-T) : DVB-T #0", network: "Hr", mux: "730MHz", provider: "OiV", service: "RTL 2", profile="matroska"
2016-11-06 16:49:11.748 subscription: 00BD: "192.168.1.8 [ Kodi Media Center ]" subscribing on channel "HRT3", weight: 150, adapter: "Realtek RTL2832 (DVB-T) : DVB-T #0", network: "Hr", mux: "730MHz", provider: "OiV", service: "HRT3", profile="htsp", hostname="192.168.1.8", client="Kodi Media Center"
2016-11-06 16:49:13.017 linuxdvb: Unhandled signal scale: 0
2016-11-06 16:49:13.029 linuxdvb: Unhandled SNR scale: 0
2016-11-06 16:49:13.029 linuxdvb: Unable to provide UNC value.
2016-11-06 16:49:13.029 TS: Hr/730MHz/HRT3: MPEG2VIDEO
#2011 Continuity counter error (total 1)
2016-11-06 16:49:13.506 dvr: Unable to reconfigure "/storage/recordings/Top gear.2016-11-06.16-00.mkv"
2016-11-06 16:49:13.652 dvr: /storage/recordings/Top gear.2016-11-06.16-00-1.mkv from adapter: "Realtek RTL2832 (DVB-T) : DVB-T #0", network: "Hr", mux: "730MHz", provider: "OiV", service: "RTL 2"
2016-11-06 16:49:13.652 dvr: # type lang resolution aspect ratio sample rate channels
2016-11-06 16:49:13.652 dvr: 1 MPEG2VIDEO 720x576 16:9
2016-11-06 16:49:13.652 dvr: 2 MPEG2AUDIO hrv 48000 2
2016-11-06 16:49:13.652 dvr: 3 TELETEXT
2016-11-06 16:49:30.756 subscription: 00BD: "192.168.1.8 [ Kodi Media Center ]" unsubscribing from "HRT3", hostname="192.168.1.8", client="Kodi Media Center"
2016-11-06 16:49:30.757 subscription: 00BE: "192.168.1.8 [ Kodi Media Center ]" subscribing on channel "RTL 2", weight: 150, adapter: "Realtek RTL2832 (DVB-T) : DVB-T #0", network: "Hr", mux: "730MHz", provider: "OiV", service: "RTL 2", profile="htsp", hostname="192.168.1.8", client="Kodi Media Center"
2016-11-06 16:49:43.359 subscription: 00BE: "192.168.1.8 [ Kodi Media Center ]" unsubscribing from "RTL 2", hostname="192.168.1.8", client="Kodi Media Center"
2016-11-06 16:49:43.362 subscription: 00BF: "192.168.1.8 [ Kodi Media Center ]" subscribing on channel "Doma TV", weight: 150, adapter: "Realtek RTL2832 (DVB-T) : DVB-T #0", network: "Hr", mux: "730MHz", provider: "OiV", service: "Doma TV", profile="htsp", hostname="192.168.1.8", client="Kodi Media Center"
2016-11-06 16:49:51.801 subscription: 00BF: "192.168.1.8 [ Kodi Media Center ]" unsubscribing from "Doma TV", hostname="192.168.1.8", client="Kodi Media Center"
2016-11-06 16:49:51.802 mpegts: 570MHz in Hr - tuning on Silicon Labs 1
2016-11-06 16:50:03.122 subscription: 00C0: "192.168.1.8 [ Kodi Media Center ]" subscribing on channel "NOVA TV", weight: 150, adapter: "Silicon Labs 1", network: "Hr", mux: "570MHz", provider: "OiV", service: "NOVA TV", profile="htsp", hostname="192.168.1.8", client="Kodi Media Center"
2016-11-06 16:50:03.122 subscription: 00C0: "192.168.1.8 [ Kodi Media Center ]" unsubscribing from "NOVA TV", hostname="192.168.1.8", client="Kodi Media Center"
2016-11-06 16:50:03.152 mpegts: 570MHz in Hr - tuning on Silicon Labs 1
2016-11-06 16:50:25.122 subscription: 00C1: "192.168.1.8 [ Kodi Media Center ]" subscribing on channel "RTL", weight: 150, adapter: "Silicon Labs 1", network: "Hr", mux: "570MHz", provider: "OiV", service: "RTL", profile="htsp", hostname="192.168.1.8", client="Kodi Media Center"
2016-11-06 16:50:27.000 subscription: 00C1: service instance is bad, reason: No input detected
2016-11-06 16:50:29.231 subscription: 00C1: "192.168.1.8 [ Kodi Media Center ]" unsubscribing from "RTL", hostname="192.168.1.8", client="Kodi Media Center"
2016-11-06 16:50:29.233 mpegts: 570MHz in Hr - tuning on Silicon Labs 1
2016-11-06 16:50:53.122 subscription: 00C2: "192.168.1.8 [ Kodi Media Center ]" subscribing on channel "HTV2", weight: 150, adapter: "Silicon Labs 1", network: "Hr", mux: "570MHz", provider: "OiV", service: "HTV2", profile="htsp", hostname="192.168.1.8", client="Kodi Media Center"
2016-11-06 16:50:53.122 subscription: 00C2: "192.168.1.8 [ Kodi Media Center ]" unsubscribing from "HTV2", hostname="192.168.1.8", client="Kodi Media Center"
2016-11-06 16:50:53.152 htsp: 192.168.1.8 [ Kodi Media Center ]: Disconnected
2016-11-06 16:50:53.155 htsp: Got connection from 192.168.1.8
2016-11-06 16:50:53.155 htsp: 192.168.1.8: Welcomed client software: Kodi Media Center (HTSPv25)
2016-11-06 16:50:53.500 mpegts: 570MHz in Hr - tuning on Silicon Labs 1
2016-11-06 16:51:15.122 subscription: 00C3: "192.168.1.8 [ Kodi Media Center ]" subscribing on channel "HTV1", weight: 150, adapter: "Silicon Labs 1", network: "Hr", mux: "570MHz", provider: "OiV", service: "HTV1", profile="htsp", hostname="192.168.1.8", client="Kodi Media Center"
2016-11-06 16:51:16.330 subscription: 00C3: "192.168.1.8 [ Kodi Media Center ]" unsubscribing from "HTV1", hostname="192.168.1.8", client="Kodi Media Center"
2016-11-06 16:51:16.330 htsp: 192.168.1.8 [ Kodi Media Center ]: Disconnected
2016-11-06 16:51:16.357 htsp: Got connection from 192.168.1.8
2016-11-06 16:51:16.357 htsp: 192.168.1.8: Welcomed client software: Kodi Media Center (HTSPv25)
2016-11-06 16:51:16.357 htsp: 192.168.1.8 [ Kodi Media Center ]: Disconnected
I have tried switching the tuners off and on again, but that tid not solve a problem.
Next log was when I could not see it streaming the recorded channel.
@2016-11-12 21:24:03.717 TS: Hr/730MHz/RTL 2: MPEG2AUDIO
#2032 Continuity counter error (total 1157)
2016-11-12 21:24:05.625 TS: Hr/730MHz/RTL 2: MPEG2VIDEO
#2031 Corrupted PES header (errors 138)
2016-11-12 21:24:07.000 subscription: 09CF: restarting channel RTL
2016-11-12 21:24:07.061 TS: Hr/730MHz/RTL 2 Transport error indicator (total 93863)
2016-11-12 21:24:09.000 mpegts: 570MHz in Hr - tuning on Realtek RTL2832 (DVB-T) : DVB-T #0
2016-11-12 21:24:09.000 linuxdvb: Realtek RTL2832 (DVB-T) : DVB-T #0 - DTV_CLEAR failed [e=No such device]
2016-11-12 21:24:11.000 TS: Hr/730MHz/RTL 2: MPEG2VIDEO
#2031 Continuity counter error (total 23891)
2016-11-12 21:24:14.875 TS: Hr/730MHz/RTL 2: TELETEXT
#2033 Continuity counter error (total 1164)
2016-11-12 21:24:15.000 subscription: 09CF: restarting channel RTL
2016-11-12 21:24:15.498 TS: Hr/730MHz/RTL 2: MPEG2AUDIO
#2032 Continuity counter error (total 1163)
2016-11-12 21:24:16.326 TS: Hr/730MHz/RTL 2: MPEG2VIDEO
#2031 Corrupted PES header (errors 139)
2016-11-12 21:24:17.000 mpegts: 570MHz in Hr - tuning on Realtek RTL2832 (DVB-T) : DVB-T #0
2016-11-12 21:24:17.000 linuxdvb: Realtek RTL2832 (DVB-T) : DVB-T #0 - DTV_CLEAR failed [e=No such device]
2016-11-12 21:24:18.000 TS: Hr/730MHz/RTL 2 Transport error indicator (total 94353)
2016-11-12 21:24:22.161 TS: Hr/730MHz/RTL 2: MPEG2VIDEO
#2031 Continuity counter error (total 24047)
2016-11-12 21:24:23.000 subscription: 09CF: restarting channel RTL
2016-11-12 21:24:25.000 mpegts: 570MHz in Hr - tuning on Realtek RTL2832 (DVB-T) : DVB-T #0
2016-11-12 21:24:25.000 linuxdvb: Realtek RTL2832 (DVB-T) : DVB-T #0 - DTV_CLEAR failed [e=No such device]
2016-11-12 21:24:26.135 TS: Hr/730MHz/RTL 2: TELETEXT
#2033 Continuity counter error (total 1168)
2016-11-12 21:24:27.607 TS: Hr/730MHz/RTL 2: MPEG2AUDIO
#2032 Continuity counter error (total 1170)
2016-11-12 21:24:29.001 TS: Hr/730MHz/RTL 2 Transport error indicator (total 94968)
2016-11-12 21:24:31.000 subscription: 09CF: restarting channel RTL
2016-11-12 21:24:33.000 mpegts: 570MHz in Hr - tuning on Realtek RTL2832 (DVB-T) : DVB-T #0
2016-11-12 21:24:33.000 linuxdvb: Realtek RTL2832 (DVB-T) : DVB-T #0 - DTV_CLEAR failed [e=No such device]
2016-11-12 21:24:33.240 TS: Hr/730MHz/RTL 2: MPEG2VIDEO
#2031 Continuity counter error (total 24214)
2016-11-12 21:24:38.297 TS: Hr/730MHz/RTL 2: MPEG2AUDIO
#2032 Continuity counter error (total 1177)
2016-11-12 21:24:39.000 subscription: 09CF: restarting channel RTL
2016-11-12 21:24:40.193 TS: Hr/730MHz/RTL 2 Transport error indicator (total 95415)
2016-11-12 21:24:41.000 mpegts: 570MHz in Hr - tuning on Realtek RTL2832 (DVB-T) : DVB-T #0
2016-11-12 21:24:41.000 linuxdvb: Realtek RTL2832 (DVB-T) : DVB-T #0 - DTV_CLEAR failed [e=No such device]
2016-11-12 21:24:44.000 TS: Hr/730MHz/RTL 2: MPEG2VIDEO
#2031 Continuity counter error (total 24373)
2016-11-12 21:24:47.000 subscription: 09CF: restarting channel RTL
2016-11-12 21:24:49.005 mpegts: 570MHz in Hr - tuning on Realtek RTL2832 (DVB-T) : DVB-T #0
2016-11-12 21:24:49.006 linuxdvb: Realtek RTL2832 (DVB-T) : DVB-T #0 - DTV_CLEAR failed [e=No such device]
2016-11-12 21:24:49.514 TS: Hr/730MHz/RTL 2: MPEG2VIDEO
#2031 Corrupted PES header (errors 141)
2016-11-12 21:24:50.459 TS: Hr/730MHz/RTL 2: MPEG2AUDIO
#2032 Continuity counter error (total 1187)
2016-11-12 21:24:51.293 TS: Hr/730MHz/RTL 2 Transport error indicator (total 95913)
2016-11-12 21:24:55.000 subscription: 09CF: restarting channel RTL
2016-11-12 21:24:55.457 TS: Hr/730MHz/RTL 2: MPEG2VIDEO
#2031 Continuity counter error (total 24513)
2016-11-12 21:24:56.124 TS: Hr/730MHz/RTL 2: TELETEXT
#2033 Continuity counter error (total 1169)
2016-11-12 21:24:57.000 mpegts: 570MHz in Hr - tuning on Realtek RTL2832 (DVB-T) : DVB-T #0
2016-11-12 21:24:57.000 linuxdvb: Realtek RTL2832 (DVB-T) : DVB-T #0 - DTV_CLEAR failed [e=No such device]
And I repeat: works perfectly for weks; in each case: RPi reboot alone makes things perfect again! In each case when we noticed this situation, one mux was recording and we wanted to switch to anotehr mux. I tested 3 different makes and 5 different tuners with no improvement.