Current IPTV capabilities - can't receive certain links - workaround?

Let me explain my problem. I have a number of IPTV feeds in Italy for OTA broadcasts (RAI). They work just fine in MyIPTV or in a Chrome browser with a IPTV plugin installed. They use a relinker so, for example, RAIuno (RAI 1) is

"https://mediapolis.rai.it/relinker/relinkerServlet.htm?cont=2606803"

This link is geo-blocked to Italy but I am in Italy so it is not a problem in MyIPTV or Chrome.

Problem is I would like to view these feeds in Channels DVR and, for some reason, they don't work in Channels. I would think it is the relinker but the feed for RAINews

"https://mediapolis.rai.it/relinker/relinkerServlet.htm?cont=1"

Does work in Channels (although it is not Geo-blocked).

What I am looking for is a utility that would take the stream and rebroadcast it as IPTV but with standard address. That way, I could feed the utility an input file with the relinker addresses and enter the rebroadcast a link into Channels DVR.

Does anyone know of a utility (preferably Windows-based) that can do this?
Can anyone suggest another way to solve this problem?

To be clear - I am not trying to pirate any pay for services, just trying to access IPTV feeds that are for OTA channels (RAI) as I don't have good OTA signals at my house in Italy.
The server is located at my house in Italy so should not experience any geo-blocking issues (and, indeed, as I said, can play the streams via MyIPTV or Chrome)

Thanks

What does this output?

curl -v "https://mediapolis.rai.it/relinker/relinkerServlet.htm?cont=2606803"

If I replace
"https://mediapolis.rai.it/relinker/relinkerServlet.htm?cont=2606803"
with
curl -v "https://mediapolis.rai.it/relinker/relinkerServlet.htm?cont=2606803"

The screen behavior is the same. Using web player or screen player, it pops up a screen, spinning circle for a few seconds, screen disappears, "reconnecting" shows for a few seconds, then it disappears, empty white dialog box with STOP in lower corner.

This is the log

2022/03/05 17:03:59.022852 [HTTP] | 200 | 1m25s | 127.0.0.1 | GET "/dvr/events/subscribe"
2022/03/05 17:03:59.094031 [HTTP] | 200 | 0s | 127.0.0.1 | GET "/dvr"
2022/03/05 17:03:59.100371 [HTTP] | 200 | 3.3434ms | 127.0.0.1 | GET "/dvr/programs"
2022/03/05 17:03:59.108049 [HTTP] | 200 | 999.7µs | 127.0.0.1 | GET "/dvr/programs"
2022/03/05 17:03:59.118831 [HTTP] | 200 | 10.7818ms | 127.0.0.1 | GET "/dvr"
2022/03/05 17:04:00.887585 [ERR] Failed to start stream for ch9191: M3U: Could not fetch playlist: : Get "": unsupported protocol scheme ""
2022/03/05 17:04:00.948539 [HTTP] | 200 | 66.4776ms | 127.0.0.1 | GET "/devices/ANY/channels/9191/hls/master.m3u8?abr=false"
2022/03/05 17:04:00.953628 [HLS] Couldn't generate stream playlist for ch9191-dANY-ip127.0.0.1: M3U: Could not fetch playlist: : Get "": unsupported protocol scheme ""
2022/03/05 17:04:00.953628 [HLS] Stopping transcoder session ch9191-dANY-ip127.0.0.1
2022/03/05 17:04:01.270398 [HTTP] | 500 | 316.7701ms | 127.0.0.1 | GET "/devices/ANY/channels/9191/hls/stream.m3u8?abr=false"
2022/03/05 17:04:02.285718 [ERR] Failed to start stream for ch9191: M3U: Could not fetch playlist: : Get "": unsupported protocol scheme ""
2022/03/05 17:04:02.345106 [HLS] Couldn't generate stream playlist for ch9191-dANY-ip127.0.0.1: M3U: Could not fetch playlist: : Get "": unsupported protocol scheme ""
2022/03/05 17:04:02.345106 [HLS] Stopping transcoder session ch9191-dANY-ip127.0.0.1
2022/03/05 17:04:02.348757 [HTTP] | 500 | 70.3969ms | 127.0.0.1 | GET "/devices/ANY/channels/9191/hls/stream.m3u8?abr=false"
2022/03/05 17:04:02.883175 [HTTP] | 404 | 0s | 127.0.0.1 | PUT "/devices/ANY/channels/9191/hls"
2022/03/05 17:04:02.942140 [ERR] Failed to start stream for ch9191: M3U: Could not fetch playlist: : Get "": unsupported protocol scheme ""
2022/03/05 17:04:02.989511 [HTTP] | 200 | 66.3606ms | 127.0.0.1 | GET "/devices/ANY/channels/9191/hls/master.m3u8?abr=false"
2022/03/05 17:04:02.992561 [HLS] Couldn't generate stream playlist for ch9191-dANY-ip127.0.0.1: M3U: Could not fetch playlist: : Get "": unsupported protocol scheme ""
2022/03/05 17:04:02.992561 [HLS] Stopping transcoder session ch9191-dANY-ip127.0.0.1
2022/03/05 17:04:02.992561 [HTTP] | 500 | 0s | 127.0.0.1 | GET "/devices/ANY/channels/9191/hls/stream.m3u8?abr=false"
2022/03/05 17:04:04.011993 [ERR] Failed to start stream for ch9191: M3U: Could not fetch playlist: : Get "": unsupported protocol scheme ""
2022/03/05 17:04:04.078623 [HLS] Couldn't generate stream playlist for ch9191-dANY-ip127.0.0.1: M3U: Could not fetch playlist: : Get "": unsupported protocol scheme ""
2022/03/05 17:04:04.078623 [HLS] Stopping transcoder session ch9191-dANY-ip127.0.0.1
2022/03/05 17:04:04.078623 [HTTP] | 500 | 76.2832ms | 127.0.0.1 | GET "/devices/ANY/channels/9191/hls/stream.m3u8?abr=false"
2022/03/05 17:04:04.927861 [HTTP] | 404 | 0s | 127.0.0.1 | PUT "/devices/ANY/channels/9191/hls"
2022/03/05 17:04:04.982906 [ERR] Failed to start stream for ch9191: M3U: Could not fetch playlist: : Get "": unsupported protocol scheme ""
2022/03/05 17:04:05.040532 [HTTP] | 200 | 63.6269ms | 127.0.0.1 | GET "/devices/ANY/channels/9191/hls/master.m3u8?abr=false"
2022/03/05 17:04:05.054064 [HLS] Couldn't generate stream playlist for ch9191-dANY-ip127.0.0.1: M3U: Could not fetch playlist: : Get "": unsupported protocol scheme ""
2022/03/05 17:04:05.054064 [HLS] Stopping transcoder session ch9191-dANY-ip127.0.0.1
2022/03/05 17:04:05.054064 [HTTP] | 500 | 0s | 127.0.0.1 | GET "/devices/ANY/channels/9191/hls/stream.m3u8?abr=false"
2022/03/05 17:04:06.077180 [ERR] Failed to start stream for ch9191: M3U: Could not fetch playlist: : Get "": unsupported protocol scheme ""
2022/03/05 17:04:06.135270 [HLS] Couldn't generate stream playlist for ch9191-dANY-ip127.0.0.1: M3U: Could not fetch playlist: : Get "": unsupported protocol scheme ""
2022/03/05 17:04:06.136270 [HLS] Stopping transcoder session ch9191-dANY-ip127.0.0.1
2022/03/05 17:04:06.140985 [HTTP] | 500 | 69.6814ms | 127.0.0.1 | GET "/devices/ANY/channels/9191/hls/stream.m3u8?abr=false"
2022/03/05 17:04:06.984780 [HTTP] | 404 | 999.2µs | 127.0.0.1 | PUT "/devices/ANY/channels/9191/hls"
2022/03/05 17:04:07.031750 [ERR] Failed to start stream for ch9191: M3U: Could not fetch playlist: : Get "": unsupported protocol scheme ""
2022/03/05 17:04:07.089030 [HTTP] | 200 | 66.2728ms | 127.0.0.1 | GET "/devices/ANY/channels/9191/hls/master.m3u8?abr=false"
2022/03/05 17:04:07.093030 [HLS] Couldn't generate stream playlist for ch9191-dANY-ip127.0.0.1: M3U: Could not fetch playlist: : Get "": unsupported protocol scheme ""
2022/03/05 17:04:07.093030 [HLS] Stopping transcoder session ch9191-dANY-ip127.0.0.1
2022/03/05 17:04:07.095029 [HTTP] | 500 | 2.9838ms | 127.0.0.1 | GET "/devices/ANY/channels/9191/hls/stream.m3u8?abr=false"
2022/03/05 17:04:08.118180 [ERR] Failed to start stream for ch9191: M3U: Could not fetch playlist: : Get "": unsupported protocol scheme ""
2022/03/05 17:04:08.160892 [HLS] Couldn't generate stream playlist for ch9191-dANY-ip127.0.0.1: M3U: Could not fetch playlist: : Get "": unsupported protocol scheme ""
2022/03/05 17:04:08.160892 [HLS] Stopping transcoder session ch9191-dANY-ip127.0.0.1
2022/03/05 17:04:08.160892 [HTTP] | 500 | 50.6659ms | 127.0.0.1 | GET "/devices/ANY/channels/9191/hls/stream.m3u8?abr=false"
2022/03/05 17:04:09.042081 [HTTP] | 404 | 599.6µs | 127.0.0.1 | PUT "/devices/ANY/channels/9191/hls"
2022/03/05 17:04:09.067543 [HTTP] | 404 | 998.5µs | 127.0.0.1 | DELETE "/devices/ANY/channels/9191/hls"
2022/03/05 17:04:13.968464 [HTTP] | 404 | 0s | 127.0.0.1 | DELETE "/devices/ANY/channels/9191/hls"
2022/03/05 17:04:17.288718 [HTTP] | 200 | 18.2022636s | 127.0.0.1 | GET "/dvr/events/subscribe"
2022/03/05 17:04:17.345664 [HTTP] | 200 | 535.5µs | 127.0.0.1 | GET "/dvr/programs"
2022/03/05 17:04:17.345664 [HTTP] | 200 | 27.8µs | 127.0.0.1 | GET "/dvr"
2022/03/05 17:04:17.349442 [HTTP] | 200 | 0s | 127.0.0.1 | GET "/dvr"

I think you misunderstood. Don't change the URL; instead you are being asked to run the command:

curl -v "https://mediapolis.rai.it/relinker/relinkerServlet.htm?cont=2606803"

from a command prompt/terminal, and report back the output.

Thanks

I ran both
curl -v "https://mediapolis.rai.it/relinker/relinkerServlet.htm?cont=2606803" [RAI1 -> doesn't work]
and
curl -v "https://mediapolis.rai.it/relinker/relinkerServlet.htm?cont=1" [RAINews --> works]

results

C:\Users\jmnit>curl -v "https://mediapolis.rai.it/relinker/relinkerServlet.htm?cont=2606803"

  • Trying 212.162.82.10:443...
  • Connected to mediapolis.rai.it (212.162.82.10) port 443 (#0)
  • schannel: disabled automatic use of client certificate
  • schannel: ALPN, offering http/1.1
  • ALPN, server did not agree to a protocol

GET /relinker/relinkerServlet.htm?cont=2606803 HTTP/1.1
Host: mediapolis.rai.it
User-Agent: curl/7.79.1
Accept: /

C:\Users\jmnit>curl -v "https://mediapolis.rai.it/relinker/relinkerServlet.htm?cont=1"

  • Trying 212.162.82.10:443...
  • Connected to mediapolis.rai.it (212.162.82.10) port 443 (#0)
  • schannel: disabled automatic use of client certificate
  • schannel: ALPN, offering http/1.1
  • ALPN, server did not agree to a protocol

GET /relinker/relinkerServlet.htm?cont=1 HTTP/1.1
Host: mediapolis.rai.it
User-Agent: curl/7.79.1
Accept: /

One thing to add - RAINews is NOT geo-blocked while RAIuno (RAI 1) is geo-blocked. The server is located in Italy so the geo-blocking should not be a problem but I don't know how Channels interacts with an IPTV source and if in that interaction it passes geo info (or not). Just a thought.

As I said, in MyIPTV or Chrome (with an mpg/hls extension) both sources work. In Channels, the RAINews feed works while the RAI1 feed (and other RAI feeds) do not.

Looks like they're served from different domains.

I can't access the former so I can't see why it's not working in Channels.

You can try playing that channel and submit diagnostics

I will, A little under the weather tonight (something I ate) so it'll be later this week.

This is the log from Channels DVR playing RAI 1. I played it from the web browser - do you want me to play it with the android client and send that log?

2022/03/07 16:19:29.727542 [TNR] Opened connection to M3U-ITALYNEW for ch9191 Rai 1
2022/03/07 16:19:30.532429 [HLS] Starting transcoder for channel 9191 from 127.0.0.1 (encoder=remux, resolution=, deinterlacer=, bitrate=2793)
2022/03/07 16:19:31.425386 [HTTP] | 200 | 999.6µs | 127.0.0.1 | PUT "/devices/ANY/channels/9191/hls"
2022/03/07 16:19:33.422252 [HTTP] | 200 | 2.0489ms | 127.0.0.1 | PUT "/devices/ANY/channels/9191/hls"
2022/03/07 16:19:35.416607 [HTTP] | 200 | 2.1468ms | 127.0.0.1 | PUT "/devices/ANY/channels/9191/hls"
2022/03/07 16:19:37.271983 [HTTP] | 200 | 13.8561506s | 127.0.0.1 | GET "/devices/ANY/channels/9191/hls/master.m3u8?abr=false"
2022/03/07 16:19:37.417130 [HTTP] | 200 | 939.2µs | 127.0.0.1 | PUT "/devices/ANY/channels/9191/hls"
2022/03/07 16:19:39.418254 [HTTP] | 200 | 0s | 127.0.0.1 | PUT "/devices/ANY/channels/9191/hls"
2022/03/07 16:19:41.018586 [HLS] Probe failed for live stream after 10.4861567s and 0 bytes
2022/03/07 16:19:41.417607 [HTTP] | 200 | 0s | 127.0.0.1 | PUT "/devices/ANY/channels/9191/hls"
2022/03/07 16:19:43.419786 [HTTP] | 200 | 618.6µs | 127.0.0.1 | PUT "/devices/ANY/channels/9191/hls"
2022/03/07 16:19:45.344245 [HLS] Couldn't generate stream playlist for ch9191-dANY-ip127.0.0.1: Timeout waiting for session to start after 8s
2022/03/07 16:19:45.344245 [HLS] Stopping transcoder session ch9191-dANY-ip127.0.0.1 (out: 0s, finished: false)
2022/03/07 16:19:45.344844 [HLS] ffmpeg: ch9191-dANY-ip127.0.0.1-remux: pipe:: could not find codec parameters
2022/03/07 16:19:45.350772 [HTTP] | 200 | 14.5064203s | 127.0.0.1 | POST "/hls/progress?key=ch9191-dANY-ip127.0.0.1-remux"
2022/03/07 16:19:45.387768 [TNR] Closed connection to M3U-ITALYNEW for ch9191 Rai 1
2022/03/07 16:19:45.390437 [HTTP] | 500 | 8.0972036s | 127.0.0.1 | GET "/devices/ANY/channels/9191/hls/stream.m3u8?abr=false"
2022/03/07 16:19:45.417035 [HTTP] | 404 | 1.0002ms | 127.0.0.1 | PUT "/devices/ANY/channels/9191/hls"
2022/03/07 16:19:46.000725 [M3U] stream timestamps: Rai 1: start_at=2022-03-07T13:19:44+01:00 current_at=2022-03-07T16:19:14+01:00 end_at=2022-03-07T16:19:34+01:00
2022/03/07 16:19:46.000725 [TNR] Opened connection to M3U-ITALYNEW for ch9191 Rai 1
2022/03/07 16:19:46.006748 [HLS] Starting transcoder for channel 9191 from 127.0.0.1 (encoder=remux, resolution=, deinterlacer=, bitrate=2793)
2022/03/07 16:19:47.462729 [HTTP] | 200 | 0s | 127.0.0.1 | PUT "/devices/ANY/channels/9191/hls"
2022/03/07 16:19:49.466777 [HTTP] | 200 | 582.6µs | 127.0.0.1 | PUT "/devices/ANY/channels/9191/hls"
2022/03/07 16:19:51.311756 [HLS] Stopping transcoder session ch9191-dANY-ip127.0.0.1
2022/03/07 16:19:51.316910 [HTTP] | 200 | 5.1539ms | 127.0.0.1 | DELETE "/devices/ANY/channels/9191/hls"
2022/03/07 16:19:51.345723 [HTTP] | 200 | 5.8856747s | 127.0.0.1 | GET "/devices/ANY/channels/9191/hls/master.m3u8?abr=false"
2022/03/07 16:19:51.584195 [HLS] Probe failed for live stream after 5.5769341s and 0 bytes
2022/03/07 16:19:51.584195 [HLS] ffmpeg: ch9191-dANY-ip127.0.0.1-remux: pipe:: could not find codec parameters
2022/03/07 16:19:51.584195 [HTTP] | 200 | 5.2864813s | 127.0.0.1 | POST "/hls/progress?key=ch9191-dANY-ip127.0.0.1-remux"
2022/03/07 16:19:51.627473 [TNR] Closed connection to M3U-ITALYNEW for ch9191 Rai 1
2022/03/07 16:19:52.808542 [HTTP] | 200 | 40.6801718s | 127.0.0.1 | GET "/dvr/events/subscribe"
2022/03/07 16:19:52.868466 [HTTP] | 200 | 1.0004ms | 127.0.0.1 | GET "/system/load"
2022/03/07 16:19:52.868466 [HTTP] | 200 | 1.0004ms | 127.0.0.1 | GET "/updater"
2022/03/07 16:19:52.875461 [HTTP] | 200 | 4.9983ms | 127.0.0.1 | GET "/comskip"
2022/03/07 16:19:52.878457 [HTTP] | 200 | 0s | 127.0.0.1 | GET "/dvr/programs"
2022/03/07 16:19:52.878457 [HTTP] | 200 | 0s | 127.0.0.1 | GET "/dvr"
2022/03/07 16:19:52.881661 [HTTP] | 200 | 0s | 127.0.0.1 | GET "/dvr"

I need diagnostics from the dvr after you attempt playback

Is that something other than the log? If so, where do I get it?

In the DVR web UI: Support > Troubleshooting > Submit Diagnostic Logs.

thanks - didn't see that.

f7503d81-750c-403e-b95f-e6cfc33d2cde