Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[abciview] ERROR: Data must be padded to 16 byte boundary in CBC mode #3810

Open
6 tasks done
sofa-singer opened this issue May 20, 2022 · 34 comments · May be fixed by #8081
Open
6 tasks done

[abciview] ERROR: Data must be padded to 16 byte boundary in CBC mode #3810

sofa-singer opened this issue May 20, 2022 · 34 comments · May be fixed by #8081
Labels
bug Bug that is not site-specific geo-blocked Content is geo-blocked site-bug Issue with a specific website

Comments

@sofa-singer
Copy link

Checklist

  • I'm reporting a bug unrelated to a specific site
  • I've verified that I'm running yt-dlp version 2022.05.18 (update instructions) or later (specify commit)
  • I've checked that all provided URLs are playable in a browser with the same IP and same login details
  • I've checked that all URLs and arguments with special characters are properly quoted or escaped
  • I've searched the bugtracker for similar issues including closed ones. DO NOT post duplicates
  • I've read the guidelines for opening an issue

Description

Download begins then stops with this error: "ERROR: Data must be padded to 16 byte boundary in CBC mode".

Verbose log

[debug] Invoking hlsnative downloader on "https://iview-vod-hls.akamaized.net/prod/zw3/ZW3040A001S00MA1D1/20210908051741/hls/4500000/hdntl=exp=1653131813~acl=%2f*~data=hdntl~hmac=968b90b5a9ec2efc1e020f0d280af19668f4d9fff35fcde9c17d1236543497c6/stream.m3u8?aka_me_session_id=AAAAAAAAAAAlyohiAAAAAIV7zCwd0HGHqUdzBIZg0ja5vozQgVmfzpL8R6FzBHOiCKK1yd4SaW0I3Lpa2721IdAe29m1IaW5&aka_media_format_type=hls"
[hlsnative] Downloading m3u8 manifest
[hlsnative] Total fragments: 270
[download] Destination: /mnt/AU/Temporary/NA/20210924-ZW3040A001S00-Series 1 Ep 1.mp4
[download]   0.4% of ~975.58MiB at 559.83KiB/s ETA 29:37[download] Got server HTTP error: Downloaded 3784784 bytes, expected 3788768 bytes. Retrying (attempt 1 of 10) ...
[download]   0.4% of ~975.58MiB at 373.69KiB/s ETA 44:22 (frag 1/270)ERROR: Data must be padded to 16 byte boundary in CBC mode
Traceback (most recent call last):
  File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 1395, in wrapper
    return func(self, *args, **kwargs)
  File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 1479, in __extract_info
    return self.process_ie_result(ie_result, download, extra_info)
  File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 1535, in process_ie_result
    ie_result = self.process_video_result(ie_result, download=download)
  File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 2640, in process_video_result
    self.process_info(new_info)
  File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 3130, in process_info
    success, real_download = self.dl(temp_filename, info_dict)
  File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 2838, in dl
    return fd.download(name, new_info, subtitle)
  File "/usr/local/bin/yt-dlp/yt_dlp/downloader/common.py", line 445, in download
    ret = self.real_download(filename, info_dict)
  File "/usr/local/bin/yt-dlp/yt_dlp/downloader/hls.py", line 348, in real_download
    return self.download_and_append_fragments(ctx, fragments, info_dict)
  File "/usr/local/bin/yt-dlp/yt_dlp/downloader/fragment.py", line 522, in download_and_append_fragments
    decrypt_fragment(fragment, self._read_fragment(ctx)), fragment['frag_index'], ctx)
  File "/usr/local/bin/yt-dlp/yt_dlp/downloader/fragment.py", line 365, in decrypt_fragment
    return unpad_pkcs7(aes_cbc_decrypt_bytes(frag_content, decrypt_info['KEY'], iv))
  File "/usr/local/bin/yt-dlp/yt_dlp/aes.py", line 10, in aes_cbc_decrypt_bytes
    return Cryptodome_AES.new(key, Cryptodome_AES.MODE_CBC, iv).decrypt(data)
  File "/home/pi/.local/lib/python3.9/site-packages/Cryptodome/Cipher/_mode_cbc.py", line 246, in decrypt
    raise ValueError("Data must be padded to %d byte boundary in CBC mode" % self.block_size)
ValueError: Data must be padded to 16 byte boundary in CBC mode
@sofa-singer sofa-singer added bug Bug that is not site-specific triage Untriaged issue labels May 20, 2022
@pukkandan pukkandan added incomplete Further information is needed and removed triage Untriaged issue labels May 20, 2022
@pukkandan
Copy link
Member

Possible duplicate of #1297, #3578

@gamer191
Copy link
Collaborator

Duplicate of ytdl-org/youtube-dl#30753, but that issue solved itself

@gamer191

This comment was marked as resolved.

@sofa-singer

This comment was marked as duplicate.

@gamer191

This comment was marked as resolved.

@pukkandan pukkandan closed this as not planned Won't fix, can't repro, duplicate, stale May 24, 2022
@gamer191
Copy link
Collaborator

Can't reproduce:

[debug] Command-line config: ['https://iview.abc.net.au/show/grand-designs/series/19/video/ZW3220A005S00', '--verbose']
[debug] User config "C:\Users\REDACTED\AppData\Roaming\yt-dlp\config.txt": ['--ffmpeg-location', 'C:\\Users\\REDACTED\\ffmpeg\\bin', '--update', '-P', 'C:\\Users\\REDACTED\\youtube.dl', '--audio-quality', '0', '--write-subs', '--write-auto-subs', '--embed-subs', '--compat-options', 'no-keep-subs']
[debug] Encodings: locale cp1252, fs utf-8, pref cp1252, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version 2022.05.18 [b14d523] (win_exe)
[debug] Compatibility options: no-keep-subs
[debug] Python version 3.8.10 (CPython 64bit) - Windows-10-10.0.19043-SP0
[debug] Checking exe version: "C:\Users\REDACTED\ffmpeg\bin\ffprobe" -bsfs
[debug] Checking exe version: "C:\Users\REDACTED\ffmpeg\bin\ffmpeg" -bsfs
[debug] exe versions: ffmpeg N-106498-g854615adf2-20220405 (setts), ffprobe N-106498-g854615adf2-20220405
[debug] Optional libraries: Cryptodome-3.14.1, brotli-1.0.9, certifi-2021.10.08, mutagen-1.45.1, sqlite3-2.6.0, websockets-10.3
[debug] Proxy map: {}
Latest version: 2022.05.18, Current version: 2022.05.18
yt-dlp is up to date (2022.05.18)
[debug] Using fake IP 1.155.151.171 (AU) as X-Forwarded-For
[debug] [abc.net.au:iview] Extracting URL: https://iview.abc.net.au/show/grand-designs/series/19/video/ZW3220A005S00
[abc.net.au:iview] ZW3220A005S00: Downloading JSON metadata
[abc.net.au:iview] ZW3220A005S00: Downloading webpage
[abc.net.au:iview] ZW3220A005S00: Downloading m3u8 information
WARNING: [abc.net.au:iview] Ignoring subtitle tracks found in the HLS manifest; if any subtitle tracks are missing, 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
[debug] Formats sorted by: hasvid, ie_pref, lang, quality, res, fps, hdr:12(7), vcodec:vp9.2(10), acodec, filesize, fs_approx, tbr, vbr, abr, asr, proto, vext, aext, hasaud, source, id
[debug] Downloading subtitles: en
[debug] Default format spec: bestvideo*+bestaudio/best
[info] ZW3220A005S00: Downloading 1 format(s): hls-2624
[info] Writing video subtitles to: C:\Users\REDACTED\youtube.dl\Series 19 Ep 5 Chichester [ZW3220A005S00].en.vtt
[debug] Invoking http downloader on "https://cdn.iview.abc.net.au/cc/zw/ZW3220A005S00MA1D1_627dfeaa86fe5.vtt"
[debug] File locking is not supported on this platform. Proceeding without locking
[download] Destination: C:\Users\REDACTED\youtube.dl\Series 19 Ep 5 Chichester [ZW3220A005S00].en.vtt
[download] 100% of 70.51KiB in 00:00
[debug] Invoking hlsnative downloader on "https://iview-vod-hls.akamaized.net/prod/zw3/ZW3220A005S00MA1D1/20220513164603/hls/4500000/hdntl=exp=1653477124~acl=%2f*~data=hdntl~hmac=c9c775d684ef9ebf2a80c569beff2eef0796b1286d13f4843921e4fd7f2278a9/stream.m3u8?aka_me_session_id=AAAAAAAAAAAED45iAAAAAJ7gHmrEW7E+7jgriarWiK08Y2182G7Qgxnw4BPx13Jn3WRNXOHppPRQjn3VHljPSXIJEeVHJcPG&aka_media_format_type=hls"
[hlsnative] Downloading m3u8 manifest
[hlsnative] Total fragments: 277
[download] Destination: C:\Users\REDACTED\youtube.dl\Series 19 Ep 5 Chichester [ZW3220A005S00].mp4
[download] 100% of 864.95MiB in 04:18
[debug] ffprobe command line: "C:\Users\REDACTED\ffmpeg\bin\ffprobe" -hide_banner -show_format -show_streams -print_format json "file:C:\Users\REDACTED\youtube.dl\Series 19 Ep 5 Chichester [ZW3220A005S00].mp4"
[FixupM3u8] Fixing MPEG-TS in MP4 container of "C:\Users\REDACTED\youtube.dl\Series 19 Ep 5 Chichester [ZW3220A005S00].mp4"
[debug] ffmpeg command line: "C:\Users\REDACTED\ffmpeg\bin\ffmpeg" -y -loglevel "repeat+info" -i "file:C:\Users\REDACTED\youtube.dl\Series 19 Ep 5 Chichester [ZW3220A005S00].mp4" -map 0 -dn -ignore_unknown -c copy -f mp4 "-bsf:a" aac_adtstoasc -movflags "+faststart" "file:C:\Users\REDACTED\youtube.dl\Series 19 Ep 5 Chichester [ZW3220A005S00].temp.mp4"
[EmbedSubtitle] Embedding subtitles in "C:\Users\REDACTED\youtube.dl\Series 19 Ep 5 Chichester [ZW3220A005S00].mp4"
[debug] ffmpeg command line: "C:\Users\REDACTED\ffmpeg\bin\ffmpeg" -y -loglevel "repeat+info" -i "file:C:\Users\REDACTED\youtube.dl\Series 19 Ep 5 Chichester [ZW3220A005S00].mp4" -i "file:C:\Users\REDACTED\youtube.dl\Series 19 Ep 5 Chichester [ZW3220A005S00].en.vtt" -map 0 -dn -ignore_unknown -c copy "-c:s" mov_text -map "-0:s" -map "1:0" "-metadata:s:s:0" "language=eng" -movflags "+faststart" "file:C:\Users\REDACTED\youtube.dl\Series 19 Ep 5 Chichester [ZW3220A005S00].temp.mp4"
Deleting original file C:\Users\REDACTED\youtube.dl\Series 19 Ep 5 Chichester [ZW3220A005S00].en.vtt (pass -k to keep)

@sofa-singer are you using a VPN? Also, can you please post a full verbose log of the issue? (feel free to redact it)

@sofa-singer
Copy link
Author

I found that it was giving this error using all the default settings - I played around and managed to get it to work flawlessly with the below adjustments. I can't explain how/why it gets the error or how/why these adjustments fix it, but posting here in case it helps.
--downloader aria2c
--hls-use-mpegts

@gamer191

This comment was marked as resolved.

@jamestfans
Copy link

I'm getting the same data padding error on iView as well, and Google brought me here. This happens on every video I have attempted from iView in the last week or so. Before that, it had been several months since I attempted to download anything from iView. I am not experiencing any issues with other sites at this time. I tried adding the --downloader aria2c and --hls-use-mpegts options, as suggested by @sofa-singer, but they did not help.

Extra context:

  • My yt-dlp is up to date, as shown in the log below
  • I am using a VPN
  • I am able to watch the video in my browser without issue while connected to the VPN
  • Just now I was able to successfully download the same video from this log using youtube-dl

Verbose log:

$ yt-dlp -U
Latest version: 2022.05.18, Current version: 2022.05.18
yt-dlp is up to date (2022.05.18)
$ yt-dlp --verbose https://iview.abc.net.au/video/CH2003Q014S00
[debug] Command-line config: ['--verbose', 'https://iview.abc.net.au/video/CH2003Q014S00']
[debug] Encodings: locale UTF-8, fs utf-8, pref UTF-8, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version 2022.05.18 [b14d523]
[debug] Python version 3.10.0 (CPython 64bit) - macOS-12.3.1-x86_64-i386-64bit
[debug] Checking exe version: ffprobe -bsfs
[debug] Checking exe version: ffmpeg -bsfs
[debug] exe versions: ffmpeg 4.4.1 (setts), ffprobe 4.4.1
[debug] Optional libraries: Cryptodome-3.12.0, brotli-1.0.9, certifi-2021.10.08, mutagen-1.45.1, sqlite3-2.6.0, websockets-10.1
[debug] Proxy map: {}
[debug] Using fake IP 1.158.184.25 (AU) as X-Forwarded-For
[debug] [abc.net.au:iview] Extracting URL: https://iview.abc.net.au/video/CH2003Q014S00
[abc.net.au:iview] CH2003Q014S00: Downloading JSON metadata
[abc.net.au:iview] CH2003Q014S00: Downloading webpage
[abc.net.au:iview] CH2003Q014S00: Downloading m3u8 information
WARNING: [abc.net.au:iview] Ignoring subtitle tracks found in the HLS manifest; if any subtitle tracks are missing, 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
[debug] Formats sorted by: hasvid, ie_pref, lang, quality, res, fps, hdr:12(7), vcodec:vp9.2(10), acodec, filesize, fs_approx, tbr, vbr, abr, asr, proto, vext, aext, hasaud, source, id
[debug] Default format spec: bestvideo*+bestaudio/best
[info] CH2003Q014S00: Downloading 1 format(s): hls-1119
[debug] Invoking hlsnative downloader on "https://iview-vod-hls.akamaized.net/prod/ch2/CH2003Q014S00MA1D1/20211202031628/hls/4500000/hdntl=exp=1654103320~acl=%2f*~data=hdntl~hmac=103ff07e9635f7514f74fe56ba58a3b56e99e0f2ebd8003d7608f7704864cd28/stream.m3u8?aka_me_session_id=AAAAAAAAAAAYnZdiAAAAAEzmjv%2fDehw%2fsvXhb6ZHQugG9R0jT0XZ+V9E5JP0ir4Xmhaa7jRc4lhAVqswliAsdPEIs5wgGEJJ&aka_media_format_type=hls"
[hlsnative] Downloading m3u8 manifest
[hlsnative] Total fragments: 42
[download] Destination: Series 3 Family Meeting [CH2003Q014S00].mp4
[download] 14.3% of ~59.16MiB at 214.59KiB/s ETA 03:43 (frag 5/42)[download] Got server HTTP error: Downloaded 1288160 bytes, expected 1298336 bytes. Retrying (attempt 1 of 10) ...

ERROR: Did not get any data blocks
File "/Library/Frameworks/Python.framework/Versions/3.10/bin/yt-dlp", line 8, in
sys.exit(main())
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/yt_dlp/init.py", line 857, in main
_real_main(argv)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/yt_dlp/init.py", line 847, in _real_main
retcode = ydl.download(all_urls)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/yt_dlp/YoutubeDL.py", line 3254, in download
self.__download_wrapper(self.extract_info)(
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/yt_dlp/YoutubeDL.py", line 3230, in wrapper
res = func(*args, **kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/yt_dlp/YoutubeDL.py", line 1386, in extract_info
return self.__extract_info(url, self.get_info_extractor(ie_key), download, extra_info, process)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/yt_dlp/YoutubeDL.py", line 1395, in wrapper
return func(self, *args, **kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/yt_dlp/YoutubeDL.py", line 1479, in __extract_info
return self.process_ie_result(ie_result, download, extra_info)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/yt_dlp/YoutubeDL.py", line 1535, in process_ie_result
ie_result = self.process_video_result(ie_result, download=download)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/yt_dlp/YoutubeDL.py", line 2640, in process_video_result
self.process_info(new_info)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/yt_dlp/YoutubeDL.py", line 3130, in process_info
success, real_download = self.dl(temp_filename, info_dict)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/yt_dlp/YoutubeDL.py", line 2838, in dl
return fd.download(name, new_info, subtitle)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/yt_dlp/downloader/common.py", line 445, in download
ret = self.real_download(filename, info_dict)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/yt_dlp/downloader/hls.py", line 348, in real_download
return self.download_and_append_fragments(ctx, fragments, info_dict)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/yt_dlp/downloader/fragment.py", line 520, in download_and_append_fragments
download_fragment(fragment, ctx)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/yt_dlp/downloader/fragment.py", line 463, in download_fragment
if self._download_fragment(ctx, fragment['url'], info_dict, headers):
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/yt_dlp/downloader/fragment.py", line 126, in _download_fragment
success, _ = ctx['dl'].download(fragment_filename, fragment_info_dict)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/yt_dlp/downloader/common.py", line 445, in download
ret = self.real_download(filename, info_dict)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/yt_dlp/downloader/http.py", line 374, in real_download
return download()
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/yt_dlp/downloader/http.py", line 343, in download
self.report_error('Did not get any data blocks')
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/yt_dlp/YoutubeDL.py", line 936, in report_error
self.trouble(f'{self._format_err("ERROR:", self.Styles.ERROR)} {message}', *args, **kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/yt_dlp/YoutubeDL.py", line 868, in trouble
tb_data = traceback.format_list(traceback.extract_stack())

ERROR: object of type 'NoneType' has no len()
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/yt_dlp/YoutubeDL.py", line 1395, in wrapper
return func(self, *args, **kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/yt_dlp/YoutubeDL.py", line 1479, in __extract_info
return self.process_ie_result(ie_result, download, extra_info)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/yt_dlp/YoutubeDL.py", line 1535, in process_ie_result
ie_result = self.process_video_result(ie_result, download=download)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/yt_dlp/YoutubeDL.py", line 2640, in process_video_result
self.process_info(new_info)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/yt_dlp/YoutubeDL.py", line 3130, in process_info
success, real_download = self.dl(temp_filename, info_dict)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/yt_dlp/YoutubeDL.py", line 2838, in dl
return fd.download(name, new_info, subtitle)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/yt_dlp/downloader/common.py", line 445, in download
ret = self.real_download(filename, info_dict)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/yt_dlp/downloader/hls.py", line 348, in real_download
return self.download_and_append_fragments(ctx, fragments, info_dict)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/yt_dlp/downloader/fragment.py", line 522, in download_and_append_fragments
decrypt_fragment(fragment, self._read_fragment(ctx)), fragment['frag_index'], ctx)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/yt_dlp/downloader/fragment.py", line 365, in decrypt_fragment
return unpad_pkcs7(aes_cbc_decrypt_bytes(frag_content, decrypt_info['KEY'], iv))
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/yt_dlp/aes.py", line 10, in aes_cbc_decrypt_bytes
return Cryptodome_AES.new(key, Cryptodome_AES.MODE_CBC, iv).decrypt(data)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/Cryptodome/Cipher/_mode_cbc.py", line 229, in decrypt
plaintext = create_string_buffer(len(ciphertext))
TypeError: object of type 'NoneType' has no len()

@gamer191

This comment was marked as resolved.

@jamestfans
Copy link

Here it is with yt-dlp again, just now. This time it's showing the data padding error:

$ yt-dlp --verbose https://iview.abc.net.au/video/CH2003Q014S00
[debug] Command-line config: ['--verbose', 'https://iview.abc.net.au/video/CH2003Q014S00']
[debug] Encodings: locale UTF-8, fs utf-8, pref UTF-8, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version 2022.05.18 [b14d52355]
[debug] Python version 3.10.0 (CPython 64bit) - macOS-12.3.1-x86_64-i386-64bit
[debug] Checking exe version: ffprobe -bsfs
[debug] Checking exe version: ffmpeg -bsfs
[debug] exe versions: ffmpeg 4.4.1 (setts), ffprobe 4.4.1
[debug] Optional libraries: Cryptodome-3.12.0, brotli-1.0.9, certifi-2021.10.08, mutagen-1.45.1, sqlite3-2.6.0, websockets-10.1
[debug] Proxy map: {}
[debug] Using fake IP 1.153.251.144 (AU) as X-Forwarded-For
[debug] [abc.net.au:iview] Extracting URL: https://iview.abc.net.au/video/CH2003Q014S00
[abc.net.au:iview] CH2003Q014S00: Downloading JSON metadata
[abc.net.au:iview] CH2003Q014S00: Downloading webpage
[abc.net.au:iview] CH2003Q014S00: Downloading m3u8 information
WARNING: [abc.net.au:iview] Ignoring subtitle tracks found in the HLS manifest; if any subtitle tracks are missing, 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
[debug] Formats sorted by: hasvid, ie_pref, lang, quality, res, fps, hdr:12(7), vcodec:vp9.2(10), acodec, filesize, fs_approx, tbr, vbr, abr, asr, proto, vext, aext, hasaud, source, id
[debug] Default format spec: bestvideo*+bestaudio/best
[info] CH2003Q014S00: Downloading 1 format(s): hls-1119
[debug] Invoking hlsnative downloader on "https://iview-vod-hls.akamaized.net/prod/ch2/CH2003Q014S00MA1D1/20211202031628/hls/4500000/hdntl=exp=1654182447~acl=%2f*~data=hdntl~hmac=9926cfbfccf30622c3d026e6d8a88509f3d09c4ea0aac580cfce14f456468b68/stream.m3u8?aka_me_session_id=AAAAAAAAAAAv0phiAAAAAJwkfOlsHZhAOkdhZ1bkfQc%2f2sitIeoLRTJFE2qVmV1IUjCjFRYlmrvxzPRWCyUW8LoznitumwWz&aka_media_format_type=hls"
[hlsnative] Downloading m3u8 manifest
[hlsnative] Total fragments: 42
[download] Destination: Series 3 Family Meeting [CH2003Q014S00].mp4
[download]   2.4% of ~61.29MiB at 153.49KiB/s ETA 06:39[download] Got server HTTP error: Downloaded 1526048 bytes, expected 1530144 bytes. Retrying (attempt 1 of 10) ...
[download]   2.4% of ~61.29MiB at 112.68KiB/s ETA 09:03 (frag 1/42)ERROR: Data must be padded to 16 byte boundary in CBC mode
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/yt_dlp/YoutubeDL.py", line 1395, in wrapper
    return func(self, *args, **kwargs)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/yt_dlp/YoutubeDL.py", line 1479, in __extract_info
    return self.process_ie_result(ie_result, download, extra_info)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/yt_dlp/YoutubeDL.py", line 1535, in process_ie_result
    ie_result = self.process_video_result(ie_result, download=download)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/yt_dlp/YoutubeDL.py", line 2640, in process_video_result
    self.process_info(new_info)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/yt_dlp/YoutubeDL.py", line 3130, in process_info
    success, real_download = self.dl(temp_filename, info_dict)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/yt_dlp/YoutubeDL.py", line 2838, in dl
    return fd.download(name, new_info, subtitle)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/yt_dlp/downloader/common.py", line 445, in download
    ret = self.real_download(filename, info_dict)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/yt_dlp/downloader/hls.py", line 348, in real_download
    return self.download_and_append_fragments(ctx, fragments, info_dict)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/yt_dlp/downloader/fragment.py", line 522, in download_and_append_fragments
    decrypt_fragment(fragment, self._read_fragment(ctx)), fragment['frag_index'], ctx)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/yt_dlp/downloader/fragment.py", line 365, in decrypt_fragment
    return unpad_pkcs7(aes_cbc_decrypt_bytes(frag_content, decrypt_info['KEY'], iv))
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/yt_dlp/aes.py", line 10, in aes_cbc_decrypt_bytes
    return Cryptodome_AES.new(key, Cryptodome_AES.MODE_CBC, iv).decrypt(data)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/Cryptodome/Cipher/_mode_cbc.py", line 246, in decrypt
    raise ValueError("Data must be padded to %d byte boundary in CBC mode" % self.block_size)
ValueError: Data must be padded to 16 byte boundary in CBC mode

@jamestfans
Copy link

And here is the youtube-dl attempt. This was successful in downloading the file.

$ youtube-dl --verbose https://iview.abc.net.au/video/CH2003Q014S00
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--verbose', 'https://iview.abc.net.au/video/CH2003Q014S00']
[debug] Encodings: locale UTF-8, fs utf-8, out utf-8, pref UTF-8
[debug] youtube-dl version 2021.12.17
[debug] Python version 3.10.1 (CPython) - macOS-10.16-x86_64-i386-64bit
[debug] exe versions: ffmpeg 4.4.1, ffprobe 4.4.1
[debug] Proxy map: {}
[debug] Using fake IP 1.155.19.207 (AU) as X-Forwarded-For.
[abc.net.au:iview] CH2003Q014S00: Downloading JSON metadata
[abc.net.au:iview] CH2003Q014S00: Downloading webpage
[abc.net.au:iview] CH2003Q014S00: Downloading m3u8 information
[debug] Default format spec: bestvideo+bestaudio/best
[debug] Invoking downloader on 'https://iview-vod-hls.akamaized.net/prod/ch2/CH2003Q014S00MA1D1/20211202031628/hls/4500000/hdntl=exp=1654182726~acl=%2f*~data=hdntl~hmac=bfbe9938b8d2db08c68218fac2a28bcedf90a34e111c4493f698f362c35e0815/stream.m3u8?aka_me_session_id=AAAAAAAAAABG05hiAAAAAAzoUj97S%2fNk6GO3zwQQAD41X6fR7y2wQ1qz2SlfIerEuMROy3afthlA0+j1K3jsAITsJWPze0A3&aka_media_format_type=hls'
[hlsnative] Downloading m3u8 manifest
WARNING: hlsnative has detected features it does not support, extraction will be delegated to ffmpeg
[download] Destination: Series 3 Family Meeting-CH2003Q014S00.mp4
[debug] ffmpeg command line: ffmpeg -y -loglevel verbose -headers 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3524.4 Safari/537.36
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Encoding: gzip, deflate
Accept-Language: en-us,en;q=0.5
X-Forwarded-For: 1.155.19.207
' -i 'https://iview-vod-hls.akamaized.net/prod/ch2/CH2003Q014S00MA1D1/20211202031628/hls/4500000/hdntl=exp=1654182726~acl=%2f*~data=hdntl~hmac=bfbe9938b8d2db08c68218fac2a28bcedf90a34e111c4493f698f362c35e0815/stream.m3u8?aka_me_session_id=AAAAAAAAAABG05hiAAAAAAzoUj97S%2fNk6GO3zwQQAD41X6fR7y2wQ1qz2SlfIerEuMROy3afthlA0+j1K3jsAITsJWPze0A3&aka_media_format_type=hls' -c copy -f mp4 'file:Series 3 Family Meeting-CH2003Q014S00.mp4.part'
ffmpeg version 4.4.1 Copyright (c) 2000-2021 the FFmpeg developers
  built with Apple clang version 13.0.0 (clang-1300.0.29.3)
  configuration: --prefix=/usr/local/Cellar/ffmpeg/4.4.1_4 --enable-shared --enable-pthreads --enable-version3 --cc=clang --host-cflags= --host-ldflags= --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libbluray --enable-libdav1d --enable-libmp3lame --enable-libopus --enable-librav1e --enable-librist --enable-librubberband --enable-libsnappy --enable-libsrt --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libspeex --enable-libsoxr --enable-libzmq --enable-libzimg --disable-libjack --disable-indev=jack --enable-avresample --enable-videotoolbox
  libavutil      56. 70.100 / 56. 70.100
  libavcodec     58.134.100 / 58.134.100
  libavformat    58. 76.100 / 58. 76.100
  libavdevice    58. 13.100 / 58. 13.100
  libavfilter     7.110.100 /  7.110.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  9.100 /  5.  9.100
  libswresample   3.  9.100 /  3.  9.100
  libpostproc    55.  9.100 / 55.  9.100
[tcp @ 0x7fe050f04800] Starting connection attempt to 198.18.1.87 port 443
[tcp @ 0x7fe050f04800] Successfully connected to 198.18.1.87 port 443
[hls @ 0x7fe051818800] Skip ('#EXT-X-VERSION:3')
[hls @ 0x7fe051818800] Skip ('#EXT-X-INDEPENDENT-SEGMENTS')
[hls @ 0x7fe051818800] HLS request for url 'https://iview-vod-hls.akamaized.net/prod/ch2/CH2003Q014S00MA1D1/20211202031628/hls/4500000/hdntl=exp=1654182726~acl=%2f*~data=hdntl~hmac=bfbe9938b8d2db08c68218fac2a28bcedf90a34e111c4493f698f362c35e0815/segment-0.ts?aka_me_session_id=AAAAAAAAAABG05hiAAAAAAzoUj97S%2fNk6GO3zwQQAD41X6fR7y2wQ1qz2SlfIerEuMROy3afthlA0+j1K3jsAITsJWPze0A3&aka_msn=0&aka_hls_version=3&aka_media_format_type=hls', offset 0, playlist 0
[hls @ 0x7fe051818800] Opening 'https://iview-vod-hls.akamaized.net/prod/ch2/CH2003Q014S00MA1D1/20211202031628/hls/4500000/serve.key?hdntl=exp=1654182726~acl=/*~data=hdntl~hmac=bfbe9938b8d2db08c68218fac2a28bcedf90a34e111c4493f698f362c35e0815&aka_me_session_id=AAAAAAAAAABG05hiAAAAAAzoUj97S%2fNk6GO3zwQQAD41X6fR7y2wQ1qz2SlfIerEuMROy3afthlA0+j1K3jsAITsJWPze0A3' for reading
[tcp @ 0x7fe052006f80] Starting connection attempt to 198.18.1.87 port 443
[tcp @ 0x7fe052006f80] Successfully connected to 198.18.1.87 port 443
[AVIOContext @ 0x7fe052305680] Statistics: 16 bytes read, 0 seeks
[hls @ 0x7fe051818800] Opening 'crypto+https://iview-vod-hls.akamaized.net/prod/ch2/CH2003Q014S00MA1D1/20211202031628/hls/4500000/hdntl=exp=1654182726~acl=%2f*~data=hdntl~hmac=bfbe9938b8d2db08c68218fac2a28bcedf90a34e111c4493f698f362c35e0815/segment-0.ts?aka_me_session_id=AAAAAAAAAABG05hiAAAAAAzoUj97S%2fNk6GO3zwQQAD41X6fR7y2wQ1qz2SlfIerEuMROy3afthlA0+j1K3jsAITsJWPze0A3&aka_msn=0&aka_hls_version=3&aka_media_format_type=hls' for reading
[tcp @ 0x7fe0523057c0] Starting connection attempt to 198.18.1.87 port 443
[tcp @ 0x7fe0523057c0] Successfully connected to 198.18.1.87 port 443
[h264 @ 0x7fe052808800] Reinit context to 1280x720, pix_fmt: yuv420p
Input #0, hls, from 'https://iview-vod-hls.akamaized.net/prod/ch2/CH2003Q014S00MA1D1/20211202031628/hls/4500000/hdntl=exp=1654182726~acl=%2f*~data=hdntl~hmac=bfbe9938b8d2db08c68218fac2a28bcedf90a34e111c4493f698f362c35e0815/stream.m3u8?aka_me_session_id=AAAAAAAAAABG05hiAAAAAAzoUj97S%2fNk6GO3zwQQAD41X6fR7y2wQ1qz2SlfIerEuMROy3afthlA0+j1K3jsAITsJWPze0A3&aka_media_format_type=hls':
  Duration: 00:06:59.96, start: 0.111111, bitrate: N/A
  Program 0 
    Metadata:
      variant_bitrate : 0
  Stream #0:0: Audio: aac (LC) ([15][0][0][0] / 0x000F), 44100 Hz, stereo, fltp
    Metadata:
      variant_bitrate : 0
  Stream #0:1: Video: h264 (High), 1 reference frame ([27][0][0][0] / 0x001B), yuv420p(left), 1280x720 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
    Metadata:
      variant_bitrate : 0
Output #0, mp4, to 'file:Series 3 Family Meeting-CH2003Q014S00.mp4.part':
  Metadata:
    encoder         : Lavf58.76.100
  Stream #0:0: Video: h264 (High), 1 reference frame (avc1 / 0x31637661), yuv420p(left), 1280x720 (0x0) [SAR 1:1 DAR 16:9], q=2-31, 25 fps, 25 tbr, 90k tbn, 90k tbc
    Metadata:
      variant_bitrate : 0
  Stream #0:1: Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp
    Metadata:
      variant_bitrate : 0
Stream mapping:
  Stream #0:1 -> #0:0 (copy)
  Stream #0:0 -> #0:1 (copy)
Press [q] to stop, [?] for help
Automatically inserted bitstream filter 'aac_adtstoasc'; args=''
[AVIOContext @ 0x7fe050f0ad80] Statistics: 1530112 bytes read, 0 seeks50.2kbits/s speed= 7.6x    
[hls @ 0x7fe051818800] HLS request for url 'https://iview-vod-hls.akamaized.net/prod/ch2/CH2003Q014S00MA1D1/20211202031628/hls/4500000/hdntl=exp=1654182726~acl=%2f*~data=hdntl~hmac=bfbe9938b8d2db08c68218fac2a28bcedf90a34e111c4493f698f362c35e0815/segment-1.ts?aka_me_session_id=AAAAAAAAAABG05hiAAAAAAzoUj97S%2fNk6GO3zwQQAD41X6fR7y2wQ1qz2SlfIerEuMROy3afthlA0+j1K3jsAITsJWPze0A3&aka_msn=1&aka_hls_version=3&aka_media_format_type=hls', offset 0, playlist 0
[hls @ 0x7fe051818800] Opening 'crypto+https://iview-vod-hls.akamaized.net/prod/ch2/CH2003Q014S00MA1D1/20211202031628/hls/4500000/hdntl=exp=1654182726~acl=%2f*~data=hdntl~hmac=bfbe9938b8d2db08c68218fac2a28bcedf90a34e111c4493f698f362c35e0815/segment-1.ts?aka_me_session_id=AAAAAAAAAABG05hiAAAAAAzoUj97S%2fNk6GO3zwQQAD41X6fR7y2wQ1qz2SlfIerEuMROy3afthlA0+j1K3jsAITsJWPze0A3&aka_msn=1&aka_hls_version=3&aka_media_format_type=hls' for reading
[tcp @ 0x7fe052240d80] Starting connection attempt to 198.18.1.87 port 443
[tcp @ 0x7fe052240d80] Successfully connected to 198.18.1.87 port 443
[AVIOContext @ 0x7fe052006840] Statistics: 1635200 bytes read, 0 seeks30.4kbits/s speed=2.32x    
[hls @ 0x7fe051818800] HLS request for url 'https://iview-vod-hls.akamaized.net/prod/ch2/CH2003Q014S00MA1D1/20211202031628/hls/4500000/hdntl=exp=1654182726~acl=%2f*~data=hdntl~hmac=bfbe9938b8d2db08c68218fac2a28bcedf90a34e111c4493f698f362c35e0815/segment-2.ts?aka_me_session_id=AAAAAAAAAABG05hiAAAAAAzoUj97S%2fNk6GO3zwQQAD41X6fR7y2wQ1qz2SlfIerEuMROy3afthlA0+j1K3jsAITsJWPze0A3&aka_msn=2&aka_hls_version=3&aka_media_format_type=hls', offset 0, playlist 0
[hls @ 0x7fe051818800] Opening 'crypto+https://iview-vod-hls.akamaized.net/prod/ch2/CH2003Q014S00MA1D1/20211202031628/hls/4500000/hdntl=exp=1654182726~acl=%2f*~data=hdntl~hmac=bfbe9938b8d2db08c68218fac2a28bcedf90a34e111c4493f698f362c35e0815/segment-2.ts?aka_me_session_id=AAAAAAAAAABG05hiAAAAAAzoUj97S%2fNk6GO3zwQQAD41X6fR7y2wQ1qz2SlfIerEuMROy3afthlA0+j1K3jsAITsJWPze0A3&aka_msn=2&aka_hls_version=3&aka_media_format_type=hls' for reading
[tcp @ 0x7fe05230da80] Starting connection attempt to 198.18.1.87 port 443
[tcp @ 0x7fe05230da80] Successfully connected to 198.18.1.87 port 443
[AVIOContext @ 0x7fe052304ec0] Statistics: 1618656 bytes read, 0 seeks94.8kbits/s speed=1.95x    
[hls @ 0x7fe051818800] HLS request for url 'https://iview-vod-hls.akamaized.net/prod/ch2/CH2003Q014S00MA1D1/20211202031628/hls/4500000/hdntl=exp=1654182726~acl=%2f*~data=hdntl~hmac=bfbe9938b8d2db08c68218fac2a28bcedf90a34e111c4493f698f362c35e0815/segment-3.ts?aka_me_session_id=AAAAAAAAAABG05hiAAAAAAzoUj97S%2fNk6GO3zwQQAD41X6fR7y2wQ1qz2SlfIerEuMROy3afthlA0+j1K3jsAITsJWPze0A3&aka_msn=3&aka_hls_version=3&aka_media_format_type=hls', offset 0, playlist 0
[hls @ 0x7fe051818800] Opening 'crypto+https://iview-vod-hls.akamaized.net/prod/ch2/CH2003Q014S00MA1D1/20211202031628/hls/4500000/hdntl=exp=1654182726~acl=%2f*~data=hdntl~hmac=bfbe9938b8d2db08c68218fac2a28bcedf90a34e111c4493f698f362c35e0815/segment-3.ts?aka_me_session_id=AAAAAAAAAABG05hiAAAAAAzoUj97S%2fNk6GO3zwQQAD41X6fR7y2wQ1qz2SlfIerEuMROy3afthlA0+j1K3jsAITsJWPze0A3&aka_msn=3&aka_hls_version=3&aka_media_format_type=hls' for reading
[tcp @ 0x7fe05230da80] Starting connection attempt to 198.18.1.87 port 443
[tcp @ 0x7fe05230da80] Successfully connected to 198.18.1.87 port 443
[AVIOContext @ 0x7fe05230d600] Statistics: 1527305 bytes read, 0 seeks42.5kbits/s speed=1.89x    
[hls @ 0x7fe051818800] HLS request for url 'https://iview-vod-hls.akamaized.net/prod/ch2/CH2003Q014S00MA1D1/20211202031628/hls/4500000/hdntl=exp=1654182726~acl=%2f*~data=hdntl~hmac=bfbe9938b8d2db08c68218fac2a28bcedf90a34e111c4493f698f362c35e0815/segment-4.ts?aka_me_session_id=AAAAAAAAAABG05hiAAAAAAzoUj97S%2fNk6GO3zwQQAD41X6fR7y2wQ1qz2SlfIerEuMROy3afthlA0+j1K3jsAITsJWPze0A3&aka_msn=4&aka_hls_version=3&aka_media_format_type=hls', offset 0, playlist 0
[hls @ 0x7fe051818800] Opening 'crypto+https://iview-vod-hls.akamaized.net/prod/ch2/CH2003Q014S00MA1D1/20211202031628/hls/4500000/hdntl=exp=1654182726~acl=%2f*~data=hdntl~hmac=bfbe9938b8d2db08c68218fac2a28bcedf90a34e111c4493f698f362c35e0815/segment-4.ts?aka_me_session_id=AAAAAAAAAABG05hiAAAAAAzoUj97S%2fNk6GO3zwQQAD41X6fR7y2wQ1qz2SlfIerEuMROy3afthlA0+j1K3jsAITsJWPze0A3&aka_msn=4&aka_hls_version=3&aka_media_format_type=hls' for reading
[tcp @ 0x7fe05230da80] Starting connection attempt to 198.18.1.87 port 443
[tcp @ 0x7fe05230da80] Successfully connected to 198.18.1.87 port 443
[AVIOContext @ 0x7fe052006700] Statistics: 1251488 bytes read, 0 seeks37.3kbits/s speed=1.75x    
[hls @ 0x7fe051818800] HLS request for url 'https://iview-vod-hls.akamaized.net/prod/ch2/CH2003Q014S00MA1D1/20211202031628/hls/4500000/hdntl=exp=1654182726~acl=%2f*~data=hdntl~hmac=bfbe9938b8d2db08c68218fac2a28bcedf90a34e111c4493f698f362c35e0815/segment-5.ts?aka_me_session_id=AAAAAAAAAABG05hiAAAAAAzoUj97S%2fNk6GO3zwQQAD41X6fR7y2wQ1qz2SlfIerEuMROy3afthlA0+j1K3jsAITsJWPze0A3&aka_msn=5&aka_hls_version=3&aka_media_format_type=hls', offset 0, playlist 0
[hls @ 0x7fe051818800] Opening 'crypto+https://iview-vod-hls.akamaized.net/prod/ch2/CH2003Q014S00MA1D1/20211202031628/hls/4500000/hdntl=exp=1654182726~acl=%2f*~data=hdntl~hmac=bfbe9938b8d2db08c68218fac2a28bcedf90a34e111c4493f698f362c35e0815/segment-5.ts?aka_me_session_id=AAAAAAAAAABG05hiAAAAAAzoUj97S%2fNk6GO3zwQQAD41X6fR7y2wQ1qz2SlfIerEuMROy3afthlA0+j1K3jsAITsJWPze0A3&aka_msn=5&aka_hls_version=3&aka_media_format_type=hls' for reading
[tcp @ 0x7fe052006f80] Starting connection attempt to 198.18.1.87 port 443
[tcp @ 0x7fe052006f80] Successfully connected to 198.18.1.87 port 443
[AVIOContext @ 0x7fe052240840] Statistics: 1298304 bytes read, 0 seeks96.4kbits/s speed=1.82x    
[hls @ 0x7fe051818800] HLS request for url 'https://iview-vod-hls.akamaized.net/prod/ch2/CH2003Q014S00MA1D1/20211202031628/hls/4500000/hdntl=exp=1654182726~acl=%2f*~data=hdntl~hmac=bfbe9938b8d2db08c68218fac2a28bcedf90a34e111c4493f698f362c35e0815/segment-6.ts?aka_me_session_id=AAAAAAAAAABG05hiAAAAAAzoUj97S%2fNk6GO3zwQQAD41X6fR7y2wQ1qz2SlfIerEuMROy3afthlA0+j1K3jsAITsJWPze0A3&aka_msn=6&aka_hls_version=3&aka_media_format_type=hls', offset 0, playlist 0
[hls @ 0x7fe051818800] Opening 'crypto+https://iview-vod-hls.akamaized.net/prod/ch2/CH2003Q014S00MA1D1/20211202031628/hls/4500000/hdntl=exp=1654182726~acl=%2f*~data=hdntl~hmac=bfbe9938b8d2db08c68218fac2a28bcedf90a34e111c4493f698f362c35e0815/segment-6.ts?aka_me_session_id=AAAAAAAAAABG05hiAAAAAAzoUj97S%2fNk6GO3zwQQAD41X6fR7y2wQ1qz2SlfIerEuMROy3afthlA0+j1K3jsAITsJWPze0A3&aka_msn=6&aka_hls_version=3&aka_media_format_type=hls' for reading
[tcp @ 0x7fe05200aa80] Starting connection attempt to 198.18.1.87 port 443
[tcp @ 0x7fe05200aa80] Successfully connected to 198.18.1.87 port 443
[AVIOContext @ 0x7fe05200bac0] Statistics: 1134560 bytes read, 0 seeks39.9kbits/s speed=1.86x    
[hls @ 0x7fe051818800] HLS request for url 'https://iview-vod-hls.akamaized.net/prod/ch2/CH2003Q014S00MA1D1/20211202031628/hls/4500000/hdntl=exp=1654182726~acl=%2f*~data=hdntl~hmac=bfbe9938b8d2db08c68218fac2a28bcedf90a34e111c4493f698f362c35e0815/segment-7.ts?aka_me_session_id=AAAAAAAAAABG05hiAAAAAAzoUj97S%2fNk6GO3zwQQAD41X6fR7y2wQ1qz2SlfIerEuMROy3afthlA0+j1K3jsAITsJWPze0A3&aka_msn=7&aka_hls_version=3&aka_media_format_type=hls', offset 0, playlist 0
[hls @ 0x7fe051818800] Opening 'crypto+https://iview-vod-hls.akamaized.net/prod/ch2/CH2003Q014S00MA1D1/20211202031628/hls/4500000/hdntl=exp=1654182726~acl=%2f*~data=hdntl~hmac=bfbe9938b8d2db08c68218fac2a28bcedf90a34e111c4493f698f362c35e0815/segment-7.ts?aka_me_session_id=AAAAAAAAAABG05hiAAAAAAzoUj97S%2fNk6GO3zwQQAD41X6fR7y2wQ1qz2SlfIerEuMROy3afthlA0+j1K3jsAITsJWPze0A3&aka_msn=7&aka_hls_version=3&aka_media_format_type=hls' for reading
[tcp @ 0x7fe050f10c40] Starting connection attempt to 198.18.1.87 port 443
[tcp @ 0x7fe050f10c40] Successfully connected to 198.18.1.87 port 443

Removed about 150 lines of basically the same bit, then...

[AVIOContext @ 0x7fe052006dc0] Statistics: 1285152 bytes read, 0 seeks20.5kbits/s speed=0.863x    
[hls @ 0x7fe051818800] HLS request for url 'https://iview-vod-hls.akamaized.net/prod/ch2/CH2003Q014S00MA1D1/20211202031628/hls/4500000/hdntl=exp=1654182726~acl=%2f*~data=hdntl~hmac=bfbe9938b8d2db08c68218fac2a28bcedf90a34e111c4493f698f362c35e0815/segment-37.ts?aka_me_session_id=AAAAAAAAAABG05hiAAAAAAzoUj97S%2fNk6GO3zwQQAD41X6fR7y2wQ1qz2SlfIerEuMROy3afthlA0+j1K3jsAITsJWPze0A3&aka_msn=37&aka_hls_version=3&aka_media_format_type=hls', offset 0, playlist 0
[hls @ 0x7fe051818800] Opening 'crypto+https://iview-vod-hls.akamaized.net/prod/ch2/CH2003Q014S00MA1D1/20211202031628/hls/4500000/hdntl=exp=1654182726~acl=%2f*~data=hdntl~hmac=bfbe9938b8d2db08c68218fac2a28bcedf90a34e111c4493f698f362c35e0815/segment-37.ts?aka_me_session_id=AAAAAAAAAABG05hiAAAAAAzoUj97S%2fNk6GO3zwQQAD41X6fR7y2wQ1qz2SlfIerEuMROy3afthlA0+j1K3jsAITsJWPze0A3&aka_msn=37&aka_hls_version=3&aka_media_format_type=hls' for reading
[tcp @ 0x7fe05230da80] Starting connection attempt to 198.18.1.87 port 443
[tcp @ 0x7fe05230da80] Successfully connected to 198.18.1.87 port 443
[AVIOContext @ 0x7fe050f0fec0] Statistics: 1420512 bytes read, 0 seeks22.5kbits/s speed=0.845x    
[hls @ 0x7fe051818800] HLS request for url 'https://iview-vod-hls.akamaized.net/prod/ch2/CH2003Q014S00MA1D1/20211202031628/hls/4500000/hdntl=exp=1654182726~acl=%2f*~data=hdntl~hmac=bfbe9938b8d2db08c68218fac2a28bcedf90a34e111c4493f698f362c35e0815/segment-38.ts?aka_me_session_id=AAAAAAAAAABG05hiAAAAAAzoUj97S%2fNk6GO3zwQQAD41X6fR7y2wQ1qz2SlfIerEuMROy3afthlA0+j1K3jsAITsJWPze0A3&aka_msn=38&aka_hls_version=3&aka_media_format_type=hls', offset 0, playlist 0
[hls @ 0x7fe051818800] Opening 'crypto+https://iview-vod-hls.akamaized.net/prod/ch2/CH2003Q014S00MA1D1/20211202031628/hls/4500000/hdntl=exp=1654182726~acl=%2f*~data=hdntl~hmac=bfbe9938b8d2db08c68218fac2a28bcedf90a34e111c4493f698f362c35e0815/segment-38.ts?aka_me_session_id=AAAAAAAAAABG05hiAAAAAAzoUj97S%2fNk6GO3zwQQAD41X6fR7y2wQ1qz2SlfIerEuMROy3afthlA0+j1K3jsAITsJWPze0A3&aka_msn=38&aka_hls_version=3&aka_media_format_type=hls' for reading
[tcp @ 0x7fe05230da80] Starting connection attempt to 198.18.1.87 port 443
[tcp @ 0x7fe05230da80] Successfully connected to 198.18.1.87 port 443
[AVIOContext @ 0x7fe05230d600] Statistics: 1581808 bytes read, 0 seeks22.7kbits/s speed=0.844x    
[hls @ 0x7fe051818800] HLS request for url 'https://iview-vod-hls.akamaized.net/prod/ch2/CH2003Q014S00MA1D1/20211202031628/hls/4500000/hdntl=exp=1654182726~acl=%2f*~data=hdntl~hmac=bfbe9938b8d2db08c68218fac2a28bcedf90a34e111c4493f698f362c35e0815/segment-39.ts?aka_me_session_id=AAAAAAAAAABG05hiAAAAAAzoUj97S%2fNk6GO3zwQQAD41X6fR7y2wQ1qz2SlfIerEuMROy3afthlA0+j1K3jsAITsJWPze0A3&aka_msn=39&aka_hls_version=3&aka_media_format_type=hls', offset 0, playlist 0
[hls @ 0x7fe051818800] Opening 'crypto+https://iview-vod-hls.akamaized.net/prod/ch2/CH2003Q014S00MA1D1/20211202031628/hls/4500000/hdntl=exp=1654182726~acl=%2f*~data=hdntl~hmac=bfbe9938b8d2db08c68218fac2a28bcedf90a34e111c4493f698f362c35e0815/segment-39.ts?aka_me_session_id=AAAAAAAAAABG05hiAAAAAAzoUj97S%2fNk6GO3zwQQAD41X6fR7y2wQ1qz2SlfIerEuMROy3afthlA0+j1K3jsAITsJWPze0A3&aka_msn=39&aka_hls_version=3&aka_media_format_type=hls' for reading
[tcp @ 0x7fe052007080] Starting connection attempt to 198.18.1.87 port 443
[tcp @ 0x7fe052007080] Successfully connected to 198.18.1.87 port 443
[AVIOContext @ 0x7fe050f38bc0] Statistics: 1980752 bytes read, 0 seeks35.2kbits/s speed=0.835x    
[hls @ 0x7fe051818800] HLS request for url 'https://iview-vod-hls.akamaized.net/prod/ch2/CH2003Q014S00MA1D1/20211202031628/hls/4500000/hdntl=exp=1654182726~acl=%2f*~data=hdntl~hmac=bfbe9938b8d2db08c68218fac2a28bcedf90a34e111c4493f698f362c35e0815/segment-40.ts?aka_me_session_id=AAAAAAAAAABG05hiAAAAAAzoUj97S%2fNk6GO3zwQQAD41X6fR7y2wQ1qz2SlfIerEuMROy3afthlA0+j1K3jsAITsJWPze0A3&aka_msn=40&aka_hls_version=3&aka_media_format_type=hls', offset 0, playlist 0
[hls @ 0x7fe051818800] Opening 'crypto+https://iview-vod-hls.akamaized.net/prod/ch2/CH2003Q014S00MA1D1/20211202031628/hls/4500000/hdntl=exp=1654182726~acl=%2f*~data=hdntl~hmac=bfbe9938b8d2db08c68218fac2a28bcedf90a34e111c4493f698f362c35e0815/segment-40.ts?aka_me_session_id=AAAAAAAAAABG05hiAAAAAAzoUj97S%2fNk6GO3zwQQAD41X6fR7y2wQ1qz2SlfIerEuMROy3afthlA0+j1K3jsAITsJWPze0A3&aka_msn=40&aka_hls_version=3&aka_media_format_type=hls' for reading
[tcp @ 0x7fe052006f80] Starting connection attempt to 198.18.1.87 port 443
[tcp @ 0x7fe052006f80] Successfully connected to 198.18.1.87 port 443
[AVIOContext @ 0x7fe052011340] Statistics: 1313904 bytes read, 0 seeks37.8kbits/s speed=0.836x    
[hls @ 0x7fe051818800] HLS request for url 'https://iview-vod-hls.akamaized.net/prod/ch2/CH2003Q014S00MA1D1/20211202031628/hls/4500000/hdntl=exp=1654182726~acl=%2f*~data=hdntl~hmac=bfbe9938b8d2db08c68218fac2a28bcedf90a34e111c4493f698f362c35e0815/segment-41.ts?aka_me_session_id=AAAAAAAAAABG05hiAAAAAAzoUj97S%2fNk6GO3zwQQAD41X6fR7y2wQ1qz2SlfIerEuMROy3afthlA0+j1K3jsAITsJWPze0A3&aka_msn=41&aka_hls_version=3&aka_media_format_type=hls', offset 0, playlist 0
[hls @ 0x7fe051818800] Opening 'crypto+https://iview-vod-hls.akamaized.net/prod/ch2/CH2003Q014S00MA1D1/20211202031628/hls/4500000/hdntl=exp=1654182726~acl=%2f*~data=hdntl~hmac=bfbe9938b8d2db08c68218fac2a28bcedf90a34e111c4493f698f362c35e0815/segment-41.ts?aka_me_session_id=AAAAAAAAAABG05hiAAAAAAzoUj97S%2fNk6GO3zwQQAD41X6fR7y2wQ1qz2SlfIerEuMROy3afthlA0+j1K3jsAITsJWPze0A3&aka_msn=41&aka_hls_version=3&aka_media_format_type=hls' for reading
[tcp @ 0x7fe052007080] Starting connection attempt to 198.18.1.87 port 443
[tcp @ 0x7fe052007080] Successfully connected to 198.18.1.87 port 443
[AVIOContext @ 0x7fe05230e540] Statistics: 735440 bytes read, 0 seeks026.6kbits/s speed=0.84x     
[mpegts @ 0x7fe051832800] PES packet size mismatch
[mpegts @ 0x7fe051832800] Packet corrupt (stream = 0, dts = 37812318).
No more output streams to write to, finishing.
frame=10500 fps= 21 q=-1.0 Lsize=   52823kB time=00:07:00.02 bitrate=1030.2kbits/s speed=0.85x    
video:45907kB audio:6687kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.435888%
Input file #0 (https://iview-vod-hls.akamaized.net/prod/ch2/CH2003Q014S00MA1D1/20211202031628/hls/4500000/hdntl=exp=1654182726~acl=%2f*~data=hdntl~hmac=bfbe9938b8d2db08c68218fac2a28bcedf90a34e111c4493f698f362c35e0815/stream.m3u8?aka_me_session_id=AAAAAAAAAABG05hiAAAAAAzoUj97S%2fNk6GO3zwQQAD41X6fR7y2wQ1qz2SlfIerEuMROy3afthlA0+j1K3jsAITsJWPze0A3&aka_media_format_type=hls):
  Input stream #0:0 (audio): 18090 packets read (6847390 bytes); 
  Input stream #0:1 (video): 10500 packets read (47008907 bytes); 
  Total: 28590 packets (53856297 bytes) demuxed
Output file #0 (file:Series 3 Family Meeting-CH2003Q014S00.mp4.part):
  Output stream #0:0 (video): 10500 packets muxed (47008907 bytes); 
  Output stream #0:1 (audio): 18090 packets muxed (6847390 bytes); 
  Total: 28590 packets (53856297 bytes) muxed
[AVIOContext @ 0x7fe050f0c440] Statistics: 14 seeks, 218 writeouts
[AVIOContext @ 0x7fe0523044c0] Statistics: 9182 bytes read, 0 seeks
[ffmpeg] Downloaded 54091050 bytes
[download] 100% of 51.59MiB in 08:26
[download] 100% of 51.59MiB in 08:26
[debug] ffmpeg command line: ffprobe -show_streams 'file:Series 3 Family Meeting-CH2003Q014S00.mp4'
[ffmpeg] Fixing malformed AAC bitstream in "Series 3 Family Meeting-CH2003Q014S00.mp4"
[debug] ffmpeg command line: ffmpeg -y -loglevel repeat+info -i 'file:Series 3 Family Meeting-CH2003Q014S00.mp4' -c copy -f mp4 -bsf:a aac_adtstoasc 'file:Series 3 Family Meeting-CH2003Q014S00.temp.mp4'

@jamestfans
Copy link

One more thing to add to the yt-dlp attempts. It fails at a different percentage downloaded each time. Sometimes it gets over 70% of the file downloaded, while others it fails with less than 5% downloaded. I'm not sure if that's relevant here, but thought it should be noted.

So far I have not had any failures with youtube-dl.

@pukkandan pukkandan added triage Untriaged issue and removed incomplete Further information is needed labels Jun 1, 2022
@pukkandan pukkandan reopened this Jun 1, 2022
@pukkandan pukkandan added the regression Works in youtube-dl/older yt-dlp label Jun 1, 2022
@gamer191
Copy link
Collaborator

gamer191 commented Jun 2, 2022

@jamestfans what happens if you run the yt-dlp command with --downloader ffmpeg?

@gamer191

This comment was marked as resolved.

@jamestfans
Copy link

@gamer191, running with --downloader ffmpeg worked.

And thank you for the tip on the updates. I took care of that.

@pukkandan pukkandan added regression Works in youtube-dl/older yt-dlp and removed regression Works in youtube-dl/older yt-dlp labels Jun 2, 2022
@gamer191
Copy link
Collaborator

And thank you for the tip on the updates. I took care of that.

Does it still fail now that you've updated pycryptodomex, and a few days have passed?

@jamestfans
Copy link

Still does not work.

yt-dlp https://iview.abc.net.au/video/CH2003Q030S00 --verbose
[debug] Command-line config: ['https://iview.abc.net.au/video/CH2003Q030S00', '--verbose']
[debug] Encodings: locale UTF-8, fs utf-8, pref UTF-8, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version 2022.05.18 [b14d52355]
[debug] Python version 3.10.0 (CPython 64bit) - macOS-12.4-x86_64-i386-64bit
[debug] Checking exe version: ffprobe -bsfs
[debug] Checking exe version: ffmpeg -bsfs
[debug] exe versions: ffmpeg 4.4.1 (setts), ffprobe 4.4.1
[debug] Optional libraries: Cryptodome-3.14.1, brotli-1.0.9, certifi-2021.10.08, mutagen-1.45.1, sqlite3-2.6.0, websockets-10.3
[debug] Proxy map: {}
[debug] Using fake IP 1.136.214.55 (AU) as X-Forwarded-For
[debug] [abc.net.au:iview] Extracting URL: https://iview.abc.net.au/video/CH2003Q030S00
[abc.net.au:iview] CH2003Q030S00: Downloading JSON metadata
[abc.net.au:iview] CH2003Q030S00: Downloading webpage
[abc.net.au:iview] CH2003Q030S00: Downloading m3u8 information
WARNING: [abc.net.au:iview] Ignoring subtitle tracks found in the HLS manifest; if any subtitle tracks are missing, 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
[debug] Formats sorted by: hasvid, ie_pref, lang, quality, res, fps, hdr:12(7), vcodec:vp9.2(10), acodec, filesize, fs_approx, tbr, vbr, abr, asr, proto, vext, aext, hasaud, source, id
[debug] Default format spec: bestvideo*+bestaudio/best
[info] CH2003Q030S00: Downloading 1 format(s): hls-1101
[debug] Invoking hlsnative downloader on "https://iview-vod-hls.akamaized.net/prod/ch2/CH2003Q030S00MA1D1/20220614113903/hls/4500000/hdntl=exp=1655351012~acl=%2f*~data=hdntl~hmac=6aa281110f94188f31e0ab19f5f9da0f9eefdf5b56e826552d57aa88f3c76390/stream.m3u8?aka_me_session_id=AAAAAAAAAADkpqpiAAAAAM3UNBd8gQxUCwbm11x+Il779luHjg1UbMXKdxzC3HQ9FLda%2fudxsFt4EbA3zL5cOp2719LYPPu1&aka_media_format_type=hls"
[hlsnative] Downloading m3u8 manifest
[hlsnative] Total fragments: 42
[download] Destination: Series 3 Puppets [CH2003Q030S00].mp4
[download]   4.8% of ~63.27MiB at 147.54KiB/s ETA 05:41 (frag 1/42)[download] Got server HTTP error: Downloaded 1627712 bytes, expected 1633728 bytes. Retrying (attempt 1 of 10) ...

ERROR: Did not get any data blocks
  File "/Library/Frameworks/Python.framework/Versions/3.10/bin/yt-dlp", line 8, in <module>
    sys.exit(main())
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/yt_dlp/__init__.py", line 857, in main
    _real_main(argv)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/yt_dlp/__init__.py", line 847, in _real_main
    retcode = ydl.download(all_urls)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/yt_dlp/YoutubeDL.py", line 3254, in download
    self.__download_wrapper(self.extract_info)(
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/yt_dlp/YoutubeDL.py", line 3230, in wrapper
    res = func(*args, **kwargs)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/yt_dlp/YoutubeDL.py", line 1386, in extract_info
    return self.__extract_info(url, self.get_info_extractor(ie_key), download, extra_info, process)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/yt_dlp/YoutubeDL.py", line 1395, in wrapper
    return func(self, *args, **kwargs)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/yt_dlp/YoutubeDL.py", line 1479, in __extract_info
    return self.process_ie_result(ie_result, download, extra_info)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/yt_dlp/YoutubeDL.py", line 1535, in process_ie_result
    ie_result = self.process_video_result(ie_result, download=download)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/yt_dlp/YoutubeDL.py", line 2640, in process_video_result
    self.process_info(new_info)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/yt_dlp/YoutubeDL.py", line 3130, in process_info
    success, real_download = self.dl(temp_filename, info_dict)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/yt_dlp/YoutubeDL.py", line 2838, in dl
    return fd.download(name, new_info, subtitle)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/yt_dlp/downloader/common.py", line 445, in download
    ret = self.real_download(filename, info_dict)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/yt_dlp/downloader/hls.py", line 348, in real_download
    return self.download_and_append_fragments(ctx, fragments, info_dict)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/yt_dlp/downloader/fragment.py", line 520, in download_and_append_fragments
    download_fragment(fragment, ctx)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/yt_dlp/downloader/fragment.py", line 463, in download_fragment
    if self._download_fragment(ctx, fragment['url'], info_dict, headers):
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/yt_dlp/downloader/fragment.py", line 126, in _download_fragment
    success, _ = ctx['dl'].download(fragment_filename, fragment_info_dict)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/yt_dlp/downloader/common.py", line 445, in download
    ret = self.real_download(filename, info_dict)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/yt_dlp/downloader/http.py", line 374, in real_download
    return download()
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/yt_dlp/downloader/http.py", line 343, in download
    self.report_error('Did not get any data blocks')
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/yt_dlp/YoutubeDL.py", line 936, in report_error
    self.trouble(f'{self._format_err("ERROR:", self.Styles.ERROR)} {message}', *args, **kwargs)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/yt_dlp/YoutubeDL.py", line 868, in trouble
    tb_data = traceback.format_list(traceback.extract_stack())

ERROR: object of type 'NoneType' has no len()
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/yt_dlp/YoutubeDL.py", line 1395, in wrapper
    return func(self, *args, **kwargs)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/yt_dlp/YoutubeDL.py", line 1479, in __extract_info
    return self.process_ie_result(ie_result, download, extra_info)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/yt_dlp/YoutubeDL.py", line 1535, in process_ie_result
    ie_result = self.process_video_result(ie_result, download=download)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/yt_dlp/YoutubeDL.py", line 2640, in process_video_result
    self.process_info(new_info)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/yt_dlp/YoutubeDL.py", line 3130, in process_info
    success, real_download = self.dl(temp_filename, info_dict)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/yt_dlp/YoutubeDL.py", line 2838, in dl
    return fd.download(name, new_info, subtitle)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/yt_dlp/downloader/common.py", line 445, in download
    ret = self.real_download(filename, info_dict)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/yt_dlp/downloader/hls.py", line 348, in real_download
    return self.download_and_append_fragments(ctx, fragments, info_dict)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/yt_dlp/downloader/fragment.py", line 522, in download_and_append_fragments
    decrypt_fragment(fragment, self._read_fragment(ctx)), fragment['frag_index'], ctx)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/yt_dlp/downloader/fragment.py", line 365, in decrypt_fragment
    return unpad_pkcs7(aes_cbc_decrypt_bytes(frag_content, decrypt_info['KEY'], iv))
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/yt_dlp/aes.py", line 10, in aes_cbc_decrypt_bytes
    return Cryptodome_AES.new(key, Cryptodome_AES.MODE_CBC, iv).decrypt(data)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/Cryptodome/Cipher/_mode_cbc.py", line 229, in decrypt
    plaintext = create_string_buffer(len(ciphertext))
TypeError: object of type 'NoneType' has no len()

@nyxkitty
Copy link

nyxkitty commented Jul 1, 2022

Found this via Google and figured I'd post here instead of opening a new issue.

I've been experiencing this error in the last 24 hours. It tends to occur if I'm grabbing more than one episode simultaneously.

I don't have a debug log, sorry, but the few times it's occurred, I deleted all files for the episode and restarted the download. It usually works fine afterwards.

The last time I encountered the error though, I deleted only the fragment file then resumed the download, which finished without further issue.

Edited to add I'm not using a VPN or proxy.

@pukkandan pukkandan added account-needed Account details are needed to test/fix this site-bug Issue with a specific website and removed triage Untriaged issue regression Works in youtube-dl/older yt-dlp labels Jul 2, 2022
@pukkandan
Copy link
Member

Unlike the "Data must be padded to 16 byte boundary in CBC mode" error, the "Got server HTTP error: Downloaded ... bytes" appear to be a temporary error and yt-dlp should retry automatically for it. But the code seems to try and decrypt the partially downloaded fragment and hence crash. It is not entrely clear to me why this happens. If someone can share account details, I can have a look at this particular error (This probably will not fix OP's original issue)

@jamestfans
Copy link

I'm still getting the "Data must be padded..." error in addition to the "Got server HTTP error..." As you said, yt-dlp will retry automatically for the latter, but the former still crashes the download. The last error logs I posted were the HTTP error, but I just got the data padding error a few minutes ago.

What kind of account details are you looking for?

@pukkandan
Copy link
Member

Whatever is needed to login to the website in browser.

Contact: discord (pukkandan#4207) / reddit (/u/pukkandan) / email (pukkandan.ytdlp@gmail.com)

@jamestfans
Copy link

I'm not using any credentials to access the content I'm downloading. It's all available without log in from within the country, Australia in this case. I just use my VPN (NordVPN) to an Australian server, and download directly using yt-dlp <video-url>. An example video URL would be https://iview.abc.net.au/video/CH2003Q041S00.

Interestingly, I'm not getting either error when I download from Canadian sites. I live much closer to Canada, so perhaps that plays into it?

@pukkandan pukkandan added geo-blocked Content is geo-blocked and removed bug Bug that is not site-specific account-needed Account details are needed to test/fix this labels Jul 7, 2022
@unseen-traveller
Copy link

unseen-traveller commented Jul 17, 2022

I'm having same problem, last week or so.
Command line: "yt-dlp -f... url".
No VPN. yt-dlp is current version. I'm based in Australia.
youtube-dl works on same files. No problems with yt-dlp on other local sites.
Debug info on request.

Edit: Just to clarify: problem is with iview site only.

@unseen-traveller
Copy link

unseen-traveller commented Jul 23, 2022

Not fixed in yt-dlp 2022.07.18.

EDIT:
[debug] Command-line config: ['-fhls-617', '-v', 'https://iview.abc.net.au/video/ZW1386A004S00']
[debug] Encodings: locale UTF-8, fs utf-8, pref UTF-8, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version 2022.07.18 [135f05e] (zip)
[debug] Python 3.10.4 (CPython 64bit) - Linux-5.18.10-76051810-generic-x86_64-with-glibc2.35 (glibc 2.35)
[debug] Checking exe version: ffmpeg -bsfs
[debug] Checking exe version: ffprobe -bsfs
[debug] exe versions: ffmpeg 4.4.2 (setts), ffprobe 4.4.2, rtmpdump 2.4
[debug] Optional libraries: Cryptodome-3.11.0, brotli-1.0.9, certifi-2020.06.20, pyxattr-0.7.2, secretstorage-3.3.1, sqlite3-2.6.0
[debug] Proxy map: {}
[debug] Using fake IP 1.153.251.4 (AU) as X-Forwarded-For
[debug] [abc.net.au:iview] Extracting URL: https://iview.abc.net.au/video/ZW1386A004S00
[abc.net.au:iview] ZW1386A004S00: Downloading JSON metadata
[abc.net.au:iview] ZW1386A004S00: Downloading webpage
[abc.net.au:iview] ZW1386A004S00: Downloading m3u8 information
WARNING: [abc.net.au:iview] Ignoring subtitle tracks found in the HLS manifest; if any subtitle tracks are missing, 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
[debug] Formats sorted by: hasvid, ie_pref, lang, quality, res, fps, hdr:12(7), vcodec:vp9.2(10), acodec, filesize, fs_approx, tbr, vbr, abr, asr, proto, vext, aext, hasaud, source, id
[info] ZW1386A004S00: Downloading 1 format(s): hls-617
[debug] Invoking hlsnative downloader on "https://iview-vod-hls.akamaized.net/prod/zw1/ZW1386A004S00MA1D1/20220201025049/hls/500000/hdntl=exp=1658632067~acl=%2f*~data=hdntl~hmac=4a8b2c00afb4b2a8997543173532567822874eadf115262d5d41324204e2e733/stream.m3u8?aka_me_session_id=AAAAAAAAAACDt9xiAAAAAA8Y3yvRdIJqTTCBAtM6fr3EheE8edX%2fjpYlRXMFbHOtUPZ75bg%2f8+XiIizBZ5rI5k1ftBZx%2fGdp&aka_media_format_type=hls"
[hlsnative] Downloading m3u8 manifest
[hlsnative] Total fragments: 354
[download] Destination: Series 9 Ep 4 Episode 4 [ZW1386A004S00].mp4
[download] 1.4% of ~261.28MiB at 130.86KiB/s ETA 27:20 (frag 4/354)[download] Got server HTTP error: The read operation timed out. Retrying (attempt 1 of 10) ...
[download] 1.4% of ~261.28MiB at 29.71KiB/s ETA 51:11 (frag 5/354)ERROR: Data must be padded to 16 byte boundary in CBC mode
Traceback (most recent call last):
File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 1431, in wrapper
return func(self, *args, **kwargs)
File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 1521, in __extract_info
return self.process_ie_result(ie_result, download, extra_info)
File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 1578, in process_ie_result
ie_result = self.process_video_result(ie_result, download=download)
File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 2661, in process_video_result
self.process_info(new_info)
File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 3160, in process_info
success, real_download = self.dl(temp_filename, info_dict)
File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 2860, in dl
return fd.download(name, new_info, subtitle)
File "/usr/local/bin/yt-dlp/yt_dlp/downloader/common.py", line 444, in download
ret = self.real_download(filename, info_dict)
File "/usr/local/bin/yt-dlp/yt_dlp/downloader/hls.py", line 354, in real_download
return self.download_and_append_fragments(ctx, fragments, info_dict)
File "/usr/local/bin/yt-dlp/yt_dlp/downloader/fragment.py", line 526, in download_and_append_fragments
decrypt_fragment(fragment, self._read_fragment(ctx)), fragment['frag_index'], ctx)
File "/usr/local/bin/yt-dlp/yt_dlp/downloader/fragment.py", line 360, in decrypt_fragment
return unpad_pkcs7(aes_cbc_decrypt_bytes(frag_content, decrypt_info['KEY'], iv))
File "/usr/local/bin/yt-dlp/yt_dlp/aes.py", line 11, in aes_cbc_decrypt_bytes
return Cryptodome_AES.new(key, Cryptodome_AES.MODE_CBC, iv).decrypt(data)
File "/usr/lib/python3/dist-packages/Cryptodome/Cipher/_mode_cbc.py", line 246, in decrypt
raise ValueError("Data must be padded to %d byte boundary in CBC mode" % self.block_size)
ValueError: Data must be padded to 16 byte boundary in CBC mode

Rerunning command bombs on different fragment, suggesting not a problem with source file?

EDIT: @sofa-singer said above that "--downloader aria2c --hls-use-mpegts" worked for him. It doesn't for me.

EDIT: Using "--downloader ffmpeg" seems to work reliably for me.

@section83
Copy link

Just to add a small bit of evidence, I'm getting the same error with resumed (i.e. continued) iView downloads. I never get the error with the first attempt to download. But, I do get the error always by the second resume i.e. the third attempt at download. As with other reports, this only occurs on the ABC iView site [iview.abc.net.au].

@manero6
Copy link

manero6 commented Mar 16, 2023

I found the same error on this website: https://www.zee5.com

The download runs fine when not interrupted.
If interrupted, then yt-dlp either continues downloading the file correctly or ends up in "ERROR: Data must be padded to 16 byte boundary in CBC mode".

It is possible to resume the download by removing the .part-Frag file.

Can be tested with:

yt-dlp --playlist-items 1 https://www.zee5.com/global/tv-shows/details/khana-khazana/0-6-1388

@deslea
Copy link

deslea commented Nov 10, 2023

Hi all, just to advise I have spotted this issue on SBS, another Australian government-funded channel (along with iView like others). It responds to the same fix of deleting the fragment file ending .part-FragN and re-running the command to pick up from the last accepted part.

@01boxer
Copy link

01boxer commented Nov 14, 2023

@jamestfans what happens if you run the yt-dlp command with --downloader ffmpeg?

This solution still works best.

@spirillen
Copy link

spirillen commented Dec 13, 2023

Here is another url which have the same problem.

yt-dlp --version: 2023.11.16

yt-dlp --downloader ffmpeg "https://www.dr.dk/drtv/episode/world-on-fire_411307" -o "World on Fire - S02E01.mkv" --verbose
verbose log
[debug] Command-line config: ['--downloader', 'ffmpeg', 'https://www.dr.dk/drtv/episode/world-on-fire_411307', '-o', 'World on Fire - S02E01.mkv', '--verbose']
[debug] User config "/home/spirillen/yt-dlp.conf": ['-4', '-c', '--rm-cache-dir', '--write-thumbnail', '--embed-thumbnail', '--convert-thumbnails', 'webp', '--write-subs', '--sub-langs', 'da_foreign', '--embed-subs', '--convert-subs', 'srt', '--audio-quality', '0', '--audio-format', 'm4a', '--ffmpeg-location', '/usr/local/bin/ffmpeg', '--output', '%(playlist_index|)s%(playlist_index&. |)s%(title)s.%(ext)s', '-f', 'bv*[ext=mp4]+ba[ext=m4a]/b[ext=mp4][protocol^=http][protocol!*=dash] / bv*+ba/b']
[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.11.16 from yt-dlp/yt-dlp [24f827875] (zip)
[debug] Python 3.10.12 (CPython x86_64 64bit) - Linux-5.15.0-91-generic-x86_64-with-glibc2.35 (OpenSSL 3.0.2 15 Mar 2022, glibc 2.35)
[debug] exe versions: ffmpeg N-67885-gcc86343b96-static (setts), ffprobe N-67885-gcc86343b96-static
[debug] Optional libraries: Cryptodome-3.15.0, brotli-1.0.9, certifi-2023.05.07, mutagen-1.45.1, pyxattr-0.7.2, requests-2.31.0, secretstorage-3.3.1, sqlite3-3.37.2, urllib3-2.0.3, websockets-10.3
[debug] Proxy map: {}
[debug] Request Handlers: urllib, requests
[debug] Loaded 1901 extractors
Removing cache dir /home/spirillen/.cache/yt-dlp ..
[drtv] Downloading anonymous token
[drtv] Extracting URL: https://www.dr.dk/drtv/episode/world-on-fire_411307
[drtv] world-on-fire_411307: Downloading webpage
[drtv] 00022360700: Downloading stream data
[drtv] 00022360700: Downloading m3u8 information
[drtv] 00022360700: Downloading m3u8 information
[info] 00022360700: Downloading subtitles: da_foreign
[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
[info] 00022360700: Downloading 1 format(s): video_hls-5659+video_hls-audio_medium-English
[info] Writing video subtitles to: World on Fire - S02E01.da_foreign.vtt
[debug] Invoking ffmpeg downloader on "https://drod20a.akamaized.net/all/clear/none/29/6560a697027e193f6c35bc29/00022360700/subtitles/Foreign-World-on-Fire-I_DRTV2022Jan_FullHD_16x9_VideoMain.vtt"
[download] Destination: World on Fire - S02E01.da_foreign.vtt
[debug] ffmpeg command line: /usr/local/bin/ffmpeg -y -loglevel verbose -headers 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.54 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Sec-Fetch-Mode: navigate
' -i https://drod20a.akamaized.net/all/clear/none/29/6560a697027e193f6c35bc29/00022360700/subtitles/Foreign-World-on-Fire-I_DRTV2022Jan_FullHD_16x9_VideoMain.vtt -c copy -f webvtt 'file:World on Fire - S02E01.da_foreign.vtt.part'
ffmpeg version N-67885-gcc86343b96-static https://johnvansickle.com/ffmpeg/  Copyright (c) 2000-2023 the FFmpeg developers
built with gcc 8 (Debian 8.3.0-6)
configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gmp --enable-libgme --enable-gray --enable-libaom --enable-libfribidi --enable-libass --enable-libvmaf --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librubberband --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libdav1d --enable-libxvid --enable-libzvbi --enable-libzimg
libavutil      58. 32.100 / 58. 32.100
libavcodec     60. 35.100 / 60. 35.100
libavformat    60. 18.100 / 60. 18.100
libavdevice    60.  4.100 / 60.  4.100
libavfilter     9. 13.100 /  9. 13.100
libswscale      7.  6.100 /  7.  6.100
libswresample   4. 13.100 /  4. 13.100
libpostproc    57.  4.100 / 57.  4.100


ERROR: ffmpeg exited with code -11
File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/usr/local/bin/yt-dlp/__main__.py", line 17, in <module>
yt_dlp.main()
File "/usr/local/bin/yt-dlp/yt_dlp/__init__.py", line 1008, in main
_exit(*variadic(_real_main(argv)))
File "/usr/local/bin/yt-dlp/yt_dlp/__init__.py", line 998, in _real_main
return ydl.download(all_urls)
File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 3511, in download
self.__download_wrapper(self.extract_info)(
File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 3486, in wrapper
res = func(*args, **kwargs)
File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 1556, in extract_info
return self.__extract_info(url, self.get_info_extractor(key), download, extra_info, process)
File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 1567, in wrapper
return func(self, *args, **kwargs)
File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 1723, in __extract_info
return self.process_ie_result(ie_result, download, extra_info)
File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 1782, in process_ie_result
ie_result = self.process_video_result(ie_result, download=download)
File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 2922, in process_video_result
self.process_info(new_info)
File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 3176, in process_info
sub_files = self._write_subtitles(info_dict, temp_filename)
File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 4217, in _write_subtitles
self.dl(sub_filename, sub_copy, subtitle=True)
File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 3109, in dl
return fd.download(name, new_info, subtitle)
File "/usr/local/bin/yt-dlp/yt_dlp/downloader/common.py", line 455, in download
ret = self.real_download(filename, info_dict)
File "/usr/local/bin/yt-dlp/yt_dlp/downloader/external.py", line 80, in real_download
self.report_error('%s exited with code %d' % (
File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 1045, in report_error
self.trouble(f'{self._format_err("ERROR:", self.Styles.ERROR)} {message}', *args, **kwargs)
File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 973, in trouble
tb_data = traceback.format_list(traceback.extract_stack())


[info] Downloading video thumbnail 0 ...
[info] Writing video thumbnail 0 to: World on Fire - S02E01.jpg
[SubtitlesConvertor] Converting subtitles
WARNING: Skipping embedding da_foreign subtitle because the file is missing
[ThumbnailsConvertor] Converting thumbnail "World on Fire - S02E01.jpg" to webp
[debug] ffmpeg command line: /usr/local/bin/ffmpeg -y -loglevel repeat+info -f image2 -pattern_type none -i 'file:World on Fire - S02E01.jpg' -update 1 -movflags +faststart 'file:World on Fire - S02E01.webp'
Deleting original file World on Fire - S02E01.jpg (pass -k to keep)
[debug] Invoking ffmpeg downloader on "https://drod20a.akamaized.net/dk/encrypted/none/29/6560a697027e193f6c35bc29/00022360700/stream_fmp4/World-on-Fire-I_DRTV2022Jan_FullHD_16x9_VideoMain_video_5500.m3u8?aka_me_session_id=AAAAAAAAAAATV3plAAAAAETctze66TAYB01lfHvlrymyQ11HlIrm6hlnK2Rt6GdeyJUTMB62EpJiVSZtZkg4xCipQOusJ3Bq&aka_media_format_type=hls", "https://drod20a.akamaized.net/dk/encrypted/none/29/6560a697027e193f6c35bc29/00022360700/stream_fmp4/World-on-Fire-I_DRTV2022Jan_FullHD_16x9_VideoMain_audio_192kbps.m3u8?aka_me_session_id=AAAAAAAAAAATV3plAAAAAETctze66TAYB01lfHvlrymyQ11HlIrm6hlnK2Rt6GdeyJUTMB62EpJiVSZtZkg4xCipQOusJ3Bq&aka_media_format_type=hls"
[download] Destination: World on Fire - S02E01.mkv
[debug] ffmpeg command line: /usr/local/bin/ffmpeg -y -loglevel verbose -headers 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.54 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Sec-Fetch-Mode: navigate
' -i 'https://drod20a.akamaized.net/dk/encrypted/none/29/6560a697027e193f6c35bc29/00022360700/stream_fmp4/World-on-Fire-I_DRTV2022Jan_FullHD_16x9_VideoMain_video_5500.m3u8?aka_me_session_id=AAAAAAAAAAATV3plAAAAAETctze66TAYB01lfHvlrymyQ11HlIrm6hlnK2Rt6GdeyJUTMB62EpJiVSZtZkg4xCipQOusJ3Bq&aka_media_format_type=hls' -headers 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.54 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Sec-Fetch-Mode: navigate
' -i 'https://drod20a.akamaized.net/dk/encrypted/none/29/6560a697027e193f6c35bc29/00022360700/stream_fmp4/World-on-Fire-I_DRTV2022Jan_FullHD_16x9_VideoMain_audio_192kbps.m3u8?aka_me_session_id=AAAAAAAAAAATV3plAAAAAETctze66TAYB01lfHvlrymyQ11HlIrm6hlnK2Rt6GdeyJUTMB62EpJiVSZtZkg4xCipQOusJ3Bq&aka_media_format_type=hls' -c copy -map 0:0 -map 1:0 -f matroska 'file:World on Fire - S02E01.mkv.part'
ffmpeg version N-67885-gcc86343b96-static https://johnvansickle.com/ffmpeg/  Copyright (c) 2000-2023 the FFmpeg developers
built with gcc 8 (Debian 8.3.0-6)
configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gmp --enable-libgme --enable-gray --enable-libaom --enable-libfribidi --enable-libass --enable-libvmaf --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librubberband --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libdav1d --enable-libxvid --enable-libzvbi --enable-libzimg
libavutil      58. 32.100 / 58. 32.100
libavcodec     60. 35.100 / 60. 35.100
libavformat    60. 18.100 / 60. 18.100
libavdevice    60.  4.100 / 60.  4.100
libavfilter     9. 13.100 /  9. 13.100
libswscale      7.  6.100 /  7.  6.100
libswresample   4. 13.100 /  4. 13.100
libpostproc    57.  4.100 / 57.  4.100


ERROR: ffmpeg exited with code -11
File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/usr/local/bin/yt-dlp/__main__.py", line 17, in <module>
yt_dlp.main()
File "/usr/local/bin/yt-dlp/yt_dlp/__init__.py", line 1008, in main
_exit(*variadic(_real_main(argv)))
File "/usr/local/bin/yt-dlp/yt_dlp/__init__.py", line 998, in _real_main
return ydl.download(all_urls)
File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 3511, in download
self.__download_wrapper(self.extract_info)(
File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 3486, in wrapper
res = func(*args, **kwargs)
File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 1556, in extract_info
return self.__extract_info(url, self.get_info_extractor(key), download, extra_info, process)
File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 1567, in wrapper
return func(self, *args, **kwargs)
File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 1723, in __extract_info
return self.process_ie_result(ie_result, download, extra_info)
File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 1782, in process_ie_result
ie_result = self.process_video_result(ie_result, download=download)
File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 2922, in process_video_result
self.process_info(new_info)
File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 3335, in process_info
success, real_download = self.dl(temp_filename, info_dict)
File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 3109, in dl
return fd.download(name, new_info, subtitle)
File "/usr/local/bin/yt-dlp/yt_dlp/downloader/common.py", line 455, in download
ret = self.real_download(filename, info_dict)
File "/usr/local/bin/yt-dlp/yt_dlp/downloader/external.py", line 80, in real_download
self.report_error('%s exited with code %d' % (
File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 1045, in report_error
self.trouble(f'{self._format_err("ERROR:", self.Styles.ERROR)} {message}', *args, **kwargs)
File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 973, in trouble
tb_data = traceback.format_list(traceback.extract_stack())

yt-dlp --downloader ffmpeg --hls-use-mpegts "https://www.dr.dk/drtv/episode/world-on-fire_411307" -o "World on Fire - S02E01.mkv" --verbose
verbose log
yt-dlp --downloader ffmpeg --hls-use-mpegts "https://www.dr.dk/drtv/episode/world-on-fire_411307" -o "World on Fire - S02E01.mkv" --verbose
[debug] Command-line config: ['--downloader', 'ffmpeg', '--hls-use-mpegts', 'https://www.dr.dk/drtv/episode/world-on-fire_411307', '-o', 'World on Fire - S02E01.mkv', '--verbose']
[debug] User config "/home/spirillen/yt-dlp.conf": ['-4', '-c', '--rm-cache-dir', '--write-thumbnail', '--embed-thumbnail', '--convert-thumbnails', 'webp', '--write-subs', '--sub-langs', 'da_foreign', '--embed-subs', '--convert-subs', 'srt', '--audio-quality', '0', '--audio-format', 'm4a', '--ffmpeg-location', '/usr/local/bin/ffmpeg', '--output', '%(playlist_index|)s%(playlist_index&. |)s%(title)s.%(ext)s', '-f', 'bv*[ext=mp4]+ba[ext=m4a]/b[ext=mp4][protocol^=http][protocol!*=dash] / bv*+ba/b']
[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.11.16 from yt-dlp/yt-dlp [24f827875] (zip)
[debug] Python 3.10.12 (CPython x86_64 64bit) - Linux-5.15.0-91-generic-x86_64-with-glibc2.35 (OpenSSL 3.0.2 15 Mar 2022, glibc 2.35)
[debug] exe versions: ffmpeg N-67885-gcc86343b96-static (setts), ffprobe N-67885-gcc86343b96-static
[debug] Optional libraries: Cryptodome-3.15.0, brotli-1.0.9, certifi-2023.05.07, mutagen-1.45.1, pyxattr-0.7.2, requests-2.31.0, secretstorage-3.3.1, sqlite3-3.37.2, urllib3-2.0.3, websockets-10.3
[debug] Proxy map: {}
[debug] Request Handlers: urllib, requests
[debug] Loaded 1901 extractors
Removing cache dir /home/spirillen/.cache/yt-dlp ..
[drtv] Downloading anonymous token
[drtv] Extracting URL: https://www.dr.dk/drtv/episode/world-on-fire_411307
[drtv] world-on-fire_411307: Downloading webpage
[drtv] 00022360700: Downloading stream data
[drtv] 00022360700: Downloading m3u8 information
[drtv] 00022360700: Downloading m3u8 information
[info] 00022360700: Downloading subtitles: da_foreign
[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
[info] 00022360700: Downloading 1 format(s): video_hls-5659+video_hls-audio_medium-English
[info] Writing video subtitles to: World on Fire - S02E01.da_foreign.vtt
[debug] Invoking ffmpeg downloader on "https://drod20a.akamaized.net/all/clear/none/29/6560a697027e193f6c35bc29/00022360700/subtitles/Foreign-World-on-Fire-I_DRTV2022Jan_FullHD_16x9_VideoMain.vtt"
[download] Destination: World on Fire - S02E01.da_foreign.vtt
[debug] ffmpeg command line: /usr/local/bin/ffmpeg -y -loglevel verbose -headers 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.93 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Sec-Fetch-Mode: navigate
' -i https://drod20a.akamaized.net/all/clear/none/29/6560a697027e193f6c35bc29/00022360700/subtitles/Foreign-World-on-Fire-I_DRTV2022Jan_FullHD_16x9_VideoMain.vtt -c copy -f webvtt 'file:World on Fire - S02E01.da_foreign.vtt.part'
ffmpeg version N-67885-gcc86343b96-static https://johnvansickle.com/ffmpeg/  Copyright (c) 2000-2023 the FFmpeg developers
built with gcc 8 (Debian 8.3.0-6)
configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gmp --enable-libgme --enable-gray --enable-libaom --enable-libfribidi --enable-libass --enable-libvmaf --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librubberband --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libdav1d --enable-libxvid --enable-libzvbi --enable-libzimg
libavutil      58. 32.100 / 58. 32.100
libavcodec     60. 35.100 / 60. 35.100
libavformat    60. 18.100 / 60. 18.100
libavdevice    60.  4.100 / 60.  4.100
libavfilter     9. 13.100 /  9. 13.100
libswscale      7.  6.100 /  7.  6.100
libswresample   4. 13.100 /  4. 13.100
libpostproc    57.  4.100 / 57.  4.100


ERROR: ffmpeg exited with code -11
File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/usr/local/bin/yt-dlp/__main__.py", line 17, in <module>
yt_dlp.main()
File "/usr/local/bin/yt-dlp/yt_dlp/__init__.py", line 1008, in main
_exit(*variadic(_real_main(argv)))
File "/usr/local/bin/yt-dlp/yt_dlp/__init__.py", line 998, in _real_main
return ydl.download(all_urls)
File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 3511, in download
self.__download_wrapper(self.extract_info)(
File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 3486, in wrapper
res = func(*args, **kwargs)
File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 1556, in extract_info
return self.__extract_info(url, self.get_info_extractor(key), download, extra_info, process)
File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 1567, in wrapper
return func(self, *args, **kwargs)
File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 1723, in __extract_info
return self.process_ie_result(ie_result, download, extra_info)
File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 1782, in process_ie_result
ie_result = self.process_video_result(ie_result, download=download)
File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 2922, in process_video_result
self.process_info(new_info)
File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 3176, in process_info
sub_files = self._write_subtitles(info_dict, temp_filename)
File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 4217, in _write_subtitles
self.dl(sub_filename, sub_copy, subtitle=True)
File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 3109, in dl
return fd.download(name, new_info, subtitle)
File "/usr/local/bin/yt-dlp/yt_dlp/downloader/common.py", line 455, in download
ret = self.real_download(filename, info_dict)
File "/usr/local/bin/yt-dlp/yt_dlp/downloader/external.py", line 80, in real_download
self.report_error('%s exited with code %d' % (
File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 1045, in report_error
self.trouble(f'{self._format_err("ERROR:", self.Styles.ERROR)} {message}', *args, **kwargs)
File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 973, in trouble
tb_data = traceback.format_list(traceback.extract_stack())


[info] Downloading video thumbnail 0 ...
[info] Writing video thumbnail 0 to: World on Fire - S02E01.jpg
[SubtitlesConvertor] Converting subtitles
WARNING: Skipping embedding da_foreign subtitle because the file is missing
[ThumbnailsConvertor] Converting thumbnail "World on Fire - S02E01.jpg" to webp
[debug] ffmpeg command line: /usr/local/bin/ffmpeg -y -loglevel repeat+info -f image2 -pattern_type none -i 'file:World on Fire - S02E01.jpg' -update 1 -movflags +faststart 'file:World on Fire - S02E01.webp'
Deleting original file World on Fire - S02E01.jpg (pass -k to keep)
[debug] Invoking ffmpeg downloader on "https://drod20a.akamaized.net/dk/encrypted/none/29/6560a697027e193f6c35bc29/00022360700/stream_fmp4/World-on-Fire-I_DRTV2022Jan_FullHD_16x9_VideoMain_video_5500.m3u8?aka_me_session_id=AAAAAAAAAABVWHplAAAAAPJ2BDk4EQgYg1Heos5e99XVRsxyGGBdtVgk%2fdy%2ftyqTf2qtE59v9VR3o8eD4wu019ss+DUJTQxt&aka_media_format_type=hls", "https://drod20a.akamaized.net/dk/encrypted/none/29/6560a697027e193f6c35bc29/00022360700/stream_fmp4/World-on-Fire-I_DRTV2022Jan_FullHD_16x9_VideoMain_audio_192kbps.m3u8?aka_me_session_id=AAAAAAAAAABVWHplAAAAAPJ2BDk4EQgYg1Heos5e99XVRsxyGGBdtVgk%2fdy%2ftyqTf2qtE59v9VR3o8eD4wu019ss+DUJTQxt&aka_media_format_type=hls"
[download] Destination: World on Fire - S02E01.mkv
[debug] ffmpeg command line: /usr/local/bin/ffmpeg -y -loglevel verbose -headers 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.93 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Sec-Fetch-Mode: navigate
' -i 'https://drod20a.akamaized.net/dk/encrypted/none/29/6560a697027e193f6c35bc29/00022360700/stream_fmp4/World-on-Fire-I_DRTV2022Jan_FullHD_16x9_VideoMain_video_5500.m3u8?aka_me_session_id=AAAAAAAAAABVWHplAAAAAPJ2BDk4EQgYg1Heos5e99XVRsxyGGBdtVgk%2fdy%2ftyqTf2qtE59v9VR3o8eD4wu019ss+DUJTQxt&aka_media_format_type=hls' -headers 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.93 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Sec-Fetch-Mode: navigate
' -i 'https://drod20a.akamaized.net/dk/encrypted/none/29/6560a697027e193f6c35bc29/00022360700/stream_fmp4/World-on-Fire-I_DRTV2022Jan_FullHD_16x9_VideoMain_audio_192kbps.m3u8?aka_me_session_id=AAAAAAAAAABVWHplAAAAAPJ2BDk4EQgYg1Heos5e99XVRsxyGGBdtVgk%2fdy%2ftyqTf2qtE59v9VR3o8eD4wu019ss+DUJTQxt&aka_media_format_type=hls' -c copy -map 0:0 -map 1:0 -f matroska 'file:World on Fire - S02E01.mkv.part'
ffmpeg version N-67885-gcc86343b96-static https://johnvansickle.com/ffmpeg/  Copyright (c) 2000-2023 the FFmpeg developers
built with gcc 8 (Debian 8.3.0-6)
configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gmp --enable-libgme --enable-gray --enable-libaom --enable-libfribidi --enable-libass --enable-libvmaf --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librubberband --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libdav1d --enable-libxvid --enable-libzvbi --enable-libzimg
libavutil      58. 32.100 / 58. 32.100
libavcodec     60. 35.100 / 60. 35.100
libavformat    60. 18.100 / 60. 18.100
libavdevice    60.  4.100 / 60.  4.100
libavfilter     9. 13.100 /  9. 13.100
libswscale      7.  6.100 /  7.  6.100
libswresample   4. 13.100 /  4. 13.100
libpostproc    57.  4.100 / 57.  4.100


ERROR: ffmpeg exited with code -11
File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/usr/local/bin/yt-dlp/__main__.py", line 17, in <module>
yt_dlp.main()
File "/usr/local/bin/yt-dlp/yt_dlp/__init__.py", line 1008, in main
_exit(*variadic(_real_main(argv)))
File "/usr/local/bin/yt-dlp/yt_dlp/__init__.py", line 998, in _real_main
return ydl.download(all_urls)
File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 3511, in download
self.__download_wrapper(self.extract_info)(
File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 3486, in wrapper
res = func(*args, **kwargs)
File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 1556, in extract_info
return self.__extract_info(url, self.get_info_extractor(key), download, extra_info, process)
File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 1567, in wrapper
return func(self, *args, **kwargs)
File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 1723, in __extract_info
return self.process_ie_result(ie_result, download, extra_info)
File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 1782, in process_ie_result
ie_result = self.process_video_result(ie_result, download=download)
File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 2922, in process_video_result
self.process_info(new_info)
File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 3335, in process_info
success, real_download = self.dl(temp_filename, info_dict)
File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 3109, in dl
return fd.download(name, new_info, subtitle)
File "/usr/local/bin/yt-dlp/yt_dlp/downloader/common.py", line 455, in download
ret = self.real_download(filename, info_dict)
File "/usr/local/bin/yt-dlp/yt_dlp/downloader/external.py", line 80, in real_download
self.report_error('%s exited with code %d' % (
File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 1045, in report_error
self.trouble(f'{self._format_err("ERROR:", self.Styles.ERROR)} {message}', *args, **kwargs)
File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 973, in trouble
tb_data = traceback.format_list(traceback.extract_stack())

yt-dlp --downloader aria2c "https://www.dr.dk/drtv/episode/world-on-fire_411307" -o "World on Fire - S02E01.mkv" --verbose
verbose log
yt-dlp --downloader aria2c "https://www.dr.dk/drtv/episode/world-on-fire_411307" -o "World on Fire - S02E01.mkv" --verbose
[debug] Command-line config: ['--downloader', 'aria2c', 'https://www.dr.dk/drtv/episode/world-on-fire_411307', '-o', 'World on Fire - S02E01.mkv', '--verbose']
[debug] User config "/home/spirillen/yt-dlp.conf": ['-4', '-c', '--rm-cache-dir', '--write-thumbnail', '--embed-thumbnail', '--convert-thumbnails', 'webp', '--write-subs', '--sub-langs', 'da_foreign', '--embed-subs', '--convert-subs', 'srt', '--audio-quality', '0', '--audio-format', 'm4a', '--ffmpeg-location', '/usr/local/bin/ffmpeg', '--output', '%(playlist_index|)s%(playlist_index&. |)s%(title)s.%(ext)s', '-f', 'bv*[ext=mp4]+ba[ext=m4a]/b[ext=mp4][protocol^=http][protocol!*=dash] / bv*+ba/b']
[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.11.16 from yt-dlp/yt-dlp [24f827875] (zip)
[debug] Python 3.10.12 (CPython x86_64 64bit) - Linux-5.15.0-91-generic-x86_64-with-glibc2.35 (OpenSSL 3.0.2 15 Mar 2022, glibc 2.35)
[debug] exe versions: ffmpeg N-67885-gcc86343b96-static (setts), ffprobe N-67885-gcc86343b96-static
[debug] Optional libraries: Cryptodome-3.15.0, brotli-1.0.9, certifi-2023.05.07, mutagen-1.45.1, pyxattr-0.7.2, requests-2.31.0, secretstorage-3.3.1, sqlite3-3.37.2, urllib3-2.0.3, websockets-10.3
[debug] Proxy map: {}
[debug] Request Handlers: urllib, requests
[debug] Loaded 1901 extractors
Removing cache dir /home/spirillen/.cache/yt-dlp ..
[drtv] Downloading anonymous token
[drtv] Extracting URL: https://www.dr.dk/drtv/episode/world-on-fire_411307
[drtv] world-on-fire_411307: Downloading webpage
[drtv] 00022360700: Downloading stream data
[drtv] 00022360700: Downloading m3u8 information
[drtv] 00022360700: Downloading m3u8 information
[info] 00022360700: Downloading subtitles: da_foreign
[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
[info] 00022360700: Downloading 1 format(s): video_hls-5659+video_hls-audio_medium-English
[info] Writing video subtitles to: World on Fire - S02E01.da_foreign.vtt
[debug] Invoking http downloader on "https://drod20a.akamaized.net/all/clear/none/29/6560a697027e193f6c35bc29/00022360700/subtitles/Foreign-World-on-Fire-I_DRTV2022Jan_FullHD_16x9_VideoMain.vtt"
[download] Destination: World on Fire - S02E01.da_foreign.vtt
[download] 100% of   38.13KiB in 00:00:00 at 588.02KiB/s
[info] Downloading video thumbnail 0 ...
[info] Writing video thumbnail 0 to: World on Fire - S02E01.jpg
[SubtitlesConvertor] Converting subtitles
[debug] ffmpeg command line: /usr/local/bin/ffmpeg -y -loglevel repeat+info -i 'file:World on Fire - S02E01.da_foreign.vtt' -f srt -movflags +faststart 'file:World on Fire - S02E01.da_foreign.srt'
Deleting original file World on Fire - S02E01.da_foreign.vtt (pass -k to keep)
[ThumbnailsConvertor] Converting thumbnail "World on Fire - S02E01.jpg" to webp
[debug] ffmpeg command line: /usr/local/bin/ffmpeg -y -loglevel repeat+info -f image2 -pattern_type none -i 'file:World on Fire - S02E01.jpg' -update 1 -movflags +faststart 'file:World on Fire - S02E01.webp'
Deleting original file World on Fire - S02E01.jpg (pass -k to keep)
[debug] Invoking hlsnative downloader on "https://drod20a.akamaized.net/dk/encrypted/none/29/6560a697027e193f6c35bc29/00022360700/stream_fmp4/World-on-Fire-I_DRTV2022Jan_FullHD_16x9_VideoMain_video_5500.m3u8?aka_me_session_id=AAAAAAAAAACdWHplAAAAAJaOH2g5YlOHA5lYk6eXedpDNd2DdeP9i9pdcXBjiUQE+epSxny5sxUn9fb60K3bcH4Fpzxd6M+s&aka_media_format_type=hls"
[hlsnative] Downloading m3u8 manifest
[hlsnative] Total fragments: 347
[download] Destination: World on Fire - S02E01.fvideo_hls-5659.mp4
[download]   1.5% of ~ 317.46KiB at    3.58KiB/s ETA Unknown (frag 6/347)ERROR: Data must be padded to 16 byte boundary in CBC mode
Traceback (most recent call last):
File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 1567, in wrapper
return func(self, *args, **kwargs)
File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 1723, in __extract_info
return self.process_ie_result(ie_result, download, extra_info)
File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 1782, in process_ie_result
ie_result = self.process_video_result(ie_result, download=download)
File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 2922, in process_video_result
self.process_info(new_info)
File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 3370, in process_info
partial_success, real_download = self.dl(fname, new_info)
File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 3109, in dl
return fd.download(name, new_info, subtitle)
File "/usr/local/bin/yt-dlp/yt_dlp/downloader/common.py", line 455, in download
ret = self.real_download(filename, info_dict)
File "/usr/local/bin/yt-dlp/yt_dlp/downloader/hls.py", line 375, in real_download
return self.download_and_append_fragments(ctx, fragments, info_dict)
File "/usr/local/bin/yt-dlp/yt_dlp/downloader/fragment.py", line 516, in download_and_append_fragments
decrypt_fragment(fragment, self._read_fragment(ctx)), fragment['frag_index'], ctx)
File "/usr/local/bin/yt-dlp/yt_dlp/downloader/fragment.py", line 364, in decrypt_fragment
return unpad_pkcs7(aes_cbc_decrypt_bytes(frag_content, decrypt_info['KEY'], iv))
File "/usr/local/bin/yt-dlp/yt_dlp/aes.py", line 11, in aes_cbc_decrypt_bytes
return Cryptodome.AES.new(key, Cryptodome.AES.MODE_CBC, iv).decrypt(data)
File "/home/spirillen/.local/lib/python3.10/site-packages/Cryptodome/Cipher/_mode_cbc.py", line 246, in decrypt
raise ValueError("Data must be padded to %d byte boundary in CBC mode" % self.block_size)
ValueError: Data must be padded to 16 byte boundary in CBC mode

yt-dlp --downloader aria2c --hls-use-mpegts "https://www.dr.dk/drtv/episode/world-on-fire_411307" -o "World on Fire - S02E01.mkv" --verbose
verbose log
yt-dlp --downloader aria2c --hls-use-mpegts "https://www.dr.dk/drtv/episode/world-on-fire_411307" -o "World on Fire - S02E01.mkv" --verbose
[debug] Command-line config: ['--downloader', 'aria2c', '--hls-use-mpegts', 'https://www.dr.dk/drtv/episode/world-on-fire_411307', '-o', 'World on Fire - S02E01.mkv', '--verbose']
[debug] User config "/home/spirillen/yt-dlp.conf": ['-4', '-c', '--rm-cache-dir', '--write-thumbnail', '--embed-thumbnail', '--convert-thumbnails', 'webp', '--write-subs', '--sub-langs', 'da_foreign', '--embed-subs', '--convert-subs', 'srt', '--audio-quality', '0', '--audio-format', 'm4a', '--ffmpeg-location', '/usr/local/bin/ffmpeg', '--output', '%(playlist_index|)s%(playlist_index&. |)s%(title)s.%(ext)s', '-f', 'bv*[ext=mp4]+ba[ext=m4a]/b[ext=mp4][protocol^=http][protocol!*=dash] / bv*+ba/b']
[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.11.16 from yt-dlp/yt-dlp [24f827875] (zip)
[debug] Python 3.10.12 (CPython x86_64 64bit) - Linux-5.15.0-91-generic-x86_64-with-glibc2.35 (OpenSSL 3.0.2 15 Mar 2022, glibc 2.35)
[debug] exe versions: ffmpeg N-67885-gcc86343b96-static (setts), ffprobe N-67885-gcc86343b96-static
[debug] Optional libraries: Cryptodome-3.15.0, brotli-1.0.9, certifi-2023.05.07, mutagen-1.45.1, pyxattr-0.7.2, requests-2.31.0, secretstorage-3.3.1, sqlite3-3.37.2, urllib3-2.0.3, websockets-10.3
[debug] Proxy map: {}
[debug] Request Handlers: urllib, requests
[debug] Loaded 1901 extractors
Removing cache dir /home/spirillen/.cache/yt-dlp ..
[drtv] Downloading anonymous token
[drtv] Extracting URL: https://www.dr.dk/drtv/episode/world-on-fire_411307
[drtv] world-on-fire_411307: Downloading webpage
[drtv] 00022360700: Downloading stream data
[drtv] 00022360700: Downloading m3u8 information
[drtv] 00022360700: Downloading m3u8 information
[info] 00022360700: Downloading subtitles: da_foreign
[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
[info] 00022360700: Downloading 1 format(s): video_hls-5659+video_hls-audio_medium-English
[info] Writing video subtitles to: World on Fire - S02E01.da_foreign.vtt
[debug] Invoking http downloader on "https://drod20a.akamaized.net/all/clear/none/29/6560a697027e193f6c35bc29/00022360700/subtitles/Foreign-World-on-Fire-I_DRTV2022Jan_FullHD_16x9_VideoMain.vtt"
[download] Destination: World on Fire - S02E01.da_foreign.vtt
[download] 100% of   38.13KiB in 00:00:00 at 366.48KiB/s
[info] Downloading video thumbnail 0 ...
[info] Writing video thumbnail 0 to: World on Fire - S02E01.jpg
[SubtitlesConvertor] Converting subtitles
[debug] ffmpeg command line: /usr/local/bin/ffmpeg -y -loglevel repeat+info -i 'file:World on Fire - S02E01.da_foreign.vtt' -f srt -movflags +faststart 'file:World on Fire - S02E01.da_foreign.srt'
Deleting original file World on Fire - S02E01.da_foreign.vtt (pass -k to keep)
[ThumbnailsConvertor] Converting thumbnail "World on Fire - S02E01.jpg" to webp
[debug] ffmpeg command line: /usr/local/bin/ffmpeg -y -loglevel repeat+info -f image2 -pattern_type none -i 'file:World on Fire - S02E01.jpg' -update 1 -movflags +faststart 'file:World on Fire - S02E01.webp'
Deleting original file World on Fire - S02E01.jpg (pass -k to keep)
[debug] Invoking hlsnative downloader on "https://drod20a.akamaized.net/dk/encrypted/none/29/6560a697027e193f6c35bc29/00022360700/stream_fmp4/World-on-Fire-I_DRTV2022Jan_FullHD_16x9_VideoMain_video_5500.m3u8?aka_me_session_id=AAAAAAAAAADZWHplAAAAAM00KUEFkdkmQyXDffnPb%2fm%2fX7pHZNpkv%2fJ1BRWyRDoK26NdD64n9y+6pMPxIS6AjnR+ltNIWax8&aka_media_format_type=hls"
[hlsnative] Downloading m3u8 manifest
[hlsnative] Total fragments: 347
[download] Destination: World on Fire - S02E01.fvideo_hls-5659.mp4
[download]   1.8% of ~ 310.98KiB at    5.71KiB/s ETA Unknown (frag 7/347)ERROR: Data must be padded to 16 byte boundary in CBC mode
Traceback (most recent call last):
File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 1567, in wrapper
return func(self, *args, **kwargs)
File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 1723, in __extract_info
return self.process_ie_result(ie_result, download, extra_info)
File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 1782, in process_ie_result
ie_result = self.process_video_result(ie_result, download=download)
File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 2922, in process_video_result
self.process_info(new_info)
File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 3370, in process_info
partial_success, real_download = self.dl(fname, new_info)
File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 3109, in dl
return fd.download(name, new_info, subtitle)
File "/usr/local/bin/yt-dlp/yt_dlp/downloader/common.py", line 455, in download
ret = self.real_download(filename, info_dict)
File "/usr/local/bin/yt-dlp/yt_dlp/downloader/hls.py", line 375, in real_download
return self.download_and_append_fragments(ctx, fragments, info_dict)
File "/usr/local/bin/yt-dlp/yt_dlp/downloader/fragment.py", line 516, in download_and_append_fragments
decrypt_fragment(fragment, self._read_fragment(ctx)), fragment['frag_index'], ctx)
File "/usr/local/bin/yt-dlp/yt_dlp/downloader/fragment.py", line 364, in decrypt_fragment
return unpad_pkcs7(aes_cbc_decrypt_bytes(frag_content, decrypt_info['KEY'], iv))
File "/usr/local/bin/yt-dlp/yt_dlp/aes.py", line 11, in aes_cbc_decrypt_bytes
return Cryptodome.AES.new(key, Cryptodome.AES.MODE_CBC, iv).decrypt(data)
File "/home/spirillen/.local/lib/python3.10/site-packages/Cryptodome/Cipher/_mode_cbc.py", line 246, in decrypt
raise ValueError("Data must be padded to %d byte boundary in CBC mode" % self.block_size)
ValueError: Data must be padded to 16 byte boundary in CBC mode

yt-dlp "https://www.dr.dk/drtv/episode/world-on-fire_411307" -o "World on Fire - S02E01.mkv" --verbose
verbose log
[debug] Command-line config: ['https://www.dr.dk/drtv/episode/world-on-fire_411307', '-o', 'World on Fire - S02E01.mkv', '--verbose']
[debug] User config "/home/spirillen/yt-dlp.conf": ['-4', '-c', '--rm-cache-dir', '--write-thumbnail', '--embed-thumbnail', '--convert-thumbnails', 'webp', '--write-subs', '--sub-langs', 'da_foreign', '--embed-subs', '--convert-subs', 'srt', '--audio-quality', '0', '--audio-format', 'm4a', '--ffmpeg-location', '/usr/local/bin/ffmpeg', '--output', '%(playlist_index|)s%(playlist_index&. |)s%(title)s.%(ext)s', '-f', 'bv*[ext=mp4]+ba[ext=m4a]/b[ext=mp4][protocol^=http][protocol!*=dash] / bv*+ba/b']
[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.11.16 from yt-dlp/yt-dlp [24f827875] (zip)
[debug] Python 3.10.12 (CPython x86_64 64bit) - Linux-5.15.0-91-generic-x86_64-with-glibc2.35 (OpenSSL 3.0.2 15 Mar 2022, glibc 2.35)
[debug] exe versions: ffmpeg N-67885-gcc86343b96-static (setts), ffprobe N-67885-gcc86343b96-static
[debug] Optional libraries: Cryptodome-3.15.0, brotli-1.0.9, certifi-2023.05.07, mutagen-1.45.1, pyxattr-0.7.2, requests-2.31.0, secretstorage-3.3.1, sqlite3-3.37.2, urllib3-2.0.3, websockets-10.3
[debug] Proxy map: {}
[debug] Request Handlers: urllib, requests
[debug] Loaded 1901 extractors
Removing cache dir /home/spirillen/.cache/yt-dlp ..
[drtv] Downloading anonymous token
[drtv] Extracting URL: https://www.dr.dk/drtv/episode/world-on-fire_411307
[drtv] world-on-fire_411307: Downloading webpage
[drtv] 00022360700: Downloading stream data
[drtv] 00022360700: Downloading m3u8 information
[drtv] 00022360700: Downloading m3u8 information
[info] 00022360700: Downloading subtitles: da_foreign
[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
[info] 00022360700: Downloading 1 format(s): video_hls-5659+video_hls-audio_medium-English
[info] Writing video subtitles to: World on Fire - S02E01.da_foreign.vtt
[debug] Invoking http downloader on "https://drod20a.akamaized.net/all/clear/none/29/6560a697027e193f6c35bc29/00022360700/subtitles/Foreign-World-on-Fire-I_DRTV2022Jan_FullHD_16x9_VideoMain.vtt"
[download] Destination: World on Fire - S02E01.da_foreign.vtt
[download] 100% of   38.13KiB in 00:00:00 at 245.84KiB/s
[info] Downloading video thumbnail 0 ...
[info] Writing video thumbnail 0 to: World on Fire - S02E01.jpg
[SubtitlesConvertor] Converting subtitles
[debug] ffmpeg command line: /usr/local/bin/ffmpeg -y -loglevel repeat+info -i 'file:World on Fire - S02E01.da_foreign.vtt' -f srt -movflags +faststart 'file:World on Fire - S02E01.da_foreign.srt'
Deleting original file World on Fire - S02E01.da_foreign.vtt (pass -k to keep)
[ThumbnailsConvertor] Converting thumbnail "World on Fire - S02E01.jpg" to webp
[debug] ffmpeg command line: /usr/local/bin/ffmpeg -y -loglevel repeat+info -f image2 -pattern_type none -i 'file:World on Fire - S02E01.jpg' -update 1 -movflags +faststart 'file:World on Fire - S02E01.webp'
Deleting original file World on Fire - S02E01.jpg (pass -k to keep)
[debug] Invoking hlsnative downloader on "https://drod20a.akamaized.net/dk/encrypted/none/29/6560a697027e193f6c35bc29/00022360700/stream_fmp4/World-on-Fire-I_DRTV2022Jan_FullHD_16x9_VideoMain_video_5500.m3u8?aka_me_session_id=AAAAAAAAAAA2WXplAAAAAMWXf+4ZD866jiVGLY3eRwyCtlujxmOyc1e+QyOshNDRcWKC%2fVsmhJ2P5tKoPu4Y%2fImxJEGtnzLN&aka_media_format_type=hls"
[hlsnative] Downloading m3u8 manifest
[hlsnative] Total fragments: 347
[download] Destination: World on Fire - S02E01.fvideo_hls-5659.mp4
[download]   2.0% of ~ 306.12KiB at    5.99KiB/s ETA Unknown (frag 8/347)ERROR: Data must be padded to 16 byte boundary in CBC mode
Traceback (most recent call last):
File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 1567, in wrapper
return func(self, *args, **kwargs)
File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 1723, in __extract_info
return self.process_ie_result(ie_result, download, extra_info)
File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 1782, in process_ie_result
ie_result = self.process_video_result(ie_result, download=download)
File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 2922, in process_video_result
self.process_info(new_info)
File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 3370, in process_info
partial_success, real_download = self.dl(fname, new_info)
File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 3109, in dl
return fd.download(name, new_info, subtitle)
File "/usr/local/bin/yt-dlp/yt_dlp/downloader/common.py", line 455, in download
ret = self.real_download(filename, info_dict)
File "/usr/local/bin/yt-dlp/yt_dlp/downloader/hls.py", line 375, in real_download
return self.download_and_append_fragments(ctx, fragments, info_dict)
File "/usr/local/bin/yt-dlp/yt_dlp/downloader/fragment.py", line 516, in download_and_append_fragments
decrypt_fragment(fragment, self._read_fragment(ctx)), fragment['frag_index'], ctx)
File "/usr/local/bin/yt-dlp/yt_dlp/downloader/fragment.py", line 364, in decrypt_fragment
return unpad_pkcs7(aes_cbc_decrypt_bytes(frag_content, decrypt_info['KEY'], iv))
File "/usr/local/bin/yt-dlp/yt_dlp/aes.py", line 11, in aes_cbc_decrypt_bytes
return Cryptodome.AES.new(key, Cryptodome.AES.MODE_CBC, iv).decrypt(data)
File "/home/spirillen/.local/lib/python3.10/site-packages/Cryptodome/Cipher/_mode_cbc.py", line 246, in decrypt
raise ValueError("Data must be padded to %d byte boundary in CBC mode" % self.block_size)
ValueError: Data must be padded to 16 byte boundary in CBC mode

Mods in /home/$USER/yt-dlp.conf

-4
-c
--rm-cache-dir
--write-thumbnail
--embed-thumbnail
--convert-thumbnails webp
--write-subs
--sub-langs "da_foreign" # dr.dk
--embed-subs # dr.dk
--convert-subs srt # dr.dk
--audio-quality 0
--audio-format m4a
--ffmpeg-location /usr/local/bin/ffmpeg
--output "%(playlist_index|)s%(playlist_index&. |)s%(title)s.%(ext)s"
-f 'bv*[ext=mp4]+ba[ext=m4a]/b[ext=mp4][protocol^=http][protocol!*=dash] / bv*+ba/b'

Hoping this input can help you solve the problem

@0HAg0
Copy link

0HAg0 commented Jan 21, 2024

Seems most series on dr.dk/drtv/, has that issue now. Workaround --downloader ffmpeg seems to work.

Details

[debug] Command-line config: ['-v', '--downloader', 'ffmpeg', 'https://www.dr.dk/drtv/se/folk-og-fae_-carpe-diem_412639']
[debug] Encodings: locale UTF-8, fs utf-8, pref UTF-8, out utf-8 (No ANSI), error utf-8 (No ANSI), screen utf-8 (No ANSI)
[debug] yt-dlp version stable@2023.12.30 from yt-dlp/yt-dlp [f10589e34] (zip)
[debug] Python 3.10.12 (CPython x86_64 64bit) - Linux-5.15.0-91-generic-x86_64-with-glibc2.35 (OpenSSL 3.0.2 15 Mar 2022, glibc 2.35)
[debug] exe versions: ffmpeg N-112777-g08e97dae20-20231117 (setts), ffprobe N-112777-g08e97dae20-20231117
[debug] Optional libraries: Cryptodome-3.20.0, certifi-2020.06.20, requests-2.25.1, secretstorage-3.3.1, sqlite3-3.37.2, urllib3-1.26.5
[debug] Proxy map: {}
[debug] Request Handlers: urllib
[debug] Loaded 1798 extractors
[drtv] Downloading anonymous token
[drtv] Extracting URL: https://www.dr.dk/drtv/se/folk-og-fae_-carpe-diem_412639
[drtv] folk-og-fae_-carpe-diem_412639: Downloading webpage
[drtv] 00022362860: Downloading stream data
[drtv] 00022362860: Downloading m3u8 information
[drtv] 00022362860: Downloading m3u8 information
[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] 00022362860: Downloading 1 format(s): video_hls-5671+video_hls-audio_medium-English
[debug] Invoking ffmpeg downloader on "https://drod20b.akamaized.net/dk/encrypted/none/5d/6564974a027e193f6c35be5d/00022362860/stream_fmp4/Folk-og-fae-IV-_DRTV2022Jan_FullHD_16x9_VideoMain_video_5500.m3u8?aka_me_session_id=AAAAAAAAAADX3q5lAAAAALEHHbyy0DaXvNbLpQgRQGLNOEWbJU31a%2fSkBNJ600+vhDSwjZ7mN1HejB0yIEKVLVl1b6awiMuZ&aka_media_format_type=hls", "https://drod20b.akamaized.net/dk/encrypted/none/5d/6564974a027e193f6c35be5d/00022362860/stream_fmp4/Folk-og-fae-IV-_DRTV2022Jan_FullHD_16x9_VideoMain_audio_192kbps.m3u8?aka_me_session_id=AAAAAAAAAADX3q5lAAAAALEHHbyy0DaXvNbLpQgRQGLNOEWbJU31a%2fSkBNJ600+vhDSwjZ7mN1HejB0yIEKVLVl1b6awiMuZ&aka_media_format_type=hls"
[download] Destination: Folk og Carpe diem [00022362860].mp4
[debug] ffmpeg command line: ffmpeg -y -loglevel verbose -headers 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.41 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Sec-Fetch-Mode: navigate
' -i 'https://drod20b.akamaized.net/dk/encrypted/none/5d/6564974a027e193f6c35be5d/00022362860/stream_fmp4/Folk-og-fae-IV-_DRTV2022Jan_FullHD_16x9_VideoMain_video_5500.m3u8?aka_me_session_id=AAAAAAAAAADX3q5lAAAAALEHHbyy0DaXvNbLpQgRQGLNOEWbJU31a%2fSkBNJ600+vhDSwjZ7mN1HejB0yIEKVLVl1b6awiMuZ&aka_media_format_type=hls' -headers 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.41 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Sec-Fetch-Mode: navigate
' -i 'https://drod20b.akamaized.net/dk/encrypted/none/5d/6564974a027e193f6c35be5d/00022362860/stream_fmp4/Folk-og-fae-IV-_DRTV2022Jan_FullHD_16x9_VideoMain_audio_192kbps.m3u8?aka_me_session_id=AAAAAAAAAADX3q5lAAAAALEHHbyy0DaXvNbLpQgRQGLNOEWbJU31a%2fSkBNJ600+vhDSwjZ7mN1HejB0yIEKVLVl1b6awiMuZ&aka_media_format_type=hls' -c copy -map 0:0 -map 1:0 -f mp4 'file:Folk og Carpe diem [00022362860].mp4.part'
ffmpeg version N-112777-g08e97dae20-20231117 Copyright (c) 2000-2023 the FFmpeg developers
  built with gcc 13.2.0 (crosstool-NG 1.25.0.232_c175b21)
  configuration: --prefix=/ffbuild/prefix --pkg-config-flags=--static --pkg-config=pkg-config --cross-prefix=x86_64-ffbuild-linux-gnu- --arch=x86_64 --target-os=linux --enable-gpl --enable-version3 --disable-debug --enable-iconv --enable-libxml2 --enable-zlib --enable-libfreetype --enable-libfribidi --enable-gmp --enable-openssl --enable-lzma --enable-fontconfig --enable-libharfbuzz --enable-libvorbis --enable-opencl --enable-libpulse --enable-libvmaf --enable-libxcb --enable-xlib --enable-amf --enable-libaom --enable-libaribb24 --enable-avisynth --enable-chromaprint --enable-libdav1d --enable-libdavs2 --disable-libfdk-aac --enable-ffnvcodec --enable-cuda-llvm --enable-frei0r --enable-libgme --enable-libkvazaar --enable-libaribcaption --enable-libass --enable-libbluray --enable-libjxl --enable-libmp3lame --enable-libopus --enable-librist --enable-libssh --enable-libtheora --enable-libvpx --enable-libwebp --enable-lv2 --enable-libvpl --enable-openal --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopenmpt --enable-librav1e --enable-librubberband --disable-schannel --enable-sdl2 --enable-libsoxr --enable-libsrt --enable-libsvtav1 --enable-libtwolame --enable-libuavs3d --enable-libdrm --enable-vaapi --enable-libvidstab --enable-vulkan --enable-libshaderc --enable-libplacebo --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libzimg --enable-libzvbi --extra-cflags=-DLIBTWOLAME_STATIC --extra-cxxflags= --extra-ldflags=-pthread --extra-ldexeflags=-pie --extra-libs='-ldl -lgomp' --extra-version=20231117
  libavutil      58. 32.100 / 58. 32.100
  libavcodec     60. 33.100 / 60. 33.100
  libavformat    60. 17.100 / 60. 17.100
  libavdevice    60.  4.100 / 60.  4.100
  libavfilter     9. 13.100 /  9. 13.100
  libswscale      7.  6.100 /  7.  6.100
  libswresample   4. 13.100 /  4. 13.100
  libpostproc    57.  4.100 / 57.  4.100
[tcp @ 0x555fa6464400] Starting connection attempt to 217.116.214.67 port 443
[tcp @ 0x555fa6464400] Successfully connected to 217.116.214.67 port 443
mime type is not rfc8216 compliant
[hls @ 0x555fa6462840] Skip ('#EXT-X-VERSION:6')
[hls @ 0x555fa6462840] Skip ('#EXT-X-INDEPENDENT-SEGMENTS')
[hls @ 0x555fa6462840] HLS request for url 'https://drod20b.akamaized.net/dk/encrypted/none/5d/6564974a027e193f6c35be5d/00022362860/stream_fmp4/Folk-og-fae-IV-_DRTV2022Jan_FullHD_16x9_VideoMain_video_5500.mp4?aka_me_pasthr=AAAAAAAAAADX3q5lAAAAALEHHbyy0DaXvNbLpQgRQGLNOEWbJU31a%2fSkBNJ600+vhDSwjZ7mN1HejB0yIEKVLVl1b6awiMuZ&aka_media_format_type=hls&aka_sign=z%2bB3TFSW%2b4eYMnaFlgWWLwHrO2LOjt6E%2bFrr9SSZYGI%3d', offset 0, playlist 0
[hls @ 0x555fa6462840] Opening 'https://drod20b.akamaized.net/dk/encrypted/none/5d/6564974a027e193f6c35be5d/00022362860/stream_fmp4/Folk-og-fae-IV-_DRTV2022Jan_FullHD_16x9_VideoMain_video_5500.mp4?aka_me_pasthr=AAAAAAAAAADX3q5lAAAAALEHHbyy0DaXvNbLpQgRQGLNOEWbJU31a%2fSkBNJ600+vhDSwjZ7mN1HejB0yIEKVLVl1b6awiMuZ&aka_media_format_type=hls&aka_sign=z%2bB3TFSW%2b4eYMnaFlgWWLwHrO2LOjt6E%2bFrr9SSZYGI%3d' for reading
[tcp @ 0x555fa6538340] Starting connection attempt to 217.116.214.67 port 443
[tcp @ 0x555fa6538340] Successfully connected to 217.116.214.67 port 443
[AVIOContext @ 0x555fa654b540] Statistics: 803 bytes read, 0 seeks
[hls @ 0x555fa6462840] HLS request for url 'https://drod20b.akamaized.net/dk/encrypted/none/5d/6564974a027e193f6c35be5d/00022362860/stream_fmp4/Folk-og-fae-IV-_DRTV2022Jan_FullHD_16x9_VideoMain_video_5500.mp4?aka_me_session_id=AAAAAAAAAADX3q5lAAAAALEHHbyy0DaXvNbLpQgRQGLNOEWbJU31a%2fSkBNJ600+vhDSwjZ7mN1HejB0yIEKVLVl1b6awiMuZ&aka_msn=0&aka_hls_version=6&aka_br=bytes=4131-4829194&aka_media_format_type=hls', offset 0, playlist 0
[hls @ 0x555fa6462840] Opening 'https://drod20b.akamaized.net/dk/encrypted/none/5d/6564974a027e193f6c35be5d/00022362860/stream_fmp4/serve.key?aka_me_session_id=AAAAAAAAAADX3q5lAAAAALEHHbyy0DaXvNbLpQgRQGLNOEWbJU31a%2fSkBNJ600+vhDSwjZ7mN1HejB0yIEKVLVl1b6awiMuZ&aka_media_format_type=hls' for reading
[tcp @ 0x555fa654c580] Starting connection attempt to 217.116.214.67 port 443
[tcp @ 0x555fa654c580] Successfully connected to 217.116.214.67 port 443
[AVIOContext @ 0x555fa654e9c0] Statistics: 16 bytes read, 0 seeks
[hls @ 0x555fa6462840] Opening 'crypto+https://drod20b.akamaized.net/dk/encrypted/none/5d/6564974a027e193f6c35be5d/00022362860/stream_fmp4/Folk-og-fae-IV-_DRTV2022Jan_FullHD_16x9_VideoMain_video_5500.mp4?aka_me_session_id=AAAAAAAAAADX3q5lAAAAALEHHbyy0DaXvNbLpQgRQGLNOEWbJU31a%2fSkBNJ600+vhDSwjZ7mN1HejB0yIEKVLVl1b6awiMuZ&aka_msn=0&aka_hls_version=6&aka_br=bytes=4131-4829194&aka_media_format_type=hls' for reading
[tcp @ 0x555fa6538500] Starting connection attempt to 217.116.214.67 port 443
[tcp @ 0x555fa6538500] Successfully connected to 217.116.214.67 port 443
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x555fa652b040] advanced_editlist does not work with fragmented MP4. disabling.
[h264 @ 0x555fa6540bc0] Reinit context to 1920x1088, pix_fmt: yuv420p
Input #0, hls, from 'https://drod20b.akamaized.net/dk/encrypted/none/5d/6564974a027e193f6c35be5d/00022362860/stream_fmp4/Folk-og-fae-IV-_DRTV2022Jan_FullHD_16x9_VideoMain_video_5500.m3u8?aka_me_session_id=AAAAAAAAAADX3q5lAAAAALEHHbyy0DaXvNbLpQgRQGLNOEWbJU31a%2fSkBNJ600+vhDSwjZ7mN1HejB0yIEKVLVl1b6awiMuZ&aka_media_format_type=hls':
  Duration: 00:45:34.20, start: 0.000000, bitrate: 0 kb/s
  Program 0 
    Metadata:
      variant_bitrate : 0
  Stream #0:0(und): Video: h264 (High), 1 reference frame (avc1 / 0x31637661), yuv420p(left), 1920x1080 (1920x1088) [SAR 1:1 DAR 16:9], 3857 kb/s, 25 fps, 25 tbr, 12800 tbn (default)
    Metadata:
      variant_bitrate : 0
      handler_name    : VideoHandler
      vendor_id       : [0][0][0][0]
      compatible_brands: iso6mp41iso5dash
      major_brand     : iso5
      minor_version   : 512
      encoder         : Hybrik 1.5.1.031
[tcp @ 0x555fa65304c0] Starting connection attempt to 217.116.214.67 port 443
[tcp @ 0x555fa65304c0] Successfully connected to 217.116.214.67 port 443
mime type is not rfc8216 compliant
[hls @ 0x555fa652ee40] Skip ('#EXT-X-VERSION:6')
[hls @ 0x555fa652ee40] Skip ('#EXT-X-INDEPENDENT-SEGMENTS')
[hls @ 0x555fa652ee40] HLS request for url 'https://drod20b.akamaized.net/dk/encrypted/none/5d/6564974a027e193f6c35be5d/00022362860/stream_fmp4/Folk-og-fae-IV-_DRTV2022Jan_FullHD_16x9_VideoMain_audio_192kbps.mp4?aka_me_pasthr=AAAAAAAAAADX3q5lAAAAALEHHbyy0DaXvNbLpQgRQGLNOEWbJU31a%2fSkBNJ600+vhDSwjZ7mN1HejB0yIEKVLVl1b6awiMuZ&aka_media_format_type=hls&aka_sign=p6UGCP0nPlawC6%2fRoCkUG2SP9S4b%2fTkvhLOIb9S9DoQ%3d', offset 0, playlist 0
[hls @ 0x555fa652ee40] Opening 'https://drod20b.akamaized.net/dk/encrypted/none/5d/6564974a027e193f6c35be5d/00022362860/stream_fmp4/Folk-og-fae-IV-_DRTV2022Jan_FullHD_16x9_VideoMain_audio_192kbps.mp4?aka_me_pasthr=AAAAAAAAAADX3q5lAAAAALEHHbyy0DaXvNbLpQgRQGLNOEWbJU31a%2fSkBNJ600+vhDSwjZ7mN1HejB0yIEKVLVl1b6awiMuZ&aka_media_format_type=hls&aka_sign=p6UGCP0nPlawC6%2fRoCkUG2SP9S4b%2fTkvhLOIb9S9DoQ%3d' for reading
[tcp @ 0x555fa65ed9c0] Starting connection attempt to 217.116.214.67 port 443
[tcp @ 0x555fa65ed9c0] Successfully connected to 217.116.214.67 port 443
[AVIOContext @ 0x555fa65ff640] Statistics: 748 bytes read, 0 seeks
[hls @ 0x555fa652ee40] HLS request for url 'https://drod20b.akamaized.net/dk/encrypted/none/5d/6564974a027e193f6c35be5d/00022362860/stream_fmp4/Folk-og-fae-IV-_DRTV2022Jan_FullHD_16x9_VideoMain_audio_192kbps.mp4?aka_me_session_id=AAAAAAAAAADX3q5lAAAAALEHHbyy0DaXvNbLpQgRQGLNOEWbJU31a%2fSkBNJ600+vhDSwjZ7mN1HejB0yIEKVLVl1b6awiMuZ&aka_msn=0&aka_hls_version=6&aka_br=bytes=4076-246497&aka_media_format_type=hls', offset 0, playlist 0
[hls @ 0x555fa652ee40] Opening 'https://drod20b.akamaized.net/dk/encrypted/none/5d/6564974a027e193f6c35be5d/00022362860/stream_fmp4/serve.key?aka_me_session_id=AAAAAAAAAADX3q5lAAAAALEHHbyy0DaXvNbLpQgRQGLNOEWbJU31a%2fSkBNJ600+vhDSwjZ7mN1HejB0yIEKVLVl1b6awiMuZ&aka_media_format_type=hls' for reading
[tcp @ 0x555fa6602a80] Starting connection attempt to 217.116.214.67 port 443
[tcp @ 0x555fa6602a80] Successfully connected to 217.116.214.67 port 443
[AVIOContext @ 0x555fa6601c80] Statistics: 16 bytes read, 0 seeks
[hls @ 0x555fa652ee40] Opening 'crypto+https://drod20b.akamaized.net/dk/encrypted/none/5d/6564974a027e193f6c35be5d/00022362860/stream_fmp4/Folk-og-fae-IV-_DRTV2022Jan_FullHD_16x9_VideoMain_audio_192kbps.mp4?aka_me_session_id=AAAAAAAAAADX3q5lAAAAALEHHbyy0DaXvNbLpQgRQGLNOEWbJU31a%2fSkBNJ600+vhDSwjZ7mN1HejB0yIEKVLVl1b6awiMuZ&aka_msn=0&aka_hls_version=6&aka_br=bytes=4076-246497&aka_media_format_type=hls' for reading
[tcp @ 0x555fa65ec480] Starting connection attempt to 217.116.214.67 port 443
[tcp @ 0x555fa65ec480] Successfully connected to 217.116.214.67 port 443
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x555fa65e0d00] advanced_editlist does not work with fragmented MP4. disabling.
Input #1, hls, from 'https://drod20b.akamaized.net/dk/encrypted/none/5d/6564974a027e193f6c35be5d/00022362860/stream_fmp4/Folk-og-fae-IV-_DRTV2022Jan_FullHD_16x9_VideoMain_audio_192kbps.m3u8?aka_me_session_id=AAAAAAAAAADX3q5lAAAAALEHHbyy0DaXvNbLpQgRQGLNOEWbJU31a%2fSkBNJ600+vhDSwjZ7mN1HejB0yIEKVLVl1b6awiMuZ&aka_media_format_type=hls':
  Duration: 00:45:34.24, start: -0.042667, bitrate: 0 kb/s
  Program 0 
    Metadata:
      variant_bitrate : 0
  Stream #1:0(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 192 kb/s (default)
    Metadata:
      variant_bitrate : 0
      handler_name    : SoundHandler
      vendor_id       : [0][0][0][0]
      compatible_brands: iso6mp41iso5dash
      major_brand     : iso5
      minor_version   : 512
      encoder         : Hybrik 1.246.27
[out#0/mp4 @ 0x555fa65f7cc0] Adding streams from explicit maps...
[vost#0:0/copy @ 0x555fa65f8c00] Created video stream from input stream 0:0
[aost#0:1/copy @ 0x555fa65f7880] Created audio stream from input stream 1:0
Output #0, mp4, to 'file:Folk og fæ: Carpe diem [00022362860].mp4.part':
  Metadata:
    encoder         : Lavf60.17.100
  Stream #0:0(und): Video: h264 (High), 1 reference frame (avc1 / 0x31637661), yuv420p(left), 1920x1080 (0x0) [SAR 1:1 DAR 16:9], q=2-31, 3857 kb/s, 25 fps, 25 tbr, 12800 tbn (default)
    Metadata:
      variant_bitrate : 0
      handler_name    : VideoHandler
      vendor_id       : [0][0][0][0]
      compatible_brands: iso6mp41iso5dash
      major_brand     : iso5
      minor_version   : 512
      encoder         : Hybrik 1.5.1.031
  Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 192 kb/s (default)
    Metadata:
      variant_bitrate : 0
      handler_name    : SoundHandler
      vendor_id       : [0][0][0][0]
      compatible_brands: iso6mp41iso5dash
      major_brand     : iso5
      minor_version   : 512
      encoder         : Hybrik 1.246.27
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #1:0 -> #0:1 (copy)
Press [q] to stop, [?] for help
size=       0kB time=-00:00:00.08 bitrate=  -0.0kbits/s speed=N/A    
[AVIOContext @ 0x555fa6550180] Statistics: 4825064 bytes read, 0 seeks
[AVIOContext @ 0x555fa65edf40] Statistics: 242422 bytes read, 0 seeks
[hls @ 0x555fa6462840] HLS request for url 'https://drod20b.akamaized.net/dk/encrypted/none/5d/6564974a027e193f6c35be5d/00022362860/stream_fmp4/Folk-og-fae-IV-_DRTV2022Jan_FullHD_16x9_VideoMain_video_5500.mp4?aka_me_session_id=AAAAAAAAAADX3q5lAAAAALEHHbyy0DaXvNbLpQgRQGLNOEWbJU31a%2fSkBNJ600+vhDSwjZ7mN1HejB0yIEKVLVl1b6awiMuZ&aka_msn=1&aka_hls_version=6&aka_br=bytes=4829195-10154365&aka_media_format_type=hls', offset 0, playlist 0
[hls @ 0x555fa6462840] Opening 'crypto+https://drod20b.akamaized.net/dk/encrypted/none/5d/6564974a027e193f6c35be5d/00022362860/stream_fmp4/Folk-og-fae-IV-_DRTV2022Jan_FullHD_16x9_VideoMain_video_5500.mp4?aka_me_session_id=AAAAAAAAAADX3q5lAAAAALEHHbyy0DaXvNbLpQgRQGLNOEWbJU31a%2fSkBNJ600+vhDSwjZ7mN1HejB0yIEKVLVl1b6awiMuZ&aka_msn=1&aka_hls_version=6&aka_br=bytes=4829195-10154365&aka_media_format_type=hls' for reading
[hls @ 0x555fa652ee40] HLS request for url 'https://drod20b.akamaized.net/dk/encrypted/none/5d/6564974a027e193f6c35be5d/00022362860/stream_fmp4/Folk-og-fae-IV-_DRTV2022Jan_FullHD_16x9_VideoMain_audio_192kbps.mp4?aka_me_session_id=AAAAAAAAAADX3q5lAAAAALEHHbyy0DaXvNbLpQgRQGLNOEWbJU31a%2fSkBNJ600+vhDSwjZ7mN1HejB0yIEKVLVl1b6awiMuZ&aka_msn=1&aka_hls_version=6&aka_br=bytes=246498-488563&aka_media_format_type=hls', offset 0, playlist 0
[hls @ 0x555fa652ee40] Opening 'crypto+https://drod20b.akamaized.net/dk/encrypted/none/5d/6564974a027e193f6c35be5d/00022362860/stream_fmp4/Folk-og-fae-IV-_DRTV2022Jan_FullHD_16x9_VideoMain_audio_192kbps.mp4?aka_me_session_id=AAAAAAAAAADX3q5lAAAAALEHHbyy0DaXvNbLpQgRQGLNOEWbJU31a%2fSkBNJ600+vhDSwjZ7mN1HejB0yIEKVLVl1b6awiMuZ&aka_msn=1&aka_hls_version=6&aka_br=bytes=246498-488563&aka_media_format_type=hls' for reading
[tcp @ 0x7f9bb8009780] Starting connection attempt to 217.116.214.67 port 443
[tcp @ 0x7f9bbc00b240] Starting connection attempt to 217.116.214.74 port 443
[tcp @ 0x7f9bb8009780] Successfully connected to 217.116.214.67 port 443
[tcp @ 0x7f9bbc00b240] Successfully connected to 217.116.214.74 port 443
[AVIOContext @ 0x7f9bbc00e140] Statistics: 242066 bytes read, 0 seeks
[hls @ 0x555fa652ee40] HLS request for url 'https://drod20b.akamaized.net/dk/encrypted/none/5d/6564974a027e193f6c35be5d/00022362860/stream_fmp4/Folk-og-fae-IV-_DRTV2022Jan_FullHD_16x9_VideoMain_audio_192kbps.mp4?aka_me_session_id=AAAAAAAAAADX3q5lAAAAALEHHbyy0DaXvNbLpQgRQGLNOEWbJU31a%2fSkBNJ600+vhDSwjZ7mN1HejB0yIEKVLVl1b6awiMuZ&aka_msn=2&aka_hls_version=6&aka_br=bytes=488564-730750&aka_media_format_type=hls', offset 0, playlist 0
[hls @ 0x555fa652ee40] Opening 'crypto+https://drod20b.akamaized.net/dk/encrypted/none/5d/6564974a027e193f6c35be5d/00022362860/stream_fmp4/Folk-og-fae-IV-_DRTV2022Jan_FullHD_16x9_VideoMain_audio_192kbps.mp4?aka_me_session_id=AAAAAAAAAADX3q5lAAAAALEHHbyy0DaXvNbLpQgRQGLNOEWbJU31a%2fSkBNJ600+vhDSwjZ7mN1HejB0yIEKVLVl1b6awiMuZ&aka_msn=2&aka_hls_version=6&aka_br=bytes=488564-730750&aka_media_format_type=hls' for reading
[AVIOContext @ 0x7f9bb801e5c0] Statistics: 5325171 bytes read, 0 seeks
[hls @ 0x555fa6462840] HLS request for url 'https://drod20b.akamaized.net/dk/encrypted/none/5d/6564974a027e193f6c35be5d/00022362860/stream_fmp4/Folk-og-fae-IV-_DRTV2022Jan_FullHD_16x9_VideoMain_video_5500.mp4?aka_me_session_id=AAAAAAAAAADX3q5lAAAAALEHHbyy0DaXvNbLpQgRQGLNOEWbJU31a%2fSkBNJ600+vhDSwjZ7mN1HejB0yIEKVLVl1b6awiMuZ&aka_msn=2&aka_hls_version=6&aka_br=bytes=10154366-15616479&aka_media_format_type=hls', offset 0, playlist 0
[hls @ 0x555fa6462840] Opening 'crypto+https://drod20b.akamaized.net/dk/encrypted/none/5d/6564974a027e193f6c35be5d/00022362860/stream_fmp4/Folk-og-fae-IV-_DRTV2022Jan_FullHD_16x9_VideoMain_video_5500.mp4?aka_me_session_id=AAAAAAAAAADX3q5lAAAAALEHHbyy0DaXvNbLpQgRQGLNOEWbJU31a%2fSkBNJ600+vhDSwjZ7mN1HejB0yIEKVLVl1b6awiMuZ&aka_msn=2&aka_hls_version=6&aka_br=bytes=10154366-15616479&aka_media_format_type=hls' for reading

and this goes on and on

@spirillen
Copy link

@0HAg0 could you please try this one then

yt-dlp --downloader ffmpeg "https://www.dr.dk/drtv/episode/world-on-fire_411307" -o "World on Fire - S02E01.mkv" --verbose

Because I still get errors

Log

[debug] Command-line config: ['--downloader', 'ffmpeg', 'https://www.dr.dk/drtv/episode/world-on-fire_411307', '-o', 'World on Fire - S02E01.mkv', '--verbose']
[debug] User config "/home/$USER/yt-dlp.conf": ['-4', '-c', '--rm-cache-dir', '--embed-thumbnail', '--convert-thumbnails', 'webp', '--write-subs', '--sub-langs', 'da_foreign', '--embed-subs', '--convert-subs', 'srt', '--audio-quality', '0', '--audio-format', 'm4a', '--embed-thumbnail', '--ffmpeg-location', '/usr/local/bin/ffmpeg', '--output', '%(playlist_index|)s%(playlist_index&. |)s%(title)s.%(ext)s', '-f', 'bv*[ext=mp4]+ba[ext=m4a]/b[ext=mp4][protocol^=http][protocol!*=dash] / bv*+ba/b', '-S', 'res:1080,proto,codec:h264']
[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.12.30 from yt-dlp/yt-dlp [f10589e34] (zip)
[debug] Python 3.10.12 (CPython x86_64 64bit) - Linux-5.15.0-91-generic-x86_64-with-glibc2.35 (OpenSSL 3.0.2 15 Mar 2022, glibc 2.35)
[debug] exe versions: ffmpeg N-68334-ga87a52ed0b-static (setts), ffprobe N-68334-ga87a52ed0b-static
[debug] Optional libraries: Cryptodome-3.15.0, brotli-1.0.9, certifi-2023.05.07, mutagen-1.45.1, pyxattr-0.7.2, requests-2.31.0, secretstorage-3.3.1, sqlite3-3.37.2, urllib3-2.0.3, websockets-10.3
[debug] Proxy map: {}
[debug] Request Handlers: urllib, requests
[debug] Loaded 1798 extractors
Removing cache dir /home/$USER/.cache/yt-dlp ..
[drtv] Downloading anonymous token
[drtv] Extracting URL: https://www.dr.dk/drtv/episode/world-on-fire_411307
[drtv] world-on-fire_411307: Downloading webpage
[drtv] 00022360700: Downloading stream data
[drtv] 00022360700: Downloading m3u8 information
[drtv] 00022360700: Downloading m3u8 information
[info] 00022360700: Downloading subtitles: da_foreign
[debug] Sort order given by user: res:1080, proto, codec:h264
[debug] Formats sorted by: hasvid, ie_pref, res:1080(1080.0), proto, vcodec:h264(7), acodec, lang, quality, fps, hdr:12(7), channels, size, br, asr, vext, aext, hasaud, source, id
[info] 00022360700: Downloading 1 format(s): video_hls-5659+video_hls-audio_medium-English
[info] Writing video subtitles to: World on Fire - S02E01.mkv.da_foreign.vtt
[debug] Invoking ffmpeg downloader on "https://drod20a.akamaized.net/all/clear/none/29/6560a697027e193f6c35bc29/00022360700/subtitles/Foreign-World-on-Fire-I_DRTV2022Jan_FullHD_16x9_VideoMain.vtt"
[download] Destination: World on Fire - S02E01.mkv.da_foreign.vtt
[debug] ffmpeg command line: /usr/local/bin/ffmpeg -y -loglevel verbose -headers 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.24 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Sec-Fetch-Mode: navigate
' -i https://drod20a.akamaized.net/all/clear/none/29/6560a697027e193f6c35bc29/00022360700/subtitles/Foreign-World-on-Fire-I_DRTV2022Jan_FullHD_16x9_VideoMain.vtt -c copy -f webvtt 'file:World on Fire - S02E01.mkv.da_foreign.vtt.part'
ffmpeg version N-68334-ga87a52ed0b-static https://johnvansickle.com/ffmpeg/  Copyright (c) 2000-2024 the FFmpeg developers
built with gcc 8 (Debian 8.3.0-6)
configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gmp --enable-libgme --enable-gray --enable-libaom --enable-libfribidi --enable-libass --enable-libvmaf --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librubberband --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libdav1d --enable-libxvid --enable-libzvbi --enable-libzimg
libavutil      58. 36.101 / 58. 36.101
libavcodec     60. 37.100 / 60. 37.100
libavformat    60. 20.100 / 60. 20.100
libavdevice    60.  4.100 / 60.  4.100
libavfilter     9. 17.100 /  9. 17.100
libswscale      7.  6.100 /  7.  6.100
libswresample   4. 13.100 /  4. 13.100
libpostproc    57.  4.100 / 57.  4.100


ERROR: ffmpeg exited with code -11
File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/usr/local/bin/yt-dlp/__main__.py", line 17, in <module>
yt_dlp.main()
File "/usr/local/bin/yt-dlp/yt_dlp/__init__.py", line 1009, in main
_exit(*variadic(_real_main(argv)))
File "/usr/local/bin/yt-dlp/yt_dlp/__init__.py", line 999, in _real_main
return ydl.download(all_urls)
File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 3541, in download
self.__download_wrapper(self.extract_info)(
File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 3516, in wrapper
res = func(*args, **kwargs)
File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 1576, in extract_info
return self.__extract_info(url, self.get_info_extractor(key), download, extra_info, process)
File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 1587, in wrapper
return func(self, *args, **kwargs)
File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 1743, in __extract_info
return self.process_ie_result(ie_result, download, extra_info)
File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 1802, in process_ie_result
ie_result = self.process_video_result(ie_result, download=download)
File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 2952, in process_video_result
self.process_info(new_info)
File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 3206, in process_info
sub_files = self._write_subtitles(info_dict, temp_filename)
File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 4257, in _write_subtitles
self.dl(sub_filename, sub_copy, subtitle=True)
File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 3139, in dl
return fd.download(name, new_info, subtitle)
File "/usr/local/bin/yt-dlp/yt_dlp/downloader/common.py", line 455, in download
ret = self.real_download(filename, info_dict)
File "/usr/local/bin/yt-dlp/yt_dlp/downloader/external.py", line 80, in real_download
self.report_error('%s exited with code %d' % (
File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 1054, in report_error
self.trouble(f'{self._format_err("ERROR:", self.Styles.ERROR)} {message}', *args, **kwargs)
File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 982, in trouble
tb_data = traceback.format_list(traceback.extract_stack())


[info] Downloading video thumbnail 0 ...
[info] Writing video thumbnail 0 to: World on Fire - S02E01.mkv.jpg
[SubtitlesConvertor] Converting subtitles
WARNING: Skipping embedding da_foreign subtitle because the file is missing
[ThumbnailsConvertor] Converting thumbnail "World on Fire - S02E01.mkv.jpg" to webp
[debug] ffmpeg command line: /usr/local/bin/ffmpeg -y -loglevel repeat+info -f image2 -pattern_type none -i 'file:World on Fire - S02E01.mkv.jpg' -update 1 -movflags +faststart 'file:World on Fire - S02E01.mkv.webp'
Deleting original file World on Fire - S02E01.mkv.jpg (pass -k to keep)
[debug] Invoking ffmpeg downloader on "https://drod20a.akamaized.net/dk/encrypted/none/29/6560a697027e193f6c35bc29/00022360700/stream_fmp4/World-on-Fire-I_DRTV2022Jan_FullHD_16x9_VideoMain_video_5500.m3u8?aka_me_session_id=AAAAAAAAAADGE69lAAAAAF4h62xWtKHrpLqSSacC80+ueAR0LQ5F6OegulezGK5ZSqySeDN98TeacUEmAJs3MfBcfNQb0xSk&aka_media_format_type=hls", "https://drod20a.akamaized.net/dk/encrypted/none/29/6560a697027e193f6c35bc29/00022360700/stream_fmp4/World-on-Fire-I_DRTV2022Jan_FullHD_16x9_VideoMain_audio_192kbps.m3u8?aka_me_session_id=AAAAAAAAAADGE69lAAAAAF4h62xWtKHrpLqSSacC80+ueAR0LQ5F6OegulezGK5ZSqySeDN98TeacUEmAJs3MfBcfNQb0xSk&aka_media_format_type=hls"
[download] Destination: World on Fire - S02E01.mkv.mp4
[debug] ffmpeg command line: /usr/local/bin/ffmpeg -y -loglevel verbose -headers 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.24 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Sec-Fetch-Mode: navigate
' -i 'https://drod20a.akamaized.net/dk/encrypted/none/29/6560a697027e193f6c35bc29/00022360700/stream_fmp4/World-on-Fire-I_DRTV2022Jan_FullHD_16x9_VideoMain_video_5500.m3u8?aka_me_session_id=AAAAAAAAAADGE69lAAAAAF4h62xWtKHrpLqSSacC80+ueAR0LQ5F6OegulezGK5ZSqySeDN98TeacUEmAJs3MfBcfNQb0xSk&aka_media_format_type=hls' -headers 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.24 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Sec-Fetch-Mode: navigate
' -i 'https://drod20a.akamaized.net/dk/encrypted/none/29/6560a697027e193f6c35bc29/00022360700/stream_fmp4/World-on-Fire-I_DRTV2022Jan_FullHD_16x9_VideoMain_audio_192kbps.m3u8?aka_me_session_id=AAAAAAAAAADGE69lAAAAAF4h62xWtKHrpLqSSacC80+ueAR0LQ5F6OegulezGK5ZSqySeDN98TeacUEmAJs3MfBcfNQb0xSk&aka_media_format_type=hls' -c copy -map 0:0 -map 1:0 -f mp4 'file:World on Fire - S02E01.mkv.mp4.part'
ffmpeg version N-68334-ga87a52ed0b-static https://johnvansickle.com/ffmpeg/  Copyright (c) 2000-2024 the FFmpeg developers
built with gcc 8 (Debian 8.3.0-6)
configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gmp --enable-libgme --enable-gray --enable-libaom --enable-libfribidi --enable-libass --enable-libvmaf --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librubberband --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libdav1d --enable-libxvid --enable-libzvbi --enable-libzimg
libavutil      58. 36.101 / 58. 36.101
libavcodec     60. 37.100 / 60. 37.100
libavformat    60. 20.100 / 60. 20.100
libavdevice    60.  4.100 / 60.  4.100
libavfilter     9. 17.100 /  9. 17.100
libswscale      7.  6.100 /  7.  6.100
libswresample   4. 13.100 /  4. 13.100
libpostproc    57.  4.100 / 57.  4.100


ERROR: ffmpeg exited with code -11
File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/usr/local/bin/yt-dlp/__main__.py", line 17, in <module>
yt_dlp.main()
File "/usr/local/bin/yt-dlp/yt_dlp/__init__.py", line 1009, in main
_exit(*variadic(_real_main(argv)))
File "/usr/local/bin/yt-dlp/yt_dlp/__init__.py", line 999, in _real_main
return ydl.download(all_urls)
File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 3541, in download
self.__download_wrapper(self.extract_info)(
File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 3516, in wrapper
res = func(*args, **kwargs)
File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 1576, in extract_info
return self.__extract_info(url, self.get_info_extractor(key), download, extra_info, process)
File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 1587, in wrapper
return func(self, *args, **kwargs)
File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 1743, in __extract_info
return self.process_ie_result(ie_result, download, extra_info)
File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 1802, in process_ie_result
ie_result = self.process_video_result(ie_result, download=download)
File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 2952, in process_video_result
self.process_info(new_info)
File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 3365, in process_info
success, real_download = self.dl(temp_filename, info_dict)
File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 3139, in dl
return fd.download(name, new_info, subtitle)
File "/usr/local/bin/yt-dlp/yt_dlp/downloader/common.py", line 455, in download
ret = self.real_download(filename, info_dict)
File "/usr/local/bin/yt-dlp/yt_dlp/downloader/external.py", line 80, in real_download
self.report_error('%s exited with code %d' % (
File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 1054, in report_error
self.trouble(f'{self._format_err("ERROR:", self.Styles.ERROR)} {message}', *args, **kwargs)
File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 982, in trouble
tb_data = traceback.format_list(traceback.extract_stack())

@0HAg0
Copy link

0HAg0 commented Jan 22, 2024

I don't get any errors. Seems, you are using an different version of ffmpeg. I use this Builds of [FFmpeg master] with some patches necessary for smooth integration with [yt-dlp].

https://github.com/yt-dlp/FFmpeg-Builds

Details

[debug] Command-line config: ['--downloader', 'ffmpeg', 'https://www.dr.dk/drtv/episode/world-on-fire_411307', '-o', 'World on Fire - S02E01.mkv', '--verbose']
[debug] Encodings: locale UTF-8, fs utf-8, pref UTF-8, out utf-8 (No ANSI), error utf-8 (No ANSI), screen utf-8 (No ANSI)
[debug] yt-dlp version stable@2023.12.30 from yt-dlp/yt-dlp [f10589e34] (zip)
[debug] Python 3.10.12 (CPython x86_64 64bit) - Linux-5.15.0-91-generic-x86_64-with-glibc2.35 (OpenSSL 3.0.2 15 Mar 2022, glibc 2.35)
[debug] exe versions: ffmpeg N-113385-g6c4388b468-20240121 (setts), ffprobe N-113385-g6c4388b468-20240121
[debug] Optional libraries: Cryptodome-3.20.0, certifi-2020.06.20, requests-2.25.1, secretstorage-3.3.1, sqlite3-3.37.2, urllib3-1.26.5
[debug] Proxy map: {}
[debug] Request Handlers: urllib
[debug] Loaded 1798 extractors
[drtv] Downloading anonymous token
[drtv] Extracting URL: https://www.dr.dk/drtv/episode/world-on-fire_411307
[drtv] world-on-fire_411307: Downloading webpage
[drtv] 00022360700: Downloading stream data
[drtv] 00022360700: Downloading m3u8 information
[drtv] 00022360700: Downloading m3u8 information
[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] 00022360700: Downloading 1 format(s): video_hls-5659+video_hls-audio_medium-English
[debug] Invoking ffmpeg downloader on "https://drod20a.akamaized.net/dk/encrypted/none/29/6560a697027e193f6c35bc29/00022360700/stream_fmp4/World-on-Fire-I_DRTV2022Jan_FullHD_16x9_VideoMain_video_5500.m3u8?aka_me_session_id=AAAAAAAAAAD4y69lAAAAAEY4QJG%2fdiiDNFZvzdsBmVwcLcpPwTJEAfTOdA5bokCzIvJHzZc87RSa9yHMvruwK1732bvjK2Rr&aka_media_format_type=hls", "https://drod20a.akamaized.net/dk/encrypted/none/29/6560a697027e193f6c35bc29/00022360700/stream_fmp4/World-on-Fire-I_DRTV2022Jan_FullHD_16x9_VideoMain_audio_192kbps.m3u8?aka_me_session_id=AAAAAAAAAAD4y69lAAAAAEY4QJG%2fdiiDNFZvzdsBmVwcLcpPwTJEAfTOdA5bokCzIvJHzZc87RSa9yHMvruwK1732bvjK2Rr&aka_media_format_type=hls"
[download] Destination: World on Fire - S02E01.mkv.mp4
[debug] ffmpeg command line: ffmpeg -y -loglevel verbose -headers 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.24 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Sec-Fetch-Mode: navigate
' -i 'https://drod20a.akamaized.net/dk/encrypted/none/29/6560a697027e193f6c35bc29/00022360700/stream_fmp4/World-on-Fire-I_DRTV2022Jan_FullHD_16x9_VideoMain_video_5500.m3u8?aka_me_session_id=AAAAAAAAAAD4y69lAAAAAEY4QJG%2fdiiDNFZvzdsBmVwcLcpPwTJEAfTOdA5bokCzIvJHzZc87RSa9yHMvruwK1732bvjK2Rr&aka_media_format_type=hls' -headers 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.24 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Sec-Fetch-Mode: navigate
' -i 'https://drod20a.akamaized.net/dk/encrypted/none/29/6560a697027e193f6c35bc29/00022360700/stream_fmp4/World-on-Fire-I_DRTV2022Jan_FullHD_16x9_VideoMain_audio_192kbps.m3u8?aka_me_session_id=AAAAAAAAAAD4y69lAAAAAEY4QJG%2fdiiDNFZvzdsBmVwcLcpPwTJEAfTOdA5bokCzIvJHzZc87RSa9yHMvruwK1732bvjK2Rr&aka_media_format_type=hls' -c copy -map 0:0 -map 1:0 -f mp4 'file:World on Fire - S02E01.mkv.mp4.part'
ffmpeg version N-113385-g6c4388b468-20240121 Copyright (c) 2000-2024 the FFmpeg developers
  built with gcc 13.2.0 (crosstool-NG 1.25.0.232_c175b21)
  configuration: --prefix=/ffbuild/prefix --pkg-config-flags=--static --pkg-config=pkg-config --cross-prefix=x86_64-ffbuild-linux-gnu- --arch=x86_64 --target-os=linux --enable-gpl --enable-version3 --disable-debug --enable-iconv --enable-libxml2 --enable-zlib --enable-libfreetype --enable-libfribidi --enable-gmp --enable-openssl --enable-lzma --enable-fontconfig --enable-libharfbuzz --enable-libvorbis --enable-opencl --enable-libpulse --enable-libvmaf --enable-libxcb --enable-xlib --enable-amf --enable-libaom --enable-libaribb24 --enable-avisynth --enable-chromaprint --enable-libdav1d --enable-libdavs2 --disable-libfdk-aac --enable-ffnvcodec --enable-cuda-llvm --enable-frei0r --enable-libgme --enable-libkvazaar --enable-libaribcaption --enable-libass --enable-libbluray --enable-libjxl --enable-libmp3lame --enable-libopus --enable-librist --enable-libssh --enable-libtheora --enable-libvpx --enable-libwebp --enable-lv2 --enable-libvpl --enable-openal --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopenmpt --enable-librav1e --enable-librubberband --disable-schannel --enable-sdl2 --enable-libsoxr --enable-libsrt --enable-libsvtav1 --enable-libtwolame --enable-libuavs3d --enable-libdrm --enable-vaapi --enable-libvidstab --enable-vulkan --enable-libshaderc --enable-libplacebo --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libzimg --enable-libzvbi --extra-cflags=-DLIBTWOLAME_STATIC --extra-cxxflags= --extra-ldflags=-pthread --extra-ldexeflags=-pie --extra-libs='-ldl -lgomp' --extra-version=20240121
  libavutil      58. 36.101 / 58. 36.101
  libavcodec     60. 37.100 / 60. 37.100
  libavformat    60. 20.100 / 60. 20.100
  libavdevice    60.  4.100 / 60.  4.100
  libavfilter     9. 17.100 /  9. 17.100
  libswscale      7.  6.100 /  7.  6.100
  libswresample   4. 13.100 /  4. 13.100
  libpostproc    57.  4.100 / 57.  4.100
[tcp @ 0x564b3aa35ac0] Starting connection attempt to 217.116.214.83 port 443
[tcp @ 0x564b3aa35ac0] Successfully connected to 217.116.214.83 port 443
mime type is not rfc8216 compliant
[hls @ 0x564b3aa33f40] Skip ('#EXT-X-VERSION:6')
[hls @ 0x564b3aa33f40] Skip ('#EXT-X-INDEPENDENT-SEGMENTS')
[hls @ 0x564b3aa33f40] HLS request for url 'https://drod20a.akamaized.net/dk/encrypted/none/29/6560a697027e193f6c35bc29/00022360700/stream_fmp4/World-on-Fire-I_DRTV2022Jan_FullHD_16x9_VideoMain_video_5500.mp4?aka_me_pasthr=AAAAAAAAAAD4y69lAAAAAEY4QJG%2fdiiDNFZvzdsBmVwcLcpPwTJEAfTOdA5bokCzIvJHzZc87RSa9yHMvruwK1732bvjK2Rr&aka_media_format_type=hls&aka_sign=tfkgWEbj8hebgdYWd4dHK3H3Vy%2fWbbnDAe1PE7u5ylw%3d', offset 0, playlist 0
[hls @ 0x564b3aa33f40] Opening 'https://drod20a.akamaized.net/dk/encrypted/none/29/6560a697027e193f6c35bc29/00022360700/stream_fmp4/World-on-Fire-I_DRTV2022Jan_FullHD_16x9_VideoMain_video_5500.mp4?aka_me_pasthr=AAAAAAAAAAD4y69lAAAAAEY4QJG%2fdiiDNFZvzdsBmVwcLcpPwTJEAfTOdA5bokCzIvJHzZc87RSa9yHMvruwK1732bvjK2Rr&aka_media_format_type=hls&aka_sign=tfkgWEbj8hebgdYWd4dHK3H3Vy%2fWbbnDAe1PE7u5ylw%3d' for reading
[tcp @ 0x564b3ab18e40] Starting connection attempt to 217.116.214.75 port 443
[tcp @ 0x564b3ab18e40] Successfully connected to 217.116.214.75 port 443
[AVIOContext @ 0x564b3ab2af80] Statistics: 803 bytes read, 0 seeks
[hls @ 0x564b3aa33f40] HLS request for url 'https://drod20a.akamaized.net/dk/encrypted/none/29/6560a697027e193f6c35bc29/00022360700/stream_fmp4/World-on-Fire-I_DRTV2022Jan_FullHD_16x9_VideoMain_video_5500.mp4?aka_me_session_id=AAAAAAAAAAD4y69lAAAAAEY4QJG%2fdiiDNFZvzdsBmVwcLcpPwTJEAfTOdA5bokCzIvJHzZc87RSa9yHMvruwK1732bvjK2Rr&aka_msn=0&aka_hls_version=6&aka_br=bytes=5007-7164319&aka_media_format_type=hls', offset 0, playlist 0
[hls @ 0x564b3aa33f40] Opening 'https://drod20a.akamaized.net/dk/encrypted/none/29/6560a697027e193f6c35bc29/00022360700/stream_fmp4/serve.key?aka_me_session_id=AAAAAAAAAAD4y69lAAAAAEY4QJG%2fdiiDNFZvzdsBmVwcLcpPwTJEAfTOdA5bokCzIvJHzZc87RSa9yHMvruwK1732bvjK2Rr&aka_media_format_type=hls' for reading
[tcp @ 0x564b3ab19ac0] Starting connection attempt to 217.116.214.83 port 443
[tcp @ 0x564b3ab19ac0] Successfully connected to 217.116.214.83 port 443
[AVIOContext @ 0x564b3ab1d600] Statistics: 16 bytes read, 0 seeks
[hls @ 0x564b3aa33f40] Opening 'crypto+https://drod20a.akamaized.net/dk/encrypted/none/29/6560a697027e193f6c35bc29/00022360700/stream_fmp4/World-on-Fire-I_DRTV2022Jan_FullHD_16x9_VideoMain_video_5500.mp4?aka_me_session_id=AAAAAAAAAAD4y69lAAAAAEY4QJG%2fdiiDNFZvzdsBmVwcLcpPwTJEAfTOdA5bokCzIvJHzZc87RSa9yHMvruwK1732bvjK2Rr&aka_msn=0&aka_hls_version=6&aka_br=bytes=5007-7164319&aka_media_format_type=hls' for reading
[tcp @ 0x564b3ab19080] Starting connection attempt to 217.116.214.83 port 443
[tcp @ 0x564b3ab19080] Successfully connected to 217.116.214.83 port 443
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x564b3ab0b640] advanced_editlist does not work with fragmented MP4. disabling.
[h264 @ 0x564b3ab222c0] Reinit context to 1920x1088, pix_fmt: yuv420p
Input #0, hls, from 'https://drod20a.akamaized.net/dk/encrypted/none/29/6560a697027e193f6c35bc29/00022360700/stream_fmp4/World-on-Fire-I_DRTV2022Jan_FullHD_16x9_VideoMain_video_5500.m3u8?aka_me_session_id=AAAAAAAAAAD4y69lAAAAAEY4QJG%2fdiiDNFZvzdsBmVwcLcpPwTJEAfTOdA5bokCzIvJHzZc87RSa9yHMvruwK1732bvjK2Rr&aka_media_format_type=hls':
  Duration: 00:57:47.88, start: 0.000000, bitrate: 0 kb/s
  Program 0 
    Metadata:
      variant_bitrate : 0
  Stream #0:0(und): Video: h264 (High), 1 reference frame (avc1 / 0x31637661), yuv420p(left), 1920x1080 (1920x1088) [SAR 1:1 DAR 16:9], 5724 kb/s, 25 fps, 25 tbr, 12800 tbn (default)
      Metadata:
        variant_bitrate : 0
        handler_name    : VideoHandler
        vendor_id       : [0][0][0][0]
        compatible_brands: iso6mp41iso5dash
        major_brand     : iso5
        minor_version   : 512
        encoder         : Hybrik 1.5.1.031
[tcp @ 0x564b3ab0f800] Starting connection attempt to 217.116.214.83 port 443
[tcp @ 0x564b3ab0f800] Successfully connected to 217.116.214.83 port 443
mime type is not rfc8216 compliant
[hls @ 0x564b3ab22cc0] Skip ('#EXT-X-VERSION:6')
[hls @ 0x564b3ab22cc0] Skip ('#EXT-X-INDEPENDENT-SEGMENTS')
[hls @ 0x564b3ab22cc0] HLS request for url 'https://drod20a.akamaized.net/dk/encrypted/none/29/6560a697027e193f6c35bc29/00022360700/stream_fmp4/World-on-Fire-I_DRTV2022Jan_FullHD_16x9_VideoMain_audio_192kbps.mp4?aka_me_pasthr=AAAAAAAAAAD4y69lAAAAAEY4QJG%2fdiiDNFZvzdsBmVwcLcpPwTJEAfTOdA5bokCzIvJHzZc87RSa9yHMvruwK1732bvjK2Rr&aka_media_format_type=hls&aka_sign=tXPsoMM2cMDEvSSH7qXXhT9somzvDZrWfQx6%2brfsnGw%3d', offset 0, playlist 0
[hls @ 0x564b3ab22cc0] Opening 'https://drod20a.akamaized.net/dk/encrypted/none/29/6560a697027e193f6c35bc29/00022360700/stream_fmp4/World-on-Fire-I_DRTV2022Jan_FullHD_16x9_VideoMain_audio_192kbps.mp4?aka_me_pasthr=AAAAAAAAAAD4y69lAAAAAEY4QJG%2fdiiDNFZvzdsBmVwcLcpPwTJEAfTOdA5bokCzIvJHzZc87RSa9yHMvruwK1732bvjK2Rr&aka_media_format_type=hls&aka_sign=tXPsoMM2cMDEvSSH7qXXhT9somzvDZrWfQx6%2brfsnGw%3d' for reading
[tcp @ 0x564b3ab5f400] Starting connection attempt to 217.116.214.75 port 443
[tcp @ 0x564b3ab5f400] Successfully connected to 217.116.214.75 port 443
[AVIOContext @ 0x564b3ab74980] Statistics: 748 bytes read, 0 seeks
[hls @ 0x564b3ab22cc0] HLS request for url 'https://drod20a.akamaized.net/dk/encrypted/none/29/6560a697027e193f6c35bc29/00022360700/stream_fmp4/World-on-Fire-I_DRTV2022Jan_FullHD_16x9_VideoMain_audio_192kbps.mp4?aka_me_session_id=AAAAAAAAAAD4y69lAAAAAEY4QJG%2fdiiDNFZvzdsBmVwcLcpPwTJEAfTOdA5bokCzIvJHzZc87RSa9yHMvruwK1732bvjK2Rr&aka_msn=0&aka_hls_version=6&aka_br=bytes=4952-247113&aka_media_format_type=hls', offset 0, playlist 0
[hls @ 0x564b3ab22cc0] Opening 'https://drod20a.akamaized.net/dk/encrypted/none/29/6560a697027e193f6c35bc29/00022360700/stream_fmp4/serve.key?aka_me_session_id=AAAAAAAAAAD4y69lAAAAAEY4QJG%2fdiiDNFZvzdsBmVwcLcpPwTJEAfTOdA5bokCzIvJHzZc87RSa9yHMvruwK1732bvjK2Rr&aka_media_format_type=hls' for reading
[tcp @ 0x564b3ab77c80] Starting connection attempt to 217.116.214.75 port 443
[tcp @ 0x564b3ab77c80] Successfully connected to 217.116.214.75 port 443
[AVIOContext @ 0x564b3ab77e40] Statistics: 16 bytes read, 0 seeks
[hls @ 0x564b3ab22cc0] Opening 'crypto+https://drod20a.akamaized.net/dk/encrypted/none/29/6560a697027e193f6c35bc29/00022360700/stream_fmp4/World-on-Fire-I_DRTV2022Jan_FullHD_16x9_VideoMain_audio_192kbps.mp4?aka_me_session_id=AAAAAAAAAAD4y69lAAAAAEY4QJG%2fdiiDNFZvzdsBmVwcLcpPwTJEAfTOdA5bokCzIvJHzZc87RSa9yHMvruwK1732bvjK2Rr&aka_msn=0&aka_hls_version=6&aka_br=bytes=4952-247113&aka_media_format_type=hls' for reading
[tcp @ 0x564b3ab78a00] Starting connection attempt to 217.116.214.75 port 443
[tcp @ 0x564b3ab78a00] Successfully connected to 217.116.214.75 port 443
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x564b3ab562c0] advanced_editlist does not work with fragmented MP4. disabling.
Input #1, hls, from 'https://drod20a.akamaized.net/dk/encrypted/none/29/6560a697027e193f6c35bc29/00022360700/stream_fmp4/World-on-Fire-I_DRTV2022Jan_FullHD_16x9_VideoMain_audio_192kbps.m3u8?aka_me_session_id=AAAAAAAAAAD4y69lAAAAAEY4QJG%2fdiiDNFZvzdsBmVwcLcpPwTJEAfTOdA5bokCzIvJHzZc87RSa9yHMvruwK1732bvjK2Rr&aka_media_format_type=hls':
  Duration: 00:57:47.92, start: -0.042667, bitrate: 0 kb/s
  Program 0 
    Metadata:
      variant_bitrate : 0
  Stream #1:0(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 192 kb/s (default)
      Metadata:
        variant_bitrate : 0
        handler_name    : SoundHandler
        vendor_id       : [0][0][0][0]
        compatible_brands: iso6mp41iso5dash
        major_brand     : iso5
        minor_version   : 512
        encoder         : Hybrik 1.246.27
[out#0/mp4 @ 0x564b3ab7e440] Adding streams from explicit maps...
[vost#0:0/copy @ 0x564b3ac33a80] Created video stream from input stream 0:0
[aost#0:1/copy @ 0x564b3ab7c880] Created audio stream from input stream 1:0
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #1:0 -> #0:1 (copy)
Output #0, mp4, to 'file:World on Fire - S02E01.mkv.mp4.part':
  Metadata:
    encoder         : Lavf60.20.100
  Stream #0:0(und): Video: h264 (High), 1 reference frame (avc1 / 0x31637661), yuv420p(left), 1920x1080 (0x0) [SAR 1:1 DAR 16:9], q=2-31, 5724 kb/s, 25 fps, 25 tbr, 12800 tbn (default)
      Metadata:
        variant_bitrate : 0
        handler_name    : VideoHandler
        vendor_id       : [0][0][0][0]
        compatible_brands: iso6mp41iso5dash
        major_brand     : iso5
        minor_version   : 512
        encoder         : Hybrik 1.5.1.031
  Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 192 kb/s (default)
      Metadata:
        variant_bitrate : 0
        handler_name    : SoundHandler
        vendor_id       : [0][0][0][0]
        compatible_brands: iso6mp41iso5dash
        major_brand     : iso5
        minor_version   : 512
        encoder         : Hybrik 1.246.27
[out#0/mp4 @ 0x564b3ab7e440] Starting thread...
[in#0/hls @ 0x564b3aa33c00] Starting thread...
[in#1/hls @ 0x564b3ab23b80] Starting thread...
Press [q] to stop, [?] for help
[AVIOContext @ 0x564b3ab33bc0] Statistics: 7159313 bytes read, 0 seeks
[AVIOContext @ 0x564b3ab61ec0] Statistics: 242162 bytes read, 0 seeks
[hls @ 0x564b3aa33f40] HLS request for url 'https://drod20a.akamaized.net/dk/encrypted/none/29/6560a697027e193f6c35bc29/00022360700/stream_fmp4/World-on-Fire-I_DRTV2022Jan_FullHD_16x9_VideoMain_video_5500.mp4?aka_me_session_id=AAAAAAAAAAD4y69lAAAAAEY4QJG%2fdiiDNFZvzdsBmVwcLcpPwTJEAfTOdA5bokCzIvJHzZc87RSa9yHMvruwK1732bvjK2Rr&aka_msn=1&aka_hls_version=6&aka_br=bytes=7164320-14202699&aka_media_format_type=hls', offset 0, playlist 0
[hls @ 0x564b3aa33f40] Opening 'crypto+https://drod20a.akamaized.net/dk/encrypted/none/29/6560a697027e193f6c35bc29/00022360700/stream_fmp4/World-on-Fire-I_DRTV2022Jan_FullHD_16x9_VideoMain_video_5500.mp4?aka_me_session_id=AAAAAAAAAAD4y69lAAAAAEY4QJG%2fdiiDNFZvzdsBmVwcLcpPwTJEAfTOdA5bokCzIvJHzZc87RSa9yHMvruwK1732bvjK2Rr&aka_msn=1&aka_hls_version=6&aka_br=bytes=7164320-14202699&aka_media_format_type=hls' for reading
[hls @ 0x564b3ab22cc0] HLS request for url 'https://drod20a.akamaized.net/dk/encrypted/none/29/6560a697027e193f6c35bc29/00022360700/stream_fmp4/World-on-Fire-I_DRTV2022Jan_FullHD_16x9_VideoMain_audio_192kbps.mp4?aka_me_session_id=AAAAAAAAAAD4y69lAAAAAEY4QJG%2fdiiDNFZvzdsBmVwcLcpPwTJEAfTOdA5bokCzIvJHzZc87RSa9yHMvruwK1732bvjK2Rr&aka_msn=1&aka_hls_version=6&aka_br=bytes=247114-489225&aka_media_format_type=hls', offset 0, playlist 0
[hls @ 0x564b3ab22cc0] Opening 'crypto+https://drod20a.akamaized.net/dk/encrypted/none/29/6560a697027e193f6c35bc29/00022360700/stream_fmp4/World-on-Fire-I_DRTV2022Jan_FullHD_16x9_VideoMain_audio_192kbps.mp4?aka_me_session_id=AAAAAAAAAAD4y69lAAAAAEY4QJG%2fdiiDNFZvzdsBmVwcLcpPwTJEAfTOdA5bokCzIvJHzZc87RSa9yHMvruwK1732bvjK2Rr&aka_msn=1&aka_hls_version=6&aka_br=bytes=247114-489225&aka_media_format_type=hls' for reading
[tcp @ 0x7f31b00097c0] Starting connection attempt to 217.116.214.83 port 443
[tcp @ 0x7f31b401e8c0] Starting connection attempt to 217.116.214.83 port 443
[tcp @ 0x7f31b00097c0] Successfully connected to 217.116.214.83 port 443
[tcp @ 0x7f31b401e8c0] Successfully connected to 217.116.214.83 port 443
[AVIOContext @ 0x7f31b001e0c0] Statistics: 7038380 bytes read, 0 seeks
[AVIOContext @ 0x7f31b403e500] Statistics: 242112 bytes read, 0 seeks
[hls @ 0x564b3aa33f40] HLS request for url 'https://drod20a.akamaized.net/dk/encrypted/none/29/6560a697027e193f6c35bc29/00022360700/stream_fmp4/World-on-Fire-I_DRTV2022Jan_FullHD_16x9_VideoMain_video_5500.mp4?aka_me_session_id=AAAAAAAAAAD4y69lAAAAAEY4QJG%2fdiiDNFZvzdsBmVwcLcpPwTJEAfTOdA5bokCzIvJHzZc87RSa9yHMvruwK1732bvjK2Rr&aka_msn=2&aka_hls_version=6&aka_br=bytes=14202700-21091286&aka_media_format_type=hls', offset 0, playlist 0
[hls @ 0x564b3ab22cc0] HLS request for url 'https://drod20a.akamaized.net/dk/encrypted/none/29/6560a697027e193f6c35bc29/00022360700/stream_fmp4/World-on-Fire-I_DRTV2022Jan_FullHD_16x9_VideoMain_audio_192kbps.mp4?aka_me_session_id=AAAAAAAAAAD4y69lAAAAAEY4QJG%2fdiiDNFZvzdsBmVwcLcpPwTJEAfTOdA5bokCzIvJHzZc87RSa9yHMvruwK1732bvjK2Rr&aka_msn=2&aka_hls_version=6&aka_br=bytes=489226-731295&aka_media_format_type=hls', offset 0, playlist 0
[hls @ 0x564b3aa33f40] Opening 'crypto+https://drod20a.akamaized.net/dk/encrypted/none/29/6560a697027e193f6c35bc29/00022360700/stream_fmp4/World-on-Fire-I_DRTV2022Jan_FullHD_16x9_VideoMain_video_5500.mp4?aka_me_session_id=AAAAAAAAAAD4y69lAAAAAEY4QJG%2fdiiDNFZvzdsBmVwcLcpPwTJEAfTOdA5bokCzIvJHzZc87RSa9yHMvruwK1732bvjK2Rr&aka_msn=2&aka_hls_version=6&aka_br=bytes=14202700-21091286&aka_media_format_type=hls' for reading
[hls @ 0x564b3ab22cc0] Opening 'crypto+https://drod20a.akamaized.net/dk/encrypted/none/29/6560a697027e193f6c35bc29/00022360700/stream_fmp4/World-on-Fire-I_DRTV2022Jan_FullHD_16x9_VideoMain_audio_192kbps.mp4?aka_me_session_id=AAAAAAAAAAD4y69lAAAAAEY4QJG%2fdiiDNFZvzdsBmVwcLcpPwTJEAfTOdA5bokCzIvJHzZc87RSa9yHMvruwK1732bvjK2Rr&aka_msn=2&aka_hls_version=6&aka_br=bytes=489226-731295&aka_media_format_type=hls' for reading

@spirillen
Copy link

spirillen commented Jan 22, 2024

@0HAg0

Seems, you are using an different version of ffmpeg

Yes I'm running on version 6.1 from John's static build

ffmpeg version N-68334-ga87a52ed0b-static

But seems to be fixed by using the ffmpeg you pointed to, you just have a typo in the links

https://github.com/yt-dlp/FFmpeg-Builds

Thanks for your response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug that is not site-specific geo-blocked Content is geo-blocked site-bug Issue with a specific website
Projects
None yet
Development

Successfully merging a pull request may close this issue.