VideoHelp Forum




+ Reply to Thread
Results 1 to 9 of 9
  1. Hello everyone!

    As an introduction, I want to tell you that I spent several hours experimenting after reading various articles on the forum and other sites.

    This concerns the Auvio platform (accessible for free with an account in Belgium) - https://auvio.rtbf.be/emission/trentenaires-24976.

    When I look at the HTTP requests, I was able to find the MPD file.
    I was able to (I think) find the license file.
    And in the MPD file, I extracted the PSSH string.

    On this website, https://cdrm-project.com, I entered the information, but I'm getting an "init data" error.

    Could you please indicate my mistake or what I could have done to obtain the encryption keys (there are 24 episodes in the second season)?

    Thank you for already taking the time to read me!

    Thanks
    Quote Quote  
  2. Member aqzs's Avatar
    Join Date
    Mar 2024
    Location
    Paris
    Search Comp PM
    Originally Posted by stef157 View Post
    but I'm getting an "init data" error.

    Could you please indicate my mistake or what I could have done to obtain the encryption keys (there are 24 episodes in the second season)?
    Here is the key for episode n°1 : --key 08da377b4de048fca343bc3cc92d02b8:20503f4148a274235 20107437421a917
    And here the link for your episode : https://www.transfernow.net/dl/20240422TKYIELOy.
    To obtain the key you need a CDM (read sticky threads how to obtain one with android emulator or grab one from the forum) and you can use the following script :

    Code:
    from pywidevine.cdm import Cdm
    from pywidevine.device import Device
    from pywidevine.pssh import PSSH
    import requests
    
    import requests
    
    headers = {'accept': '*/*', 'accept-language': 'fr-FR,fr;q=0.9', 'origin': 'https://auvio.rtbf.be', 'priority': 'u=1, i',  'referer': 'https://auvio.rtbf.be/', 'sec-ch-ua': '"Chromium";v="124", "Brave";v="124", "Not-A.Brand";v="99"', 'sec-ch-ua-mobile': '?0', 'sec-ch-ua-platform': '"macOS"', 'sec-fetch-dest': 'empty', 'sec-fetch-mode': 'cors', 'sec-fetch-site': 'cross-site', 'sec-gpc': '1', 'user-agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36',}
    
    params = (
        ('contentId', CONTENTID),
        ('keyId', KEYID),
        ('ls_session', TOKEN),
    )
    
    pssh = input("PSSH? ")
    pssh = PSSH(pssh)
    lic_url = 'https://rbm-rtbf.live.ott.irdeto.com/licenseServer/widevine/v1/rbm-rtbf/license'
    
    device = Device.load(r"device.wvd")
    cdm = Cdm.from_device(device)
    session_id = cdm.open()
    challenge = cdm.get_license_challenge(session_id, pssh)
    licence = requests.post(lic_url, headers=headers, params=params, data=challenge)
    licence.raise_for_status()
    cdm.parse_license(session_id, licence.content)
    for key in cdm.get_keys(session_id):
        if key.type=='CONTENT':
            print(f"\n--key {key.kid.hex}:{key.key.hex()}")
    cdm.close(session_id)
    You need the replace device.wvd with your own one and change CONTENTID, KEYID, TOKEN that can be found in the licence request :
    Image
    [Attachment 78546 - Click to enlarge]


    I could make a script to do all the work but I don't have time tonight (send me a pm if you want that I make one)
    Quote Quote  
  3. Cdrm-project actually worked with it. You only need to input PSSH, which in this case is:
    Code:
    AAAAXHBzc2gAAAAA7e+LqXnWSs6jyCfc1R0h7QAAADwIARIQCNo3e03gSPyjQ7w8yS0CuBoIdXNwLWNlbmMiGENObzNlMDNnU1B5alE3dzh5UzBDdUE9PSoAMgA=
    and license url:
    Code:
    https://rbm-rtbf.live.ott.irdeto.com/licenseServer/widevine/v1/rbm-rtbf/license?contentId=3026178_6BA97Bb&keyId=08da377b-4de0-48fc-a343-bc3cc92d02b8&ls_session=eyJ0....truncated
    No headers needed.

    Here's the download commands for all the episodes:
    Code:
    N_m3u8DL-RE -M format=mkv --auto-select --use-shaka-packager --key 08da377b4de048fca343bc3cc92d02b8:20503f4148a27423520107437421a917 "https://c9851ec-az-westeurope-fsly.cdn.redbee.live/rtbf/auvio/assets/3026178_6BA97Bb/materials/FSraT3c1CS_6BA97Bb/vod-idx-4.ism/.mpd" --save-name "Trentenaires S01E01 - Prendre RDV chez gyneco"
    N_m3u8DL-RE -M format=mkv --auto-select --use-shaka-packager --key 476e963669474bafbb521f2078f445b3:8925ebd5d28920c1c7a41bbf572dba38 "https://c9851ec-az-westeurope-fsly.cdn.redbee.live/rtbf/auvio/assets/3026179_6BA97Bb/materials/yd347JII15_6BA97Bb/vod-idx-6.ism/.mpd" --save-name "Trentenaires S01E02 - Peux-tu acheter de quoi faire sandwich aux enfants"
    N_m3u8DL-RE -M format=mkv --auto-select --use-shaka-packager --key 8fe535fdae324496a0b6b0e44aea20cf:cedfbf0daeaa9e360c2085dddf092e20 "https://c9851ec-az-westeurope-fsly.cdn.redbee.live/rtbf/auvio/assets/3026740_6BA97Bb/materials/AOgTzNq56A_6BA97Bb/vod-idx-4.ism/.mpd" --save-name "Trentenaires S01E03 - Certainement pas Aless comme marraine"
    N_m3u8DL-RE -M format=mkv --auto-select --use-shaka-packager --key 52d674a5af76470cbc19ca11c72755c7:8743cbab10782a827ddd6882c3fb490f "https://c9851ec-az-westeurope-fsly.cdn.redbee.live/rtbf/auvio/assets/3026732_6BA97Bb/materials/lmxvfTAwXM_6BA97Bb/vod-idx-4.ism/.mpd" --save-name "Trentenaires S01E04 - Dîner chez mes vieux à midi... courage !"
    N_m3u8DL-RE -M format=mkv --auto-select --use-shaka-packager --key c0231e2d5b11492b98b897a85f668ca9:43923be67da9d36c03ecb47d5794c47f "https://c9851ec-az-westeurope-fsly.cdn.redbee.live/rtbf/auvio/assets/3026733_6BA97Bb/materials/z7jtnOTQZQ_6BA97Bb/vod-idx-4.ism/.mpd" --save-name "Trentenaires S01E05 - Courses pizzas pâte sauce tomate olives PAS dananas !"
    N_m3u8DL-RE -M format=mkv --auto-select --use-shaka-packager --key 22baa3bb3c2145a19b81a4b7c255d197:83f1c535ca2fd341b4c3652cfb867306 "https://c9851ec-az-westeurope-fsly.cdn.redbee.live/rtbf/auvio/assets/3026741_6BA97Bb/materials/wdgycbK3tV_6BA97Bb/vod-idx-8.ism/.mpd" --save-name "Trentenaires S01E06 - Vince noublie pas le RDV don de sang !"
    N_m3u8DL-RE -M format=mkv --auto-select --use-shaka-packager --key 7c787a4907564cd39b8093ae3cffc91e:288618317360067ae5e79b9612b2aa7e "https://c9851ec-az-westeurope-fsly.cdn.redbee.live/rtbf/auvio/assets/3026754_6BA97Bb/materials/w695UmTzOR_6BA97Bb/vod-idx-8.ism/.mpd" --save-name "Trentenaires S01E07 - RDV Diego esthéticienne"
    N_m3u8DL-RE -M format=mkv --auto-select --use-shaka-packager --key c5c1a113c878457498f369a588354d72:f0b8cbe9d5e538276489f73a0348fed0 "https://c9851ec-az-westeurope-fsly.cdn.redbee.live/rtbf/auvio/assets/3026744_6BA97Bb/materials/oWTBvhyP3Q_6BA97Bb/vod-idx-4.ism/.mpd" --save-name "Trentenaires S01E08 - Mes cilles ti 1"
    N_m3u8DL-RE -M format=mkv --auto-select --use-shaka-packager --key ee2b8ae7d19845ada6bf9fedd507c88c:890af2ec536ff0b23995fd830575ff8e "https://c9851ec-az-westeurope-fsly.cdn.redbee.live/rtbf/auvio/assets/3026745_6BA97Bb/materials/4xCE4x8w4Y_6BA97Bb/vod-idx-8.ism/.mpd" --save-name "Trentenaires S01E09 - RDV 16h00 chez So et Vince VACANCES !"
    N_m3u8DL-RE -M format=mkv --auto-select --use-shaka-packager --key ae77e65bccde4ab3b9ee79fe271c74be:bb5b45e3dd6699a4cb3d86a27cb5ff00 "https://c9851ec-az-westeurope-fsly.cdn.redbee.live/rtbf/auvio/assets/3026739_6BA97Bb/materials/yGWnTTCuEq_6BA97Bb/vod-idx-4.ism/.mpd" --save-name "Trentenaires S01E10 - Fille ou garçon"
    N_m3u8DL-RE -M format=mkv --auto-select --use-shaka-packager --key 9df2aba6f34c43ddbf12dace2ce67f8f:db7f220e13fdd097c5d92d85273222a5 "https://c9851ec-az-westeurope-fsly.cdn.redbee.live/rtbf/auvio/assets/3026731_6BA97Bb/materials/RHSawF2c9a_6BA97Bb/vod-idx-8.ism/.mpd" --save-name "Trentenaires S01E11 - Trouver une excuse pour demain soir"
    N_m3u8DL-RE -M format=mkv --auto-select --use-shaka-packager --key 39ca8b550591432386b7c2c622d490c0:9f76842ecc93b7f9551369e621311092 "https://c9851ec-az-westeurope-fsly.cdn.redbee.live/rtbf/auvio/assets/3026746_6BA97Bb/materials/3ahISDAs7W_6BA97Bb/vod-idx-4.ism/.mpd" --save-name "Trentenaires S01E12 - WEEK-END. Merci les amis"
    N_m3u8DL-RE -M format=mkv --auto-select --use-shaka-packager --key 087f168ed0624fa49a06580d40961d62:95f60c7dbd1b8ce1f807534f1a847c40 "https://c9851ec-az-westeurope-fsly.cdn.redbee.live/rtbf/auvio/assets/3026742_6BA97Bb/materials/lmtuzYXxed_6BA97Bb/vod-idx-4.ism/.mpd" --save-name "Trentenaires S01E13 - Samedi journée détente"
    N_m3u8DL-RE -M format=mkv --auto-select --use-shaka-packager --key 2b7127bb69d84e05a707047c86b422df:b4ff2fda068bf67d78fcc9d20f2f15f3 "https://c9851ec-az-westeurope-fsly.cdn.redbee.live/rtbf/auvio/assets/3026743_6BA97Bb/materials/FstmZ7tiS6_6BA97Bb/vod-idx-8.ism/.mpd" --save-name "Trentenaires S01E14 - Mes cilles ti 2"
    N_m3u8DL-RE -M format=mkv --auto-select --use-shaka-packager --key a119df8adba1414a9e9ae7287154b280:70b6c677a3d61ae35e529fe9f7d10ef1 "https://c9851ec-az-westeurope-fsly.cdn.redbee.live/rtbf/auvio/assets/3026738_6BA97Bb/materials/knMd5sKUbh_6BA97Bb/vod-idx-4.ism/.mpd" --save-name "Trentenaires S01E15 - Merci pour la confiance"
    N_m3u8DL-RE -M format=mkv --auto-select --use-shaka-packager --key de32456fb325493d9f08602b3914be7e:ca9f768c703109e5409b68da5fce9241 "https://c9851ec-az-westeurope-fsly.cdn.redbee.live/rtbf/auvio/assets/3026748_6BA97Bb/materials/g5f9k7Azzf_6BA97Bb/vod-idx-4.ism/.mpd" --save-name "Trentenaires S01E16 - Call me ! Ca urge"
    N_m3u8DL-RE -M format=mkv --auto-select --use-shaka-packager --key a082c554ca594b2998546569bffa6e9c:a04209322efa63b96537c783cd7ef5c4 "https://c9851ec-az-westeurope-fsly.cdn.redbee.live/rtbf/auvio/assets/3026734_6BA97Bb/materials/vhm2CDU1oy_6BA97Bb/vod-idx-8.ism/.mpd" --save-name "Trentenaires S01E17 - Noublie pas RDV chez le psy"
    N_m3u8DL-RE -M format=mkv --auto-select --use-shaka-packager --key 91e1012036b54ec49f0a66e07c470b2e:66968204376f4ac8d4d5274bb90ffc17 "https://c9851ec-az-westeurope-fsly.cdn.redbee.live/rtbf/auvio/assets/3026753_6BA97Bb/materials/jiokta2HL1_6BA97Bb/vod-idx-4.ism/.mpd" --save-name "Trentenaires S01E18 - Annif Lucas"
    N_m3u8DL-RE -M format=mkv --auto-select --use-shaka-packager --key 3da5b3fa5d5b42eeb2e8747dc53c931a:624a934b55e24f42839027d94a5358ab "https://c9851ec-az-westeurope-fsly.cdn.redbee.live/rtbf/auvio/assets/3026755_6BA97Bb/materials/fxFZOpKkXL_6BA97Bb/vod-idx-4.ism/.mpd" --save-name "Trentenaires S01E19 - Achats rentrée des classes"
    N_m3u8DL-RE -M format=mkv --auto-select --use-shaka-packager --key 834032c8d96742e7853ab4b2c318f5a8:f1ae0e0af3a891ccf1ef05c67155b973 "https://c9851ec-az-westeurope-fsly.cdn.redbee.live/rtbf/auvio/assets/3026759_6BA97Bb/materials/D0ZGkCbn9G_6BA97Bb/vod-idx-4.ism/.mpd" --save-name "Trentenaires S01E20 - Note à moi-même tout finit par se savoir"
    N_m3u8DL-RE -M format=mkv --auto-select --use-shaka-packager --key 72d761cc36df4b8fa367a75f75c244c0:8727ee163c0d5937e1b04531480e6803 "https://c9851ec-az-westeurope-fsly.cdn.redbee.live/rtbf/auvio/assets/3026763_6BA97Bb/materials/3xN4w2OQrG_6BA97Bb/vod-idx-8.ism/.mpd" --save-name "Trentenaires S01E21 - Rendre livre à la bibliothèque"
    N_m3u8DL-RE -M format=mkv --auto-select --use-shaka-packager --key d678cbfcd65849c295ea55a7e4dc2e4e:b2e83015dc8806900d60dd4288587990 "https://c9851ec-az-westeurope-fsly.cdn.redbee.live/rtbf/auvio/assets/3026764_6BA97Bb/materials/wer3GfloEM_6BA97Bb/vod-idx-4.ism/.mpd" --save-name "Trentenaires S01E22 - Sorry"
    N_m3u8DL-RE -M format=mkv --auto-select --use-shaka-packager --key 3b0fdd9ba1e34cb3a88b32deb5fb542b:0b470aeb69ce38bb050e801469927cbf "https://c9851ec-az-westeurope-fsly.cdn.redbee.live/rtbf/auvio/assets/3026771_6BA97Bb/materials/22tmPoS2GD_6BA97Bb/vod-idx-4.ism/.mpd" --save-name "Trentenaires S01E23 - Enzo - 4 ans déjà"
    N_m3u8DL-RE -M format=mkv --auto-select --use-shaka-packager --key fc8e34bd54ee4b3fb028b7e6bb32b552:604bd18e524ff690f373650ba21b3b6f "https://c9851ec-az-westeurope-fsly.cdn.redbee.live/rtbf/auvio/assets/3026762_6BA97Bb/materials/hfSXOgebd9_6BA97Bb/vod-idx-4.ism/.mpd" --save-name "Trentenaires S01E24 - La bande sagrandit"
    Originally Posted by aqzs View Post
    Code:
    params = (
        ('contentId', CONTENTID),
        ('keyId', KEYID),
        ('ls_session', TOKEN),
    )
    You need the replace device.wvd with your own one and change CONTENTID, KEYID, TOKEN that can be found in the licence request :
    Image
    [Attachment 78546 - Click to enlarge]
    But why would you pass the CONTENTID, KEYID, and TOKEN parameters separately like that when you could just take input for the whole license url, which already contains all of them? Seems like a clunky way to do it in my eyes, unless you were to expand the code to process urls in batch (or to have the page url as input).
    Quote Quote  
  4. Last edited by Matthew90; 31st May 2024 at 17:27.
    Quote Quote  
  5. Hello white_snake,
    Hello aqzs,

    Thanks for you help !

    I understand what's my error with CDRM - I don't take the "good" PSSH…
    I've tried with the correct one and it's OK, so I'll do for the other one.

    @white_snake, all the link is the first season - not the second one.

    @white_snake and @aqzs, it seem that there is a modification on the files.
    Now, each MPD doesn't content the PSSH and the license work with "OPTION" method and not anymore with a "POST".

    The name of the file is not licence anymore, but play.

    Could you confirme that it's correct and not just I'm doing it bad ?

    Thanks
    Last edited by stef157; 23rd Apr 2024 at 07:15. Reason: More informations
    Quote Quote  
  6. Originally Posted by stef157 View Post
    @white_snake, all the link is the first season - not the second one.
    What are you trying to say? I don't understand.

    Originally Posted by stef157 View Post
    @white_snake and @aqzs, it seem that there is a modification on the files.
    Now, each MPD doesn't content the PSSH and the license work with "OPTION" method and not anymore with a "POST".

    The name of the file is not licence anymore, but play.

    Could you confirme that it's correct and not just I'm doing it bad ?

    Thanks
    Nope, everything is exactly the same as I described yesterday. You seem a little confused, make sure to read the sticky threads in this section of the forum to have a better understanding of how this works.
    Quote Quote  
  7. Originally Posted by white_snake View Post
    Originally Posted by stef157 View Post
    @white_snake, all the link is the first season - not the second one.
    What are you trying to say? I don't understand.
    What I meant is that all the links you gave me are from the first season and not the second season.


    Originally Posted by white_snake View Post
    Originally Posted by stef157 View Post
    @white_snake and @aqzs, it seem that there is a modification on the files.
    Now, each MPD doesn't content the PSSH and the license work with "OPTION" method and not anymore with a "POST".

    The name of the file is not licence anymore, but play.

    Could you confirme that it's correct and not just I'm doing it bad ?

    Thanks
    Nope, everything is exactly the same as I described yesterday. You seem a little confused, make sure to read the sticky threads in this section of the forum to have a better understanding of how this works.
    Ok, I'm definitely doing this wrong.
    Are you able and kind enough to extract the episodes of the second season for me?

    Thank you for implication and help
    Quote Quote  
  8. Originally Posted by stef157 View Post
    What I meant is that all the links you gave me are from the first season and not the second season.

    Ok, I'm definitely doing this wrong.
    Are you able and kind enough to extract the episodes of the second season for me?

    Thank you for implication and help
    I thought you meant you needed the first season this whole time, my bad.

    Then you're right about these links being different, but the good news is that the second season videos have no DRM at all, you can just grab the .mpd url and feed it to N_m3u8DL-RE or any other downloader:
    Code:
    N_m3u8DL-RE -M format=mkv --auto-select https://c9851ec-az-westeurope-fsly.cdn.redbee.live/rtbf/auvio/assets/3173922_6BA97Bb/materials/W2HVAdyupd_6BA97Bb/vod-idx-4.ism/.mpd
    The Stream Detector browser extension might be helpful here or you could even try to use yt-dlp and give it the page url directly, maybe with cookies:
    Code:
    yt-dlp --cookies-from-browser chrome https://auvio.rtbf.be/media/trentenaires-trentenaires-s02-3173922
    Quote Quote  
  9. Great, thank you for the information and the time taken to explain everything to me.
    It is very pleasant.
    Quote Quote  



Similar Threads

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