script.module.inputstreamhelper icon indicating copy to clipboard operation
script.module.inputstreamhelper copied to clipboard

Doesn't work on Sony Xperia XA2/ARM v8l/Qualcomm SDM630

Open cintema opened this issue 4 years ago • 33 comments

kodi.log.txt

Bildschirmfoto_20200110_003

Thank you!

cintema avatar Jan 11 '20 09:01 cintema

Could you try the master branch? https://github.com/emilsvennesson/script.module.inputstreamhelper/archive/master.zip

It will report that Widevine is built into Android.

dagwieers avatar Jan 11 '20 11:01 dagwieers

Based on the log file it may be that Widevine is not supported by your system, or it is an inputstream.adaptive issue.

VideoPlayer::OpenFile: plugin://plugin.video.tester/?_=play_video&index=3
2020-01-10 18:51:15.357 T:14174  NOTICE: Creating InputStream
2020-01-10 18:51:15.438 T:14174   ERROR: AddOnLog: InputStream Adaptive: Key system request: com.widevine.alpha
2020-01-10 18:51:17.567 T:14174   ERROR: AddOnLog: InputStream Adaptive: Unable to initialize media_drm
2020-01-10 18:51:17.568 T:14174   ERROR: AddOnLog: InputStream Adaptive: OpenDRMSystem failed
2020-01-10 18:51:17.570 T:14174   ERROR: CVideoPlayer::OpenInputStream - error opening [plugin://plugin.video.tester/?_=play_video&index=3]

cc @peak3d

dagwieers avatar Jan 11 '20 11:01 dagwieers

There is no widevine installed on my phone yet since it's running Sailfish OS/Aliendalvik. I thought widevine would be provided by inputstream helper if not preinstalled?

cintema avatar Jan 11 '20 20:01 cintema

There is no Widevine CDM library publicly available for us to install on Android AFAIK. It normally ships with the Android OS. If you happen to find a solution, we could reconsider, but I doubt it's going to be pretty...

dagwieers avatar Jan 11 '20 21:01 dagwieers

What exactely is needed for widevine? May it be possible to copy the widevine library from a genuine Sony Xperia Android image? I would be willing to try this but info about which files were needed is hard to find. Can you provide some further information? Thanks!

cintema avatar Jan 12 '20 11:01 cintema

Wouldn't it be possible to utilize the ChromeOS widevine libraries on SailfishOS/Aliendalvik as well? And if not, why not?

cintema avatar Jan 12 '20 14:01 cintema

Wouldn't it be possible to utilize the ChromeOS widevine libraries on SailfishOS/Aliendalvik as well?

Possibly, but we are not allowed to redistribute these libraries, so we cannot automate it ourselves. But if you put them in the right place, I believe it ought to work. It ought to go into the path shown in the information window.

dagwieers avatar Jan 12 '20 19:01 dagwieers

Sounds interesting. I've extracted the relevant libraries using this script: https://gist.github.com/ruario/19a28d98d29d34ec9b184c42e5f8bf29 Can you tell me the path where to put them? Thank you!

cintema avatar Jan 14 '20 07:01 cintema

See my previous message.

dagwieers avatar Jan 14 '20 07:01 dagwieers

Already saw it, sorry for asking :) However, it doesn't seem possible to modify files in /user/0 on sailfishOS at present. Can I change the path at which inputstreamhelper looks for the widevine libs to e.g. $home/Android/data/org.xbmc.kodi/ or somewhere else in the homdir (e.g. $home/.widevine)? Thank you!

cintema avatar Jan 15 '20 10:01 cintema

@cintema You can modify this path from the inputstream.adaptive settings in General » Decrypter path.

Not sure if that will work for Android, as it may expect Widevine to ship with Android. Default value is: special://home/cdm

dagwieers avatar Jan 15 '20 15:01 dagwieers

20200115174906 I don't think I have this option on android (and the only accessible dir on SfOS-Alien Dalvik is the Android user home directory, therefore copying to /home cdm is not an option, unfortunately). Can I modify the plugin .py/.xml stored at $home/data?

cintema avatar Jan 15 '20 16:01 cintema

I said inputstream.adaptive, not inputstreamhelper. It is a different add-on.

dagwieers avatar Jan 15 '20 18:01 dagwieers

Inputstream.adaptive doesn't appear to be installed nor available for android in the official repo. Installing zip-files fails. 20200122152232 May I try the rpi2 version or what would you suggest? Any other way to supply the widevine lib to inputstream.helper?

cintema avatar Jan 22 '20 14:01 cintema

Yes it does. Screenshot_20200122-194346

dagwieers avatar Jan 22 '20 18:01 dagwieers

I'm using a standard kodi release for android and i didn't modify the repos (except for ADDING some skygo related stuff): 20200123110009

What am I missing? Thank you.

cintema avatar Jan 23 '20 10:01 cintema

/Edit: Incompatible Addons are not hidden

cintema avatar Jan 23 '20 10:01 cintema

20200123110802

cintema avatar Jan 23 '20 10:01 cintema

Screenshot_20200123-151340

dagwieers avatar Jan 23 '20 14:01 dagwieers

We have the same Kodi. But your Android may be missing required infrastructure for inputstream.adaptive?

dagwieers avatar Jan 23 '20 14:01 dagwieers

As I said, I'm on SailfishOS (which is rather a LSB-Linux devirative (with rpm, zypper etc.) and an Android compatibility layer (Alien Dalvik) than a full featured Android. Since Kodi is somewhat standalone, I wonder if it was possible to utilize third party libwidevine as on Ubutntu instead of searching for Android DRM support. This would also benefit people using Kodi on Foss-Android clones like LineageOS.

cintema avatar Jan 23 '20 16:01 cintema

Plus, I don't understand why inputstream.adaptive is not even offered for my Kodi release (not even when listing incompatible packages). I tried to search for a standalone.zip file but I could only find some packages für x86. Is there no other possibility to address libwidevine from inputstream.helper than inputstream.adaptive? I wonder since the inputstream.helper information screen displays a widevine.cdm path. I would have thought that, if it was possible to change this path to where the libwidevine.so is found, libwidevine might be utilized for decoding...

cintema avatar Jan 23 '20 16:01 cintema

@cintema I think this is the wrong forum for your questions, maybe https://github.com/peak3d/inputstream.adaptive is a better location to direct your questions?

dagwieers avatar Jan 23 '20 16:01 dagwieers

We can try to solve issues here, if it is ok for you @dagwieers, I agree that it is not the right place.

  • from where do you get kodi, and for what platform exactly @cintema ? How have you installed it? (pls. provide a link to the package you use for installation)

peak3d avatar Jan 23 '20 17:01 peak3d

@peak3d I don't mind, it's just that I have no clue on the cause, or if a solution is at all possible.

dagwieers avatar Jan 23 '20 17:01 dagwieers

Plus, I don't understand why inputstream.adaptive is not even offered for my Kodi release (not even when listing incompatible packages). I tried to search for a standalone.zip file but I could only find some packages für x86. Is there no other possibility to address libwidevine from inputstream.helper than inputstream.adaptive? I wonder since the inputstream.helper information screen displays a widevine.cdm path. I would have thought that, if it was possible to change this path to where the libwidevine.so is found, libwidevine might be utilized for decoding...

cintema avatar Jan 23 '20 20:01 cintema

I downloaded the Android package from kodi.tv. Since I have both, the 32bit and 64bit release in my download folder I cannot really tell which release is currently installed (I presume the 32bit release as the 64bit release could not be installed - could be vice versa, though - is there a way to figure that out, couldn't find anything from sysinfo?).

cintema avatar Jan 23 '20 20:01 cintema

BTW: Sorry for always hitting the wrong (close issue) button... wasn't intentional, the issue still exists!

cintema avatar Jan 23 '20 20:01 cintema

@cintema search your device for the kodi.log file and post it here. inputstream.adaptive is in general always bundled in the apk's provided by kodi, so either you have picked a bad nightly, or something else is wrong. widevine presence does not influence inputstream.adaptive appearance b.t.w., means it should be there.

Edit: from log above inputstream.adaptive 2.4.2 is installed, so everything fine. For android we use MediaDrm for widevine, not libwidevine.so. If you want to use libwidevine on a android device, some deeper changes have to be done, this includes the build system which already sticks MediaDrm to inputstream.adaptive at build time.

peak3d avatar Jan 24 '20 08:01 peak3d

@peak3d It appears my smartphone has the same Kodi release as @cintema, the one from the Play Store (update from 2019-11-17). See screenshots. But mine is running on a real Android.

dagwieers avatar Jan 24 '20 20:01 dagwieers