Closed DjDiabolik closed 1 year ago
Yes I have the same issue on a raspberry pi 3+ on latest version of osmc. I'm trying to play an strm file of an mpd stream with widevine drm. Log shows large audio sync error. Only solution I have found is to set inputstream adaptive to audio only mode.
I've heard this is caused by the latest widevine DRM blob version (4.10.2391.0). Reverting to previous (4.10.2252.5) seems to solve it
Hi, I can confirm, installing widevine 4.10.2252.5 solved the problem. Thanks very much.
Any instructions on installing an earlier version of widevine? Im running a new setup and 4.10.2391.0 is the only one installed.
A similar issue is happened i think 1 or 2 year ago on the same architecture, that revert to an old version of DRM temporary fixed the problem
but this is interesting there might be some other hidden problem somewhere:
From inputstream adaptive setting the only ways to obtain a continous playback is to mute the audio track... i have selected "Video" Only from "Media Played" and struttering it's disappears.
@CastagnaIT good point.
A little while ago on Android we adopted using separate widevine sessions for audio/video rather than the same which fixed stuttering. I can only guess that the decrypter didn't have enough 'juice' to do both at the same time fast enough, perhaps the same situation here? This kind of thing may have recommendations in official widevine docs, which we don't have access to.
I'll spin up my VM and get a build for LibreELEC/RPi2 going with a modification, see if it helps.
I assumed it was due to that doing them in series was too slow to keep up with video, but doing in parallel halves the time needed.
Eg. On a Pi, it takes 2s to decrypt video. 1s to decrypt audio. So total of 3s if doing in series. Which may be too slow to keep up. But doing in parallel would be only 2s.
Doing in parallel should actually require more juice as doing double the work at once right?
And things like Windows with more grunt can process quick enough in series?
Also, you changes in IA 20 might solve the issues as well (increased buffer etc)
Are changes required in Libreelec core?
Hi my friends.....
I have obtain a strange situation whit this issue... whit my BAD english i try to explain: From "Inputstream.Helper" i have 4 backup concern the widevine 4.10.2252.5.
When i open this issue I had already tried to restore this same version of the library... restart kodi and the issue it's remain.
On OSMC forum here: https://discourse.osmc.tv/t/stuttering-buffering-videos-with-amazon-vod-plugin/92273/
There's a specific comment whit a suggestion: https://discourse.osmc.tv/t/stuttering-buffering-videos-with-amazon-vod-plugin/92273/17
There's suggestion whit a link............. for a purpose test i have tryed to download that library and BAAAM... all issue it's disappears.
At this point i thinks this library when it's extracted from Chrome OS by Inputstream.Helper has obtain some changes also if mantain same version of main library. it could be an explanation why if I restored one of my backups there's no works... whit this specific downloaded yes.
It's really strange............
if needed i can compile for CoreElec arm64, but i do not know if this compiled files are compatible also with RPI
@DjDiabolik can you try this version of Inputstream.adaptive with the new widevine cdm? inputstream.adaptive-19.0.2.1.zip
@matthuisman sorry didn't respond to your questions Yes your example is exactly what I was thinking. Or perhaps not even down to raw cpu power but maybe some sort of latency or blocking plays a part... Google would only care that the armv7 cdm works on the very small amount of devices it's designed for, and maybe doing audio/video in one session is something that google tells licensees not to do. As mentioned before we don't have access to any docos so I can only speculate.
No changes in libreelec needed.
I don't think the v20 buffer would help, I think the buffering seen is caused by CPU, like when rpi2 tries to decode 1080p.
The GSOC student intended to add cpu usage as a trigger for adaptive stream switching but it didn't get done. It's on the wishlist way down the track :)
Hi, I had the same problem when inputstreamhelper updated to 4.10.2391. inputstream.adaptive-19.0.2.1 unfortunately does not solve the issue. What I recognozed: With 4.10.2252 the prozessor load on my RPi4 is max 20% (one core, the others <2%), with 4.10.2391 it goes up to 100% at one core periodically - and then it hangs … Tested with DAZN addon …
How can I downgrade to 4.10.2252.5? Can't seem to find out how..
1) You can download it from below, rename it to libwidevinecdm.so and then replace libwidevinecdm.so in the kodi/userdata/cdm folder https://k.slyguy.xyz/.decryptmodules/widevine/4.10.2252.5-linux-armv7.so
or
2) Install any add-on from Slyguy Repo (https://www.matthuisman.nz/2020/02/slyguy-kodi-repository.html) And then go to Add-ons > services > slyguy common > advanced > re(install) widevine CDM Then select 4.10.2252.5
"Install any add-on from Slyguy Repo (https://www.matthuisman.nz/2020/02/slyguy-kodi-repository.html) And then go to Add-ons > services > slyguy common > playback > re(install) widevine CDM Then select 4.10.2252.5"
If I go to configure on the slyguy common service there's no option called playback?
oops, it used to be there. Just updated it to add it back.
Follow this to force update: https://www.matthuisman.nz/2021/07/force-update-slyguy-add-ons.html
And then after its updated, Services > Slyguy Common > Advanced > Re(install) Widevine CDM
oops, it used to be there. Just updated it to add it back.
Follow this to force update: https://www.matthuisman.nz/2021/07/force-update-slyguy-add-ons.html
And then after its updated, Services > Slyguy Common > Advanced > Re(install) Widevine CDM
Worked! Thanks!
@DjDiabolik can you try this version of Inputstream.adaptive with the new widevine cdm? inputstream.adaptive-19.0.2.1.zip
i don't thinks i can upgrade inputstream.adaptive on my actual kodi setup......... i'm using current osmc release on a pi2.
For me, the tricks listed here do not seem to work. I have tried quite a few things, e.g. using InputStream Helper's restore functionality and rolling back to 4.10.2252.0 (13816.82.0) as well as removing InputStream Helper.
Now, Widevine does not even seem to work anymore as I'm unable to start any content that is "protected" by Widevine, even though I have installed it via InputStreamHelper, SlyGuy's services as well as moving it manually and restarting the system. Below, you can see the log message of the error:
2022-02-08 20:46:42.447 T:818 INFO <general>: VideoPlayer::OpenFile: plugin://plugin.video.orftvthek/?link=https%3A%2F%2Forf2.mdn.ors.at%2Fout%2Fu%2Forf2%2Fdrmqxb%2Fmanifest.mpd&mode=playDRM&lic_url=https%3A%2F%2Fdrm.ors.at%2Facquire-license%2Fwidevine%3FBrandGuid%3D13f2e056-53fe-4469-ba6d-999970dbe549%26userToken%3DXPEAc%252FsMC0Pm7rvvE3FnggTuR0NXIUwNA2vEX%252FhbV0Rng77NVMKDg43O%252F418Gy2kbJzbAXPx%252BDW%252F2CTu8A5OfpWPSxRuhaOjN3i%252Br%252BEoFr6xUvwqm8MOtT42uGfdvIX9Q%252F83Jk1icQV2PFiH%252BXLnrl61NDHpxA8xZ9ROM72Mxc1CovOdeF4sHVXM6CmiWYbq3fcoVmpvRd01xlUCD3oh1ukaQ5JTTqtOj6KYOB6%252F87BpfCZbZHjYO54Xj77NMtWU
2022-02-08 20:46:42.448 T:1057 INFO <general>: Creating InputStream
2022-02-08 20:46:42.449 T:1057 INFO <general>: AddOnLog: inputstream.adaptive: SetVideoResolution (1920 x 1080)
2022-02-08 20:46:42.451 T:1057 ERROR <general>: GetDirectory - Error getting /usr/lib/kodi/addons/inputstream.adaptive/
2022-02-08 20:46:42.635 T:1057 INFO <general>: AddOnLog: inputstream.adaptive: Successfully parsed manifest file. #Periods: 1, #Streams in first period: 3, Type: live, Download speed: 3704466.9160 Bytes/s
2022-02-08 20:46:42.706 T:1048 INFO <general>: Python interpreter stopped
2022-02-08 20:46:43.545 T:1057 ERROR <general>: CCurlFile::FillBuffer - Failed: HTTP returned error 500
2022-02-08 20:46:43.545 T:1057 ERROR <general>: CCurlFile::Open failed with code 500 for https://drm.ors.at/acquire-license/widevine?BrandGuid=13f2e056-53fe-4469-ba6d-999970dbe549&userToken=XPEAc%2FsMC0Pm7rvvE3FnggTuR0NXIUwNA2vEX%2FhbV0Rng77NVMKDg43O%2F418Gy2kbJzbAXPx%2BDW%2F2CTu8A5OfpWPSxRuhaOjN3i%2Br%2BEoFr6xUvwqm8MOtT42uGfdvIX9Q%2F83Jk1icQV2PFiH%2BXLnrl61NDHpxA8xZ9ROM72Mxc1CovOdeF4sHVXM6CmiWYbq3fcoVmpvRd01xlUCD3oh1ukaQ5JTTqtOj6KYOB6%2F87BpfCZbZHjYO54Xj77NMtWU:
2022-02-08 20:46:43.545 T:1057 ERROR <general>: AddOnLog: inputstream.adaptive: License server returned failure
2022-02-08 20:46:43.545 T:1057 ERROR <general>: AddOnLog: inputstream.adaptive: License update not successful (no keys)
2022-02-08 20:46:43.591 T:1057 ERROR <general>: AddOnLog: inputstream.adaptive: Initialize failed (SingleSampleDecrypter)
2022-02-08 20:46:43.601 T:1057 ERROR <general>: CVideoPlayer::OpenInputStream - error opening [plugin://plugin.video.orftvthek/?link=https%3A%2F%2Forf2.mdn.ors.at%2Fout%2Fu%2Forf2%2Fdrmqxb%2Fmanifest.mpd&mode=playDRM&lic_url=https%3A%2F%2Fdrm.ors.at%2Facquire-license%2Fwidevine%3FBrandGuid%3D13f2e056-53fe-4469-ba6d-999970dbe549%26userToken%3DXPEAc%252FsMC0Pm7rvvE3FnggTuR0NXIUwNA2vEX%252FhbV0Rng77NVMKDg43O%252F418Gy2kbJzbAXPx%252BDW%252F2CTu8A5OfpWPSxRuhaOjN3i%252Br%252BEoFr6xUvwqm8MOtT42uGfdvIX9Q%252F83Jk1icQV2PFiH%252BXLnrl61NDHpxA8xZ9ROM72Mxc1CovOdeF4sHVXM6CmiWYbq3fcoVmpvRd01xlUCD3oh1ukaQ5JTTqtOj6KYOB6%252F87BpfCZbZHjYO54Xj77NMtWU]
please post link to full debug logs. the error that helps is probably above what you have posted
@matthuisman Sure, there you go:
Describe the bug
I use KODI on my Rpi2 using last and current build of OSMC. I also use DAZN addons from @Maven85 for months and months and it's ever works.
Yesterday i have tryed to watch livestream of "Inter - Atalanta" and it's unwatchable. The livestream goes in buffering immediatelly after fist seconds and never obtain a continuous playback. After that i have also tryed to open a VOD content.......... same exact issue.
Today i have also tryed to install KODI 19.3 on my PC (windows 10 x64) and i have setup the same addons here........ i have install inputstream.helper download the Widevine CDM and here all content present on DAZN (livestream or VOD content) it is visible without the slightest problem.
At this point i have tryed to back on my Pi2........ i have tryed to select the worst resolution and the lowest video bitrate but apparently there's no help to resolve the issue.
From inputstream adaptive setting the only ways to obtain a continous playback is to mute the audio track... i have selected "Video" Only from "Media Played" and struttering it's disappears.
It's someone has obtain a similar issue/trouble on recent days ?
Debuglog
Your Environment
Used Operating system:
[ ] Android
[ ] iOS
[ ] tvOS
[*] Linux
[ ] OSX
[ ] Windows
[ ] Windows UWP
Operating system version/name:
Kodi version: 19.3
inputstream.adaptive version: 19.0.1