VideoHelp Forum




+ Reply to Thread
Results 1 to 9 of 9
  1. I try to follow the guide for decrypt the video but i could not do it. Some one can help me to get a download link o something?
    https://mediasetinfinity.mediaset.it/video/tg4/edizione-ore-1900-dell1-giugno_F312997901030601

    Ty all
    Quote Quote  
  2. Member aqzs's Avatar
    Join Date
    Mar 2024
    Location
    Paris
    Search Comp PM
    Originally Posted by sanchiel View Post
    I try to follow the guide for decrypt the video but i could not do it. Some one can help me to get a download link o something?
    https://mediasetinfinity.mediaset.it/video/tg4/edizione-ore-1900-dell1-giugno_F312997901030601

    Ty all
    pssh :
    Code:
    AAAAU3Bzc2gAAAAA7e+LqXnWSs6jyCfc1R0h7QAAADMIARIQv8HPPbtTrZPzlEpq1iNCBxoNYW1hem9udHZjcmltZSIIdGFtX3Rlc3QqAlNEMgA=
    key :
    Code:
    bfc1cf3dbb53ad93f3944a6ad6234207:aee3b27c8899476d3c092ef0e073e97d
    command used :
    Code:
     N_m3u8DL-RE "https://vod06.msf.cdn.mediaset.net/farmunica/2024/06/1595221_18fd4f7e6ed645/dashrcenc/hr_wv_mpl.mpd" --key bfc1cf3dbb53ad93f3944a6ad6234207:aee3b27c8899476d3c092ef0e073e97d -M format=mkv --save-name "Edizione ore 19.00 dell'1 giugno"
    Your file : https://www.swisstransfer.com/d/c0ca0846-8754-4d02-b352-9b53e33bc84a
    Last edited by aqzs; 3rd Jun 2024 at 16:26. Reason: upload link
    Quote Quote  
  3. Many thanks, with the info you gave me I will try to download it also to try to understand better
    Quote Quote  
  4. Member aqzs's Avatar
    Join Date
    Mar 2024
    Location
    Paris
    Search Comp PM
    Originally Posted by sanchiel View Post
    can i ask your help for this one to? https://mediasetinfinity.mediaset.it/video/tg4/edizione-ore-1200-dell1-giugno_F312997901030501

    sorry i just wrong link before ^^
    pssh : I figured out that the pssh is useless so I used :
    Code:
    AAAAMnBzc2gAAAAA7e+LqXnWSs6jyCfc1R0h7QAAABISEAAAAAAAAAAAAAAAAAAAAAA=
    key :
    Code:
    06d881326a23fa7da1bed59caf234161:bbeed8e6294212727c586e907c339530
    command used :
    Code:
    N_m3u8DL-RE "https://vod06.msf.cdn.mediaset.net/farmunica/2024/06/1595214_18fd357a096f89/dashrcenc/hr_wv_mpl.mpd" --key 06d881326a23fa7da1bed59caf234161:bbeed8e6294212727c586e907c339530 -M format=mkv --save-name "Edizione ore 12.00 dell'1 giugno"
    Your file : https://www.swisstransfer.com/d/ed7a52e7-2396-41b6-b89b-f235b5ff73f2
    Last edited by aqzs; 3rd Jun 2024 at 16:44.
    Quote Quote  
  5. You've been very kind!
    Quote Quote  
  6. Member aqzs's Avatar
    Join Date
    Mar 2024
    Location
    Paris
    Search Comp PM
    I made this script :
    HTML Code:
    import requests
    import xml.etree.ElementTree as ET
    import re
    from pywidevine.cdm import Cdm
    from pywidevine.device import Device
    from pywidevine.pssh import PSSH
    
    def getinfos(ID):
        params = (('form', 'cjson'),('httpError', 'true'),)
        data = requests.get(f'https://feed.entertainment.tv.theplatform.eu/f/PR1GhC/mediaset-prod-all-programs-v2/guid/-/{ID}', params=params).json()
        publicUrl = data['media'][-1]['publicUrl']
        name = data['title']
        # print('publicUrl: ', publicUrl)
    
        params = (('format', 'SMIL'),('formats', 'MPEG-DASH'),('assetTypes', 'HR,browser,widevine,geoIT|geoNo:HR,browser,geoIT|geoNo:SD,browser,widevine,geoIT|geoNo:SD,browser,geoIT|geoNo:SS,browser,widevine,geoIT|geoNo:SS,browser,geoIT|geoNo'),('balance', 'true'),('auto', 'true'),('tracking', 'true'),('delivery', 'Streaming'),)
        response = requests.get(publicUrl, params=params)
        root = ET.fromstring(response.text)
        for ref in root.findall('.//{http://www.w3.org/2005/SMIL21/Language}switch/{http://www.w3.org/2005/SMIL21/Language}ref'):
            mpd_url = ref.attrib['src']
        # print(mpd_url)
    
        pid_value =''
        for param in root.findall('.//{http://www.w3.org/2005/SMIL21/Language}switch/{http://www.w3.org/2005/SMIL21/Language}ref/{http://www.w3.org/2005/SMIL21/Language}param'):
            pid_match = re.search(r'pid=([^\|]+)', param.attrib['value'])
            if pid_match:
                pid_value = pid_match.group(1)
    
        # print('pid: ', pid_value)
    
        pssh = 'AAAAMnBzc2gAAAAA7e+LqXnWSs6jyCfc1R0h7QAAABISEAAAAAAAAAAAAAAAAAAAAAA='
        pssh = PSSH(pssh)
        params = (
            ('releasePid', pid_value),
            ('account', f'http://access.auth.theplatform.com/data/Account/{ACCOUNTID}'),
            ('schema', '1.0'),
            ('token', TOKEN),
        )
        lic_url = 'https://widevine.entitlement.theplatform.eu/wv/web/ModularDrm/getRawWidevineLicense'
    
        device = Device.load(DEVICEPATH)
        cdm = Cdm.from_device(device)
        session_id = cdm.open()
        challenge = cdm.get_license_challenge(session_id, pssh)
        licence = requests.post(lic_url, data=challenge, params=params)
        licence.raise_for_status()
        cdm.parse_license(session_id, licence.content)
        keys = []
        for key in cdm.get_keys(session_id):
            if key.type=='CONTENT':
                keys.append(f"{key.kid.hex}:{key.key.hex()}")
        cdm.close(session_id)
        return keys, mpd_url, name
    
    DEVICEPATH = "device.wvd"
    ACCOUNTID = '' (10 numbers)
    TOKEN = '' (can be found in widevine request)
    
    LINK = input('page url: ')
    ID = LINK.split('_')[-1]
    keys, mpd_url, name = getinfos(ID)
    
    print(f"""N_m3u8DL-RE "{mpd_url}" --save-name "{name}" --select-video best --select-audio all --select-subtitle all -mt -M format=mkv  --log-level OFF --key """ + ' --key '.join(keys))
    ex :
    HTML Code:
    page url: https://mediasetinfinity.mediaset.it/video/tg4/edizione-ore-1200-dell1-giugno_F312997901030501
    N_m3u8DL-RE "https://vod06.msf.cdn.mediaset.net/farmunica/2024/06/1595214_18fd357a096f89/dashrcenc/hr_wv_mpl.mpd" --save-name "Edizione ore 12.00 dell'1 giugno" --select-video best --select-audio all --select-subtitle all -mt -M format=mkv  --log-level OFF --key 06d881326a23fa7da1bed59caf234161:bbeed8e6294212727c586e907c339530
    HTML Code:
    page url: https://mediasetinfinity.mediaset.it/video/tg4/edizione-ore-1900-dell1-giugno_F312997901030601
    N_m3u8DL-RE "https://vod06.msf.cdn.mediaset.net/farmunica/2024/06/1595221_18fd4f7e6ed645/dashrcenc/hr_wv_mpl.mpd" --save-name "Edizione ore 19.00 dell'1 giugno" --select-video best --select-audio all --select-subtitle all -mt -M format=mkv  --log-level OFF --key bfc1cf3dbb53ad93f3944a6ad6234207:aee3b27c8899476d3c092ef0e073e97d
    Quote Quote  
  7. hr_wv_mpl.mpd hr = High Resolution = 720p
    hd_wv_mpl.mpd hd = High Definition = 1080p

    change the letter and you get 1080p
    Quote Quote  
  8. Feels Good Man 2nHxWW6GkN1l916N3ayz8HQoi's Avatar
    Join Date
    Jan 2024
    Location
    Pepe Island
    Search Comp PM
    If you have your own cdm, you can use this. It searches automatically for the mpd with highest quality.
    Code:
    python widefrog.py "https://mediasetinfinity.mediaset.it/video/tg4/edizione-ore-1200-dell1-giugno_F312997901030501"
    Last edited by 2nHxWW6GkN1l916N3ayz8HQoi; 4th Jun 2024 at 02:33.
    --[----->+<]>.++++++++++++.---.--------.
    [*drm mass downloader: widefrog*]~~~~~~~~~~~[*how to make your own mass downloader: guide*]
    Quote Quote  



Similar Threads

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