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

Can’t download a YouTube video because no matching formats were found #1144

Open
riotfest628 opened this issue Mar 7, 2025 · 6 comments
Open
Labels
bug Something isn't working

Comments

@riotfest628
Copy link

bug description

I've been trying to download two different videos with cobalt, but every time I try to download them, it tells me to try downloading them without HLS enabled, along with a “couldn't find any matching HLS streams for this video. try downloading it without HLS!” error message.

So, I turn off HLS, try again, but then I get a “youtube didn't return a valid video + audio format combo, either video or audio is missing. formats for this video may be re-encoding on youtube's side or something went wrong when parsing them. try enabling the hls option in video settings!” error message.

No matter what I try, it doesn't make any difference. I tried changing the video and audio quality, downloading it as a video, downloading as an audio, but they all keep giving me these two different error messages, depending on if I have HLS enabled or not.

reproduction steps

  1. Go to https://cobalt.tools/
  2. Download https://www.youtube.com/watch?v=rA4LomHCn00 (one of the videos I was trying to download)
  3. Select “prefer hls for video & audio”, 1080p video quality, h264 (mp4) codec, or mp3 audio format with 128kb/s
  4. More than likely, this is where the HLS error pops up. If it does, disable “prefer hls for video & audio” and you'll get the second error

screenshots

Image

Image

links

platform information

Microsoft Edge Version 133.0.3065.92 on a Windows 10 desktop

additional context

No response

@riotfest628 riotfest628 added the bug Something isn't working label Mar 7, 2025
@wukko wukko changed the title Can't download a video with either hls or without it Can’t download a YouTube video because no matching formats were found Mar 7, 2025
@wukko
Copy link
Member

wukko commented Mar 7, 2025

seems like this video is being re-processed on youtube’s side, so some formats that cobalt uses are missing. not sure if we can do anything from our side atm unfortunately

@wukko
Copy link
Member

wukko commented Mar 7, 2025

could maybe add more codec combos in the future though?

@fyscape
Copy link

fyscape commented Mar 7, 2025

Same one can tell me that how can I installing the software!
download one day,cant do anything!

@riotfest628
Copy link
Author

could maybe add more codec combos in the future though?

That would be nice ^^

@thinkmorebetter
Copy link

thinkmorebetter commented Mar 11, 2025

Could be related to recent DRM changes from YouTube? Documented more here yt-dlp/yt-dlp#12563

@wukko
Copy link
Member

wukko commented Mar 13, 2025

Could be related to recent DRM changes from YouTube?

nope, it's caused by youtube not returning an acceptable format combo. in this video's case, only h264 video & opus audio are available. cobalt tries to pick either h264+aac, vp9+opus, or av1+opus, but can't find anything appropriate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants