Live data from Hacker News

Yt-dlp: External JavaScript runtime now required for full YouTube support

github.com

481–490 of 646 posts

Re: Yt-dlp: External JavaScript runtime now required for full YouTube support

#481
post #102

From https://github.com/yt-dlp/yt-dlp/wiki/EJS it looks like deno is recommended for these reasons: > Notes > * Code is run with restricted permissions (e.g, no file system or network access) > * Supports downloading EJS script dependencies from npm (--remote-components ejs:npm).

It's fine for this project since google is probably not in the business of triggering exploits in yt-dlp users but please do not use deno sandboxing as a your main security measure to execute untrusted code . Runtime-level sandboxing is always very weak. Relying on OS-level sandboxing or VMs (firecracker & co) is the right way for this.

> Runtime-level sandboxing is always very weak. Relying on OS-level sandboxing or VMs (firecracker & co) is the right way for this.

... Isn't the web browser's sandboxing runtime-level?

Re: Yt-dlp: External JavaScript runtime now required for full YouTube support

#482
post #129

Just one question. I see all these 3rd party clients solving the problem separately. Isn't it easier for everyone to build a unified decoder backend that exposes a stable and consistent interface for all the frontends? That way, it will get more attention and each modification will have to be done only once. Since JS is the big issue here, the backend itself could be written in JS, TS or something else that compiles…

You mean, like the yt-dlp-ejs package?

Re: Yt-dlp: External JavaScript runtime now required for full YouTube support

#483

Earlier quoted context omitted.

I use YouTube on a daily basis. I haven't seen any of these problems.

It is likely you use Chrome or a browser that uses Blink for its engine and the OP uses a non-blink browser like Firefox. I use Firefox and I can cofirm since the last few months Youtube usability borders on usable

YT works pretty flawlessly for me with firefox on debian. What's the issue you're seeing?

Re: Yt-dlp: External JavaScript runtime now required for full YouTube support

#484

Earlier quoted context omitted.

> It's fine for this project since google is probably not in the business of triggering exploits in yt-dlp yt-dlp supports a huge list of websites other than youtube

Is there a full list? I struggled to find one

https://github.com/yt-dlp/yt-dlp/blob/2025.09.23/supportedsi...

Re: Yt-dlp: External JavaScript runtime now required for full YouTube support

#485
post #467

Earlier quoted context omitted.

It is likely you use Chrome or a browser that uses Blink for its engine and the OP uses a non-blink browser like Firefox. I use Firefox and I can cofirm since the last few months Youtube usability borders on usable

They've also started to be really aggressive against VPNs. I've tried Private Internet Access, Mulvad and AirVPN and often I have to cycle through 5-15(!) servers before YouTube stops saying "sign in to confirm you're not a bot". Discord has started to become absurdly aggressive with it too, to the point that they don't even let you load messages whilst logged in if you're on a VPN. It really makes me feel like there…

it's already like that

Re: Yt-dlp: External JavaScript runtime now required for full YouTube support

#486

Earlier quoted context omitted.

It is likely you use Chrome or a browser that uses Blink for its engine and the OP uses a non-blink browser like Firefox. I use Firefox and I can cofirm since the last few months Youtube usability borders on usable

YT works pretty flawlessly for me with firefox on debian. What's the issue you're seeing?

If you are blocking ads now, the videos will start in a very delayed fashion almost as if the server is waiting the length expected for the ad to take before streaming you any bytes.

Re: Yt-dlp: External JavaScript runtime now required for full YouTube support

#487

Earlier quoted context omitted.

Only if you use Googles Chrome Browser. Other browsers have issues like Firefox[1]. [1]: https://news.ycombinator.com/item?id=41379517

I can no longer watch videos on YouTube with Firefox. When Firefox dies, the last glimmer of hope will go out.

I considered it as motivation to switch more from Firefox to Zen, where it works, I guess because Google doesn't recognize it as Firefox and doesn't apply the anti-competition script?

Re: Yt-dlp: External JavaScript runtime now required for full YouTube support

#488

Earlier quoted context omitted.

> Holding Shift and selecting a chunk of a video to copy was simple because videos were mostly a succession of independently compressed frames. That was never true. QuickTime 1.0 famously included the Apple Video ("Road Pizza") codec, which had to do temporal compression in order to support video delivery at usable file sizes. > There are whole projects striving to provide a reliable way to just cut videos without ha…

It's crazy how even today, VLC still can't scrub in an h264 video and even skipping around takes seconds for it to catch up while QuickTime Player (AVFoundation) can scrub around in realtime. Early QuickTime was a miracle playing video on 25 MHz Motorola CPUs.

QT is so much faster than anything else. I'll only use VLC if the format is weird or if I want some feature like playlists.

Re: Yt-dlp: External JavaScript runtime now required for full YouTube support

#489
post #52

Earlier quoted context omitted.

They find devices that are easy to hack (and I mean rip and tear) and extract the decryption keys from each of them, from what I have heard cheap chinese tvs and set top boxes, they extract the keys from the chips (hardware hacking, heard some even use microscopes to read the keys by hand), and then use them to decrypt streams, I heard that they catch them pretty fast to they use like 1 device per season. This is why…

The really shitty thing is that vulnerable devices get blacklisted en masse, so all legitimate users get stuck with 480p video content on streaming services. The Nexus 5 got this treatment, as I understand it, because it was too easy to extract the keys.

Not a Netflix user here: Are you saying that paying customers get cut off from higher video quality, that they are possibly paying for, and pressured into buying new devices? That shit should be illegal!

Re: Yt-dlp: External JavaScript runtime now required for full YouTube support

#490

Earlier quoted context omitted.

I use YouTube on a daily basis. I haven't seen any of these problems.

It is likely you use Chrome or a browser that uses Blink for its engine and the OP uses a non-blink browser like Firefox. I use Firefox and I can cofirm since the last few months Youtube usability borders on usable

I use it on Firefox and Safari on Mac OS (mainly Safari), and it's been OK except it's started doing a thing where it blips a bit after roughly the first 1sec of video plays.

I wonder if being a YouTube Premium subscriber is also a factor here. I do pay for it so I don't see ads. But maybe the way ads are being served/injected has changed things for the worse for people that get them.

Post reply on HN