mirror of
https://github.com/imputnet/cobalt.git
synced 2026-05-23 06:41:22 -05:00
[GH-ISSUE #977] Can't download youtube videos with HLS enabled #4996
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Tintin232 on GitHub (Dec 4, 2024).
Original GitHub issue: https://github.com/imputnet/cobalt/issues/977
bug description
When downloading certain videos, the download stops a second after it starts. This seems to be consistent with certain channels, for example, any videos that I try downloading from the SpongeBob SquarePants Official (https://www.youtube.com/channel/UCx27Pkk8plpiosF14qXq-VA) channel will fail. Likewise with other channels.
reproduction steps
N/A
screenshots
links
No response
platform information
Chrome 131.0.6778.81, Android 14
additional context
No response
@wukko commented on GitHub (Dec 4, 2024):
can you specify exact links that don’t work?
@Tintin232 commented on GitHub (Dec 4, 2024):
Actually, testing it now, ANY video I tried downloading (from many different channels) gets this issue.
@wukko commented on GitHub (Dec 4, 2024):
…links?
@Tintin232 commented on GitHub (Dec 4, 2024):
https://www.youtube.com/watch?v=CLw__KbIiMc, https://www.youtube.com/watch?v=5-Wg7BuaozU, https://www.youtube.com/watch?v=GhqG9pr4hRs, https://www.youtube.com/channel/UCx27Pkk8plpiosF14qXq-VA.
@wukko commented on GitHub (Dec 4, 2024):
seems like it only happens only when the hls option is enabled, try turning it off: https://cobalt.tools/settings/video#youtube-hls
@Tintin232 commented on GitHub (Dec 4, 2024):
Without HLS the download doesn't work though, keeps on pausing and restarting and ends with "Network Error".
@onegen-dev commented on GitHub (Dec 4, 2024):
Same issue here, except on my side, cobalt downloads a 0 B file.
This behaviour is akin to #816.
I affirm this only happens with HLS format.
Video: Sullivan King - Venomous (feat. Spencer Charnas of Ice Nine Kills) [Lyric Video]
The "Network Error"/"Failed" issue without HLS only occurs to me on longer videos, ex. ROBLOX_OOF.mp3 getting cut off after 23:22 (full length 1:57:48). Probably subject of #647.
Gecko/Firefox-based browser, Fedora Linux 39.
@wukko commented on GitHub (Dec 4, 2024):
fixed in api v10.4.3, try again and lmk if hls still doesn't work!
@onegen-dev commented on GitHub (Dec 4, 2024):
Seems to have worked for H.265; VP9 is still broken, downloading empty files.
I was able to get some downloads ~hour ago,
now I am getting <5 KB/s downloads speeds for some reason. Could be high traffic on main instance or something.Nevermind, all works well now for me. Thank you for fixing the issue!@wukko commented on GitHub (Dec 5, 2024):
youtube doesn't have h265 streams (yet at least), what are you talking about?
@onegen-dev commented on GitHub (Dec 5, 2024):
Apologies, I meant H.264. I was talking about this option: