Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ITA] RAI Works temporarily, then stops. Might be redirect + frequent change of m3u8 #315

Open
mgostIH opened this issue Jan 13, 2024 · 1 comment

Comments

@mgostIH
Copy link

mgostIH commented Jan 13, 2024

The italian RAI channels use the following link (example with RAI2, tested):
https://mediapolis.rai.it/relinker/relinkerServlet.htm?cont=2606803&output=16

This redirects and downloads an m3u8 file, which contains the streams link mpv will go read contents.
This works for a few minutes, but afterwards the cache stops increasing and the stream ends.
I noticed by downloading manually the m3u8 file at different times that the sha256 hash changes, indicating that the redirect only gives an m3u8 that lasts for a little while.
Given that RAI also implements geo blocking it might not be easy for the observe this (they also block some VPNs), but given the above description does anyone know if implementing something that periodically redownloads the m3u8 and joins it at the end of the current seen stream would work? I will check if mpv supports this too.

@AwakeMidway485
Copy link

I'm having the same problem on Rai1 and Rai2, it degrades the experience of using this fantastic app.

Have you managed to find a way to periodically re-download the m3u8 files and merge them?
I have read this documentation: https://mpv.io/manual/master/ but I don't understand much about it

@timpoldo
Copy link

Same issue here.
For all RAI channels.

@AwakeMidway485
Copy link

Searching on the internet I found that to make Rai channels work on Kodi you need to use this plugin: https://github.com/xbmc/inputstream.adaptive , in the repository it is explained like this:
"This is a Kodi input stream add-on which acts as a demuxer for segmented, multi-bitrate internet streams"

I tried to find something that might be similar in the mpv options, but I don't understand much about it and I don't know if it's possible

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants