Closed helllamer closed 6 months ago
iirc currently encrypted subtitles are not supported i think for now we can implement the possibility to ignore stream having encrypted subtitles so at least you can play the video
@CastagnaIT Sounds perfectly!
If you need any fresh URLs, keys or some other information -- feel free to tag me.
thanks for the sample streams, that we can use to do local tests, i made the fix, but please note that your streams could stall/freeze after some secs is a know ISA problem not solved yet
Wow, it works! Test results in PR comment.
Thank you. Fixed!
reopened since by chance i found where is the problem... encrypted subtitles are supported for the MP4 container and this is the case, so i was wrong
both AdaptationSet and Representation have ContentProtection but the last one have only the default_KID
this cause that create two PSSHSet
one with empty pssh value, this cause the error
Could not extract license from video stream (PSSH not found)
since its missing the pssh, last time i havent realized this
<?xml version="1.0" encoding="UTF-8"?>
<MPD xmlns="urn:mpeg:dash:schema:mpd:2011" xmlns:cenc="urn:mpeg:cenc:2013" profiles="urn:mpeg:dash:profile:isoff-live:2011" type="dynamic" availabilityStartTime="2023-12-19T22:25:15Z" publishTime="2024-03-05T12:33:40Z" minimumUpdatePeriod="PT30S" timeShiftBufferDepth="PT64.0S" minBufferTime="PT1S" maxSegmentDuration="PT2S">
<Period id="1" start="PT0S">
<AdaptationSet id="3" lang="rus" contentType="text" segmentAlignment="true" mimeType="application/mp4" startWithSAP="1">
<Role schemeIdUri="urn:mpeg:dash:role:2011" value="subtitle"/>
<SegmentTemplate timescale="10000000" duration="20000000" startNumber="1" media="$RepresentationID$_$Number$.m4s?hw_dash=1&servicetype=1&nil" initialization="$RepresentationID$_init.m4i?hw_dash=1&servicetype=1&nil"/>
<ContentProtection schemeIdUri="urn:mpeg:dash:mp4protection:2011" value="cenc" cenc:default_KID="d5e8f2aa-3a56-ecf0-9dde-0088eaaf19b5"/>
<ContentProtection xmlns:mspr="urn:microsoft:playready" value="MSPR 2.0" schemeIdUri="urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95">
<cenc:pssh>AAADPnBzc2gAAAAAmgTweZhAQoarkuZb4IhflQAAAx4eAwAAAQABABQDPABXAFIATQBIAEUAQQBEAEUAUgAgAHgAbQBsAG4AcwA9ACIAaAB0AHQAcAA6AC8ALwBzAGMAaABlAG0AYQBzAC4AbQBpAGMAcgBvAHMAbwBmAHQALgBjAG8AbQAvAEQAUgBNAC8AMgAwADAANwAvADAAMwAvAFAAbABhAHkAUgBlAGEAZAB5AEgAZQBhAGQAZQByACIAIAB2AGUAcgBzAGkAbwBuAD0AIgA0AC4AMAAuADAALgAwACIAPgA8AEQAQQBUAEEAPgA8AFAAUgBPAFQARQBDAFQASQBOAEYATwA+ADwASwBFAFkATABFAE4APgAxADYAPAAvAEsARQBZAEwARQBOAD4APABBAEwARwBJAEQAPgBBAEUAUwBDAFQAUgA8AC8AQQBMAEcASQBEAD4APAAvAFAAUgBPAFQARQBDAFQASQBOAEYATwA+ADwASwBJAEQAPgBxAHYATABvADEAVgBZADYAOABPAHkAZAAzAGcAQwBJADYAcQA4AFoAdABRAD0APQA8AC8ASwBJAEQAPgA8AEMASABFAEMASwBTAFUATQA+AHAASgBPAEkAVwBEAGcAYgB5AFIAOAA9ADwALwBDAEgARQBDAEsAUwBVAE0APgA8AEwAQQBfAFUAUgBMAD4AaAB0AHQAcABzADoALwAvAGgAdAB2AC0AcAByAGwAcwAuAG0AdABzAC4AcgB1AC8AUABsAGEAeQBSAGUAYQBkAHkALwByAGkAZwBoAHQAcwBtAGEAbgBhAGcAZQByAC4AYQBzAG0AeAA8AC8ATABBAF8AVQBSAEwAPgA8AEwAVQBJAF8AVQBSAEwAPgBoAHQAdABwAHMAOgAvAC8AaAB0AHYALQBwAHIAbABzAC4AbQB0AHMALgByAHUALwBQAGwAYQB5AFIAZQBhAGQAeQAvAHIAaQBnAGgAdABzAG0AYQBuAGEAZwBlAHIALgBhAHMAbQB4ADwALwBMAFUASQBfAFUAUgBMAD4APAAvAEQAQQBUAEEAPgA8AC8AVwBSAE0ASABFAEEARABFAFIAPgA=</cenc:pssh>
</ContentProtection>
<ContentProtection value="Widevine" schemeIdUri="urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed">
<cenc:pssh>AAAAWXBzc2gAAAAA7e+LqXnWSs6jyCfc1R0h7QAAADkIARIQ1ejyqjpW7PCd3gCI6q8ZtRoNdmVyaW1hdHJpeG10cyINcj02NTQwNiZzPTk1MyoFU0RfSEQ=</cenc:pssh>
</ContentProtection>
<Representation id="subtitles" bandwidth="3200" codecs="stpp">
<ContentProtection schemeIdUri="urn:mpeg:dash:mp4protection:2011" value="cenc" cenc:default_KID="d5e8f2aa-3a56-ecf0-9dde-0088eaaf19b5"/>
</Representation>
</AdaptationSet>
...
as test i tried force merge both PSSHSet
's and i can play video with encrypted subtitles with success
i also noticed another problem when you disable/re-enable subtitles from GUI OSD subtitles are broken
i will try to provide a better solution
Bug report
All subtitles globally disabled in kodi.
But some of collection IPTV streams fails to play, with PSSH/KID error in subtitles stream (see log below). Also reproduceble in stable Kodi 20.
Describe the bug
Here is a clear and concise description of what the problem is:
Log snipped contains general info:
For full log, see GIST files: https://gist.github.com/helllamer/6ee0ce2bcca1eb2608752d7ce7352429
File
iptv.m3u
contains two example WV-protected MPD streamsAlso, kodi 20 shows similar error
Expected Behavior
Here is a clear and concise description of what was expected to happen:
Actual Behavior
Possible Fix
try { subtitlesInit() } catch { logger.error(); }
To Reproduce
Steps to reproduce the behavior:
Debuglog
The debuglog can be found here: https://gist.github.com/helllamer/6ee0ce2bcca1eb2608752d7ce7352429#file-kodi-log
MPD/M3U8s/ISM
An example or copy of a manifest (or manifests for HLS - master and variants) can be found here: https://gist.github.com/helllamer/6ee0ce2bcca1eb2608752d7ce7352429#file-iptv-m3u
Your Environment
Used Operating system:
[ ] Android
[ ] iOS
[ ] tvOS
[x] Linux
[ ] OSX
[ ] Windows
[ ] Windows UWP
Operating system version/name: ArchLinux ARM AArch64
System: RaspberryPi 4
Kodi version: 21.x.64945.ae8850704e-2
inputstream.adaptive version: 21.4.1.Omega.r8.g2603755b-1 (today build)
glibc-widevine 2.35-5.3
widevine 4.10.2252.0
kodi-addon-pvr-iptvsimple-git r843.fc97f8d-1 (today)
note: Once the issue is made we require you to update it with new information should that be required. Team Kodi will consider your problem report however, we will not make any promises the problem will be solved.