yt-dlp: [Youtube] Immediate HTTP Error 403 with m3u8 formats / "fragment 1 not found"

Checklist

  • I’m reporting that yt-dlp is broken on a supported site
  • I’ve verified that I have updated yt-dlp to nightly or master (update instructions)
  • 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 known issues, the FAQ, and the bugtracker for similar issues including closed ones. DO NOT post duplicates
  • I’ve read about sharing account credentials and I’m willing to share it if required

Region

Russia

Provide a description that is worded well enough to be understood

Hi, after download two videos, get 403 error. no vpn and proxy.

Provide verbose output that clearly demonstrates the problem

  • Run your yt-dlp command with -vU flag added (yt-dlp -vU <your command line>)
  • If using API, add 'verbose': True to YoutubeDL params instead
  • Copy the WHOLE output (starting with [debug] Command-line config) and insert it below

Complete Verbose Output

C:\Users\Alexander>python -myt_dlp -v -N 15 -f311+234 "https://www.youtube.com/watch?v=3TtaQwK-oGo"
[debug] Command-line config: ['-v', '-N', '15', '-f311+234', 'https://www.youtube.com/watch?v=3TtaQwK-oGo']
[debug] Encodings: locale cp1251, fs utf-8, pref cp1251, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version nightly@2025.07.05.233013 from yt-dlp/yt-dlp-nightly-builds [fca94ac5d] (pip)
[debug] Python 3.13.0 (CPython AMD64 64bit) - Windows-11-10.0.26100-SP0 (OpenSSL 3.0.15 3 Sep 2024)
[debug] exe versions: ffmpeg 2025-02-17-git-b92577405b-full_build-www.gyan.dev (setts), ffprobe 2025-02-17-git-b92577405b-full_build-www.gyan.dev
[debug] Optional libraries: Cryptodome-3.21.0, brotli-1.1.0, certifi-2024.08.30, mutagen-1.47.0, requests-2.32.3, sqlite3-3.45.3, urllib3-2.2.3, websockets-13.1
[debug] Proxy map: {}
[debug] Request Handlers: urllib, requests, websockets
[debug] Plugin directories: C:\Users\Alexander\AppData\Local\Programs\Python\Python313\Lib\site-packages\yt_dlp_plugins
[debug] Loaded 1857 extractors
[debug] [youtube] [pot] PO Token Providers: none
[debug] [youtube] [pot] PO Token Cache Providers: memory
[debug] [youtube] [pot] PO Token Cache Spec Providers: webpo
[youtube] Extracting URL: https://www.youtube.com/watch?v=3TtaQwK-oGo
[youtube] 3TtaQwK-oGo: Downloading webpage
[youtube] 3TtaQwK-oGo: Downloading tv client config
[debug] Loading youtube-sts.e12fbea4-main from cache
[youtube] 3TtaQwK-oGo: Downloading tv player API JSON
[youtube] 3TtaQwK-oGo: Downloading ios player API JSON
[debug] Loading youtube-nsig.e12fbea4-main from cache
[debug] [youtube] Decrypted nsig bYQ2ZXv80EIw2nhGSW => WhTCR3P9OzgwIg
[debug] [youtube] Decrypted nsig FN4imERhvPc6XHMXp7 => KycjSELsX4eogA
[debug] [youtube] 3TtaQwK-oGo: ios client https formats require a GVS PO Token which was not provided. They will be skipped as they may yield HTTP Error 403. You can manually pass a GVS PO Token for this client with --extractor-args "youtube:po_token=ios.gvs+XXX". For more information, refer to  https://github.com/yt-dlp/yt-dlp/wiki/PO-Token-Guide . To enable these broken formats anyway, pass --extractor-args "youtube:formats=missing_pot"
[youtube] 3TtaQwK-oGo: Downloading m3u8 information
[debug] Sort order given by extractor: quality, res, fps, hdr:12, source, vcodec, channels, acodec, lang, proto
[debug] Formats sorted by: hasvid, ie_pref, quality, res, fps, hdr:12(7), source, vcodec, channels, acodec, lang, proto, size, br, asr, vext, aext, hasaud, id
[info] Testing format 311
[hlsnative] Downloading m3u8 manifest
[hlsnative] Total fragments: 4353
[download] Destination: C:\Users\Alexander\tmpquw4sdca.tmp
[debug] File locking is not supported. Proceeding without locking
[download] Got error: HTTP Error 403: Forbidden
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "C:\Users\Alexander\AppData\Local\Programs\Python\Python313\Lib\site-packages\yt_dlp\__main__.py", line 17, in <module>
    yt_dlp.main()
  File "C:\Users\Alexander\AppData\Local\Programs\Python\Python313\Lib\site-packages\yt_dlp\__init__.py", line 1106, in main
    _exit(*variadic(_real_main(argv)))
  File "C:\Users\Alexander\AppData\Local\Programs\Python\Python313\Lib\site-packages\yt_dlp\__init__.py", line 1097, in _real_main
    return ydl.download(all_urls)
  File "C:\Users\Alexander\AppData\Local\Programs\Python\Python313\Lib\site-packages\yt_dlp\YoutubeDL.py", line 3645, in download
    self.__download_wrapper(self.extract_info)(
  File "C:\Users\Alexander\AppData\Local\Programs\Python\Python313\Lib\site-packages\yt_dlp\YoutubeDL.py", line 3618, in wrapper
    res = func(*args, **kwargs)
  File "C:\Users\Alexander\AppData\Local\Programs\Python\Python313\Lib\site-packages\yt_dlp\YoutubeDL.py", line 1652, in extract_info
    return self.__extract_info(url, self.get_info_extractor(key), download, extra_info, process)
  File "C:\Users\Alexander\AppData\Local\Programs\Python\Python313\Lib\site-packages\yt_dlp\YoutubeDL.py", line 1663, in wrapper
    return func(self, *args, **kwargs)
  File "C:\Users\Alexander\AppData\Local\Programs\Python\Python313\Lib\site-packages\yt_dlp\YoutubeDL.py", line 1819, in __extract_info
    return self.process_ie_result(ie_result, download, extra_info)
  File "C:\Users\Alexander\AppData\Local\Programs\Python\Python313\Lib\site-packages\yt_dlp\YoutubeDL.py", line 1878, in process_ie_result
    ie_result = self.process_video_result(ie_result, download=download)
  File "C:\Users\Alexander\AppData\Local\Programs\Python\Python313\Lib\site-packages\yt_dlp\YoutubeDL.py", line 3005, in process_video_result
    formats_to_download = self._select_formats(formats, format_selector)
  File "C:\Users\Alexander\AppData\Local\Programs\Python\Python313\Lib\site-packages\yt_dlp\YoutubeDL.py", line 2229, in _select_formats
    return list(selector({
  File "C:\Users\Alexander\AppData\Local\Programs\Python\Python313\Lib\site-packages\yt_dlp\YoutubeDL.py", line 2468, in selector_function
    yield from f(ctx)
  File "C:\Users\Alexander\AppData\Local\Programs\Python\Python313\Lib\site-packages\yt_dlp\YoutubeDL.py", line 2488, in selector_function
    for pair in itertools.product(selector_1(ctx), selector_2(ctx)):
  File "C:\Users\Alexander\AppData\Local\Programs\Python\Python313\Lib\site-packages\yt_dlp\YoutubeDL.py", line 2557, in selector_function
    yield matches[format_idx - 1]
  File "C:\Users\Alexander\AppData\Local\Programs\Python\Python313\Lib\site-packages\yt_dlp\utils\_utils.py", line 2256, in __getitem__
    self._cache.extend(itertools.islice(self._iterable, n))
  File "C:\Users\Alexander\AppData\Local\Programs\Python\Python313\Lib\site-packages\yt_dlp\YoutubeDL.py", line 2458, in _check_formats
    yield from self._check_formats([f])
  File "C:\Users\Alexander\AppData\Local\Programs\Python\Python313\Lib\site-packages\yt_dlp\YoutubeDL.py", line 2212, in _check_formats
    success, _ = self.dl(temp_file.name, f, test=True)
  File "C:\Users\Alexander\AppData\Local\Programs\Python\Python313\Lib\site-packages\yt_dlp\YoutubeDL.py", line 3239, in dl
    return fd.download(name, new_info, subtitle)
  File "C:\Users\Alexander\AppData\Local\Programs\Python\Python313\Lib\site-packages\yt_dlp\downloader\common.py", line 468, in download
    ret = self.real_download(filename, info_dict)
  File "C:\Users\Alexander\AppData\Local\Programs\Python\Python313\Lib\site-packages\yt_dlp\downloader\hls.py", line 402, in real_download
    return self.download_and_append_fragments(ctx, fragments, info_dict)
  File "C:\Users\Alexander\AppData\Local\Programs\Python\Python313\Lib\site-packages\yt_dlp\downloader\fragment.py", line 513, in download_and_append_fragments
    download_fragment(fragment, ctx)
  File "C:\Users\Alexander\AppData\Local\Programs\Python\Python313\Lib\site-packages\yt_dlp\downloader\fragment.py", line 459, in download_fragment
    for retry in RetryManager(self.params.get('fragment_retries'), error_callback):
  File "C:\Users\Alexander\AppData\Local\Programs\Python\Python313\Lib\site-packages\yt_dlp\utils\_utils.py", line 5252, in __iter__
    self.error_callback(self.error, self.attempt, self.retries)
  File "C:\Users\Alexander\AppData\Local\Programs\Python\Python313\Lib\site-packages\yt_dlp\downloader\fragment.py", line 456, in error_callback
    self.report_retry(err, count, retries, frag_index, fatal)
  File "C:\Users\Alexander\AppData\Local\Programs\Python\Python313\Lib\site-packages\yt_dlp\downloader\common.py", line 414, in report_retry
    RetryManager.report_retry(
  File "C:\Users\Alexander\AppData\Local\Programs\Python\Python313\Lib\site-packages\yt_dlp\utils\_utils.py", line 5259, in report_retry
    return error(f'{e}. Giving up after {count - 1} retries') if count > 1 else error(str(e))
  File "C:\Users\Alexander\AppData\Local\Programs\Python\Python313\Lib\site-packages\yt_dlp\downloader\common.py", line 417, in <lambda>
    error=IDENTITY if not fatal else lambda e: self.report_error(f'\r[download] Got error: {e}'),
  File "C:\Users\Alexander\AppData\Local\Programs\Python\Python313\Lib\site-packages\yt_dlp\YoutubeDL.py", line 1121, in report_error
    self.trouble(f'{self._format_err("ERROR:", self.Styles.ERROR)} {message}', *args, **kwargs)
  File "C:\Users\Alexander\AppData\Local\Programs\Python\Python313\Lib\site-packages\yt_dlp\YoutubeDL.py", line 1049, in trouble
    tb_data = traceback.format_list(traceback.extract_stack())

ERROR: fragment 1 not found, unable to continue
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "C:\Users\Alexander\AppData\Local\Programs\Python\Python313\Lib\site-packages\yt_dlp\__main__.py", line 17, in <module>
    yt_dlp.main()
  File "C:\Users\Alexander\AppData\Local\Programs\Python\Python313\Lib\site-packages\yt_dlp\__init__.py", line 1106, in main
    _exit(*variadic(_real_main(argv)))
  File "C:\Users\Alexander\AppData\Local\Programs\Python\Python313\Lib\site-packages\yt_dlp\__init__.py", line 1097, in _real_main
    return ydl.download(all_urls)
  File "C:\Users\Alexander\AppData\Local\Programs\Python\Python313\Lib\site-packages\yt_dlp\YoutubeDL.py", line 3645, in download
    self.__download_wrapper(self.extract_info)(
  File "C:\Users\Alexander\AppData\Local\Programs\Python\Python313\Lib\site-packages\yt_dlp\YoutubeDL.py", line 3618, in wrapper
    res = func(*args, **kwargs)
  File "C:\Users\Alexander\AppData\Local\Programs\Python\Python313\Lib\site-packages\yt_dlp\YoutubeDL.py", line 1652, in extract_info
    return self.__extract_info(url, self.get_info_extractor(key), download, extra_info, process)
  File "C:\Users\Alexander\AppData\Local\Programs\Python\Python313\Lib\site-packages\yt_dlp\YoutubeDL.py", line 1663, in wrapper
    return func(self, *args, **kwargs)
  File "C:\Users\Alexander\AppData\Local\Programs\Python\Python313\Lib\site-packages\yt_dlp\YoutubeDL.py", line 1819, in __extract_info
    return self.process_ie_result(ie_result, download, extra_info)
  File "C:\Users\Alexander\AppData\Local\Programs\Python\Python313\Lib\site-packages\yt_dlp\YoutubeDL.py", line 1878, in process_ie_result
    ie_result = self.process_video_result(ie_result, download=download)
  File "C:\Users\Alexander\AppData\Local\Programs\Python\Python313\Lib\site-packages\yt_dlp\YoutubeDL.py", line 3005, in process_video_result
    formats_to_download = self._select_formats(formats, format_selector)
  File "C:\Users\Alexander\AppData\Local\Programs\Python\Python313\Lib\site-packages\yt_dlp\YoutubeDL.py", line 2229, in _select_formats
    return list(selector({
  File "C:\Users\Alexander\AppData\Local\Programs\Python\Python313\Lib\site-packages\yt_dlp\YoutubeDL.py", line 2468, in selector_function
    yield from f(ctx)
  File "C:\Users\Alexander\AppData\Local\Programs\Python\Python313\Lib\site-packages\yt_dlp\YoutubeDL.py", line 2488, in selector_function
    for pair in itertools.product(selector_1(ctx), selector_2(ctx)):
  File "C:\Users\Alexander\AppData\Local\Programs\Python\Python313\Lib\site-packages\yt_dlp\YoutubeDL.py", line 2557, in selector_function
    yield matches[format_idx - 1]
  File "C:\Users\Alexander\AppData\Local\Programs\Python\Python313\Lib\site-packages\yt_dlp\utils\_utils.py", line 2256, in __getitem__
    self._cache.extend(itertools.islice(self._iterable, n))
  File "C:\Users\Alexander\AppData\Local\Programs\Python\Python313\Lib\site-packages\yt_dlp\YoutubeDL.py", line 2458, in _check_formats
    yield from self._check_formats([f])
  File "C:\Users\Alexander\AppData\Local\Programs\Python\Python313\Lib\site-packages\yt_dlp\YoutubeDL.py", line 2212, in _check_formats
    success, _ = self.dl(temp_file.name, f, test=True)
  File "C:\Users\Alexander\AppData\Local\Programs\Python\Python313\Lib\site-packages\yt_dlp\YoutubeDL.py", line 3239, in dl
    return fd.download(name, new_info, subtitle)
  File "C:\Users\Alexander\AppData\Local\Programs\Python\Python313\Lib\site-packages\yt_dlp\downloader\common.py", line 468, in download
    ret = self.real_download(filename, info_dict)
  File "C:\Users\Alexander\AppData\Local\Programs\Python\Python313\Lib\site-packages\yt_dlp\downloader\hls.py", line 402, in real_download
    return self.download_and_append_fragments(ctx, fragments, info_dict)
  File "C:\Users\Alexander\AppData\Local\Programs\Python\Python313\Lib\site-packages\yt_dlp\downloader\fragment.py", line 514, in download_and_append_fragments
    result = append_fragment(
  File "C:\Users\Alexander\AppData\Local\Programs\Python\Python313\Lib\site-packages\yt_dlp\downloader\fragment.py", line 479, in append_fragment
    self.report_error(f'fragment {frag_index} not found, unable to continue')
  File "C:\Users\Alexander\AppData\Local\Programs\Python\Python313\Lib\site-packages\yt_dlp\YoutubeDL.py", line 1121, in report_error
    self.trouble(f'{self._format_err("ERROR:", self.Styles.ERROR)} {message}', *args, **kwargs)
  File "C:\Users\Alexander\AppData\Local\Programs\Python\Python313\Lib\site-packages\yt_dlp\YoutubeDL.py", line 1049, in trouble
    tb_data = traceback.format_list(traceback.extract_stack())


[info] Unable to download format 311. Skipping...
[info] Testing format 234
[hlsnative] Downloading m3u8 manifest
[hlsnative] Total fragments: 4353
[download] Destination: C:\Users\Alexander\tmpwxlw43uf.tmp
[download] Got error: HTTP Error 403: Forbidden
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "C:\Users\Alexander\AppData\Local\Programs\Python\Python313\Lib\site-packages\yt_dlp\__main__.py", line 17, in <module>
    yt_dlp.main()
  File "C:\Users\Alexander\AppData\Local\Programs\Python\Python313\Lib\site-packages\yt_dlp\__init__.py", line 1106, in main
    _exit(*variadic(_real_main(argv)))
  File "C:\Users\Alexander\AppData\Local\Programs\Python\Python313\Lib\site-packages\yt_dlp\__init__.py", line 1097, in _real_main
    return ydl.download(all_urls)
  File "C:\Users\Alexander\AppData\Local\Programs\Python\Python313\Lib\site-packages\yt_dlp\YoutubeDL.py", line 3645, in download
    self.__download_wrapper(self.extract_info)(
  File "C:\Users\Alexander\AppData\Local\Programs\Python\Python313\Lib\site-packages\yt_dlp\YoutubeDL.py", line 3618, in wrapper
    res = func(*args, **kwargs)
  File "C:\Users\Alexander\AppData\Local\Programs\Python\Python313\Lib\site-packages\yt_dlp\YoutubeDL.py", line 1652, in extract_info
    return self.__extract_info(url, self.get_info_extractor(key), download, extra_info, process)
  File "C:\Users\Alexander\AppData\Local\Programs\Python\Python313\Lib\site-packages\yt_dlp\YoutubeDL.py", line 1663, in wrapper
    return func(self, *args, **kwargs)
  File "C:\Users\Alexander\AppData\Local\Programs\Python\Python313\Lib\site-packages\yt_dlp\YoutubeDL.py", line 1819, in __extract_info
    return self.process_ie_result(ie_result, download, extra_info)
  File "C:\Users\Alexander\AppData\Local\Programs\Python\Python313\Lib\site-packages\yt_dlp\YoutubeDL.py", line 1878, in process_ie_result
    ie_result = self.process_video_result(ie_result, download=download)
  File "C:\Users\Alexander\AppData\Local\Programs\Python\Python313\Lib\site-packages\yt_dlp\YoutubeDL.py", line 3005, in process_video_result
    formats_to_download = self._select_formats(formats, format_selector)
  File "C:\Users\Alexander\AppData\Local\Programs\Python\Python313\Lib\site-packages\yt_dlp\YoutubeDL.py", line 2229, in _select_formats
    return list(selector({
  File "C:\Users\Alexander\AppData\Local\Programs\Python\Python313\Lib\site-packages\yt_dlp\YoutubeDL.py", line 2468, in selector_function
    yield from f(ctx)
  File "C:\Users\Alexander\AppData\Local\Programs\Python\Python313\Lib\site-packages\yt_dlp\YoutubeDL.py", line 2488, in selector_function
    for pair in itertools.product(selector_1(ctx), selector_2(ctx)):
  File "C:\Users\Alexander\AppData\Local\Programs\Python\Python313\Lib\site-packages\yt_dlp\YoutubeDL.py", line 2468, in selector_function
    yield from f(ctx)
  File "C:\Users\Alexander\AppData\Local\Programs\Python\Python313\Lib\site-packages\yt_dlp\YoutubeDL.py", line 2557, in selector_function
    yield matches[format_idx - 1]
  File "C:\Users\Alexander\AppData\Local\Programs\Python\Python313\Lib\site-packages\yt_dlp\utils\_utils.py", line 2256, in __getitem__
    self._cache.extend(itertools.islice(self._iterable, n))
  File "C:\Users\Alexander\AppData\Local\Programs\Python\Python313\Lib\site-packages\yt_dlp\YoutubeDL.py", line 2458, in _check_formats
    yield from self._check_formats([f])
  File "C:\Users\Alexander\AppData\Local\Programs\Python\Python313\Lib\site-packages\yt_dlp\YoutubeDL.py", line 2212, in _check_formats
    success, _ = self.dl(temp_file.name, f, test=True)
  File "C:\Users\Alexander\AppData\Local\Programs\Python\Python313\Lib\site-packages\yt_dlp\YoutubeDL.py", line 3239, in dl
    return fd.download(name, new_info, subtitle)
  File "C:\Users\Alexander\AppData\Local\Programs\Python\Python313\Lib\site-packages\yt_dlp\downloader\common.py", line 468, in download
    ret = self.real_download(filename, info_dict)
  File "C:\Users\Alexander\AppData\Local\Programs\Python\Python313\Lib\site-packages\yt_dlp\downloader\hls.py", line 402, in real_download
    return self.download_and_append_fragments(ctx, fragments, info_dict)
  File "C:\Users\Alexander\AppData\Local\Programs\Python\Python313\Lib\site-packages\yt_dlp\downloader\fragment.py", line 513, in download_and_append_fragments
    download_fragment(fragment, ctx)
  File "C:\Users\Alexander\AppData\Local\Programs\Python\Python313\Lib\site-packages\yt_dlp\downloader\fragment.py", line 459, in download_fragment
    for retry in RetryManager(self.params.get('fragment_retries'), error_callback):
  File "C:\Users\Alexander\AppData\Local\Programs\Python\Python313\Lib\site-packages\yt_dlp\utils\_utils.py", line 5252, in __iter__
    self.error_callback(self.error, self.attempt, self.retries)
  File "C:\Users\Alexander\AppData\Local\Programs\Python\Python313\Lib\site-packages\yt_dlp\downloader\fragment.py", line 456, in error_callback
    self.report_retry(err, count, retries, frag_index, fatal)
  File "C:\Users\Alexander\AppData\Local\Programs\Python\Python313\Lib\site-packages\yt_dlp\downloader\common.py", line 414, in report_retry
    RetryManager.report_retry(
  File "C:\Users\Alexander\AppData\Local\Programs\Python\Python313\Lib\site-packages\yt_dlp\utils\_utils.py", line 5259, in report_retry
    return error(f'{e}. Giving up after {count - 1} retries') if count > 1 else error(str(e))
  File "C:\Users\Alexander\AppData\Local\Programs\Python\Python313\Lib\site-packages\yt_dlp\downloader\common.py", line 417, in <lambda>
    error=IDENTITY if not fatal else lambda e: self.report_error(f'\r[download] Got error: {e}'),
  File "C:\Users\Alexander\AppData\Local\Programs\Python\Python313\Lib\site-packages\yt_dlp\YoutubeDL.py", line 1121, in report_error
    self.trouble(f'{self._format_err("ERROR:", self.Styles.ERROR)} {message}', *args, **kwargs)
  File "C:\Users\Alexander\AppData\Local\Programs\Python\Python313\Lib\site-packages\yt_dlp\YoutubeDL.py", line 1049, in trouble
    tb_data = traceback.format_list(traceback.extract_stack())

ERROR: fragment 1 not found, unable to continue
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "C:\Users\Alexander\AppData\Local\Programs\Python\Python313\Lib\site-packages\yt_dlp\__main__.py", line 17, in <module>
    yt_dlp.main()
  File "C:\Users\Alexander\AppData\Local\Programs\Python\Python313\Lib\site-packages\yt_dlp\__init__.py", line 1106, in main
    _exit(*variadic(_real_main(argv)))
  File "C:\Users\Alexander\AppData\Local\Programs\Python\Python313\Lib\site-packages\yt_dlp\__init__.py", line 1097, in _real_main
    return ydl.download(all_urls)
  File "C:\Users\Alexander\AppData\Local\Programs\Python\Python313\Lib\site-packages\yt_dlp\YoutubeDL.py", line 3645, in download
    self.__download_wrapper(self.extract_info)(
  File "C:\Users\Alexander\AppData\Local\Programs\Python\Python313\Lib\site-packages\yt_dlp\YoutubeDL.py", line 3618, in wrapper
    res = func(*args, **kwargs)
  File "C:\Users\Alexander\AppData\Local\Programs\Python\Python313\Lib\site-packages\yt_dlp\YoutubeDL.py", line 1652, in extract_info
    return self.__extract_info(url, self.get_info_extractor(key), download, extra_info, process)
  File "C:\Users\Alexander\AppData\Local\Programs\Python\Python313\Lib\site-packages\yt_dlp\YoutubeDL.py", line 1663, in wrapper
    return func(self, *args, **kwargs)
  File "C:\Users\Alexander\AppData\Local\Programs\Python\Python313\Lib\site-packages\yt_dlp\YoutubeDL.py", line 1819, in __extract_info
    return self.process_ie_result(ie_result, download, extra_info)
  File "C:\Users\Alexander\AppData\Local\Programs\Python\Python313\Lib\site-packages\yt_dlp\YoutubeDL.py", line 1878, in process_ie_result
    ie_result = self.process_video_result(ie_result, download=download)
  File "C:\Users\Alexander\AppData\Local\Programs\Python\Python313\Lib\site-packages\yt_dlp\YoutubeDL.py", line 3005, in process_video_result
    formats_to_download = self._select_formats(formats, format_selector)
  File "C:\Users\Alexander\AppData\Local\Programs\Python\Python313\Lib\site-packages\yt_dlp\YoutubeDL.py", line 2229, in _select_formats
    return list(selector({
  File "C:\Users\Alexander\AppData\Local\Programs\Python\Python313\Lib\site-packages\yt_dlp\YoutubeDL.py", line 2468, in selector_function
    yield from f(ctx)
  File "C:\Users\Alexander\AppData\Local\Programs\Python\Python313\Lib\site-packages\yt_dlp\YoutubeDL.py", line 2488, in selector_function
    for pair in itertools.product(selector_1(ctx), selector_2(ctx)):
  File "C:\Users\Alexander\AppData\Local\Programs\Python\Python313\Lib\site-packages\yt_dlp\YoutubeDL.py", line 2468, in selector_function
    yield from f(ctx)
  File "C:\Users\Alexander\AppData\Local\Programs\Python\Python313\Lib\site-packages\yt_dlp\YoutubeDL.py", line 2557, in selector_function
    yield matches[format_idx - 1]
  File "C:\Users\Alexander\AppData\Local\Programs\Python\Python313\Lib\site-packages\yt_dlp\utils\_utils.py", line 2256, in __getitem__
    self._cache.extend(itertools.islice(self._iterable, n))
  File "C:\Users\Alexander\AppData\Local\Programs\Python\Python313\Lib\site-packages\yt_dlp\YoutubeDL.py", line 2458, in _check_formats
    yield from self._check_formats([f])
  File "C:\Users\Alexander\AppData\Local\Programs\Python\Python313\Lib\site-packages\yt_dlp\YoutubeDL.py", line 2212, in _check_formats
    success, _ = self.dl(temp_file.name, f, test=True)
  File "C:\Users\Alexander\AppData\Local\Programs\Python\Python313\Lib\site-packages\yt_dlp\YoutubeDL.py", line 3239, in dl
    return fd.download(name, new_info, subtitle)
  File "C:\Users\Alexander\AppData\Local\Programs\Python\Python313\Lib\site-packages\yt_dlp\downloader\common.py", line 468, in download
    ret = self.real_download(filename, info_dict)
  File "C:\Users\Alexander\AppData\Local\Programs\Python\Python313\Lib\site-packages\yt_dlp\downloader\hls.py", line 402, in real_download
    return self.download_and_append_fragments(ctx, fragments, info_dict)
  File "C:\Users\Alexander\AppData\Local\Programs\Python\Python313\Lib\site-packages\yt_dlp\downloader\fragment.py", line 514, in download_and_append_fragments
    result = append_fragment(
  File "C:\Users\Alexander\AppData\Local\Programs\Python\Python313\Lib\site-packages\yt_dlp\downloader\fragment.py", line 479, in append_fragment
    self.report_error(f'fragment {frag_index} not found, unable to continue')
  File "C:\Users\Alexander\AppData\Local\Programs\Python\Python313\Lib\site-packages\yt_dlp\YoutubeDL.py", line 1121, in report_error
    self.trouble(f'{self._format_err("ERROR:", self.Styles.ERROR)} {message}', *args, **kwargs)
  File "C:\Users\Alexander\AppData\Local\Programs\Python\Python313\Lib\site-packages\yt_dlp\YoutubeDL.py", line 1049, in trouble
    tb_data = traceback.format_list(traceback.extract_stack())


[info] Unable to download format 234. Skipping...
ERROR: [youtube] 3TtaQwK-oGo: Requested format is not available. Use --list-formats for a list of available formats
Traceback (most recent call last):
  File "C:\Users\Alexander\AppData\Local\Programs\Python\Python313\Lib\site-packages\yt_dlp\YoutubeDL.py", line 1663, in wrapper
    return func(self, *args, **kwargs)
  File "C:\Users\Alexander\AppData\Local\Programs\Python\Python313\Lib\site-packages\yt_dlp\YoutubeDL.py", line 1819, in __extract_info
    return self.process_ie_result(ie_result, download, extra_info)
           ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Alexander\AppData\Local\Programs\Python\Python313\Lib\site-packages\yt_dlp\YoutubeDL.py", line 1878, in process_ie_result
    ie_result = self.process_video_result(ie_result, download=download)
  File "C:\Users\Alexander\AppData\Local\Programs\Python\Python313\Lib\site-packages\yt_dlp\YoutubeDL.py", line 3013, in process_video_result
    raise ExtractorError(
        'Requested format is not available. Use --list-formats for a list of available formats',
        expected=True, video_id=info_dict['id'], ie=info_dict['extractor'])
yt_dlp.utils.ExtractorError: [youtube] 3TtaQwK-oGo: Requested format is not available. Use --list-formats for a list of available formats


C:\Users\Alexander>

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 15 (5 by maintainers)

Most upvoted comments

By the way, I’ve also encountered 403 error specifically for the m3u8 protocol in the last couple of weeks, but retrying download several times makes this error disappear.

As explained above, the ios m3u8 formats are being effectively phased out (at least as far as yt-dlp is concerned). It’s still being A/B tested right now, so retrying enough times may work. But, eventually, this will stop working, and yt-dlp will hide these formats behind the missing_pot extractor-arg.

Perhaps in the author’s case, m3u8 would be preferable due to download speed. In my experience, for example, using aria2c or -N 16 generally downloads videos from YouTube faster than via https.

You can use --extractor-arg "youtube:formats=dashy" with -N (but *not aria2c) instead. (Though this is also expected to stop working eventually, once SABR streaming is enforced.)