yt-dlp: Chaturbate Failed to download m3u8 information
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
USA
Provide a description that is worded well enough to be understood
Chaturbate not working
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': TruetoYoutubeDLparams instead - Copy the WHOLE output (starting with
[debug] Command-line config) and insert it below
Complete Verbose Output
PS C:\> yt-dlp -vU -F https://chaturbate.com/mylegsonheels/
[debug] Command-line config: ['-vU', '-F', 'https://chaturbate.com/mylegsonheels/']
[debug] Encodings: locale cp1252, fs utf-8, pref cp1252, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version stable@2025.02.19 from yt-dlp/yt-dlp [4985a4041] (pip)
[debug] Python 3.10.6 (CPython AMD64 64bit) - Windows-10-10.0.19045-SP0 (OpenSSL 1.1.1n 15 Mar 2022)
[debug] exe versions: ffmpeg N-117825-g970d57988d-20241118 (setts), ffprobe N-117825-g970d57988d-20241118, phantomjs 2.1.1, rtmpdump 2.4
[debug] Optional libraries: Cryptodome-3.15.0, brotli-1.0.9, certifi-2022.06.15, curl_cffi-0.5.10, mutagen-1.46.0, requests-2.32.2, sqlite3-3.37.2, urllib3-2.1.0, websockets-13.1
[debug] Proxy map: {}
[debug] Request Handlers: urllib, requests, websockets, curl_cffi
[debug] Post-Processor Plugins: FixupMtimePP, MP4DecryptPP
[debug] Plugin directories: ['C:\\Python310\\lib\\site-packages\\yt_dlp_plugins']
[debug] Loaded 1841 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest
Latest version: stable@2025.02.19 from yt-dlp/yt-dlp
yt-dlp is up to date (stable@2025.02.19 from yt-dlp/yt-dlp)
[Chaturbate] Extracting URL: https://chaturbate.com/mylegsonheels/
[Chaturbate] mylegsonheels: Downloading JSON metadata
[Chaturbate] mylegsonheels: Downloading m3u8 information
ERROR: [Chaturbate] mylegsonheels: Failed to download m3u8 information: HTTP Error 404: Not Found (caused by <HTTPError 404: Not Found>)
File "C:\Python310\lib\site-packages\yt_dlp\extractor\common.py", line 746, in extract
ie_result = self._real_extract(url)
File "C:\Python310\lib\site-packages\yt_dlp\extractor\chaturbate.py", line 153, in _real_extract
return self._extract_from_api(video_id, tld) or self._extract_from_html(video_id, tld)
File "C:\Python310\lib\site-packages\yt_dlp\extractor\chaturbate.py", line 78, in _extract_from_api
'formats': self._extract_m3u8_formats(m3u8_url, video_id, ext='mp4', live=True),
File "C:\Python310\lib\site-packages\yt_dlp\extractor\common.py", line 2046, in _extract_m3u8_formats
fmts, subs = self._extract_m3u8_formats_and_subtitles(*args, **kwargs)
File "C:\Python310\lib\site-packages\yt_dlp\extractor\common.py", line 2068, in _extract_m3u8_formats_and_subtitles
res = self._download_webpage_handle(
File "C:\Python310\lib\site-packages\yt_dlp\extractor\common.py", line 966, in _download_webpage_handle
urlh = self._request_webpage(url_or_request, video_id, note, errnote, fatal, data=data,
File "C:\Python310\lib\site-packages\yt_dlp\extractor\common.py", line 915, in _request_webpage
raise ExtractorError(errmsg, cause=err)
File "C:\Python310\lib\site-packages\yt_dlp\extractor\common.py", line 902, in _request_webpage
return self._downloader.urlopen(self._create_request(url_or_request, data, headers, query, extensions))
File "C:\Python310\lib\site-packages\yt_dlp\YoutubeDL.py", line 4175, in urlopen
return self._request_director.send(req)
File "C:\Python310\lib\site-packages\yt_dlp\networking\common.py", line 117, in send
response = handler.send(request)
File "C:\Python310\lib\site-packages\yt_dlp\networking\_helper.py", line 208, in wrapper
return func(self, *args, **kwargs)
File "C:\Python310\lib\site-packages\yt_dlp\networking\common.py", line 340, in send
return self._send(request)
File "C:\Python310\lib\site-packages\yt_dlp\networking\_requests.py", line 365, in _send
raise HTTPError(res, redirect_loop=max_redirects_exceeded)
yt_dlp.networking.exceptions.HTTPError: HTTP Error 404: Not Found
About this issue
- Original URL
- State: open
- Created 2 years ago
- Reactions: 13
- Comments: 15 (1 by maintainers)
Chaturbate backend changes reverted?It seems they changed something. There are now separate .m3u8 for audio and video.
It seems Chaturbate has implemented some changes on their backend, potentially introducing a new endpoint or altering the existing one. The fact that both the old and new extraction methods seem to work intermittently (@DarkPunk420) suggests they may be running both versions concurrently (A/B testing or gradual rollout). @eldepor’s observation about the
cmaf_edgeparameter being present but set tofalsefurther reinforces this theory.PR #12583 seems to be on the right track by targeting the
/api/chatvideocontext/USERNAMEendpoint. However, since the backend behavior is fluctuating, we need a more robust approach to handle both scenarios. The extractor should ideally:/api/chatvideocontext/USERNAMEand parse it forplaylist_sfm4s.m3u8.This dual approach would provide the necessary resilience to handle Chaturbate’s backend flux. Could the PR author (@kaymio) incorporate this fallback mechanism? This will make the extractor more robust and reliable in the long run. Testing against multiple streams/users to confirm consistent behavior across different scenarios would also be beneficial.
Yes, this should be fixed in ffmpeg
I can’t find a bug report for this, and the
allowed_extensionsin ffmpeg master still do not includecmfvorcmfaSomeone should report it on the ffmpeg tracker, or submit a patch.
If you want a SFW example to use, see #12495 / #12376
Some details to include:
cmfvandcmfaneed to be added to ffmpeg’sallowed_extensionsOther relevant links:
It should be forward compatible rather than backward compatible. Because:
My implementation: Try old format first and test it, if it fails, try all known new formats in turn.
Of course as a first choice solution the old format could fail again at any time, but at least we get low complexity and high speed connections for as long as possible.
Does anyone have a solution? I’m getting the same error on chatur
Same problem, parsing the site brings up an invalid m3u8 address
I tested the nightly builds for yt-dlp and youtube-dl. Both giving the same 404 for me. If the stream is inactive the correct “Offline” status is reported instead of the 404 error.