Closed herrnst closed 9 months ago
here you can find the fix test build: https://jenkins.kodi.tv/blue/organizations/jenkins/xbmc%2Finputstream.adaptive/detail/PR-1482/1/artifacts please give a feedback
here you can find the fix test build: https://jenkins.kodi.tv/blue/organizations/jenkins/xbmc%2Finputstream.adaptive/detail/PR-1482/1/artifacts please give a feedback
Wow, that was quick ;) Thanks!
With that build, things work as expected, on the same macOS/arm64 Kodi build, though just tried a few stream from DAZN.
This is what kodi.log looks like now:
2024-02-19 13:20:58.606 T:126147 info <general>: AddOnLog: inputstream.adaptive: Manifest successfully parsed (Periods: 1, Streams in first period: 2, Type: live)
2024-02-19 13:20:58.606 T:126147 debug <general>: AddOnLog: inputstream.adaptive: [Repr. chooser] Stream selection conditions
Screen resolution: 2560x1440
2024-02-19 13:20:58.606 T:126147 debug <general>: AddOnLog: inputstream.adaptive: New period, dispose sample decrypter and reinitialize
2024-02-19 13:20:58.606 T:126147 debug <general>: AddOnLog: inputstream.adaptive: Entering encryption section
2024-02-19 13:20:58.606 T:126147 debug <general>: AddOnLog: inputstream.adaptive: Initialize: CDM version: 4.10.2710.0
2024-02-19 13:20:58.606 T:126147 debug <general>: AddOnLog: inputstream.adaptive: OnInitialized: CDM is initialized: true
2024-02-19 13:20:58.606 T:126147 debug <general>: AddOnLog: inputstream.adaptive: Initializing stream with KID: hidden
2024-02-19 13:20:58.640 T:126147 debug <general>: AddOnLog: inputstream.adaptive: CDMMessage: 1 arrived!
2024-02-19 13:20:58.640 T:126147 debug <general>: AddOnLog: inputstream.adaptive: SetSession: Opened widevine session ID: hidden
[cont'ed with all the expected keyexchange and setup of player cores]
Will test more and report back, but that looks like its fixed.
Thanks!
EDIT/Addendum: Was about to check against Netflix and unfortunately just fell over https://github.com/CastagnaIT/plugin.video.netflix/issues/1585 so getting only audio but no video, but I guess this indicates libwidevine by itself is working...
Bug report
Describe the bug
Here is a clear and concise description of what the problem is:
Kodi running on macOS Sonoma 14.3.1 on a MacMini M1, arm64 build, updated to latest nightly (kodi-20240219-cf9bb1f7-master-3621-arm64.dmg, though the issue is present since the first time I installed Kodi/arm64 on this system).
Playback of DRM-protected content (using widevine) via any video addon (tested Netflix and DAZN) fails with "Generic failure during playback". From kodi.log (see below) it appears as if libwidevinecdm isn't correctly handled and/or used as IA tries to load libwidevinecdm.so instead of libwidevinecdm.dylib.
The widevine library itself seems to be correctly installed to ~/Library/Application Support/Kodi/cdm/ by the inputstream helper script addon:
and is an arm64 binary:
Though on any playback attempt, IA logs:
I also blindly tried symlinking the .dylib files to .so, to no avail.
Expected Behavior
Playback of DRM-protected content works as on other platforms (ie. Linux/x86_64, Windows, Linux/armv7 via LibreElec on a RPI etc).
Actual Behavior
Playback fails with a "Generic" playback error popup.
Possible Fix
Maybe something in the line of correctly handling libwidevinecdm.dylib on arm64, no idea really.
To Reproduce
Steps to reproduce the behavior:
Debuglog
Relevant excerpt from kodi.log with debugging enabled (hope thats fine):
MPD/M3U8s/ISM
An example or copy of a manifest (or manifests for HLS - master and variants) can be found here:
(applies to any Manifest/HLS/MPD/M3U)
Screenshots
Here are some links or screenshots to help explain the problem:
-
Additional context or screenshots (if appropriate)
Here is some additional context or explanation that might help:
-
Your Environment
Used Operating system:
[ ] Android
[ ] iOS
[ ] tvOS
[ ] Linux
[x] OSX
[ ] Windows
[ ] Windows UWP
Operating system version/name: Sonoma 14.3.1 (arm64)
Kodi version: kodi-20240219-cf9bb1f7-master-3621-arm64
inputstream.adaptive version: 21.4.2 (as bundled/downloaded from the Kodi addon repo, if applicable)
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.