[GH-ISSUE #1144] Can’t download a YouTube video because no matching formats were found #9585

Closed
opened 2026-04-24 15:47:00 -05:00 by GiteaMirror · 7 comments
Owner

Originally created by @riotfest628 on GitHub (Mar 7, 2025).
Original GitHub issue: https://github.com/imputnet/cobalt/issues/1144

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


platform information

Microsoft Edge Version 133.0.3065.92 on a Windows 10 desktop

additional context

No response

Originally created by @riotfest628 on GitHub (Mar 7, 2025). Original GitHub issue: https://github.com/imputnet/cobalt/issues/1144 ### 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](https://cobalt.tools/).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](https://github.com/user-attachments/assets/ee3eb152-2fb6-4ca0-b504-f63f4221faeb) ![Image](https://github.com/user-attachments/assets/8db2c0bf-f7db-4eaa-ac40-88fb766cbe26) ### links ```shell ``` ### platform information Microsoft Edge Version 133.0.3065.92 on a Windows 10 desktop ### additional context _No response_
GiteaMirror added the bug label 2026-04-24 15:47:00 -05:00
Author
Owner

@wukko commented on GitHub (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

<!-- gh-comment-id:2706080284 --> @wukko commented on GitHub (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
Author
Owner

@wukko commented on GitHub (Mar 7, 2025):

could maybe add more codec combos in the future though?

<!-- gh-comment-id:2706086919 --> @wukko commented on GitHub (Mar 7, 2025): could maybe add more codec combos in the future though?
Author
Owner

@fyscape commented on GitHub (Mar 7, 2025):

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

<!-- gh-comment-id:2706678688 --> @fyscape commented on GitHub (Mar 7, 2025): Same one can tell me that how can I installing the software! download one day,cant do anything!
Author
Owner

@riotfest628 commented on GitHub (Mar 7, 2025):

could maybe add more codec combos in the future though?

That would be nice ^^

<!-- gh-comment-id:2707707645 --> @riotfest628 commented on GitHub (Mar 7, 2025): > could maybe add more codec combos in the future though? That would be nice ^^
Author
Owner

@thinkmorebetter commented on GitHub (Mar 11, 2025):

Could be related to recent DRM changes from YouTube? Documented more here https://github.com/yt-dlp/yt-dlp/issues/12563

<!-- gh-comment-id:2715221852 --> @thinkmorebetter commented on GitHub (Mar 11, 2025): Could be related to recent DRM changes from YouTube? Documented more here https://github.com/yt-dlp/yt-dlp/issues/12563
Author
Owner

@wukko commented on GitHub (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.

<!-- gh-comment-id:2720161942 --> @wukko commented on GitHub (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.
Author
Owner

@wukko commented on GitHub (Apr 17, 2025):

since the video did indeed get more formats after being re-processed on youtube's side, i'm closing this issue as resolved. cobalt handles this edge case as intended, so there's no fault on our side.

<!-- gh-comment-id:2811763837 --> @wukko commented on GitHub (Apr 17, 2025): since the video did indeed get more formats after being re-processed on youtube's side, i'm closing this issue as resolved. cobalt handles this edge case as intended, so there's no fault on our side.
Sign in to join this conversation.