Skip to content
This repository has been archived by the owner on Mar 18, 2023. It is now read-only.

widevineX problem #20

Closed
mohan585 opened this issue Aug 23, 2021 · 26 comments
Closed

widevineX problem #20

mohan585 opened this issue Aug 23, 2021 · 26 comments

Comments

@mohan585
Copy link

test.py is not executing it showing import error of cdmapi.
in that cdm.py there is no cdmapi from where is it imported. ? and
Is this only for mac and linux ?
is this work for windows ?

@mohan585
Copy link
Author

mohan585 commented Aug 23, 2021

vmp is also not available ?

@T3rry7f
Copy link
Owner

T3rry7f commented Aug 24, 2021

Ubuntu or MacOS only ,cdmapi library not be compiled for windows, vmp is available now.

@mohan585
Copy link
Author

Ubuntu or MacOS only ,cdmapi library not be compiled for windows, vmp is available now.

can you try cdmapi for windows
https://source.chromium.org/chromium/chromium/src/+/master:media/cdm/api/
maybe this gonna help you for compling for windows.

@MythodeaLoL
Copy link

@T3rry7f
can you implement a signature generation function in codelift so that you can sign license_request?

the goal is to do something similar to what you did in PywidevineX, but with windows support.

in this way it would be possible to generate the challenge with vmp, mark it, and decrypt it directly in the cdm.py code, dispensing with alternative codes.

would it be possible to publish the sourcecode from cdmapi? maybe it helps in implementing a windows version if you can't do it.
device_client_id_blob device_vmp_blob.gz

@T3rry7f
Copy link
Owner

T3rry7f commented Aug 24, 2021

Ok, cdmapi extension source code had uploaded, you can build the windows version by yourself.

@mohan585
Copy link
Author

cdmapi extension source code had uploaded, you can build the windows version by yourself

Thanks bro. But While building that it was giving error :codelift.cpp(4): fatal error C1083: Cannot open include file: 'filters.h': No such file or directory

@T3rry7f
Copy link
Owner

T3rry7f commented Aug 25, 2021

cdmapi extension source code had uploaded, you can build the windows version by yourself

Thanks bro. But While building that it was giving error :codelift.cpp(4): fatal error C1083: Cannot open include file: 'filters.h': No such file or directory

header files

@mohan585
Copy link
Author

mohan585 commented Aug 25, 2021

cdmapi extension source code had uploaded, you can build the windows version by yourself

Thanks bro. But While building that it was giving error :codelift.cpp(4): fatal error C1083: Cannot open include file: 'filters.h': No such file or directory

header files

add all header files and while building the error was :LINK : fatal error LNK1181: cannot open input file 'libcryptopp.a'
can you figure out this or solution.

@T3rry7f
Copy link
Owner

T3rry7f commented Aug 25, 2021

cdmapi extension source code had uploaded, you can build the windows version by yourself

Thanks bro. But While building that it was giving error :codelift.cpp(4): fatal error C1083: Cannot open include file: 'filters.h': No such file or directory

header files

add all header files and while building the error was :LINK : fatal error LNK1181: cannot open input file 'libcryptopp.a'
can you figure out this or solution.

just complie the libcryptopp.a static library from here

@xhlove
Copy link

xhlove commented Aug 25, 2021

直接编译cryptopp成库文件,然后setup.py里面直接引用可行吗

@T3rry7f
Copy link
Owner

T3rry7f commented Aug 25, 2021

直接编译cryptopp成库文件,然后setup.py里面直接引用可行吗

windows平时很少用也没装cygwin64就懒得编了,直接生成静态库引用应该就可以了

@mohan585
Copy link
Author

I am getting this error after adding libcryptopp.a

pywv
pywv1

@mohan585
Copy link
Author

Any solution for the above error

@T3rry7f
Copy link
Owner

T3rry7f commented Aug 25, 2021

Any solution for the above error

Updated

@xhlove
Copy link

xhlove commented Aug 25, 2021

cdmapi.cp37-win_amd64.zip

3.7.4下编译了一个

编译过程

  • 配置vs环境
  • 下载cryptopp850源代码,编译release版本生成lib,复制到cdmapi目录
  • setup.py修改extra_objects = ['cryptlib.lib']
  • 将cryptopp850的头文件、原guesser项目的wasm_src的头文件放到cdmapi下面一起,也可以直接全部将源代码复制过来,省事儿
  • 执行编译命令python setup.py build_ext --inplace
  • 在cdmapi目录下会生成pyd,注意不是build目录下

不过在3.8.5上编译暂时没有成功,如果后面成功会补充上来

image

3.8.5下编译也成功了,vs编译cryptlib的时候选/MD

LE4ZCFT1U@)0E92EF_O@06J

cdmapi.cp38-win_amd64.zip

@mohan585
Copy link
Author

mohan585 commented Aug 25, 2021

what are the errors you faced on when compiling for 3.8.5. i am trying for 3.9.1 i got linking errors

@mohan585
Copy link
Author

Compilation under 3.9.1 and 3.9.6 is also successful

3.9.1
cdmapi.cp39-win_amd64.zip

3.9.6
cdmapi.cp3.9.6-win_amd64_.zip

@YFTX2015
Copy link

How to use cdmapi.cp39-win_amd64.pyd?

@MythodeaLoL
Copy link

How to use cdmapi.cp39-win_amd64.pyd? @YFTX2015

compile or download the above files for your version of python

rename to cdmapi.pyd
then use the import cdmapi

in case of error check your installed python version.

@YFTX2015
Copy link

Is this usefull for tencent drm video?For example, '全职法师第5季超前点播'

@myrbrazz
Copy link

myrbrazz commented Aug 27, 2021

Please update the chrome_2209 CDM private key...

@NiKoCZ89
Copy link

NiKoCZ89 commented Aug 27, 2021

this l1 cdm ain;t work lol

@09kkthxbb
Copy link

Hi. How do I use the pywidevineX in Linux?

I've already installed python 3.9.6 and everything from the requirements.txt, and tqdm but I'm still getting this error

Screenshot from 2021-08-28 10-18-42

@mohan585
Copy link
Author

mohan585 commented Aug 28, 2021

Is vmp possible with pywidevinex ?

"downstreamReason":"vmp_validation_required","errorCode":"PRS.Dependency.DRM.Widevine.HdContentNotAllowed.VmpValidationRequired"

I am getting this error. Any solution

@zackmark29
Copy link

Hi. How do I use the pywidevineX in Linux?

I've already installed python 3.9.6 and everything from the requirements.txt, and tqdm but I'm still getting this error

Screenshot from 2021-08-28 10-18-42

You don't actually need tqdm. Just comment that line 4 from wvdecrypt.py

@jesshub
Copy link

jesshub commented Sep 13, 2021

For Mac - 3.9.7 compiled
cdmapi.cpython-39-darwin.so.zip

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants