Bug #3977
Issue restarting broken DVR streams
Start date:
2016-09-14
Due date:
% Done:
0%
Estimated time:
Found in version:
4.1-2236~g817f67e
Affected Versions:
Description
Some of a the IPTV streams I am using seem to stop working occasionally. I am still investigating this to see if it is my provider, or related tvheadend. However, when it does occur, the tvheadend DVR fails to recover when restarting the stream. See the attached logs. Exert:
Sep 14 12:06:47 bonnie tvheadend[5634]: subscription: 000F: service instance is bad, reason: No input detected Sep 14 12:06:47 bonnie tvheadend[5634]: mpegts: get.php - UK: E4 in UKTVFrance - close PID 1000 (4096) [16/0xa90a7920] Sep 14 12:06:47 bonnie tvheadend[5634]: mpegts: get.php - UK: E4 in UKTVFrance - close PID 1000 (4096) [8/0x816e9948] Sep 14 12:06:47 bonnie tvheadend[5634]: mpegts: get.php - UK: E4 in UKTVFrance - close PID 0100 (256) [8/0x816e9948] Sep 14 12:06:47 bonnie tvheadend[5634]: mpegts: get.php - UK: E4 in UKTVFrance - close PID 0101 (257) [8/0x816e9948] Sep 14 12:06:47 bonnie tvheadend[5634]: mpegts: get.php - UK: E4 in UKTVFrance - stopping mux Sep 14 12:06:47 bonnie tvheadend[5634]: mpegts: get.php - UK: E4 in UKTVFrance - close PID 0000 (0) [20/0xa8f0c280] Sep 14 12:06:47 bonnie tvheadend[5634]: mpegts: get.php - UK: E4 in UKTVFrance - close PID 0001 (1) [16/0xa8f11278] Sep 14 12:06:47 bonnie tvheadend[5634]: mpegts: get.php - UK: E4 in UKTVFrance - close PID 0010 (16) [16/0xa8f126a8] Sep 14 12:06:47 bonnie tvheadend[5634]: mpegts: get.php - UK: E4 in UKTVFrance - close PID 0011 (17) [16/0xa8f14f08] Sep 14 12:06:47 bonnie tvheadend[5634]: mpegts: get.php - UK: E4 in UKTVFrance - close PID 0011 (17) [20/0xa8f13ad8] Sep 14 12:06:49 bonnie tvheadend[5634]: subscription: 000F: restarting channel E4 Sep 14 12:06:51 bonnie tvheadend[5634]: mpegts: get.php - UK: E4 in UKTVFrance - tuning on IPTV Sep 14 12:06:51 bonnie tvheadend[5634]: mpegts: get.php - UK: E4 in UKTVFrance - started Sep 14 12:06:51 bonnie tvheadend[5634]: mpegts: get.php - UK: E4 in UKTVFrance - open PID 1000 (4096) [8/0x816e9948] Sep 14 12:06:51 bonnie tvheadend[5634]: mpegts: get.php - UK: E4 in UKTVFrance - open PID 0100 (256) [8/0x816e9948] Sep 14 12:06:51 bonnie tvheadend[5634]: mpegts: get.php - UK: E4 in UKTVFrance - open PID 0101 (257) [8/0x816e9948] Sep 14 12:06:51 bonnie tvheadend[5634]: mpegts: get.php - UK: E4 in UKTVFrance - open PID 1000 (4096) [16/0xa90a7920] Sep 14 12:06:51 bonnie tvheadend[5634]: subscription: 000F: "DVR: Charmed" subscribing on channel "E4", weight: 300, adapter: "IPTV", network: "UKTVFrance", mux: "get.php - UK: E4", provider: "FFmpeg", service: "Service01", profile="mpegts-copy" Sep 14 12:06:51 bonnie tvheadend[5634]: mpegts: get.php - UK: E4 in UKTVFrance - open PID 0000 (0) [20/0xa8f0c280] Sep 14 12:06:51 bonnie tvheadend[5634]: mpegts: get.php - UK: E4 in UKTVFrance - open PID 0001 (1) [16/0xa8f0dae0] Sep 14 12:06:51 bonnie tvheadend[5634]: mpegts: get.php - UK: E4 in UKTVFrance - open PID 0010 (16) [16/0xa8f0ef10] Sep 14 12:06:51 bonnie tvheadend[5634]: mpegts: get.php - UK: E4 in UKTVFrance - open PID 0011 (17) [20/0xa8f10340] Sep 14 12:06:51 bonnie tvheadend[5634]: mpegts: get.php - UK: E4 in UKTVFrance - open PID 0011 (17) [16/0xa8f11770] Sep 14 12:06:52 bonnie tvheadend[5634]: transcode: 000F: 1:H264 ==> Passthrough Sep 14 12:06:52 bonnie tvheadend[5634]: transcode: 000F: 2:AAC-LATM ==> Passthrough Sep 14 12:06:52 bonnie tvheadend[5634]: libav: Application provided invalid, non monotonically increasing dts to muxer in stream 0: 79835933 >= 0 Sep 14 12:06:52 bonnie tvheadend[5634]: libav: Failed to write frame Sep 14 12:06:52 bonnie tvheadend[5634]: libav: Application provided invalid, non monotonically increasing dts to muxer in stream 0: 79835933 >= 3600 Sep 14 12:06:52 bonnie tvheadend[5634]: libav: Failed to write frame Sep 14 12:06:52 bonnie tvheadend[5634]: libav: Application provided invalid, non monotonically increasing dts to muxer in stream 0: 79835933 >= 7200
Files
History
Updated by Andreas Fornberg about 8 years ago
Same problem here with a lot of streams.
Freezes between about a minute to a few minutes in worst case.
Same streams works as it should in VLC, opening m3u file or IPTV Simple Client in Kodi etc.
Autorestart stream and maybe buffering more solves the problem.
If possible maybe make the buffer configurable.