Repository: yt-dlp
Issue: [fc2] `HTTP Error 400: Bad Request`
Labels: site-bug

### DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

- [X] I understand that I will be **blocked** if I *intentionally* remove or skip any mandatory\* field

### Checklist

- [X] I'm reporting that yt-dlp is broken on a **supported** site
- [X] I've verified that I have **updated yt-dlp to nightly or master** ([update instructions](https://github.com/yt-dlp/yt-dlp#update-channels))
- [X] I've checked that all provided URLs are playable in a browser with the same IP and same login details
- [X] I've checked that all URLs and arguments with special characters are [properly quoted or escaped](https://github.com/yt-dlp/yt-dlp/wiki/FAQ#video-url-contains-an-ampersand--and-im-getting-some-strange-output-1-2839-or-v-is-not-recognized-as-an-internal-or-external-command)
- [X] I've searched [known issues](https://github.com/yt-dlp/yt-dlp/issues/3766) and the [bugtracker](https://github.com/yt-dlp/yt-dlp/issues?q=) for similar issues **including closed ones**. DO NOT post duplicates
- [X] I've read the [guidelines for opening an issue](https://github.com/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md#opening-an-issue)
- [ ] I've read about [sharing account credentials](https://github.com/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md#are-you-willing-to-share-account-details-if-needed) and I'm willing to share it if required

### Region

_No response_

### Provide a description that is worded well enough to be understood

Example URL:
https://video.fc2.com/content/20121129xMeT3Czt

For _some_ fc2 videos, yt-dlp takes an eternity to start downloading, only to then fail on the first fragment.
What makes this so weird is that using the direct download link extracted by yt-dlp works just fine.

### Provide verbose output that clearly demonstrates the problem

- [X] 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
- [X] Copy the WHOLE output (starting with `[debug] Command-line config`) and insert it below

### Complete Verbose Output

```shell
[debug] Command-line config: ['-vU', '--abort-on-unavailable-fragments', 'https://video.fc2.com/content/20121129xMeT3Czt']
[debug] Encodings: locale cp1252, fs utf-8, pref cp1252, out utf-8 (No VT), error utf-8 (No VT), screen utf-8 (No VT)
[debug] yt-dlp version nightly@2024.12.06.161513 from yt-dlp/yt-dlp-nightly-builds [6fef82402] (win_exe)
[debug] Python 3.10.11 (CPython AMD64 64bit) - Windows-8.1-6.3.9600-SP0 (OpenSSL 1.1.1t  7 Feb 2023)
[debug] exe versions: ffmpeg 4.3, ffprobe 2022-07-24-git-39a538f430-full_build-www.gyan.dev
[debug] Optional libraries: Cryptodome-3.21.0, brotli-1.1.0, certifi-2024.08.30, curl_cffi-0.5.10, mutagen-1.47.0, requests-2.32.3, sqlite3-3.40.1, urllib3-2.2.3, websockets-14.1
[debug] Proxy map: {}
[debug] Request Handlers: urllib, requests, websockets, curl_cffi
[debug] Loaded 1837 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp-nightly-builds/releases/latest
Latest version: nightly@2024.12.06.161513 from yt-dlp/yt-dlp-nightly-builds
yt-dlp is up to date (nightly@2024.12.06.161513 from yt-dlp/yt-dlp-nightly-builds)
[fc2] Extracting URL: https://video.fc2.com/content/20121129xMeT3Czt
[fc2] 20121129xMeT3Czt: Downloading webpage
[fc2] 20121129xMeT3Czt: Downloading info page
[debug] Formats sorted by: hasvid, ie_pref, lang, quality, res, fps, hdr:12(7), vcodec, channels, acodec, size, br, asr, proto, vext, aext, hasaud, source, id
[debug] Default format spec: bestvideo*+bestaudio/best
[info] 20121129xMeT3Czt: Downloading 1 format(s): 0
[debug] Invoking hlsnative downloader on "https://video.fc2.com/api/v3/videoplay/veoh.20121129xMeT3Czt/3?signature=$6EX67M.VEOH&t=1733758153"
[hlsnative] Downloading m3u8 manifest
[hlsnative] Total fragments: 6379303
[download] Destination: Rotfux [20121129xMeT3Czt].mp4
[debug] File locking is not supported. Proceeding without locking
[download] Got error: HTTP Error 400: Bad Request. Retrying fragment 1 (1/10)...
[download] Got error: HTTP Error 400: Bad Request. Retrying fragment 1 (2/10)...
[download] Got error: HTTP Error 400: Bad Request. Retrying fragment 1 (3/10)...
[download] Got error: HTTP Error 400: Bad Request. Retrying fragment 1 (4/10)...
[download] Got error: HTTP Error 400: Bad Request. Retrying fragment 1 (5/10)...
[download] Got error: HTTP Error 400: Bad Request. Retrying fragment 1 (6/10)...
[download] Got error: HTTP Error 400: Bad Request. Retrying fragment 1 (7/10)...
[download] Got error: HTTP Error 400: Bad Request. Retrying fragment 1 (8/10)...
[download] Got error: HTTP Error 400: Bad Request. Retrying fragment 1 (9/10)...
[download] Got error: HTTP Error 400: Bad Request. Retrying fragment 1 (10/10)...
[download] Got error: HTTP Error 400: Bad Request. Giving up after 10 retries
  File "yt_dlp\__main__.py", line 17, in <module>
  File "yt_dlp\__init__.py", line 1093, in main
  File "yt_dlp\__init__.py", line 1083, in _real_main
  File "yt_dlp\YoutubeDL.py", line 3605, in download
  File "yt_dlp\YoutubeDL.py", line 3578, in wrapper
  File "yt_dlp\YoutubeDL.py", line 1613, in extract_info
  File "yt_dlp\YoutubeDL.py", line 1624, in wrapper
  File "yt_dlp\YoutubeDL.py", line 1780, in __extract_info
  File "yt_dlp\YoutubeDL.py", line 1839, in process_ie_result
  File "yt_dlp\YoutubeDL.py", line 3011, in process_video_result
  File "yt_dlp\YoutubeDL.py", line 177, in wrapper
  File "yt_dlp\YoutubeDL.py", line 3479, in process_info
  File "yt_dlp\YoutubeDL.py", line 3199, in dl
  File "yt_dlp\downloader\common.py", line 464, in download
  File "yt_dlp\downloader\hls.py", line 381, in real_download
  File "yt_dlp\downloader\fragment.py", line 513, in download_and_append_fragments
  File "yt_dlp\downloader\fragment.py", line 459, in download_fragment
  File "yt_dlp\utils\_utils.py", line 5251, in __iter__
  File "yt_dlp\downloader\fragment.py", line 456, in error_callback
  File "yt_dlp\downloader\common.py", line 410, in report_retry
  File "yt_dlp\utils\_utils.py", line 5258, in report_retry
  File "yt_dlp\downloader\common.py", line 413, in <lambda>
  File "yt_dlp\YoutubeDL.py", line 1090, in report_error
  File "yt_dlp\YoutubeDL.py", line 1018, in trouble

ERROR: fragment 1 not found, unable to continue
  File "yt_dlp\__main__.py", line 17, in <module>
  File "yt_dlp\__init__.py", line 1093, in main
  File "yt_dlp\__init__.py", line 1083, in _real_main
  File "yt_dlp\YoutubeDL.py", line 3605, in download
  File "yt_dlp\YoutubeDL.py", line 3578, in wrapper
  File "yt_dlp\YoutubeDL.py", line 1613, in extract_info
  File "yt_dlp\YoutubeDL.py", line 1624, in wrapper
  File "yt_dlp\YoutubeDL.py", line 1780, in __extract_info
  File "yt_dlp\YoutubeDL.py", line 1839, in process_ie_result
  File "yt_dlp\YoutubeDL.py", line 3011, in process_video_result
  File "yt_dlp\YoutubeDL.py", line 177, in wrapper
  File "yt_dlp\YoutubeDL.py", line 3479, in process_info
  File "yt_dlp\YoutubeDL.py", line 3199, in dl
  File "yt_dlp\downloader\common.py", line 464, in download
  File "yt_dlp\downloader\hls.py", line 381, in real_download
  File "yt_dlp\downloader\fragment.py", line 514, in download_and_append_fragments
  File "yt_dlp\downloader\fragment.py", line 479, in append_fragment
  File "yt_dlp\YoutubeDL.py", line 1090, in report_error
  File "yt_dlp\YoutubeDL.py", line 1018, in trouble


# Using the direct download link
[debug] Command-line config: ['-v', 'https://video.fc2.com/api/v3/videoplay/veoh.20121129xMeT3Czt/3?signature=$6EX67M.VEOH&t=1733758153']
[debug] Encodings: locale cp1252, fs utf-8, pref cp1252, out utf-8 (No VT), error utf-8 (No VT), screen utf-8 (No VT)
[debug] yt-dlp version nightly@2024.12.06.161513 from yt-dlp/yt-dlp-nightly-builds [6fef82402] (win_exe)
[debug] Python 3.10.11 (CPython AMD64 64bit) - Windows-8.1-6.3.9600-SP0 (OpenSSL 1.1.1t  7 Feb 2023)
[debug] exe versions: ffmpeg 4.3, ffprobe 2022-07-24-git-39a538f430-full_build-www.gyan.dev
[debug] Optional libraries: Cryptodome-3.21.0, brotli-1.1.0, certifi-2024.08.30, curl_cffi-0.5.10, mutagen-1.47.0, requests-2.32.3, sqlite3-3.40.1, urllib3-2.2.3, websockets-14.1
[debug] Proxy map: {}
[debug] Request Handlers: urllib, requests, websockets, curl_cffi
[debug] Loaded 1837 extractors
[generic] Extracting URL: https://video.fc2.com/api/v3/videoplay/veoh.20121129xMeT3Czt/3?signature=$6EX67M.VEOH&t=1733758153
[generic] 3?signature=$6EX67M: Downloading webpage
[redirect] Following redirect to https://acache.veoh.com/file/f/l40850948.mp4?e=1733777229&rs=100&h=f884e7c17e5c422f3fc3c1c33c1f6e2a
[generic] Extracting URL: https://acache.veoh.com/file/f/l40850948.mp4?e=1733777229&rs=100&h=f884e7c17e5c422f3fc3c1c33c1f6e2a
[generic] l40850948: Downloading webpage
[debug] Identified a direct video link
[debug] Formats sorted by: hasvid, ie_pref, lang, quality, res, fps, hdr:12(7), vcodec, channels, acodec, size, br, asr, proto, vext, aext, hasaud, source, id
[debug] Default format spec: bestvideo*+bestaudio/best
[info] l40850948: Downloading 1 format(s): mp4
[debug] Invoking http downloader on "https://acache.veoh.com/file/f/l40850948.mp4?e=1733777229&rs=100&h=f884e7c17e5c422f3fc3c1c33c1f6e2a"
[debug] File locking is not supported. Proceeding without locking
[download] Destination: l40850948 [l40850948].mp4
[download] 100% of  236.03MiB in 00:40:17 at 99.99KiB/s
```