Live data from Hacker News

Yt-dlp: Upcoming new requirements for YouTube downloads

github.com

411–420 of 635 posts

Re: Yt-dlp: Upcoming new requirements for YouTube downloads

#411

The writing is on the wall for easy ripping. If there's any YT content you expect you'll want to preserve for a long time, I suggest spinning up https://www.tubearchivist.com/ or something similar and archiving it now while you still can.

They already had the proper-DRM tech for youtube movies for years, why didn't they already turn that on for all content?

It's not really a matter of just turning it on when it comes to the kind of scale that YouTube has on their catalogue. It's practically impossible to retranscode the whole catalogue, so you're more or less stuck with only doing it for newly ingested content, and even there the tradeoffs are quite large when it comes to actually having DRM.

I think we can safely assume that the only content under DRM at YouTube today is the content where it's absolutely legally necessary.

Re: Yt-dlp: Upcoming new requirements for YouTube downloads

#412

When I first got with my wife I seemed a bit crazier than I am because I am a media hoarder for 30+ years. I don't have any VHS, DVDs, etc. laying around because I only keep digital copies, but I have pretty decent archives. Nothing important really, just normal stuff and some rare or obscure stuff that disappears over time. My wife was interested in the idea that I was running "Netfix from home" and enjoyed the lack…

I recently discovered Pinchflat [1], which seems like an *arr-inspired web alternative, and works great for me - I just need to add the videos I want downloaded to a playlist and it picks them up. Also uses yt-dlp under the hood.

1. https://github.com/kieraneglin/pinchflat

Re: Yt-dlp: Upcoming new requirements for YouTube downloads

#413
post #405
post #327

Earlier quoted context omitted.

What evidence is telling the opposite? Scripts use V8 isolation, identical to Chrome. What comes to rest, we can only trust or review by ourself, but it is certainly better than nothing in this context.

Identical to Chrome except the part where Chrome uses os-level sandboxing on top. V8 exploits are common, Deno sandboxing by itself is not a good idea if you are executing arbitrary code.

We are comparing to situation where the alternative is nothing. Maybe we just should remove locks from the doors because someone has lockpicked door somewhere.

Re: Yt-dlp: Upcoming new requirements for YouTube downloads

#414

Earlier quoted context omitted.

Deno sandboxing is paper thin, last time I looked they had very simple rules. It's a checkbox feature. If you want isolation use WASM.

WASM can not run JavaScript unfortunately.

WASM can run a javascript interpreter or compiler. if isolation is the goal, that may even make sense.

Re: Yt-dlp: Upcoming new requirements for YouTube downloads

#415
post #9

I’m a paying YouTube premium subscriber. Last weekend, I wanted to download something so I can watch it on my way in the train. The app got stuck at “waiting for download..” on my iPad. Same on iPhone. Restart did not work. I gave up after an hour (30 mins hands on trying stuff, 30 mins waiting for it to fix itself). Downloaded the video using yt-dlp, transferred it to my USB c flash drive, and watched it from that.…

[dead]

Re: Yt-dlp: Upcoming new requirements for YouTube downloads

#416
> Up until now, yt-dlp has been able to use its built-in JavaScript "interpreter" [1]

Wow, this is equal parts fascinating and horrifying.

Edit, after looking into it a bit: It seems like a self-contained build of deno weighs in at around 40 MB (why?), so I can see why they tried to avoid that and appreciate the effort.

[1] https://github.com/yt-dlp/yt-dlp/blob/2025.09.23/yt_dlp/jsin...

Re: Yt-dlp: Upcoming new requirements for YouTube downloads

#418
This is very related to a talk I did last year [1]. "Part 2: youtube-dl" starts at 18:21. It dips toes into an analysis about software that fundamentally depends on ongoing human labor to maintain (as compared to, e.g. zlib, which is effectively "done" for all intents and purposes).

More concretely, the additional Deno dependency is quite problematic for my music player, especially after I did all that work to get a static, embeddable CPython built [2].

Ideally for me, yt-dlp would be packaged into something trivially embeddable and sandboxable, such as WebAssembly, calling into external APIs for things like networking[3]. This would reduce the value delivered by the yt-dlp project into pure DRM-defeating computation, leaving concerns such as CLI/GUI to a separate group of maintainers. A different project could choose to fulfill those dependencies with Deno, or Rust, or as in my case, built directly into a music player in Zig.

Of course I don't expect the yt-dlp maintainers to do that. They're doing something for fun, for free, for pride, for self-respect... in any case their goals aren't exactly perfectly aligned with mine, so if I want to benefit from their much appreciated labor, I have to provide the computational environment that they depend on (CPython[4] and Deno).

But yeah, that's now going to be a huge pain in the ass because now I either have to drop support for yt-dlp in my music player, or additionally embed deno, as well as introduce Rust as a build dependency... neither of which I find acceptable. And don't even get me started on Docker.

[1]: https://www.youtube.com/watch?v=SCLrNqc9jdE

[2]: https://github.com/allyourcodebase/cpython

[3]: https://ziglang.org/news/goodbye-cpp/

[4]: https://github.com/yt-dlp/yt-dlp/issues/9674

Re: Yt-dlp: Upcoming new requirements for YouTube downloads

#419
post #173

Earlier quoted context omitted.

JIT is still banned by policy on a LOT of mobile devices, meaning that previous usage of yt-dlp on mobile is now effectively unsupportable.

I haven't tested this, but in theory running deno with `--v8-flags='--jitless'`[^1][^2] will disable the JIT compiler. [^1]: https://v8.dev/blog/jitless [^2]: https://docs.deno.com/runtime/getting_started/command_line_i...

If the performance drops due to lack of JIT, then GPs comment about effectively useless on mobile might still hold weight.

Re: Yt-dlp: Upcoming new requirements for YouTube downloads

#420
post #8

Earlier quoted context omitted.

From https://github.com/ytdl-org/youtube-dl/issues/33186 > Currently, a new style of player JS is beginning to be sent where the challenge code is no longer modular but is hooked into other code throughout the player JS. So it's no longer a standalone script that can be interpreted but it depends on all the other code on the site? Which could still be interpreted maybe but is a lot more complex and might need DOM etc…

Sounds like a really silly way to engineer things, but then again Google has the workforce to do lots of silly things and the cash to burn, so they can afford it.

It's silly from an engineering perspective, but unfortunately clever from YT's perspective of "how do we complicate this as much as possible".
Post reply on HN