Hello. I have downloaded video from VOD TVP. How do I get the key?
https://vod.tvp.pl/video/allo-allo,odc-1i,36171389
+ Reply to Thread
Results 1 to 22 of 22
-
-
Code:
--key 2b68c114e55349a0b28f3963998d1f30:071c45d47b45b2c46dbc10fcce698b2a
-
Hmm I get wrong ssl version number error or something with scripts and I get 403 on getwvkeys...
There seems to be a weird and uncomplete header
X-AxDRM-Message: eyJhbGciOiJIUzI1NiI...
that might be causing problems
maybe pkp would care to explain more -
lic url
Code:https://www.tvp.pl/sess/widevineProxy.php?key=&video_id=60921246
Code:X-AxDRM-Message: eyJhbGciOiJIUzI1NiI...
Code:e2f70e0f462e4701b80935b303782b2b:0834d46f93fc69335c8556db635cc349
-
works fine for me with standard l3.py for any of the 3 psshs
Code:AAAAO3Bzc2gAAAAA7e+LqXnWSs6jyCfc1R0h7QAAABsIARIQ4vcOD0YuRwG4CTWzA3grKyoFQVVESU8= AAAAOHBzc2gAAAAA7e+LqXnWSs6jyCfc1R0h7QAAABgIARIQ4vcOD0YuRwG4CTWzA3grKyoCU0Q= AAAAOHBzc2gAAAAA7e+LqXnWSs6jyCfc1R0h7QAAABgIARIQ4vcOD0YuRwG4CTWzA3grKyoCSEQ=
-
if you have access to this site, you have also access to server chat
ask on chatLast edited by lomero; 30th Jun 2022 at 15:19.
-
It isn't possible to get the key with getwvkeys?and anyway the answer to your question is no: you need a special script for your siteCode:
getwvkeys.py pywidevine-api 4.1 from getwvkeys Enter License URL: https://www.tvp.pl/sess/widevineProxy.php?key=&video_id=60921246 Enter PSSH: AAAAO3Bzc2gAAAAA7e+LqXnWSs6jyCfc1R0h7QAAABsIARIQ4vcOD0YuRwG4CTWzA3grKyoFQVVESU8= Enter GetWVKeys API Key: XXX usage: getwvkeys.py [-h] [-url URL] [-pssh PSSH] [-auth AUTH] [--verbose] [--cache] [--buildinfo BUILDINFO] optional arguments: -h, --help show this help message and exit -url URL License URL -pssh PSSH PSSH -auth AUTH GetWVKeys API Key --verbose, -v increase output verbosity --cache, -c Cache On. default is OFF --buildinfo BUILDINFO, -b BUILDINFO Buildinfo --key e2f70e0f462e4701b80935b303782b2b:0834d46f93fc69335c8556db635cc349
-
I tried without success to decode a video from the same site.
https://vod.tvp.pl/programy,88/kolo-fortuny-odcinki,273642/odcinek-1591,S01E1591,389156
I have tried the key 2b7eae0f3924448eb6d962da2ccfe8a0:d6ca0e7a03ad02d83 0d1fac4c60dac5b but it doesn't work ?
My method :- I used chrome + tampermonkey + script to get the PSSH
- I convert / reduce the PSSH with https://base64.guru/converter/decode/hex and https://base64.guru/converter/encode/hex
- I used the page https://cdrm-project.com/ to obtain the key.
- I download the video with : yt-dlp --allow-u
- Finally, I tried to decrypt the video with Bento4 / mp4decrypt.
I used this data to obtain the key :- PSSH : AAAAO3Bzc2gAAAAA7e+LqXnWSs6jyCfc1R0h7QAAABsIARIQK3 6uDzkkRI622WLaLM/ooCoFQVVESU8=
- licence : https://vod.tvp.pl/api/products/389156/drm/widevine?platform=BROWSER&type=MOVIE
- Headers :
Accept-Language: fr-FR,fr;q=0.9,en-US;q=0.8,en;q=0.7
API-CorrelationId: client_8c515686-2c63-42e2-a114-d1bd5c865e8f
Connection: keep-alive
Content-Length: "1669"
Host: vod.tvp.pl
Origin: https://vod.tvp.pl
Referer: https://vod.tvp.pl/programy,88/kolo-fortuny-odcinki,273642/odcinek-1591,S01E1591,389156
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36
I have also tried to decrypt with the key 1:d6ca0e7a03ad02d830d1fac4c60dac5b
No success !
Any idea ?
(My tools (yt-dlp / mp4decrypt) are OK because I can decrypt video from this drm demo site : https://bitmovin.com/demos/drm). -
that key works for me, maybe you downloaded the wrong file?
this is the manifest url i get
https://n-22-5.dcs.redcdn.pl/dash/o2/TVP/embeddrm/out/pr00f7ls-odc._1447_ed._12_17f6fe....ism?indexMode -
OK, thanks.
I understood my mistake !
I downloaded the video directly with yt-dlp @html adress (because it works with non DRM videos on vod.tvp.pl)
Code:yt-dlp -F https://vod.tvp.pl/programy,88/kolo-fortuny-odcinki,273642/odcinek-1591,S01E1591,389156 [tvp:vod] Extracting URL: https://vod.tvp.pl/programy,88/kolo-fortuny-odcinki,273642/odcinek-1591,S01E1591,389156 [tvp:vod] 389156: Downloading JSON metadata [tvp:embed] Extracting URL: tvp:65674264 [tvp:embed] 65674264: Downloading webpage [tvp:embed] 65674264: Downloading m3u8 information [tvp:embed] 65674264: Downloading ISM manifest [info] Available formats for 65674264: ID EXT RESOLUTION │ FILESIZE TBR PROTO │ VCODEC VBR ACODEC MORE INFO ───────────────────────────────────────────────────────────────────────────────────────────── hls-aac-pol m3u8 audio only │ m3u8 │ audio only unknown [pol] pol direct ism unknown │ https │ unknown unknown hls-240 mp4 320x180 │ ~ 52.27MiB 240k m3u8 │ avc1.64000c 240k video only hls-500 mp4 640x360 │ ~108.89MiB 500k m3u8 │ avc1.64001e 500k video only hls-800 mp4 960x540 │ ~174.22MiB 800k m3u8 │ avc1.64001f 800k video only hls-1800 mp4 960x540 │ ~391.99MiB 1800k m3u8 │ avc1.64001f 1800k video only hls-2800 mp4 1280x720 │ ~609.77MiB 2800k m3u8 │ avc1.64001f 2800k video only hls-4800 mp4 1920x1080 │ ~ 1.02GiB 4800k m3u8 │ avc1.640028 4800k video only
But, when I verify the link on network on chrome, the best format available is only : hls-2800 mp4 1280x720.
If I look the video from the website, a button permit to change the resolution. 720p is the best resolution available.
I don't know why yt-dlp download a 1920p version which it doesn't exist apparently.
So, you need this to download and decrypt :- chrome + tampermonkey + script to get the PSSH
- convert and reduce HEX (with https://base64.guru/converter for example)
- https://cdrm-project.com or equivalent
- yt-dlp
- mp4decrypt
-
Just play the video and search "widevine" on the developper tools / network tab !
For example :
For https://vod.tvp.pl/programy,88/kolo-fortuny-odcinki,273642/odcinek-1591,S01E1591,389156 the licence url is :
https://vod.tvp.pl/api/products/389156/drm/widevine?platform=BROWSER&type=MOVIE
Similar Threads
-
vod.tvp.pl downloading
By Silv3r in forum Video Streaming DownloadingReplies: 37Last Post: 24th Apr 2025, 13:02 -
Vimeo and/or Kanopy vod dl w/o login
By NeedHelpp in forum Video Streaming DownloadingReplies: 1Last Post: 12th May 2021, 02:02 -
black background for any VOD
By qaqaqaq in forum SubtitleReplies: 0Last Post: 9th Dec 2019, 05:38 -
How to download videos (vod) from a ios or android app?
By javidial in forum Video Streaming DownloadingReplies: 3Last Post: 10th Feb 2019, 21:24 -
Download M3u8 from VOD Movistar.es
By Bryan_122 in forum Video Streaming DownloadingReplies: 3Last Post: 29th Oct 2017, 13:47