VideoHelp Forum




+ Reply to Thread
Results 1 to 25 of 25
  1. Member
    Join Date
    Nov 2022
    Location
    Brazil
    Search Comp PM
    Hello

    I managed to find the PSSH and the license link, but when generating the key it is returning an error (Code 500).

    Can you generate a key and decrypt normally for this link?

    https://v.youku.tv/v_show/id_XNTk1MzE2MzA1Ng==.html?s=afab1c1855394aa2988a&spm=a2hje.1...k1MzE2MzA1Ng==

    PSSH: AAAASnBzc2gAAAAA7e+LqXnWSs6jyCfc1R0h7QAAACoSENdyuh oYZA3pvW1zPiLDwCUSENdyuhoYZA3pvW1zPiLDwCVI88aJmwY=
    License sever: https://drm-license.youku.tv/ups/drm.json

    m3u8: https://pl-ali.youku.tv/playlist/m3u8?vid=XNTk1MzE2MzA1Ng%3D%3D&type=cmfv4hd2&ups_clie...p_key=34300712

    Obs: The first few minutes of the video is not encrypted.


    Who can help me thank you.
    Quote Quote  
  2. Member
    Join Date
    Nov 2022
    Location
    Brazil
    Search Comp PM
    Were you able to decrypt with the information they passed you?
    Quote Quote  
  3. What tools are you using? Youku requires custom script and will not work with sites likes cdrm-project or getwvkeys.

    Code:
    --key d772ba1a18640de9bd6d733e22c3c025:0f0a8ddc6082e473bd35b011fa1203f9
    Quote Quote  
  4. nxhda
    Join Date
    Sep 2022
    Location
    United States
    Search Comp PM
    Originally Posted by stabbedbybrick View Post
    What tools are you using? Youku requires custom script and will not work with sites likes cdrm-project or getwvkeys.

    Code:
    --key d772ba1a18640de9bd6d733e22c3c025:0f0a8ddc6082e473bd35b011fa1203f9

    I don't know how to write a script, can you guide me
    Quote Quote  
  5. Member
    Join Date
    Nov 2022
    Location
    Brazil
    Search Comp PM
    Originally Posted by stabbedbybrick View Post
    What tools are you using? Youku requires custom script and will not work with sites likes cdrm-project or getwvkeys.

    Code:
    --key d772ba1a18640de9bd6d733e22c3c025:0f0a8ddc6082e473bd35b011fa1203f9
    I'm using the EME script to get PSSH and firefox to find that license link I put in the above post.

    To generate the key I use a cdm with the WKS-KEYS tool.

    I don't know if the PSSH and License Link are right or wrong.

    If you can help me I would be grateful
    Last edited by andertjf; 17th Jun 2023 at 07:42.
    Quote Quote  
  6. Originally Posted by andertjf View Post
    I'm using the EME script to get PSSH and firefox to find that license link I put in the above post.

    To generate the key I use a cdm.

    I don't know if the PSSH and License Link are right or wrong.

    If you can help me I would be grateful
    maybe you didn't understand the words of stabbedbybrick: the question isn't right pssh or lic url, but need custom script to get your key ...
    Quote Quote  
  7. Member
    Join Date
    Nov 2022
    Location
    Brazil
    Search Comp PM
    Originally Posted by lomero View Post
    Originally Posted by andertjf View Post
    I'm using the EME script to get PSSH and firefox to find that license link I put in the above post.

    To generate the key I use a cdm.

    I don't know if the PSSH and License Link are right or wrong.

    If you can help me I would be grateful
    maybe you didn't understand the words of stabbedbybrick: the question isn't right pssh or lic url, but need custom script to get your key ...
    Thanks.

    In this case I am using the WKS-KEYS tool
    Quote Quote  
  8. ... and for WKS-KEYS tool need custom script

    does not work with l3.py
    Quote Quote  
  9. Member
    Join Date
    Nov 2022
    Location
    Brazil
    Search Comp PM
    Originally Posted by lomero View Post
    ... and for WKS-KEYS tool need custom script

    does not work with l3.py
    Can you help me how can I create it or where can I learn about it?
    Quote Quote  
  10. audio
    ffmpeg -user_agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36" -referer "https://v.youku.tv/" -i "https://valipl.cp31.ott.cibntv.net/6974CED0F7F3F71BB544D6390/07000000006455E13914C7D03743AAA06FEDE2-87CC-451A-95E2-E65C567EF7CA.m3u8?ccode=0597&duration=2595&expire= 18000&psid=4b0b8e2b82b214eaf925375557b86f6741346&u ps_client_netip=43471613&ups_ts=1687008151&ups_use rid=&apscid=&mnid=&rid=20000000F880FA96ABE788DB339 B010D8E911DD602000000&operate_type=1&umt=1&type=cm fv4hd2&utid=BKEUHTei4GUCAUNHFhPZ2HgH&vid=XNTk1MzE2 MzA1Ng%3D%3D&s=afab1c1855394aa2988a&t=f942294dfadd 6b&cug=2&bc=2&si=5&eo=1&ckt=5&m_onoff=0&vkey=Bd7ec 852c2bc985c26b68aa5384c0a22b&fms=66242518a17b753c& tr=2595&le=5fa82a8a9e9b465633a03bce6c7c3dc3&app_ke y=34300712&app_ver=9.3.14" -c copy "audio.ts"






    video
    ffmpeg -user_agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36" -referer "https://v.youku.tv/" -i "https://valipl.cp31.ott.cibntv.net/67747DE483A4B7211228D2CE8/0500CC00006455E1D22F2D3F8B69BBECB4DFE6-4A41-4659-BBAE-3AD7FB1E35D6.m3u8?ccode=0597&duration=2595&expire= 18000&psid=4b0b8e2b82b214eaf925375557b86f6741346&u ps_client_netip=43471613&ups_ts=1687008151&ups_use rid=&apscid=&mnid=&rid=20000000F50C7BC41E02E0D1D17 2E767B5A44C6E02000000&operate_type=1&umt=1&type=cm fv4hd2&utid=BKEUHTei4GUCAUNHFhPZ2HgH&vid=XNTk1MzE2 MzA1Ng%3D%3D&s=afab1c1855394aa2988a&t=f942294dfadd 6b&cug=2&bc=2&si=5&eo=1&ckt=5&m_onoff=0&vkey=B0bc2 5003a3d622af4164b17379521622&fms=ffe63516c2ef831f& tr=2595&le=f9ef85e9267cec00c2159d40fb7705b0&app_ke y=34300712&app_ver=9.3.14" -c copy "video.ts"





    Kindly download and mux.
    Quote Quote  
  11. Member
    Join Date
    Nov 2022
    Location
    Brazil
    Search Comp PM
    Originally Posted by jack_666 View Post
    audio
    ffmpeg -user_agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36" -referer "https://v.youku.tv/" -i "https://valipl.cp31.ott.cibntv.net/6974CED0F7F3F71BB544D6390/07000000006455E13914C7D03743AAA06FEDE2-87CC-451A-95E2-E65C567EF7CA.m3u8?ccode=0597&duration=2595&expire= 18000&psid=4b0b8e2b82b214eaf925375557b86f6741346&u ps_client_netip=43471613&ups_ts=1687008151&ups_use rid=&apscid=&mnid=&rid=20000000F880FA96ABE788DB339 B010D8E911DD602000000&operate_type=1&umt=1&type=cm fv4hd2&utid=BKEUHTei4GUCAUNHFhPZ2HgH&vid=XNTk1MzE2 MzA1Ng%3D%3D&s=afab1c1855394aa2988a&t=f942294dfadd 6b&cug=2&bc=2&si=5&eo=1&ckt=5&m_onoff=0&vkey=Bd7ec 852c2bc985c26b68aa5384c0a22b&fms=66242518a17b753c& tr=2595&le=5fa82a8a9e9b465633a03bce6c7c3dc3&app_ke y=34300712&app_ver=9.3.14" -c copy "audio.ts"






    video
    ffmpeg -user_agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36" -referer "https://v.youku.tv/" -i "https://valipl.cp31.ott.cibntv.net/67747DE483A4B7211228D2CE8/0500CC00006455E1D22F2D3F8B69BBECB4DFE6-4A41-4659-BBAE-3AD7FB1E35D6.m3u8?ccode=0597&duration=2595&expire= 18000&psid=4b0b8e2b82b214eaf925375557b86f6741346&u ps_client_netip=43471613&ups_ts=1687008151&ups_use rid=&apscid=&mnid=&rid=20000000F50C7BC41E02E0D1D17 2E767B5A44C6E02000000&operate_type=1&umt=1&type=cm fv4hd2&utid=BKEUHTei4GUCAUNHFhPZ2HgH&vid=XNTk1MzE2 MzA1Ng%3D%3D&s=afab1c1855394aa2988a&t=f942294dfadd 6b&cug=2&bc=2&si=5&eo=1&ckt=5&m_onoff=0&vkey=B0bc2 5003a3d622af4164b17379521622&fms=ffe63516c2ef831f& tr=2595&le=f9ef85e9267cec00c2159d40fb7705b0&app_ke y=34300712&app_ver=9.3.14" -c copy "video.ts"





    Kindly download and mux.

    Thanks Jack, I already have the files but my question is about decryption.
    Quote Quote  
  12. use stabbedbybrick key with mp4decrypt

    video
    Code:
    mp4decrypt --key d772ba1a18640de9bd6d733e22c3c025:0f0a8ddc6082e473bd35b011fa1203f9 video.mp4 video_dec.mp4
    audio
    Code:
    mp4decrypt --key d772ba1a18640de9bd6d733e22c3c025:0f0a8ddc6082e473bd35b011fa1203f9 audio.mp4a audio_dec.mp4a
    join with ffmpeg
    Code:
    ffmpeg.exe -i video_dec.mp4 -i audio_dec.mp4a -c copy final_video.mp4
    Quote Quote  
  13. Member
    Join Date
    Nov 2022
    Location
    Brazil
    Search Comp PM
    Originally Posted by lomero View Post
    use stabbedbybrick key with mp4decrypt

    video
    Code:
    mp4decrypt --key d772ba1a18640de9bd6d733e22c3c025:0f0a8ddc6082e473bd35b011fa1203f9 video.mp4 video_dec.mp4
    audio
    Code:
    mp4decrypt --key d772ba1a18640de9bd6d733e22c3c025:0f0a8ddc6082e473bd35b011fa1203f9 audio.mp4a audio_dec.mp4a
    join with ffmpeg
    Code:
    ffmpeg.exe -i video_dec.mp4 -i audio_dec.mp4a -c copy final_video.mp4
    Thanks

    I would like to learn about the script, I don't want to depend on others to generate the keys.
    I have other videos to decrypt, this was just an example I gave to learn about.

    If you can direct me where I might be learning about it I would be very grateful.
    Quote Quote  
  14. Originally Posted by NBA456017
    I don't know how to write a script, can you guide me
    Originally Posted by andertjf
    If you can help me I would be grateful
    In order to write a functioning script, you'd need to learn Python. At least if you're using Pywidevine. And that is completely up to you. I can, however, give you some pointers.

    Youku, and many other services, send and request information as JSON objects. If you look at the sticky post by A_n_g_e_l_a where she writes about this very thing, you'll see examples of what that might look like if you want to use WKS. You parse the data, generate your challenge, b64encode it, and insert it at the proper place. In many cases, the data is already in JSON, but in youku's case it comes as a series of key:value pairs. So you need to first parse it into JSON, and then insert your challenge at the proper dictionary key, which in this case is fittingly named ["licenseRequest"]. And then you send the request to the license server.

    And then you have to do the same thing for the response. It's generally a good idea to print out the steps along the way to see what's happening.

    And yes, your PSSH and license url are both correct.
    Quote Quote  
  15. Member
    Join Date
    Nov 2022
    Location
    Brazil
    Search Comp PM
    Originally Posted by stabbedbybrick View Post
    Originally Posted by NBA456017
    I don't know how to write a script, can you guide me
    Originally Posted by andertjf
    If you can help me I would be grateful
    In order to write a functioning script, you'd need to learn Python. At least if you're using Pywidevine. And that is completely up to you. I can, however, give you some pointers.

    Youku, and many other services, send and request information as JSON objects. If you look at the sticky post by A_n_g_e_l_a where she writes about this very thing, you'll see examples of what that might look like if you want to use WKS. You parse the data, generate your challenge, b64encode it, and insert it at the proper place. In many cases, the data is already in JSON, but in youku's case it comes as a series of key:value pairs. So you need to first parse it into JSON, and then insert your challenge at the proper dictionary key, which in this case is fittingly named ["licenseRequest"]. And then you send the request to the license server.

    And then you have to do the same thing for the response. It's generally a good idea to print out the steps along the way to see what's happening.

    And yes, your PSSH and license url are both correct.
    Thank you so much stabbedbybrick, I will try to understand better. Thanks again for the valuable tips.
    Quote Quote  
  16. Banned
    Join Date
    Apr 2022
    Location
    Hong Kong
    Search Comp PM
    I agree with @stabbedbybrick, in fact he has explained much of it.
    You need some python knowledge to create a customized script for Youku.
    Image
    [Attachment 71834 - Click to enlarge]


    and your key is
    Code:
    --key d772ba1a18640de9bd6d733e22c3c025:0f0a8ddc6082e473bd35b011fa1203f9
    However, I would like to say something that y'all didn't mention.
    You could use N_m3u8DL-RE to download and then decrypt the video stream and audio streams by using the command:
    Code:
    N_m3u8DL-RE.exe "https://pl-ali.youku.tv/playlist/m3u8?...&cmfvFileId=0500CC00006455E058A93C6BFA90C70D4A2E57-D07C-4D4E-B00B-E218A212DED5&cmfaFileId=07000000006455E00CB521711381F91C1A6C2A-800A-4E91-A651-AB86E9C9439C&..." --key d772ba1a18640de9bd6d733e22c3c025:0f0a8ddc6082e473bd35b011fa1203f9
    Last edited by CrymanChen; 19th Jun 2023 at 13:56. Reason: Added how to download & decrypt altogether.
    Quote Quote  
  17. Originally Posted by CrymanChen View Post
    I agree with @stabbedbybrick, in fact he has explained much of it.
    You need some python knowledge to create a customized script for Youku.
    Image
    [Attachment 71834 - Click to enlarge]


    and your key is
    Code:
    --key d772ba1a18640de9bd6d733e22c3c025:0f0a8ddc6082e473bd35b011fa1203f9
    However, I would like to say something that y'all didn't mention.
    You could use N_m3u8DL-RE to download and then decrypt the video stream and audio streams by using the command:
    Code:
    N_m3u8DL-RE.exe "https://pl-ali.youku.tv/playlist/m3u8?...&cmfvFileId=0500CC00006455E058A93C6BFA90C70D4A2E57-D07C-4D4E-B00B-E218A212DED5&cmfaFileId=07000000006455E00CB521711381F91C1A6C2A-800A-4E91-A651-AB86E9C9439C&..." --key d772ba1a18640de9bd6d733e22c3c025:0f0a8ddc6082e473bd35b011fa1203f9
    i used your method to download files from youkutv. but it seem like key doesn't work anymore and video still encrypted
    any help please
    Quote Quote  
  18. Banned
    Join Date
    Apr 2022
    Location
    Hong Kong
    Search Comp PM
    Then send the URL of the video you want to download, only in this way can we help you get the keys.
    Otherwise are you waiting for me to sort everything done for you?
    Quote Quote  
  19. Originally Posted by CrymanChen View Post
    Then send the URL of the video you want to download, only in this way can we help you get the keys.
    Otherwise are you waiting for me to sort everything done for you?
    i have to download videos for everyday . it would be great if you could sort everything for me.
    i will buy u a coffee ^_^. because i really need to know how to download from youku.
    i can use custom script . but to create the custom script i have zero knowledge of python.

    https://v.youku.tv/v_show/id_XNTk3NjE3MjE1Ng==.html?s=fddae7e0941b4d1283fb&spm=a2hje.1...k3NjE3MjE1Ng==
    Quote Quote  
  20. Member
    Join Date
    Dec 2021
    Location
    england
    Search Comp PM
    @lukhitt1992
    its only V.I.P member to view 1080p
    free 720p
    Code:
    50a842ea1654d8ec4008adf003535beb:6e1ea3691714f6a0bb7d2b691be78d92
    Quote Quote  
  21. Originally Posted by iamghost View Post
    its only V.I.P member to view it
    https://v.youku.tv/v_show/id_XNTk3NTM3NTU4OA==.html?s=fddae7e0941b4d1283fb&spm=a2hje.1...k3NTM3NTU4OA==

    this one is free.
    Quote Quote  
  22. Originally Posted by iamghost View Post
    @lukhitt1992
    its only V.I.P member to view 1080p
    free 720p
    Code:
    50a842ea1654d8ec4008adf003535beb:6e1ea3691714f6a0bb7d2b691be78d92

    video is still encrypted after using your key.

    N_m3u8DL-RE (Beta version) 20230618
    21:10:31.086 INFO : Loading URL: http://valipl10.cp31.ott.cibntv.net/697543F046C4471DF477E24D2/0500CC000064954EC1607873...&app_ver=9.4.0
    21:10:31.755 INFO : Content Matched: HTTP Live Streaming
    21:10:31.756 INFO : Parsing streams...
    21:10:31.757 ERROR: Failed to get KEY, ignore.: One or more errors occurred. (The 'skd' scheme is not supported.)
    21:10:31.760 WARN : Writing meta json
    21:10:31.762 INFO : Extracted, there are 1 streams, with 1 basic streams, 0 audio streams, 0 subtitle streams
    21:10:31.763 INFO : Vid *UNKNOWN Kbps | 217 Segments | ~45m20s
    21:10:31.763 WARN : An unrecognized encryption method is detected, binary merging is automatically enabled
    21:10:31.763 INFO : Selected streams:
    21:10:31.763 INFO : Vid *UNKNOWN Kbps | 217 Segments | ~45m20s
    21:10:31.763 WARN : Writing meta json
    21:10:31.765 INFO : Save Name: 0500CC000064954EC1607873AF7E2B1A03A8CB-CFD3-494B-A848-FBB4830F2793_2023-06-25_21-10-31
    21:10:31.766 INFO : Start downloading...Vid Kbps
    21:10:31.859 WARN : Type: cbcs
    21:10:31.860 WARN : PSSH(WV): EhB/9FtPbJK+bOhjt/pmEEYFEhB/9FtPbJK+bOhjt/pmEEYFSPPGiZsG
    21:10:31.861 WARN : KID: 7ff45b4f6c92be6ce863b7fa66104605
    21:10:31.862 WARN : Reading media info...
    21:10:31.881 INFO : NaN: Video, h264 (avc1), 1280x544
    21:10:41.134 INFO : Binary merging...
    21:10:41.211 INFO : Decrypting...
    21:10:41.213 INFO : Done
    Quote Quote  
  23. Banned
    Join Date
    Apr 2022
    Location
    Hong Kong
    Search Comp PM
    @iamghost

    Didn't know non-premium users could watch the 720p video.
    I only met the window which let me resubscribe to their plans.
    Quote Quote  
  24. Originally Posted by CrymanChen View Post
    @iamghost

    Didn't know non-premium users could watch the 720p video.
    I only met the window which let me resubscribe to their plans.
    U are right. Non- premium users can't watch the vip video.
    Still waiting for your help
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!