Skip to content

[Bug] ISA uses a different KID than the default_KID mentioned in the mpd file #1973

@cralin

Description

@cralin

Describe the problem

Hi,

I have a Raspberry Pi4 running Kodi 22 (the LibreELEC (community): nightly-20260105-c4ca2ce image) and while trying to play a Widevine encrypted stream the audio is played correctly but the image on the screen is black.

At the same time in kodi.log there are multiple error <inputstream.adaptive>: Decrypt Sample returns failure! messages.

After enabling the debug logging and trying to play the stream again, in the kodi.log the following lines are visible:

2026-01-05 23:52:53.442 T:1013    debug <inputstream.adaptive>: LogDecryptError: Decrypt failed with error code: 2 and KID: 3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3b
2026-01-05 23:52:53.442 T:1013    error <inputstream.adaptive>: Decrypt Sample returns failure!

I've checked the downloaded mpd file and the same 3C3C3C3C-3C3C-3C3C-3C3C-3C3C3C3C3C3C is listed as default_KID for both audio and video.

To my understanding, the following lines in the kodi log shows that KID 3C3C3C3C3C3C3C3C3C3C3C3C3C3C3C3C is valid while the KID 3C3C3C3C3C3C3C3C3C3C3C3C3C3C3C3B is not

2026-01-05 23:52:53.002 T:1013    debug <inputstream.adaptive>: [WV-CDM-Library] OnSessionKeysChange: KID 3C3C3C3C3C3C3C3C3C3C3C3C3C3C3C31, Status: 1, System code: 5
2026-01-05 23:52:53.002 T:1013    debug <inputstream.adaptive>: CDM message: type 3 arrived
2026-01-05 23:52:53.002 T:1013    debug <inputstream.adaptive>: [WV-CDM-Library] OnSessionKeysChange: KID 3C3C3C3C3C3C3C3C3C3C3C3C3C3C3C32, Status: 1, System code: 5
2026-01-05 23:52:53.002 T:1013    debug <inputstream.adaptive>: CDM message: type 3 arrived
2026-01-05 23:52:53.002 T:1013    debug <inputstream.adaptive>: [WV-CDM-Library] OnSessionKeysChange: KID 3C3C3C3C3C3C3C3C3C3C3C3C3C3C3C3A, Status: 0, System code: 0
2026-01-05 23:52:53.002 T:1013    debug <inputstream.adaptive>: CDM message: type 3 arrived
2026-01-05 23:52:53.002 T:1013    debug <inputstream.adaptive>: [WV-CDM-Library] OnSessionKeysChange: KID 3C3C3C3C3C3C3C3C3C3C3C3C3C3C3C3B, Status: 1, System code: 5
2026-01-05 23:52:53.002 T:1013    debug <inputstream.adaptive>: CDM message: type 3 arrived
2026-01-05 23:52:53.002 T:1013    debug <inputstream.adaptive>: [WV-CDM-Library] OnSessionKeysChange: KID 3C3C3C3C3C3C3C3C3C3C3C3C3C3C3C3C, Status: 0, System code: 0
2026-01-05 23:52:53.002 T:1013    debug <inputstream.adaptive>: CDM message: type 3 arrived
2026-01-05 23:52:53.021 T:1013    debug <inputstream.adaptive>: License update successful

This would explain the error message "Decrypt failed with error code: 2 and KID: 3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3b", however (at least for me) it does not explain why the the 3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3b is used instead of the 3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c mentioned in the mpd file.

I can only assume that the usage of the KID: 3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3b to decrypt the stream is probably related to a bug since this KID is not mentioned in the mpd file and it looks like it is marked as invalid in the response from the license server.

Possible fix

No response

Steps to reproduce

No response

Debug log

kodi.log with debug logging enabled: kodi.log

Stream manifest file(s)

Stream manifest file: manifest_1767653571.txt

Zip archive containing the .challenge, .init, .request and .response files: EDEF8BA9-79D6-4ACE-A3C8-27DCD51D21ED.zip

Additional info

No response

Operating system(s)

Linux

Operating system version(s)

LibreELEC (community): nightly-20260105-c4ca2ce

InputStream Adaptive version(s)

inputstream.adaptive v22.3.6.1

Kodi version(s)

Kodi 22

Metadata

Metadata

Assignees

No one assigned

    Labels

    Triage: Confirmedissue has been reproduced by a team member

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions