plugin.video.raitv icon indicating copy to clipboard operation
plugin.video.raitv copied to clipboard

Can't stream most RAI TV programs on Raspberry Pi 5

Open boldorider4 opened this issue 1 year ago • 1 comments

Hi,

I'm using Kodi 21.0 + Raspberry Pi 5. I downloaded the latest Kodi from 'matrix' branch and installed it through the Kodi GUI. When I try to open most channels (e.g. Rai 1, Rai 2, Rai 3) I see either one of two errors.

Example - Rai 1:

2024-09-07 10:02:50.872 T:574057 info : VideoPlayer::OpenFile: plugin://plugin.video.raitv/?mode=play&url=https%3A%2F%2Fmediapolis.rai.it%2Frelinker%2FrelinkerServlet.htm%3Fcont%3D2606803 2024-09-07 10:02:50.946 T:1496522 info : Creating InputStream 2024-09-07 10:02:50.947 T:1496522 warning : AddOnLog: inputstream.adaptive: Warning "inputstream.adaptive.manifest_type" property is deprecated and will be removed next Kodi version, the manifest type is now automatically detected. If you are using a proxy remember to add the appropriate "content-type" header to the HTTP manifest response See Wiki page "How to provide custom manifest/license" to learn more about it. 2024-09-07 10:02:50.947 T:1496522 info : AddOnLog: inputstream.adaptive: [Repr. chooser] Resolution set: 3840x2160, max allowed: 3840x2160, Adjust refresh rate: 0 2024-09-07 10:02:51.275 T:1496522 info : AddOnLog: inputstream.adaptive: Manifest successfully parsed (Periods: 1, Streams in first period: 4, Type: live) 2024-09-07 10:02:51.275 T:1496522 info : Creating Demuxer 2024-09-07 10:02:51.276 T:1496522 info : Opening stream: 1001 source: 256 2024-09-07 10:02:51.347 T:1496522 error : AddOnLog: inputstream.adaptive: Download failed, HTTP error 403: https://raiuno1-live.akamaized.net/hls/live/598308/raiuno1/raiuno1/rai1_1200/exp=1725782571~acl=%2fhls%2flive%2f598308%2fraiuno1%2f*!%2fhls%2flive%2f598308-b%2fraiuno1%2f*!%2f*.key~data=hdntl~hmac=8dda1b7635a32e65413204a86c2ff94659841f386a429716ccf069bcc39473d2/chunklist.m3u8?aka_me_session_id=AAAAAAAAAAArWt1mAAAAADCcaYrs9s73sxia0O6jB9VICIq9a1UvsL2ahafGAFNAmvASuPahn5gDeY6tf4zW7H7AS3JvkeOW&aka_media_format_type=hls 2024-09-07 10:02:51.347 T:1496522 error : AddOnLog: inputstream.adaptive: GenerateSidxSegments: [AS-94] Cannot generate segments from SIDX on repr id "" with container "0" 2024-09-07 10:02:51.347 T:1496522 warning : AddOnLog: inputstream.adaptive: Cannot create sample reader due to unhandled representation container type 2024-09-07 10:02:51.347 T:1496522 error : OpenStream: Codec id 27 require extradata. 2024-09-07 10:02:51.347 T:1496522 warning : OpenStream - Unsupported stream 1001. Stream disabled. 2024-09-07 10:02:51.347 T:1496522 info : Opening stream: 1002 source: 256 2024-09-07 10:02:51.418 T:1496522 error : AddOnLog: inputstream.adaptive: Download failed, HTTP error 403: https://raiuno1-live.akamaized.net/hls/live/598308/raiuno1/raiuno1/itarai1_160/exp=1725782571~acl=%2fhls%2flive%2f598308%2fraiuno1%2f*!%2fhls%2flive%2f598308-b%2fraiuno1%2f*!%2f*.key~data=hdntl~hmac=8dda1b7635a32e65413204a86c2ff94659841f386a429716ccf069bcc39473d2/chunklist_ao.m3u8?aka_me_session_id=AAAAAAAAAAArWt1mAAAAADCcaYrs9s73sxia0O6jB9VICIq9a1UvsL2ahafGAFNAmvASuPahn5gDeY6tf4zW7H7AS3JvkeOW&aka_media_format_type=hls 2024-09-07 10:02:51.418 T:1496522 error : AddOnLog: inputstream.adaptive: GenerateSidxSegments: [AS-95] Cannot generate segments from SIDX on repr id "" with container "0" 2024-09-07 10:02:51.418 T:1496522 warning : AddOnLog: inputstream.adaptive: Cannot create sample reader due to unhandled representation container type

Example - Rai Movie

2024-09-07 10:03:20.008 T:574057 info : VideoPlayer::OpenFile: plugin://plugin.video.raitv/?mode=play&url=https%3A%2F%2Fmediapolis.rai.it%2Frelinker%2FrelinkerServlet.htm%3Fcont%3D747002 2024-09-07 10:03:20.152 T:1496533 info : Creating InputStream 2024-09-07 10:03:20.153 T:1496533 warning : AddOnLog: inputstream.adaptive: Warning "inputstream.adaptive.manifest_type" property is deprecated and will be removed next Kodi version, the manifest type is now automatically detected. If you are using a proxy remember to add the appropriate "content-type" header to the HTTP manifest response See Wiki page "How to provide custom manifest/license" to learn more about it. 2024-09-07 10:03:20.154 T:1496533 info : AddOnLog: inputstream.adaptive: [Repr. chooser] Resolution set: 3840x2160, max allowed: 3840x2160, Adjust refresh rate: 0 2024-09-07 10:03:20.539 T:1496533 info : AddOnLog: inputstream.adaptive: Manifest successfully parsed (Periods: 1, Streams in first period: 4, Type: live) 2024-09-07 10:03:20.539 T:1496533 info : Creating Demuxer 2024-09-07 10:03:20.539 T:1496533 info : Opening stream: 1001 source: 256 2024-09-07 10:03:20.749 T:1496533 warning : AddOnLog: inputstream.adaptive: OnSegmentChanged: Cannot get the stream sample reader 2024-09-07 10:03:21.142 T:1496533 info : Creating video codec with codec id: 27 2024-09-07 10:03:21.142 T:1496533 info : CDVDVideoCodecDRMPRIME::Open - using decoder V4L2 mem2mem H.264 decoder wrapper 2024-09-07 10:03:21.143 T:1496533 info : CDVDVideoCodecDRMPRIME::Open - unable to open codec 2024-09-07 10:03:21.143 T:1496533 info : CDVDVideoCodecDRMPRIME::Open - using decoder H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 2024-09-07 10:03:21.146 T:1496533 info : Creating video thread 2024-09-07 10:03:21.147 T:1496543 info : running thread: video_thread 2024-09-07 10:03:21.147 T:1496533 info : Opening stream: 1002 source: 256 2024-09-07 10:03:21.324 T:1496544 error : AddOnLog: inputstream.adaptive: [AS-99] Download failed, HTTP error 404: https://streamcdnf25-8e7439fdb1694c8da3a0fd63e4dda518.msvdn.net/raimovie1/hls/itaraimovie_160/c5b69bj7/media_290458.aac?baseuri=%2Fraimovie1%2Fhls%2F&tstart=0&tend=1725782779&tk2=47d83f66bee31dd1f5512a97ec8da2742834822f418e1cb467402cd05ab56777 2024-09-07 10:03:22.324 T:1496544 warning : AddOnLog: inputstream.adaptive: [AS-99] Segment download failed, attempt 2... 2024-09-07 10:03:22.429 T:1496544 error : AddOnLog: inputstream.adaptive: [AS-99] Download failed, HTTP error 404: https://streamcdnf25-8e7439fdb1694c8da3a0fd63e4dda518.msvdn.net/raimovie1/hls/itaraimovie_160/c5b69bj7/media_290458.aac?baseuri=%2Fraimovie1%2Fhls%2F&tstart=0&tend=1725782779&tk2=47d83f66bee31dd1f5512a97ec8da2742834822f418e1cb467402cd05ab56777 2024-09-07 10:03:23.429 T:1496544 warning : AddOnLog: inputstream.adaptive: [AS-99] Segment download failed, attempt 3... 2024-09-07 10:03:23.513 T:1496544 error : AddOnLog: inputstream.adaptive: [AS-99] Download failed, HTTP error 404: https://streamcdnf25-8e7439fdb1694c8da3a0fd63e4dda518.msvdn.net/raimovie1/hls/itaraimovie_160/c5b69bj7/media_290458.aac?baseuri=%2Fraimovie1%2Fhls%2F&tstart=0&tend=1725782779&tk2=47d83f66bee31dd1f5512a97ec8da2742834822f418e1cb467402cd05ab56777 2024-09-07 10:03:24.513 T:1496544 warning : AddOnLog: inputstream.adaptive: [AS-99] Segment download failed, attempt 4...

Now one example where it does work... Example - Rai Storia

2024-09-07 10:04:01.429 T:574057 info : VideoPlayer::OpenFile: plugin://plugin.video.raitv/?mode=play&url=https%3A%2F%2Fmediapolis.rai.it%2Frelinker%2FrelinkerServlet.htm%3Fcont%3D746990 2024-09-07 10:04:01.559 T:2590649 info : Deleting settings information for files plugin://plugin.video.raitv/?mode=play&url=https%3A%2F%2Fmediapolis.rai.it%2Frelinker%2FrelinkerServlet.htm%3Fcont%3D747002 2024-09-07 10:04:01.563 T:1496533 info : ADDON: Dll Destroyed - InputStream Adaptive 2024-09-07 10:04:01.564 T:1496533 info : Creating InputStream 2024-09-07 10:04:01.564 T:1496533 warning : AddOnLog: inputstream.adaptive: Warning "inputstream.adaptive.manifest_type" property is deprecated and will be removed next Kodi version, the manifest type is now automatically detected. If you are using a proxy remember to add the appropriate "content-type" header to the HTTP manifest response See Wiki page "How to provide custom manifest/license" to learn more about it. 2024-09-07 10:04:01.566 T:1496533 info : AddOnLog: inputstream.adaptive: [Repr. chooser] Resolution set: 3840x2160, max allowed: 3840x2160, Adjust refresh rate: 0 2024-09-07 10:04:01.958 T:1496533 info : AddOnLog: inputstream.adaptive: Manifest successfully parsed (Periods: 1, Streams in first period: 4, Type: live) 2024-09-07 10:04:01.958 T:1496533 info : Creating Demuxer 2024-09-07 10:04:01.959 T:1496533 info : Opening stream: 1001 source: 256 2024-09-07 10:04:02.211 T:1496533 warning : AddOnLog: inputstream.adaptive: OnSegmentChanged: Cannot get the stream sample reader 2024-09-07 10:04:02.590 T:1496533 info : Creating video codec with codec id: 27 2024-09-07 10:04:02.590 T:1496533 info : CDVDVideoCodecDRMPRIME::Open - using decoder V4L2 mem2mem H.264 decoder wrapper 2024-09-07 10:04:02.591 T:1496533 info : CDVDVideoCodecDRMPRIME::Open - unable to open codec 2024-09-07 10:04:02.591 T:1496533 info : CDVDVideoCodecDRMPRIME::Open - using decoder H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 2024-09-07 10:04:02.596 T:1496533 info : Opening stream: 1002 source: 256 2024-09-07 10:04:02.596 T:1496533 info : Finding audio codec for: 86018 2024-09-07 10:04:02.597 T:1496533 info : CDVDAudioCodecFFmpeg::Open() Successful opened audio decoder aac 2024-09-07 10:04:02.601 T:1496545 info : Skipped 1 duplicate messages.. 2024-09-07 10:04:02.601 T:1496545 info : Creating audio stream (codec id: 86018, channels: 2, sample rate: 44100, no pass-through) 2024-09-07 10:04:02.609 T:574107 info : CActiveAESink::OpenSink - initialize sink 2024-09-07 10:04:02.801 T:1496545 error : CDVDAudio::AddPacketsRenderer - timeout adding data to renderer 2024-09-07 10:04:02.809 T:574107 info : CAESinkALSA::Initialize - Attempting to open device "@" 2024-09-07 10:04:02.810 T:574107 info : CAESinkALSA::Initialize - Opened device "sysdefault" 2024-09-07 10:04:02.810 T:574107 info : CAESinkALSA::InitializeHW - Your hardware does not support AE_FMT_FLOAT, trying other formats 2024-09-07 10:04:02.810 T:574107 info : CAESinkALSA::InitializeHW - Using data format AE_FMT_S24NE3 2024-09-07 10:04:03.349 T:1496543 warning : OutputPicture - timeout waiting for buffer

I don't understand Rai 1 required a separate HTTPS request which failed with 403, whereas Rai Movie also required an extra HTTPS request although it was downloading segments and these failed with 404. Rai Storia doesn't require any extra HTTPS request and it succeeds.

boldorider4 avatar Sep 07 '24 07:09 boldorider4

Same problem here, did you manage top solve this issue?

MathGon avatar Jan 05 '25 16:01 MathGon