Live data from Hacker News

Bypassing YouTube video download throttling

blog.0x7d0.dev

161–170 of 242 posts

Re: Bypassing YouTube video download throttling

#161
post #113

Earlier quoted context omitted.

> Ad infinitum? AI controlled adblocker is the end game!

Sponsorblock is almost this... But it uses real human labour to replace the AI, and works really well.

>real human labour to replace the AI

ah yes, AAI (Artificial-AI) AKA I (Intelligence), or "Crowdsourcing" if you're looking to use an older buzzword. I do think there's a few models trained on sponsorblock already, but they're not great.

Re: Bypassing YouTube video download throttling

#162
post #151

Earlier quoted context omitted.

This doesn't work for debugger statements.

You're wrong, it very much does work for debugger

I believe the reason you and the person you're replying to disagree, is that it works for existing debugger statements, but seemingly doesn't work for debugger statements injected after you toggle the flag.

The "disable breakpoints" button is seemingly performing a one-time imperative action on toggle (maybe "find all the breakpoints + debugger statements in existing loaded code, and patch/unpatch them") rather than being a declarative state-change in the system (i.e. "disable this tab's access to the debugger/breakpoint logic itself").

Re: Bypassing YouTube video download throttling

#163

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…

Try Anti-Anti-Debug [0]. It's a simple extension to bypass those kinds of anti-debugging techniques. Made it in a few hours a while ago for similar reasons. 0: https://chrome.google.com/webstore/detail/anti-anti-debug/mn...

Can you make one for Firefox too? ;-)

Re: Bypassing YouTube video download throttling

#164
post #156

Earlier quoted context omitted.

I'm "eyeballing" switching between Infuse and YouTube on an Apple TV 4k 2nd Gen (2021). The Sony TV is 1080p but I've been chosing 1440p now in YouTube as it definitely looks better overall (more details). The downloaded video is also 1440p, same audio/video streams as far I can tell. So both Infuse and YouTube will do some scaling to the viewport 1440 > 1080p. This is an example video: https://www.youtube.com/watch?…

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 weeks YouTube has changed the streams, added new "high bitrate Premium" streams (edit: WHILE lowering the bitrate on the older existing streams like 137!), and perhaps the one I downloaded earlier, despite being a larger filesize, was not encoded correctly?

The new file despite being 20% smaller (~400 mb instead of 500), has the smoother color banding, and doesn't show the ugly jittery grainy artifacts.

I used to think larger filesize is better but I guess Iḿ going to get the Vp9 from now on...

Re: Bypassing YouTube video download throttling

#165

Earlier quoted context omitted.

Proof? The news I recently saw, if you're referring to that, actually said they'd offer a higher-bitrate 1080p option for YouTube Premium, not that they'd lock the (then) current bitrate behind YouTube Premium and downgrade everyone else. Edit: I did some searching. In addition to that, the only relevant news I could find were about Google testing locking the 4K (2160p) resolution behind the Premium doors, which they…

I was speaking from anectodal evidence because I've been feeling my 1080p streams look worse than before the new option showed up. But it seems I'm mistaken [1]. [1] https://www.theverge.com/2023/2/23/23612647/youtube-1080p-pr...

They did lower the bitrate back in 2020, IIRC, because there was so much more youtube being watched all of a sudden and they didn't want ISPs to be crippled under the weight. Don't know if they reverted that change since.

Re: Bypassing YouTube video download throttling

#166
post #12

Earlier quoted context omitted.

I wonder how abusive this is though. In the end you are downloading the same amount of data, but in a shorter time. You are utilizing more bandwidth but you go away earlier. I think the original browser use case is tuned for the common occurrence of not watching the whole video. But if you intend to watch (and archive) the whole video to begin with then I don't think this eats away Google's bandwidth more. OTOH it pr…

> I wonder how abusive this is though. In the end you are downloading the same amount of data, but in a shorter time. In the end you're downloading a lot more data in total, as what ends up happening is you're downloading all sorts of stuff that you never end up getting around to actually watching (data hoarder syndrome). Whereas if you could only watch that stuff during life playback, you'd be downloading much less…

> In the end you're downloading a lot more data in total, as what ends up happening is you're downloading all sorts of stuff that you never end up getting around to actually watching (data hoarder syndrome).

Well that's an assumption on the intent of downloading. I don't download videos that I don't eventually watch. But typically it's for archival, I just hate my favorite videos going away.

Re: Bypassing YouTube video download throttling

#167
post #113

Earlier quoted context omitted.

Very surprised they haven't started this long ago. One might suspect the problem is ad play and click accounting. Anyway, when they start delivering ads in-band, the next step for blockers is to identify that first keyframe in the player by using a pool of shared signatures, right? So then player clients will need adblock plugins which will have a sizeable signature distribution infra and grief for clients. Then the…

> Ad infinitum? AI controlled adblocker is the end game!

...which will be countered by AI-enabled midroll ad generation. A neural network that splices two video clips together must already be a thing, right? The advertisers would probably want this even without adblockers, since everyone already has an adblocker in their mind called 'inattentional blindness'. Using AI to subtly segue into the ad rather than cutting would stop some portion of users from tabbing out, checking their phones or just going AFK during ad breaks.

Re: Bypassing YouTube video download throttling

#168
post #36

Earlier quoted context omitted.

Mr Beast's videos have at least a spanish audio track, which funnily enough NewPipe defaults to (or did the last I checked) and NewPipe doesn't support changing the track as far as I can tell

Just checked NewPipe on a MrBeast video. There is an option now to select the audio track and MrBeast uploads dubs in more than a dozen languages.

When I first noticed this, I thought it was cool that dub-spiderman[0] migrated to using that right away, since he already went so hard with the mrbeast spanish and other dub channels. I assume it's preferable to have all of your subscribers on the one channel.

0: Jimmy's voice in the spanish dub of his channel is the same actor who dubs spiderman.

Re: Bypassing YouTube video download throttling

#169
post #152
post #74

Earlier quoted context omitted.

>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 If you missed it, not so long ago there was a submission that evaded exactly this. Their solution is so simple yet effective: Recompiling the browser with the debugger keyword renamed. Made me smile. https://news.ycombinator.com/item?id=36961445

> Their solution is so simple yet effective: Recompiling the browser with the debugger keyword renamed Not exactly what I'd call simple...

Conceptually simple at least :-)

Definitely a clever hack

Re: Bypassing YouTube video download throttling

#170
post #10

Technically, all interesting. Ethically, if you don't only think “fuck Google”, I feel like it's reasonable to stop after the first optimization (“pass the real browser test to get regular browser speeds”). There you're not “wasting” any more of YouTube's resources than a browser user with ad-block. Getting full Gb/s without paying anything feels to me like you're pushing all the ad-blocked users' luck. But then agai…

[deleted]
Post reply on HN