Project

General

Profile

Priority of multiple iptv-streams / low priority stream never accessed

Added by M. Bergmann about 5 years ago

I added an IPTV Automatic Network which links to a m3u-file, containing addresses of six public available live streams.
Each address results in one mux (so a total of six muxes), and each mux results in one service (a total of six services).
Two of the services are mapped to one common channel: A stream in high-quality provided by dailymotion.com and another stream directly linking to the website of the television network, but in low quality.

The service of the hq-stream of dailymotion.com has got a priority of 5, the service containing the direct url has got a priority of 0.
Furthermore the mux of the hq-stream has got a kill timeout of 15 seconds.

Since a couple of days the hq-stream is not available at dailymotion.com. But instead of changing automatically to the lq-stream of the website, tvheadend repeatedly tries to get the hq-stream, resulting in this behaviour:
(I am using using a pipe:// mux pointing to an external tool, in this case streamlink, to access the stream provided by dailymotion.com)

What do I have to do, that tvh changes automatically to the other service ?

P.S.: It was unclear, because of the bad name selection, but Mux: Panamericana Television2 is the HQ stream, whereas Mux: Panamericana Television is the LQ stream (without the '2' at the end of Television)

P.P.S.: Obviously (?) the Maximum timeout of the network has to be lower than the Kill timeout of a single Mux, at least it is working now (timeout network: 10s, timeout mux: 15s). Before the timeout of the network had a value of 25s.

2019-11-12 23:27:16.472 http: 192.168.1.9: using ticket 819d2a708f9012918c85949c4212f495fcea06ac for /stream/channel/8b57e21743f6b460ed576c34c221e788
2019-11-12 23:27:16.473 mpegts: pipe_tv_main.m3u - Panamericana Television2 in IPTV_direct - tuning on IPTV #1
2019-11-12 23:27:16.475 subscription: 002F: "HTTP" subscribing on channel "Panamericana Television", weight: 100, adapter: "IPTV #1", network: "IPTV_direct", mux: "pipe_tv_main.m3u - Panamericana Television2", provider: "FFmpeg", service: "Service01", profile="pass", hostname="192.168.1.9", username="arg", client="VLC/3.0.7.1 LibVLC/3.0.7.1"
2019-11-12 23:27:16.476 spawn: Executing "/opt/streamlink.sh"
2019-11-12 23:27:20.934 spawn: [cli][info] Found matching plugin dailymotion for URL http://www.dailymotion.com/PanamericanaPTV
2019-11-12 23:27:24.812 spawn: [plugin.dailymotion][error] Failed to get stream: Channel offline.
2019-11-12 23:27:24.814 spawn: error: No playable streams found on this URL: http://www.dailymotion.com/PanamericanaPTV
2019-11-12 23:27:24.984 spawn: Executing "/opt/streamlink.sh"
2019-11-12 23:27:29.462 spawn: [cli][info] Found matching plugin dailymotion for URL http://www.dailymotion.com/PanamericanaPTV
2019-11-12 23:27:32.383 spawn: [plugin.dailymotion][error] Failed to get stream: Channel offline.
2019-11-12 23:27:32.385 spawn: error: No playable streams found on this URL: http://www.dailymotion.com/PanamericanaPTV
2019-11-12 23:27:32.556 spawn: Executing "/opt/streamlink.sh"
2019-11-12 23:27:36.473 subscription: 002F: service instance is bad, reason: No input detected
2019-11-12 23:27:36.474 mpegts: pipe_tv_main.m3u - Panamericana Television in IPTV_direct - tuning on IPTV #1
2019-11-12 23:27:36.478 spawn: Executing "/usr/local/bin/ffmpeg"
2019-11-12 23:27:36.478 subscription: 002F: "HTTP" subscribing on channel "Panamericana Television", weight: 100, adapter: "IPTV #1", network: "IPTV_direct", mux: "pipe_tv_main.m3u - Panamericana Television", provider: "IPTV-DE", service: "Panamericana Television", profile="pass", hostname="192.168.1.9", username="arg", client="VLC/3.0.7.1 LibVLC/3.0.7.1"
2019-11-12 23:27:37.474 webui: Stop streaming /stream/channel/8b57e21743f6b460ed576c34c221e788?ticket=819d2a708f9012918c85949c4212f495fcea06ac, timeout waiting for packets
2019-11-12 23:27:37.474 subscription: 002F: "HTTP" unsubscribing from "Panamericana Television", hostname="192.168.1.9", username="arg", client="VLC/3.0.7.1 LibVLC/3.0.7.1"
2019-11-12 23:27:37.476 http: 192.168.1.9: using ticket 819d2a708f9012918c85949c4212f495fcea06ac for /stream/channel/8b57e21743f6b460ed576c34c221e788
2019-11-12 23:27:37.477 mpegts: pipe_tv_main.m3u - Panamericana Television2 in IPTV_direct - tuning on IPTV #1
2019-11-12 23:27:37.479 subscription: 0030: "HTTP" subscribing on channel "Panamericana Television", weight: 100, adapter: "IPTV #1", network: "IPTV_direct", mux: "pipe_tv_main.m3u - Panamericana Television2", provider: "FFmpeg", service: "Service01", profile="pass", hostname="192.168.1.9", username="arg", client="VLC/3.0.7.1 LibVLC/3.0.7.1"
2019-11-12 23:27:37.480 spawn: Executing "/opt/streamlink.sh"
2019-11-12 23:27:41.965 spawn: [cli][info] Found matching plugin dailymotion for URL http://www.dailymotion.com/PanamericanaPTV
2019-11-12 23:27:44.922 spawn: [plugin.dailymotion][error] Failed to get stream: Channel offline.
2019-11-12 23:27:44.924 spawn: error: No playable streams found on this URL: http://www.dailymotion.com/PanamericanaPTV
2019-11-12 23:27:45.094 spawn: Executing "/opt/streamlink.sh"
2019-11-12 23:27:49.563 spawn: [cli][info] Found matching plugin dailymotion for URL http://www.dailymotion.com/PanamericanaPTV
2019-11-12 23:27:52.485 spawn: [plugin.dailymotion][error] Failed to get stream: Channel offline.
2019-11-12 23:27:52.487 spawn: error: No playable streams found on this URL: http://www.dailymotion.com/PanamericanaPTV
2019-11-12 23:27:52.657 spawn: Executing "/opt/streamlink.sh"
2019-11-12 23:27:57.126 spawn: [cli][info] Found matching plugin dailymotion for URL http://www.dailymotion.com/PanamericanaPTV
2019-11-12 23:27:57.478 subscription: 0030: service instance is bad, reason: No input detected
2019-11-12 23:27:57.478 mpegts: pipe_tv_main.m3u - Panamericana Television in IPTV_direct - tuning on IPTV #1
2019-11-12 23:27:57.480 webui: Stop streaming /stream/channel/8b57e21743f6b460ed576c34c221e788?ticket=819d2a708f9012918c85949c4212f495fcea06ac, timeout waiting for packets
2019-11-12 23:27:57.481 subscription: 0030: "HTTP" subscribing on channel "Panamericana Television", weight: 100, adapter: "IPTV #1", network: "IPTV_direct", mux: "pipe_tv_main.m3u - Panamericana Television", provider: "IPTV-DE", service: "Panamericana Television", profile="pass", hostname="192.168.1.9", username="arg", client="VLC/3.0.7.1 LibVLC/3.0.7.1"
2019-11-12 23:27:57.481 subscription: 0030: "HTTP" unsubscribing from "Panamericana Television", hostname="192.168.1.9", username="arg", client="VLC/3.0.7.1 LibVLC/3.0.7.1"
2019-11-12 23:27:57.590 http: 192.168.1.9: using ticket 819d2a708f9012918c85949c4212f495fcea06ac for /stream/channel/8b57e21743f6b460ed576c34c221e788
2019-11-12 23:27:57.590 mpegts: pipe_tv_main.m3u - Panamericana Television2 in IPTV_direct - tuning on IPTV #1
2019-11-12 23:27:57.593 subscription: 0031: "HTTP" subscribing on channel "Panamericana Television", weight: 100, adapter: "IPTV #1", network: "IPTV_direct", mux: "pipe_tv_main.m3u - Panamericana Television2", provider: "FFmpeg", service: "Service01", profile="pass", hostname="192.168.1.9", username="arg", client="VLC/3.0.7.1 LibVLC/3.0.7.1"
2019-11-12 23:27:57.593 spawn: Executing "/opt/streamlink.sh"
2019-11-12 23:28:02.096 spawn: [cli][info] Found matching plugin dailymotion for URL http://www.dailymotion.com/PanamericanaPTV
2019-11-12 23:28:04.974 spawn: [plugin.dailymotion][error] Failed to get stream: Channel offline.
2019-11-12 23:28:04.975 spawn: error: No playable streams found on this URL: http://www.dailymotion.com/PanamericanaPTV
2019-11-12 23:28:05.145 spawn: Executing "/opt/streamlink.sh"
2019-11-12 23:28:09.594 subscription: 0031: "HTTP" unsubscribing from "Panamericana Television", hostname="192.168.1.9", username="arg", client="VLC/3.0.7.1 LibVLC/3.0.7.1


Replies (3)

RE: Priority of multiple iptv-streams / low priority stream never accessed - Added by Michaël Arnauts almost 5 years ago

Check if your stream profile has the "Switch to another service" checkbox checked.

RE: Priority of multiple iptv-streams / low priority stream never accessed - Added by M. Bergmann almost 5 years ago

Thank you Michaël, I am going to verify this.

To keep my question simpler: What is the meaning / difference between the Maximum timeout of the network and the Kill timeout of a single Mux and how to they influence each other?

RE: Priority of multiple iptv-streams / low priority stream never accessed - Added by M. Bergmann almost 5 years ago

"Switch to another service" seems to be enabled by default.

    (1-3/3)