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
+ Reply to Thread
Results 1 to 9 of 9
-
-
pssh :
Code:AAAAU3Bzc2gAAAAA7e+LqXnWSs6jyCfc1R0h7QAAADMIARIQv8HPPbtTrZPzlEpq1iNCBxoNYW1hem9udHZjcmltZSIIdGFtX3Rlc3QqAlNEMgA=
Code:bfc1cf3dbb53ad93f3944a6ad6234207:aee3b27c8899476d3c092ef0e073e97d
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"
Last edited by aqzs; 3rd Jun 2024 at 16:26. Reason: upload link
-
Many thanks, with the info you gave me I will try to download it also to try to understand better
-
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=
Code:06d881326a23fa7da1bed59caf234161:bbeed8e6294212727c586e907c339530
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"
Last edited by aqzs; 3rd Jun 2024 at 16:44.
-
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))
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
-
hr_wv_mpl.mpd hr = High Resolution = 720p
hd_wv_mpl.mpd hd = High Definition = 1080p
change the letter and you get 1080p -
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*]
Similar Threads
-
How can I dowload videos from VK.com
By johnr283 in forum Video Streaming DownloadingReplies: 6Last Post: 15th Apr 2023, 10:48 -
Using ffmpeg to dowload subtitles
By JohnReese in forum Video Streaming DownloadingReplies: 9Last Post: 2nd Oct 2021, 22:50 -
Using ffmpeg to dowload webvtt subtitles
By ecolek in forum Video Streaming DownloadingReplies: 24Last Post: 20th Jun 2021, 04:12 -
Tumblr Link to Dowload
By devilcoelhodog in forum Video Streaming DownloadingReplies: 2Last Post: 16th Apr 2020, 03:44 -
How can ı dowload this kind of streams?
By lemon in forum Video Streaming DownloadingReplies: 8Last Post: 20th Sep 2019, 01:34