News for hackers. Stuff that matters.
Re:YouTube-dl's first release since June 2021 by yakubin on Friday December 17, 2021 @09:37AM (#29592707)
For a long time now for me youtube-dl downloads YouTube videos at 50kb/s, which makes it impractical to use in conjunction with mpv. I need to leave youtube-dl running in the background for several hours to then watch the video in mpv.

Now from the comments I've found out about yt-dlp[1] which claims to fix this issue[2]. Will check it out.

[1]: <https://github.com/yt-dlp/yt-dlp>

[2]: <https://github.com/ytdl-org/youtube-dl/issues/29326>

Re:YouTube-dl's first release since June 2021 by pdimitar on Friday December 17, 2021 @09:50AM (#29592891)
It does fix it. I switched to `yt-dlp` months ago and never had a problem with throttled downloads anymore.

Little later I also discovered I could use `yt-dlp` together with the `aria2c` downloader and now I am never going below 15 MB/s when downloading.

Re:YouTube-dl's first release since June 2021 by NylaTheWolf on Monday December 20, 2021 @05:40PM (#29631399)
yt-dlp is absolutely fantastic. It has all sorts of neat features and fixes too, like better support for bigger playlists and even SponsorBlock integration. Also they were super helpful whenever I had an issue and even added fixes or features after I opened them!
Re:YouTube-dl's first release since June 2021 by gaws on Friday December 17, 2021 @07:33PM (#29600135)
How did you set this up?
Re:YouTube-dl's first release since June 2021 by pdimitar on Saturday December 18, 2021 @08:17AM (#29604266)
Made a config file at the same location where `youtube-dl` stores its.

~/.config/youtube-dl/config.yt-dlp:

    --restrict-filenames
    --output '%(title)s.%(ext)s'
    --ignore-errors
    --embed-subs
    --all-subs
    --format 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best'
    --embed-thumbnail
    --audio-quality 0
    --add-metadata
    --xattrs
    --xattr-set-filesize
    --prefer-free-formats
    --geo-bypass
    --no-mark-watched
    --console-title
    --no-warnings
    --downloader aria2c
    --downloader-args '-j 16 -s 16 -x 16 -k 1M'
Only the last 2 lines are pertinent here but I am including my entire config because it serves me very well.

And my ~/.zshrc alias:

    alias ytdl="yt-dlp --config-location ~/.config/youtube-dl/config.yt-dlp"
Re:YouTube-dl's first release since June 2021 by gaws on Saturday December 18, 2021 @11:22AM (#29605677)
Thank you.
Re:YouTube-dl's first release since June 2021 by db48x on Friday December 17, 2021 @09:45AM (#29592825)
It’s not a bug. Youtube deliberately throttles downloads unless the client can answer a math question.
Re:YouTube-dl's first release since June 2021 by dbavaria on Friday December 17, 2021 @12:45PM (#29595547)
That's excessive for the oddly specific group of users who are ironically going to YouTube for math help.
Re:YouTube-dl's first release since June 2021 by asddubs on Friday December 17, 2021 @01:03PM (#29595794)
seems like it would be exactly what they need
Re:YouTube-dl's first release since June 2021 by angry_octet on Friday December 17, 2021 @04:17PM (#29598457)
I think questions like « Prove that the union of finitely many compact sets in a topological space (X,τ) is also compact » would certainly achieve rate limiting and boost global math skills.
Re:YouTube-dl's first release since June 2021 by Anunayj on Saturday December 18, 2021 @11:56AM (#29606062)
I seem passing by this really funny captcha on the Quantum Random Bit Generator Service's [1] signup page.

[1] http://random.irb.hr/signup.php

Re:YouTube-dl's first release since June 2021 by angry_octet on Tuesday December 21, 2021 @03:00AM (#29635063)
That's good, but unfortunately security through obscurity (in the true sense of the word).
Re:YouTube-dl's first release since June 2021 by trulyme on Friday December 17, 2021 @12:15PM (#29595108)
Is this a quasi-captcha because of some legal reasons? I would assume math problems are easy to solve for a computer (easier than for most of the humans, actually).
Re:YouTube-dl's first release since June 2021 by stefan_ on Friday December 17, 2021 @01:41PM (#29596384)
It's just a flippant way of saying "hiding the URL or parameters behind running JavaScript that serves no other purpose than obfuscation". See also this commit:

https://github.com/yt-dlp/yt-dlp/commit/404f611f1c4aa516fbc4...

Of course this is easy to solve, but every layer of obfuscation they add generally requires someone to go and work around it in yt-dlp. It's mutually assured time waste on both sides.

Re:YouTube-dl's first release since June 2021 by OneLeggedCat on Friday December 17, 2021 @03:02PM (#29597633)
> mutually assured time waste

I just learned an awesome new term. Thank you

Re:YouTube-dl's first release since June 2021 by sp332 on Friday December 17, 2021 @12:49PM (#29595611)
I didn't know about this. How does it work? youtubedown gets around the throttling by opening a bunch of connections at once.
Re:YouTube-dl's first release since June 2021 by fxtentacle on Friday December 17, 2021 @12:25PM (#29595267)
I've been using the old youtube-dl with aria2c downloader. That combination works well.

youtube-dl.exe -f "bestvideo[height<=2160][vcodec!^=av01]+bestaudio/best[height<=2160][vcodec!^=av01]" --all-subs --convert-subs srt --embed-subs --external-downloader aria2c

Gets me the best quality that my (fully offline) LG 4K TV can play.

Re:YouTube-dl's first release since June 2021 by pdimitar on Saturday December 18, 2021 @08:35AM (#29604373)
Why blacklisting the AV01 codec?
Re:YouTube-dl's first release since June 2021 by ac29 on Saturday December 18, 2021 @12:13PM (#29606231)
AV1 hardware decoding is still fairly uncommon.
Re:YouTube-dl's first release since June 2021 by jaden on Friday December 17, 2021 @09:44AM (#29592809)
It definitely fixed the issue for me. I was stuck at ~50kb/s with youtube-dl but switching to yt-dlp increased speeds dramatically.
Re:YouTube-dl's first release since June 2021 by pkulak on Friday December 17, 2021 @12:39PM (#29595460)
yt-dlp is worth it just for the sponsorblock integration.
Re:YouTube-dl's first release since June 2021 by pdimitar on Friday December 17, 2021 @01:29PM (#29596193)
I haven't used the sponsor block yet, any quick guide on how to do it?
Re:YouTube-dl's first release since June 2021 by paradaux on Saturday December 18, 2021 @07:32AM (#29604007)
It's mostly plug and play; on desktop install the browser extension and it just works!

There is some tuning to be done based on your own personal preference as you can tune it to _only_ skip sponsors, but by default it skips a variety of fluff

- Engagement reminders - Canned Intros - Self promotion

They're all marked by other users of the extension and I've never come across a malicious marking, so it's got a neat community, sadly I'm never early enough to contribute.

In the likes of YouTube Vanced (third party YouTube fork with integrated sponsorblock on android) it's simply a player, I resume the youtube-dl alternative works the same way

Re:YouTube-dl's first release since June 2021 by ugjka on Friday December 17, 2021 @12:49PM (#29595600)
and more up to date extractors
Re:YouTube-dl's first release since June 2021 by spacechild1 on Friday December 17, 2021 @02:10PM (#29596902)
I had the same problem and yt-dlp fixed it.
Re:YouTube-dl's first release since June 2021 by attack-surface on Friday December 17, 2021 @01:44PM (#29596444)
Came here to say this. I even tried with a VPN to see if the download speed wasn't throttled with it, but it's still ridiculously slow.

Thinking of switching to yt-dlp, but then how does yt-dlp get around the throttling? Does it emulate a browser to make it look like a normal viewing of a video?

Re:YouTube-dl's first release since June 2021 by pdimitar on Friday December 17, 2021 @02:16PM (#29596999)
Honest question: why do you care how? It does circumvent it quite efficiently.

But I've seen somebody here in this thread mentioning that yt-dlp emulates the YouTube Android client.

Re:YouTube-dl's first release since June 2021 by canadaduane on Friday December 17, 2021 @04:25PM (#29598532)
Sometimes when you know the "trick" you can better predict how long it will last, and how long you can rely on it continuing to work.
Re:YouTube-dl's first release since June 2021 by Spare_account on Friday December 17, 2021 @02:26PM (#29597171)
>Honest question: why do you care how?

Aren't you interested to find out? It sounds like it would be interesting to know how they did it.

Re:YouTube-dl's first release since June 2021 by pdimitar on Friday December 17, 2021 @02:30PM (#29597233)
Not one bit. I only care if it works and whether it works fast enough. I get that other devs might care, it's just that I personally don't.
Re:YouTube-dl's first release since June 2021 by entropie on Friday December 17, 2021 @01:42PM (#29596407)
I downloaded a big (like 330gb) audiobook playlist month ago. It started at like 3mbit but YT throttled it to 64/kb after a few hours but still responded.

Now its throttled like everytime. Will look into yt-dlp.

Re:YouTube-dl's first release since June 2021 by anotherhue on Friday December 17, 2021 @10:24AM (#29593394)
Usually C-c'ing it and trying again resolve it. Looking forward to trying yt-dlp though.
Re:YouTube-dl's first release since June 2021 by MrMember on Saturday December 18, 2021 @12:23PM (#29606327)
I have the same problem, yt-dlp didn't fix it for me.
Re:YouTube-dl's first release since June 2021 by gadrev on Friday December 17, 2021 @01:53PM (#29596603)
make it popular enough, it will be throttled like youtube-dl
Re:YouTube-dl's first release since June 2021 by lapinot on Friday December 17, 2021 @02:06PM (#29596836)
yt-dlp is a fork of youtube-dl, it's being throttled exactly the same, they just merge the fixes quicker. It's mostly a "cutting edge" branch of youtube-dl (not sure how much gets merged back tho).
Re:YouTube-dl's first release since June 2021 by shmerl on Friday December 17, 2021 @02:30PM (#29597221)
Does youtube-dl upstream fixes eventually?