Hello,
The Video-URL:
https://iframe.mediadelivery.net/embed/51588/1f49751c-d2ac-40fa-932b-27c58d87513c?auto...ad=trueertools
https://iframe.mediadelivery.net/embed/51588/1f49751c-d2ac-40fa-932b-27c58d87513c
(A) Analyze
1. Video plays fine in Google Chrome (Windows) and Chromium (Linux) as well as Firefox (Linux and Windows).
2. Developer Tools (Ctrl+Shift+ I) ... Source Tab
iframe.mediadelivery.net
+embed/51588
++1f49751c-d2ac-40fa-932b-27c58d87513c
Copy source code and search for relevant URL(s) (with "contextId"):
https://iframe.mediadelivery.net/1f49751c-d2ac-40fa-932b-27c58d87513c/playlist.drm?con...4-6e82c1d4ea21
https://iframe.mediadelivery.net/1f49751c-d2ac-40fa-932b-27c58d87513c/playlist.drm?con...5-a911905c7865
* The URL above contains parameter contextId=... and secret=...
* the URL changes after a Reload !!
3. Developer Tools (Ctrl+Shift+ I) ... Network Tab ... Filter/Search for "contextId"
Look for the first entry (URL changes after a reload):
https://iframe.mediadelivery.net/1f49751c-d2ac-40fa-932b-27c58d87513c/playlist.drm?con...3-0d553a6eefa8
https://iframe.mediadelivery.net/1f49751c-d2ac-40fa-932b-27c58d87513c/playlist.drm?con...e-e069e601a854
https://iframe.mediadelivery.net/1f49751c-d2ac-40fa-932b-27c58d87513c/playlist.drm?con...1-3c1361c607d1
https://iframe.mediadelivery.net/1f49751c-d2ac-40fa-932b-27c58d87513c/playlist.drm?con...4-6e82c1d4ea21
https://iframe.mediadelivery.net/1f49751c-d2ac-40fa-932b-27c58d87513c/playlist.drm?con...5-9beb58bdba64
https://iframe.mediadelivery.net/1f49751c-d2ac-40fa-932b-27c58d87513c/playlist.drm?con...5-a911905c7865
Request:
GET /1f49751c-d2ac-40fa-932b-27c58d87513c/playlist.drm?contextId=7dba051a-1d60-4fd6-b6ea-702ac51d3b78&secret=347009a9-6209-43a5-b975-9beb58bdba64 HTTP/2
Host: iframe.mediadelivery.net
User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/117.0
Accept: */*
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate, br
Connection: keep-alive
Referer: https://iframe.mediadelivery.net/embed/51588/1f49751c-d2ac-40fa-932b-27c58d87513c
Sec-Fetch-Dest: empty
Sec-Fetch-Mode: cors
Sec-Fetch-Site: same-origin
TE: trailers
Response:
https://iframe.mediadelivery.net/1f49751c-d2ac-40fa-932b-27c58d87513c/playlist.drm?con...5-a911905c7865
Code:... #EXT-X-STREAM-INF:BANDWIDTH=5000000,RESOLUTION=1920x1080 1920x1080/video.drm?contextId=5e3c851a-4287-4cbf-9cf5-4f6f149976f6
(B) Trying to download
0. wget
Code:wget --user-agent="Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/117.0" "https://iframe.mediadelivery.net/embed/51588/1f49751c-d2ac-40fa-932b-27c58d87513c" ... --2023-09-04 11:56:03-- https://iframe.mediadelivery.net/1f49751c-d2ac-40fa-932b-27c58d87513c/playlist.drm?contextId=55730c7a-a361-4219-b143-ad2685534506&secret=b5287a0b-63d1-46b8-a7ee-e069e601a854 Resolving iframe.mediadelivery.net (iframe.mediadelivery.net)... 162.55.163.228, 138.201.157.27 Connecting to iframe.mediadelivery.net (iframe.mediadelivery.net)|162.55.163.228|:443... connected. HTTP request sent, awaiting response... 401 Unauthorized
1. Streamlink (Linux)
Code:streamlink --http-header User-Agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/110.0" --http-header Origin=https://iframe.mediadelivery.net "hls://https://iframe.mediadelivery.net/4ce223ab-e878-4bfc-9cec-7bc367740da0/playlist.drm?contextId=9f836881-d33d-488b-8f6b-2421e0846c37&secret=7515983c-df41-4e41-8018-f848344f7d4a" best -o video.tsCode:streamlink --http-header User-Agent='Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/117.0' --http-header Origin=https://iframe.mediadelivery.net 'hls://https://iframe.mediadelivery.net/1f49751c-d2ac-40fa-932b-27c58d87513c/playlist.drm?contextId=55730c7a-a361-4219-b143-ad2685534506&secret=b5287a0b-63d1-46b8-a7ee-e069e601a854' best -o video.ts ... [cli][info] Found matching plugin hls for URL hls://https://iframe.mediadelivery.net/1f49751c-d2ac-40fa-932b-27c58d87513c/playlist.drm?contextId=55730c7a-a361-4219-b143-ad2685534506&secret=b5287a0b-63d1-46b8-a7ee-e069e601a854 error: Unable to open URL: https://iframe.mediadelivery.net/1f49751c-d2ac-40fa-932b-27c58d87513c/playlist.drm?contextId=55730c7a-a361-4219-b143-ad2685534506&secret=b5287a0b-63d1-46b8-a7ee-e069e601a854 (401 Client Error: Unauthorized for url: https://iframe.mediadelivery.net/1f49751c-d2ac-40fa-932b-27c58d87513c/playlist.drm?contextId=55730c7a-a361-4219-b143-ad2685534506&secret=b5287a0b-63d1-46b8-a7ee-e069e601a854)
2. N_m3u8DL-RE
Code:# ./N_m3u8DL-RE "https://iframe.mediadelivery.net/1f49751c-d2ac-40fa-932b-27c58d87513c/playlist.drm?contextId=fcf1318b-8e33-41c7-a4dc-44071c2031a8&secret=d56993fb-a65c-4051-9031-3c1361c607d1" -H User-Agent:"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/117.0" -H Referer:"https://iframe.mediadelivery.net" ... 11:38:56.429 INFO : N_m3u8DL-RE (Beta version) 20230628 11:38:56.430 INFO : Loading URL: https://iframe.mediadelivery.net/1f49751c-d2ac-40fa-932b-27c58d87513c/playlist.drm?contextId=55730c7a-a361-4219-b143-ad2685534506&secret=b5287a0b-63d1-46b8-a7ee-e069e601a854 11:38:56.489 ERROR: One or more errors occurred. (Response status code does not indicate success: 401 (Unauthorized).)
3. YT-DLP
Code:./yt-dlp_linux "https://iframe.mediadelivery.net/1f49751c-d2ac-40fa-932b-27c58d87513c/playlist.drm?contextId=55730c7a-a361-4219-b143-ad2685534506&secret=b5287a0b-63d1-46b8-a7ee-e069e601a854" ... [generic] Extracting URL: https://iframe.mediadelivery.net/1f49751c-d2ac-40fa-932b-27c58d87513c/playlist.drm?contextId=5573...b8-a7ee-e069e601a854 [generic] playlist: Downloading webpage ERROR: [generic] None: Unable to download webpage: HTTP Error 401: Unauthorized (caused by <HTTPError 401: 'Unauthorized'>); please report this issue on https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using yt-dlp -U
4. hlsdl
Code:hlsdl -b -c -u "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/110.0" -h "Referer:https://iframe.mediadelivery.net/embed/83922/e79cfbb0-4521-4a4e-a213-3d17ec5854cd?autoplay=false" -o "video.ts" "https://iframe.mediadelivery.net/e79cfbb0-4521-4a4e-a213-3d17ec5854cd/1280x720/video.drm?contextId=ab739e79-a746-4d88-bcd8-0ffec036933a"
5. VLC
* Open Netzwork-Stream (menu Media in VLC) : fails
Summary:
No matter which tool I use, I get "HTTP Error 401: Unauthorized"
What do i make wrong?
Also see screenshot
[Attachment 73623 - Click to enlarge]
+ Reply to Thread
Results 1 to 9 of 9
-
Anonymous84734Guest
-
Anonymous84734Guest
It becomes more difficult (getting more and more a hard challenge):
Now I get
*** HTTP Error 403 Forbidden ***
(and sometimes still HTTP 401 Unauthorized)
1. Check:
./yt-dlp_linux -U
Available version: stable@2023.07.06, Current version: stable@2023.07.06
Current Build Hash: 0556fff82db6c942a5dfbb9583e2896013847b28b95186b380 0f730a8d5e0c0a
yt-dlp is up to date (stable@2023.07.06)
2. Video URLs (without ?autoplay=false&loop=false&muted=false&preload=tru e)
a) https://iframe.mediadelivery.net/embed/51588/1f49751c-d2ac-40fa-932b-27c58d87513c
b) https://iframe.mediadelivery.net/embed/51588/a6f4e880-02b4-4774-86da-284401f4f23f
c) https://iframe.mediadelivery.net/embed/51588/45795123-3e5c-43b2-8591-d2a8b9b5723d
3. For some reason, no cookie is required:
Code:GET /a6f4e880-02b4-4774-86da-284401f4f23f/playlist.drm?contextId=a86e3fe9-dd43-41e2-8ed8-4b791915cdd9&secret=8a1e763f-eb2b-4010-aeb0-ae48789f7757 HTTP/2 Host: iframe.mediadelivery.net User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/117.0 Accept: */* Accept-Language: en-US,en;q=0.5 Accept-Encoding: gzip, deflate Referer: https://iframe.mediadelivery.net/embed/51588/a6f4e880-02b4-4774-86da-284401f4f23f?autoplay=false Sec-Fetch-Dest: empty Sec-Fetch-Mode: cors Sec-Fetch-Site: same-origin Te: trailers
4. I have written a bash script ( videos-download.sh ) and tested it on other video platforms.
$ cat ../videos-download.sh
Code:#!/usr/bin/bash # Important Headers: Method (POST|GET) + Cookie + User-Agent + Referer + Origin # 1) three kinds of URL formats url='https://iframe.mediadelivery.net/45795123-3e5c-43b2-8591-d2a8b9b5723d/842x480/video.drm?contextId=94e3beb3-ed3b-4fd3-bc75-ed3c557f669f' url='https://iframe.mediadelivery.net/a6f4e880-02b4-4774-86da-284401f4f23f/842x480/video.drm?contextId=2c675ed6-db55-4818-b890-0ad61cfdea69' url='https://iframe.mediadelivery.net/45795123-3e5c-43b2-8591-d2a8b9b5723d/1920x1080/video.drm?contextId=17c480d0-405d-478e-9a82-3c42091cd8aa' url='https://iframe.mediadelivery.net/a6f4e880-02b4-4774-86da-284401f4f23f/1920x1080/video.drm?contextId=a86e3fe9-dd43-41e2-8ed8-4b791915cdd9' url='https://iframe.mediadelivery.net/1f49751c-d2ac-40fa-932b-27c58d87513c/1920x1080/video.drm?contextId=d5f229c5-4dfd-4e6b-a49b-398bfcc8d724' url="https://iframe.mediadelivery.net/a6f4e880-02b4-4774-86da-284401f4f23f/playlist.drm?contextId=a86e3fe9-dd43-41e2-8ed8-4b791915cdd9&secret=8a1e763f-eb2b-4010-aeb0-ae48789f7757" url='https://iframe.mediadelivery.net/1f49751c-d2ac-40fa-932b-27c58d87513c/1920x1080/video.drm?contextId=4093d25b-baaf-4e04-96a8-357a651de666' # 2) adapt Referer/Origin referer='https://iframe.mediadelivery.net/embed/51588/1f49751c-d2ac-40fa-932b-27c58d87513c?autoplay=false&loop=false&muted=false&preload=true' referer='https://iframe.mediadelivery.net/embed/51588/45795123-3e5c-43b2-8591-d2a8b9b5723d' referer="https://iframe.mediadelivery.net/embed/51588/a6f4e880-02b4-4774-86da-284401f4f23f" referer='https://iframe.mediadelivery.net/embed/51588/1f49751c-d2ac-40fa-932b-27c58d87513c' # 3) simulate different browsers agent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:94.0) Gecko/20100101 Firefox/94.0" agent="Mozilla/5.0 (iPad; CPU OS 6_0 like Mac OS X) AppleWebKit/536.26 (KHTML, like Gecko) Version/6.0 Mobile/10A5355d Safari/8536.25" agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36" agent='Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/110.0' agent='Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/117.0' #wget --user-agent="$agent" --referer="$referer" "$url" -O m3u8.txt echo;echo echo streamlink best -o video.ts --http-header User-Agent=\"$agent\" --http-header Referer=\"$referer\" \"hls://$url\" echo;echo # streamlink best -o video.ts --http-header User-Agent="$agent" --http-header Referer="$referer" --http-header Origin="$referer" "hls://$url" echo ../N_m3u8DL-RE \"$url\" -H User-Agent:\"$agent\" -H Referer:\"$referer\" --log-level debug echo;echo ../N_m3u8DL-RE "$url" -H User-Agent:"$agent" -H Referer:"$referer" --log-level debug echo ../yt-dlp_linux --verbose -o video.mp4 --user-agent \"$agent\" --referer \"$referer\" \"$url\" echo;echo #../yt-dlp_linux --verbose -o video.mp4 --user-agent "$agent" --referer "$referer" "$url" ../yt-dlp_linux --verbose -o video.mp4 --user-agent "$agent" --referer "$referer" "$url" --no-part --restrict-filenames -N 4
$ ../videos-download.sh
Code:./yt-dlp_linux --user-agent Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/117.0 --verbose https://iframe.mediadelivery.net/45795123-3e5c-43b2-8591-d2a8b9b5723d/1920x1080/video.drm?contextId=17c480d0-405d-478e-9a82-3c42091cd8aa [debug] Command-line config: ['--verbose', '-o', 'video.mp4', '--no-part', '--restrict-filenames', '-N', '4', '--user-agent', 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/117.0', '--referer', 'https://iframe.mediadelivery.net/embed/51588/45795123-3e5c-43b2-8591-d2a8b9b5723d', 'https://iframe.mediadelivery.net/45795123-3e5c-43b2-8591-d2a8b9b5723d/1920x1080/video.drm?contextId=17c480d0-405d-478e-9a82-3c42091cd8aa'] [debug] Encodings: locale UTF-8, fs utf-8, pref UTF-8, out utf-8, error utf-8, screen utf-8 [debug] yt-dlp version stable@2023.07.06 [b532a3481] (linux_exe) [debug] Python 3.10.12 (CPython x86_64 64bit) - Linux-5.15.0-82-generic-x86_64-with-glibc2.31 (OpenSSL 3.1.1 30 May 2023, glibc 2.31) [debug] exe versions: ffmpeg 4.2.7, ffprobe 4.2.7, rtmpdump 2.4 [debug] Optional libraries: Cryptodome-3.18.0, brotli-1.0.9, certifi-2023.05.07, mutagen-1.46.0, sqlite3-2.6.0, websockets-11.0.3 [debug] Proxy map: {} [debug] Loaded 1855 extractors [generic] Extracting URL: https://iframe.mediadelivery.net/45795123-3e5c-43b2-8591-d2a8b9b5723d/1920x1080/video.drm?contextId=17c480d0-405d-478e-9a82-3c42091cd8aa [generic] video: Downloading webpage [debug] Identified a direct video link [generic] video: Downloading m3u8 information [generic] video: Checking m3u8 live status [debug] Formats sorted by: hasvid, ie_pref, lang, quality, res, fps, hdr:12(7), vcodec:vp9.2(10), channels, acodec, size, br, asr, proto, vext, aext, hasaud, source, id [debug] Default format spec: bestvideo*+bestaudio/best [info] video: Downloading 1 format(s): 0 [debug] Invoking hlsnative downloader on "https://iframe.mediadelivery.net/45795123-3e5c-43b2-8591-d2a8b9b5723d/1920x1080/video.drm?contextId=17c480d0-405d-478e-9a82-3c42091cd8aa" [hlsnative] Downloading m3u8 manifest [hlsnative] Total fragments: 2416 [download] Destination: video.mp4 WARNING: The download speed shown is only of one thread. This is a known issue [download] 6.1% of ~ 1.80GiB at 2.20MiB/s ETA 13:00 (frag 148/2416)ERROR: unable to download video data: HTTP Error 403: Forbidden Traceback (most recent call last): File "yt_dlp/YoutubeDL.py", line 3363, in process_info File "yt_dlp/YoutubeDL.py", line 3084, in dl File "yt_dlp/downloader/common.py", line 461, in download File "yt_dlp/downloader/hls.py", line 375, in real_download File "yt_dlp/downloader/fragment.py", line 516, in download_and_append_fragments File "yt_dlp/downloader/fragment.py", line 372, in decrypt_fragment File "yt_dlp/downloader/fragment.py", line 361, in _get_key File "yt_dlp/YoutubeDL.py", line 3863, in urlopen File "urllib/request.py", line 525, in open File "urllib/request.py", line 634, in http_response File "urllib/request.py", line 563, in error File "urllib/request.py", line 496, in _call_chain File "urllib/request.py", line 643, in http_error_default urllib.error.HTTPError: HTTP Error 403: Forbidden 08:34:06.444 INFO : Content Matched: HTTP Live Streaming 08:34:06.444 INFO : Parsing streams... 08:34:06.445 DEBUG: METHOD:AES-128,URI:https://video-803.mediadelivery.net/.drm/17c480d0-405d-478e-9a82-3c42091cd8aa/1920x1080.drmkey?v=0,IV:0x3230386236373936636331332d346433 08:34:06.445 DEBUG: Fetch: https://video-803.mediadelivery.net/.drm/17c480d0-405d-478e-9a82-3c42091cd8aa/1920x1080.drmkey?v=0 08:34:06.445 DEBUG: Accept-Encoding: gzip, deflate Cache-Control: no-cache User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/117.0 Referer: https://iframe.mediadelivery.net/embed/51588/45795123-3e5c-43b2-8591-d2a8b9b5723d 08:34:26.495 WARN : One or more errors occurred. (Response status code does not indicate success: 403 (Forbidden).) retryCount: 3 08:34:27.496 DEBUG: Fetch: https://video-803.mediadelivery.net/.drm/17c480d0-405d-478e-9a82-3c42091cd8aa/1920x1080.drmkey?v=0 08:34:27.496 DEBUG: Accept-Encoding: gzip, deflate Cache-Control: no-cache User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/117.0 Referer: https://iframe.mediadelivery.net/embed/51588/45795123-3e5c-43b2-8591-d2a8b9b5723d 08:34:47.507 WARN : One or more errors occurred. (Response status code does not indicate success: 403 (Forbidden).) retryCount: 2 08:34:48.507 DEBUG: Fetch: https://video-803.mediadelivery.net/.drm/17c480d0-405d-478e-9a82-3c42091cd8aa/1920x1080.drmkey?v=0 08:34:48.507 DEBUG: Accept-Encoding: gzip, deflate Cache-Control: no-cache User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/117.0 Referer: https://iframe.mediadelivery.net/embed/51588/45795123-3e5c-43b2-8591-d2a8b9b5723d 08:35:08.520 WARN : One or more errors occurred. (Response status code does not indicate success: 403 (Forbidden).) retryCount: 1 08:35:09.521 DEBUG: Fetch: https://video-803.mediadelivery.net/.drm/17c480d0-405d-478e-9a82-3c42091cd8aa/1920x1080.drmkey?v=0 08:35:09.521 DEBUG: Accept-Encoding: gzip, deflate Cache-Control: no-cache User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/117.0 Referer: https://iframe.mediadelivery.net/embed/51588/45795123-3e5c-43b2-8591-d2a8b9b5723d 08:35:29.536 WARN : One or more errors occurred. (Response status code does not indicate success: 403 (Forbidden).) retryCount: 0 08:35:30.537 ERROR: Failed to get KEY, ignore.: One or more errors occurred. (Response status code does not indicate success: 403 (Forbidden).) 08:35:30.537 DEBUG: METHOD:AES-128,URI:https://video-803.mediadelivery.net/.drm/17c480d0-405d-478e-9a82-3c42091cd8aa/1920x1080.drmkey?v=1,IV:0x3230386236373936636331332d346433 08:35:30.537 DEBUG: Fetch: https://video-803.mediadelivery.net/.drm/17c480d0-405d-478e-9a82-3c42091cd8aa/1920x1080.drmkey?v=1 08:35:30.537 DEBUG: Accept-Encoding: gzip, deflate Cache-Control: no-cache User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/117.0 Referer: https://iframe.mediadelivery.net/embed/51588/45795123-3e5c-43b2-8591-d2a8b9b5723d
6. Another download attempt:
Code:#EXTM3U #EXT-X-VERSION:3 #EXT-X-STREAM-INF:BANDWIDTH=600000,RESOLUTION=352x240 352x240/video.drm?contextId=83296ecf-5097-4594-86fc-ad270c7806da #EXT-X-STREAM-INF:BANDWIDTH=800000,RESOLUTION=640x360 640x360/video.drm?contextId=83296ecf-5097-4594-86fc-ad270c7806da #EXT-X-STREAM-INF:BANDWIDTH=1400000,RESOLUTION=842x480 842x480/video.drm?contextId=83296ecf-5097-4594-86fc-ad270c7806da #EXT-X-STREAM-INF:BANDWIDTH=2800000,RESOLUTION=1280x720 1280x720/video.drm?contextId=83296ecf-5097-4594-86fc-ad270c7806da #EXT-X-STREAM-INF:BANDWIDTH=5000000,RESOLUTION=1920x1080 1920x1080/video.drm?contextId=83296ecf-5097-4594-86fc-ad270c7806da GET /1f49751c-d2ac-40fa-932b-27c58d87513c/1920x1080/video.drm?contextId=4093d25b-baaf-4e04-96a8-357a651de666 HTTP/2 Host: iframe.mediadelivery.net User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/117.0 Accept: */* Accept-Language: en-US,en;q=0.5 Accept-Encoding: gzip, deflate, br Connection: keep-alive Referer: https://iframe.mediadelivery.net/embed/51588/1f49751c-d2ac-40fa-932b-27c58d87513c?autoplay=false&loop=false&muted=false&preload=true Sec-Fetch-Dest: empty Sec-Fetch-Mode: cors Sec-Fetch-Site: same-origin TE: trailers
Code:** N_m3u8DL-RE ** 15:53:30.324 INFO : Content Matched: HTTP Live Streaming 15:53:30.324 INFO : Parsing streams... 15:53:30.325 DEBUG: METHOD:AES-128,URI:https://video-979.mediadelivery.net/.drm/4093d25b-baaf-4e04-96a8-357a651de666/1920x1080.drmkey?v=0,IV:0x3230386236373936636331332d346433 15:53:30.325 DEBUG: Fetch: https://video-979.mediadelivery.net/.drm/4093d25b-baaf-4e04-96a8-357a651de666/1920x1080.drmkey?v=0 15:53:30.325 DEBUG: Accept-Encoding: gzip, deflate Cache-Control: no-cache User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/117.0 Referer: https://iframe.mediadelivery.net/embed/51588/1f49751c-d2ac-40fa-932b-27c58d87513c 15:53:50.371 WARN : One or more errors occurred. (Response status code does not indicate success: 403 (Forbidden).) retryCount: 3 15:53:51.371 DEBUG: Fetch: https://video-979.mediadelivery.net/.drm/4093d25b-baaf-4e04-96a8-357a651de666/1920x1080.drmkey?v=0 15:53:51.371 DEBUG: Accept-Encoding: gzip, deflate Cache-Control: no-cache User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/117.0 Referer: https://iframe.mediadelivery.net/embed/51588/1f49751c-d2ac-40fa-932b-27c58d87513c 15:54:11.382 WARN : One or more errors occurred. (Response status code does not indicate success: 403 (Forbidden).) retryCount: 2 15:54:12.382 DEBUG: Fetch: https://video-979.mediadelivery.net/.drm/4093d25b-baaf-4e04-96a8-357a651de666/1920x1080.drmkey?v=0 15:54:12.382 DEBUG: Accept-Encoding: gzip, deflate Cache-Control: no-cache User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/117.0 Referer: https://iframe.mediadelivery.net/embed/51588/1f49751c-d2ac-40fa-932b-27c58d87513c ** yt-dlp_linux ** ../yt-dlp_linux --verbose -o video.mp4 --user-agent "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/117.0" --referer "https://iframe.mediadelivery.net/embed/51588/1f49751c-d2ac-40fa-932b-27c58d87513c" "https://iframe.mediadelivery.net/1f49751c-d2ac-40fa-932b-27c58d87513c/1920x1080/video.drm?contextId=4093d25b-baaf-4e04-96a8-357a651de666" [debug] Command-line config: ['--verbose', '-o', 'video.mp4', '--user-agent', 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/117.0', '--referer', 'https://iframe.mediadelivery.net/embed/51588/1f49751c-d2ac-40fa-932b-27c58d87513c', 'https://iframe.mediadelivery.net/1f49751c-d2ac-40fa-932b-27c58d87513c/1920x1080/video.drm?contextId=4093d25b-baaf-4e04-96a8-357a651de666', '--no-part', '--restrict-filenames', '-N', '4'] [debug] Encodings: locale UTF-8, fs utf-8, pref UTF-8, out utf-8, error utf-8, screen utf-8 [debug] yt-dlp version stable@2023.07.06 [b532a3481] (linux_exe) [debug] Python 3.10.12 (CPython x86_64 64bit) - Linux-5.15.0-82-generic-x86_64-with-glibc2.31 (OpenSSL 3.1.1 30 May 2023, glibc 2.31) [debug] exe versions: ffmpeg 4.2.7, ffprobe 4.2.7, rtmpdump 2.4 [debug] Optional libraries: Cryptodome-3.18.0, brotli-1.0.9, certifi-2023.05.07, mutagen-1.46.0, sqlite3-2.6.0, websockets-11.0.3 [debug] Proxy map: {} [debug] Loaded 1855 extractors [generic] Extracting URL: https://iframe.mediadelivery.net/1f49751c-d2ac-40fa-932b-27c58d87513c/1920x1080/video.drm?contextId=4093d25b-baaf-4e04-96a8-357a651de666 [generic] video: Downloading webpage [debug] Identified a direct video link [generic] video: Downloading m3u8 information [generic] video: Checking m3u8 live status [debug] Formats sorted by: hasvid, ie_pref, lang, quality, res, fps, hdr:12(7), vcodec:vp9.2(10), channels, acodec, size, br, asr, proto, vext, aext, hasaud, source, id [debug] Default format spec: bestvideo*+bestaudio/best [info] video: Downloading 1 format(s): 0 [debug] Invoking hlsnative downloader on "https://iframe.mediadelivery.net/1f49751c-d2ac-40fa-932b-27c58d87513c/1920x1080/video.drm?contextId=4093d25b-baaf-4e04-96a8-357a651de666" [hlsnative] Downloading m3u8 manifest [hlsnative] Total fragments: 1882 [download] Destination: video.mp4 WARNING: The download speed shown is only of one thread. This is a known issue [download] 7.0% of ~ 1.66GiB at 406.07KiB/s ETA 01:05:42 (frag 131/1882)ERROR: unable to download video data: HTTP Error 403: Forbidden Traceback (most recent call last): File "yt_dlp/YoutubeDL.py", line 3363, in process_info File "yt_dlp/YoutubeDL.py", line 3084, in dl File "yt_dlp/downloader/common.py", line 461, in download File "yt_dlp/downloader/hls.py", line 375, in real_download File "yt_dlp/downloader/fragment.py", line 516, in download_and_append_fragments File "yt_dlp/downloader/fragment.py", line 372, in decrypt_fragment File "yt_dlp/downloader/fragment.py", line 361, in _get_key File "yt_dlp/YoutubeDL.py", line 3863, in urlopen File "urllib/request.py", line 525, in open File "urllib/request.py", line 634, in http_response File "urllib/request.py", line 563, in error File "urllib/request.py", line 496, in _call_chain File "urllib/request.py", line 643, in http_error_default urllib.error.HTTPError: HTTP Error 403: Forbidden
Can someone tell me how to extract the correct "m3u8 playlist" in this context? -
just use the stream recorder plugin and watch the entire video.It will get downloaded. Idk why you have to need to go crazy about it.
-
Anonymous84734Guest> just use the stream recorder plugin and watch the entire video.It will get downloaded.
There are two disadvantages: time and filesize
I'm interested in dozens of videos. Each video has a length/duration between 2 and 3 hours.
1. Waste of Time: For each video screen capture/recording you have to watch the whole video - waiting on average 2.5 hours for each video.
The "download" only takes 10 minutes.
2. Filesize and quality: It blows up the filesize, a doubling at minimum. A recorded file has at least 4 GB, sometimes a file size of 6 GB.
So i decided to try to "download" the video stream.
> stream detector works for the site.
[Attachment 73679 - Click to enlarge]
Thank you, swappyison !
A great Firefox plugin - I didn't know it before.
Status: I have tested it with 4 videos (see screenshot). On average it gives me 4 "entries", sometimes more.
Result statistic for each of the four videos:
- One entry gives me 401 Unauthorized
- Another two entries give me 403 Forbidden
- And one entry works!
Streamlink can save the video to the local disk (with "hls://https://.....)
Again, thank you very much. -
-
Similar Threads
-
Download from iframe.mediadelivery.net
By andreww in forum Video Streaming DownloadingReplies: 13Last Post: 19th Dec 2023, 15:55 -
What is the rigorous process of downloading iframe.mediadelivery.net ?
By Noob_me in forum Video Streaming DownloadingReplies: 6Last Post: 18th Aug 2023, 07:30 -
CDRM-project & GetWVKeys always respond with 401 unauthorized
By jjj in forum Video Streaming DownloadingReplies: 4Last Post: 25th Apr 2023, 17:23 -
Help to download from iframe.mediadelivery.net
By safinok in forum Video Streaming DownloadingReplies: 1Last Post: 5th Apr 2023, 00:03 -
Downloading from iframe.mediadelivery.net stopped working
By monk87 in forum Video Streaming DownloadingReplies: 6Last Post: 3rd Jan 2023, 09:37