Live data from Hacker News

Bypassing YouTube video download throttling

blog.0x7d0.dev

171–180 of 242 posts

Re: Bypassing YouTube video download throttling

#171

I've never tried YouTube, but I have downloaded videos from sketchier streaming websites using the web developer tools. Almost all of them have the same protection: some code that triggers only when you open the tools and stops the video by creating a debugger statement you cannot skip and triggering some cpu-heavy code (probably an infinite loop, although I wouldn't discard cryptominers). More importantly this code…

[deleted]

Re: Bypassing YouTube video download throttling

#172

On a sidenote am I imagining things or do videos actually look a tiny bit better in YouTube? This really has puzzled me. I downloaded a few favourites and watch them on VLC or Infuse on my AppleTV. In the YouTube app I can use the "nerd stats" to confirm I am viewing the exact same video/audio streams... ... it could be my imagination but it seems like YouTube does a really subtle kind of filter that makes the "block…

macOS has an AI video upscaling algorithm that was introduced in version 12

Re: Bypassing YouTube video download throttling

#174

I've never tried YouTube, but I have downloaded videos from sketchier streaming websites using the web developer tools. Almost all of them have the same protection: some code that triggers only when you open the tools and stops the video by creating a debugger statement you cannot skip and triggering some cpu-heavy code (probably an infinite loop, although I wouldn't discard cryptominers). More importantly this code…

> some code that triggers only when you open the tools

I've seen this technique too, but I feel that this is a major flaw on the browser's side. It should be impossible to tell if the dev tools is open or not. Surely this can be done right?

Re: Bypassing YouTube video download throttling

#175

Earlier quoted context omitted.

> - Forces software video decoding, which is slow No it doesn't. Heck, forcing software decoding is actually one of the ways to force Widevine down to lower protection levels on general purpose hardware. > - Web browsers only support the weakest form of Widevine which is ineffective It's not fullproof but it would certainly make tools to bypass it clearly illegal in most of the world. There are efficacy reasons for n…

> No it doesn't. If you're using a PC with a Nvidia GPU, run `nvidia-smi dmon -s u` and start playing a random Youtube video in Chrome. You'll notice how dec% moves from 0% to at least 2%. Pause, and start playing Widevine protected video and notice how dec% stays at 0% because decoding is happening on the CPU. > It's not fullproof but it would certainly make tools to bypass it clearly illegal in most of the world. G…

> If you're using a PC with a Nvidia GPU, run `nvidia-smi dmon -s u` and start playing a random Youtube video in Chrome. You'll notice how dec% moves from 0% to at least 2%. Pause, and start playing Widevine protected video and notice how dec% stays at 0% because decoding is happening on the CPU.

It's because Widevine have embedded decoder into its lib and its using CPU instructions but from user perspective it's not a huge change on modern CPUs as most have specialized instructions to handle decoding of H264 etc.

> Widevine L1* is ineffective in practice. Techniques to bypass it aren't available to the average Joe, but of course there are groups that will download, decrypt, and re-upload the newest 4K streaming releases to torrent trackers within an hour of them appearing on streaming services.

There are no "Techniques to bypass it", the only way currently to get L1 streams is to use legit hardware keys from some devices, on which you can exploit secure enclave/extract HW keys.

Re: Bypassing YouTube video download throttling

#176
post #64
post #19

I'm constantly suprised when YT deploys another half measure against downloaders when GOOG also owns widevine. I wonder what is their reasons for not using it.

The software version of widevine would be so thoroughly broken in a very short time that it would be bypassed by any one-click downloader addon. Nothing would change for users and YouTube would have the overhead for widevine. Using the hardware based version could cause a lot of problems with unsupported devices.

While that sounds reasonable, is there any evidence that this is the actual reason? Widevine is also used by other ubiquitous services such as Netflix, Prime, Hulu, etc.. and yet WV still remains an insurmountable barrier for most people, even in its weakest form (L3).

Re: Bypassing YouTube video download throttling

#177

On a sidenote am I imagining things or do videos actually look a tiny bit better in YouTube? This really has puzzled me. I downloaded a few favourites and watch them on VLC or Infuse on my AppleTV. In the YouTube app I can use the "nerd stats" to confirm I am viewing the exact same video/audio streams... ... it could be my imagination but it seems like YouTube does a really subtle kind of filter that makes the "block…

I can answer about the audio. YouTube (and most other streaming sites like Spotify etc) use something called ReplayGain. It's essentially a tag that specifies the calculated average loudness of the video/song/whatever (this number is calculated at upload time). Upon playback, the official YT client knows to use that tag and adjust its volume level accordingly, but I'd imagine either the tag isn't getting downloaded,…

That explains why YouTube on my TV is consistently 10 decibels louder than all the streaming services.

Re: Bypassing YouTube video download throttling

#178
post #19

I'm constantly suprised when YT deploys another half measure against downloaders when GOOG also owns widevine. I wonder what is their reasons for not using it.

> I wonder what is their reasons for not using it - Introduces a decryption step, which is slow - Forces software video decoding, which is slow - Web browsers only support the weakest form of Widevine which is ineffective It would effectively push a significant portion of their user base off the platform while not being very effective in its goals.

> Introduces a decryption step, which is slow

It's not slow, after you decrypt the AES key, then you are using hardware AES instruction set supported by most CPUs currently.

https://en.wikipedia.org/wiki/AES_instruction_set

Re: Bypassing YouTube video download throttling

#179
post #156

Earlier quoted context omitted.

Have you used `mediainfo` to check the codecs, bitrate and encoding settings? Curious what you'd find there...

Hey thanks I didn't know about this tool. Interestingly since I have the older download from ~3 weeks ago I just ran mediainfo on it, and the new download from today. Then I just switch tabs in terminal so I can easily see what changes. Old / New vp09 / vp09 filesize 488 mb / 391 mb OVerall bitrate 3274 kb/s / 2620 kb/s Bits/(Pixel\*Frame) 0.036 / 0.028 I don't see anything else significant. It seems to me in recent…

I have noticed that Youtube often re-encodes videos, replacing the data for a certain stream type/number with a new encode.

Re: Bypassing YouTube video download throttling

#180

On a sidenote am I imagining things or do videos actually look a tiny bit better in YouTube? This really has puzzled me. I downloaded a few favourites and watch them on VLC or Infuse on my AppleTV. In the YouTube app I can use the "nerd stats" to confirm I am viewing the exact same video/audio streams... ... it could be my imagination but it seems like YouTube does a really subtle kind of filter that makes the "block…

macOS has an AI video upscaling algorithm that was introduced in version 12

Any more info on this? I can't find anything via Google or on the Monterey features page.
Post reply on HN