Most active commenters
  • molticrystal(3)

←back to thread

439 points Leftium | 62 comments | | HN request time: 0.634s | source | bottom
1. molticrystal ◴[] No.45306399[source]
The claim that Google secretly wants YouTube downloaders to work doesn't hold up. Their focus is on delivering videos across a vast range of devices without breaking playback(and even that is blurring[0]), not enabling downloads.

If you dive into the yt-dlp source code, you see the insane complexity of calculations needed to download a video. There is code to handle nsig checks, internal YouTube API quirks, and constant obfuscation that makes it a nightmare(and the maintainers heroes) to keep up. Google frequently rejects download attempts, blocks certain devices or access methods, and breaks techniques that yt-dlp relies on.

Half the battle is working around attempts by Google to make ads unblockable, and the other half is working around their attempts to shut down downloaders. The idea of a "gray market ecosystem" they tacitly approve ignores how aggressively they tweak their systems to make downloading as unreliable as possible. If Google wanted downloaders to thrive, they wouldn't make developers jump through these hoops. Just look at the yt-dlp issue tracker overflowing with reports of broken functionality. There are no secret nods, handshakes, or other winks, as Google begins to care less and less about compatibility, the doors will close. For example, there is already a secret header used for authenticating that you are using the Google version of Chrome browser [1] [2] that will probably be expanded.

[0] Ask HN: Does anyone else notice YouTube causing 100% CPU usage and stattering? https://news.ycombinator.com/item?id=45301499

[1] Chrome's hidden X-Browser-Validation header reverse engineered https://news.ycombinator.com/item?id=44527739

[2] https://github.com/dsekz/chrome-x-browser-validation-header

replies(14): >>45306431 #>>45307288 #>>45308312 #>>45308891 #>>45309570 #>>45309738 #>>45310615 #>>45310619 #>>45310847 #>>45311126 #>>45311155 #>>45311160 #>>45311645 #>>45313122 #
2. ameliaquining ◴[] No.45306431[source]
The argument the article is making is that if they really wanted YouTube downloaders to stop working, they'd switch to Encrypted Media Extensions. Do you think that's not plausible?
replies(3): >>45306579 #>>45307797 #>>45308738 #
3. molticrystal ◴[] No.45306579[source]
Many smart devices that have youtube functionality(tvs, refrigerators, consoles, cable boxes, etc), have limited or no ability to support that functionality in hardware, or even if they do, it might not be exposed.

Once those devices get phased out, it is very likely they will move to Encrypted Media Extensions or something similar, I believe I saw an issue ticket on yt-dlp's repo indicating they are already experimenting with such, as certain formats are DRM protected. Lookup all the stuff going on with SABR which if I remember right is either related to DRM or what they may use to support DRM.

replies(2): >>45307666 #>>45308148 #
4. AceJohnny2 ◴[] No.45307288[source]
I also don't buy this argument about YouTube depending on downloaders:

> They perform a valuable role: If it were impossible to download YouTube videos, many organizations would abandon hosting their videos on YouTube for a platform that offered more user flexibility. Or they’d need to host a separate download link and put it in their YouTube descriptions. But organizations don’t need to jump through hoops -- they just let people use YouTube downloaders.

No, organizations simply use YouTube because it's free, extremely convenient, has been very stable enough over the past couple decades to depend on, and the organization does not have the resources to setup an alternative.

Also, I'm guessing such organizations represent a vanishly small segment of YouTube's uploaders.

I don't think people appreciate how much YouTube has created a market. "Youtuber" is a valid (if often derided) job these days, where creators can earn a living wage and maintain whole media companies. Preserving that monetization portal is key to YouTube and its content creators.

replies(2): >>45308491 #>>45308898 #
5. hayksaakian ◴[] No.45307666{3}[source]
for example I think feature length films that YouTube sells (or rents) already use this encryption.
replies(1): >>45308209 #
6. justsomehnguy ◴[] No.45307797[source]
> if they really wanted YouTube downloaders to stop working

Wrong question leads to the wrong answer.

The right one is "how much of the ad revenue would be lost if". For now it's cheaper to spend bazillions on a whack-a-mole.

7. ls612 ◴[] No.45308148{3}[source]
Here has to be at least some benefit Google thinks it gets from youtube downloaders, because for instance there have been various lawsuits going after companies that provide a website to do youtube downloading by the RIAA and co, but Google has studiously avoided endorsing their legal arguments.
8. dzhiurgis ◴[] No.45308209{4}[source]
That’s why authors should pony up and pay for the encryption feature and rest should be free to download. YouTube could embed ads this way too.
replies(1): >>45308852 #
9. eek2121 ◴[] No.45308312[source]
While I do agree (mostly, I've never had a download NOT work, on the rare occasion I grab one), they haven't made it impossible to download videos, so that is a win IMO.
replies(3): >>45309025 #>>45310506 #>>45311727 #
10. lucb1e ◴[] No.45308491[source]
> and the organization does not have the resources to setup an alternative.

Can confirm at least one tech news website argued this point and tore down their own video hosting servers in favor of using Youtube links/embeds. Old videos on tweakers.net are simply not accessible anymore, that content is gone now

This was well after HTML5 was widely supported. As a website owner myself, I don't understand what's so hard now that we can write 1 HTML tag and have an embedded video on the page. They made it sound like they need to employ an expensive developer to continuously work on improving this and fixing bugs whereas from my POV you're pretty much there with running ffmpeg at a few quality settings upon uploading (there are maybe 3 articles with a video per day, so any old server can handle this) and having a quality selector below the video. Can't imagine what about this would have changed in the past decade in a way that requires extra development work. At most you re-evaluate every 5 years which quality levels ffmpeg should generate and change an integer in a config file...

Alas, little as I understand it, this tiny amount of extra effort, even when the development and setup work is already in the past(!), is apparently indeed a driving force in centralizing to Youtube for for-profits

replies(1): >>45308921 #
11. kragen ◴[] No.45308738[source]
Using DRM would make it illegal for YouTubers to use Creative-Commons-licensed content in their videos, such as Kevin MacLeod's music or many images from Wikipedia.
replies(1): >>45310581 #
12. peteforde ◴[] No.45308852{5}[source]
That's a wildly imaginative fever dream you're having. There is no timeline in which content creators would pay YouTube to encrypt their video content.
replies(1): >>45312054 #
13. jacobgkau ◴[] No.45308891[source]
To be fair, the article doesn't say Google "secretly wants" downloaders to work. It says they need downloaders to work, despite wanting to make them as annoying as possible to use. The argument isn't so much about Google's feelings as it is about whether the entire internet would continue making YouTube the video hosting site to use if downloaders were actually (effectively) blocked.
replies(1): >>45310001 #
14. roboror ◴[] No.45308898[source]
Yeah organizations don't use YouTube for file access, that's just not a good way to operate a video department in a business. Also the quality is terrible and adding another set of reencodes will make it even worse.
15. jacobgkau ◴[] No.45308921{3}[source]
> As a website owner myself, I don't understand what's so hard now that we can write 1 HTML tag and have an embedded video on the page.

You acknowledge that it's not that simple:

> running ffmpeg at a few quality settings upon uploading (there are maybe 3 articles with a video per day, so any old server can handle this)

Can any old server really handle that? And can it handle the resulting storage of not only the highest-quality copy but also all the other copies added on top? My $5 Linode ("any old server") does not have the storage space for that. You can switch your argument to "storage is cheap these days," but now you're telling people to upgrade their servers and not actually claiming it's a one-click process anymore.

I use Vimeo as a CDN and pay $240 per year for it ($20/month, 4x more than I spend on the Linode that hosts a dozen different websites). If Vimeo were to shut down tomorrow, I'd be pretty out of luck finding anyone offering pricing even close to that-- for example, ScaleEngine charges a minimum of $25 per month and doesn't even include storage and bandwidth in their account fee. Dailymotion Pro offers a similar service to Vimeo these days, but their $9/month plan wouldn't have enough storage for my catalog, and their next cheapest price is $84/month. If you actually go to build out your own solution with professional hosting, it's not gonna be a whole lot cheaper.

Obviously, large corporations can probably afford to do their own hosting-- and if push came to shove, many of them probably would, or would find one of those more expensive partner options. But again, you're no longer arguing "it's just an HTML tag." You're now arguing they should spend hundreds or thousands per year on something that may be incidental to their business.

replies(3): >>45309506 #>>45310601 #>>45313190 #
16. molticrystal ◴[] No.45309025[source]
Your view from a distance, where you rarely download Youtube videos, is common for now, and we still live in a very fortunate time. The problems are short lived, so over long periods, they tend to average out, and you are unlikely to notice them. Even active users will rarely notice a problem, so it is understandable for your use case, it would seem perfect.

Looking closely, at least for yt-dlp, you would see it tries multiple methods to grab available formats, tabulates the working ones, and picks from them. Those methods are constantly being peeled away, though some are occasionally added or fixed. The net trend is clear. The ability to download is eroding. There have been moments when you might seriously consider that downloading, at least without a complicated setup(PO-Tokens, widevine keys, or something else), is just going to stop working.

As time goes on, even for those rare times you want to grab a video, direct downloading may no longer work. You might have to resort to other methods, like screen recording through software or an actual camera, for as long as your devices will let you do even that.

replies(1): >>45311300 #
17. is_true ◴[] No.45309506{4}[source]
Have you tried cloudflare r2?
18. guerrilla ◴[] No.45309570[source]
> If you dive into the yt-dlp source code, you see the insane complexity of calculations needed to download a video. There is code to handle nsig checks, internal YouTube API quirks, and constant obfuscation that makes it a nightmare(and the maintainers heroes) to keep up. Google frequently rejects download attempts, blocks certain devices or access methods, and breaks techniques that yt-dlp relies on.

This just made me incredibly grateful for the people who do this kind of work. I have no idea who writes all the uBlock Origin filters either, but blessed be the angels, long may their stay in heaven be.

I'm pretty confident I could figure it out eventually but let's be honest, the chance that I'd ever actually invest that much time and energy is approximates zero close enough that we can just say it's flat nil.

Maybe Santa Claus needs to make some donations tonight. ho ho ho

replies(2): >>45309786 #>>45310667 #
19. yard2010 ◴[] No.45309738[source]
Google is not a side here if you don't want people to download your video do not put it on the internet.
20. pests ◴[] No.45310001[source]
I don’t think companies are asking “can people download this video” but rather “can people watch this video” - downloaders seems like an afterthought or non issue.
21. nirui ◴[] No.45310506[source]
> mostly, I've never had a download NOT work

Well, how about thanks the people who's maintaining the downloader to make it possible?

> they haven't made it impossible to download videos, so that is a win IMO.

At some point you can just fire up OBS Studio and do a screen rip, then cut the ads out manually and put it on Torrent/ED2k.

Will you still think it's a win then?

22. LegionMammal978 ◴[] No.45310581{3}[source]
When you upload a video to YouTube, you agree that you own the copyright or are otherwise able to grant YouTube a license to do whatever they want with it [0]:

> If you choose to upload Content, you must not submit to the Service any Content that does not comply with this Agreement (including the YouTube Community Guidelines) or the law. For example, the Content you submit must not include third-party intellectual property (such as copyrighted material) unless you have permission from that party or are otherwise legally entitled to do so. [...]

> By providing Content to the Service, you grant to YouTube a worldwide, non-exclusive, royalty-free, sublicensable and transferable license to use that Content (including to reproduce, distribute, prepare derivative works, display and perform it) in connection with the Service and YouTube's (and its successors' and Affiliates') business, including for the purpose of promoting and redistributing part or all of the Service.

If you include others' work with anything stronger than CC0, that's not a license you can grant. So you'll always be in trouble in principle, regardless of whether or how YouTube decides to exercise that license. In practice, I wouldn't be surprised if the copyright owner could get away with a takedown if they wanted to.

[0] https://www.youtube.com/t/terms#27dc3bf5d9

replies(1): >>45312466 #
23. lelandbatey ◴[] No.45310601{4}[source]
Here's me hosting a bunch of different bitrates of a high quality video, which I encoded on a 2016 laptop. http://lelandbatey.com/projects/REDLINE-intro/

The server is $30/month hosted by OVH, which comes with 2TB of storage. The throughout on the dedicated server is 1gbps. Unlimited transfer is included (and I've gone through many dozens of TB of traffic in a month).

replies(2): >>45310639 #>>45311046 #
24. fatchan ◴[] No.45310615[source]
Written by somebody who hasn't taken 1 look at yt-dlp source code or issues. Google regularly pushes updates that "coincidentally" break downloaders. The obfuscation and things they do to e.g. break a download by introducing some breaking code or dynamic calculation required only part way through the video is not normal. They are not serving a bunch of video files or chunks, you need a "client" that handles all these things to download a video. At this point, if you assert that Google doesn't want to secretly stop it, you are either extremely naive, ignorant, or a Google employee.
25. thaumasiotes ◴[] No.45310619[source]
I miss the system where, when I was watching a flash video in Firefox, that video was already present on my hard drive as an .flv file in /tmp, and I could just copy it somewhere.
26. fatchan ◴[] No.45310639{5}[source]
People paying for managed services have no concept of bandwidth costs, so they probably think what you just described is impossible.

Bandwidth these days can be less than .25/m at a 100g commit in US/EU, and OVH is pushing dozens of tb/s.

Big ups on keeping independent.

replies(2): >>45310856 #>>45311516 #
27. imiric ◴[] No.45310667[source]
As the web devolves further, the only viable long-term solution will be allow lists instead of block lists. There is too much hostility online—from websites that want to track you and monetize your data and attention, SEO scams and generated content, and an ever-increasing army of bots—that it's becoming infeasible to maintain rules to filter all of it out. It's much easier to write rules for traffic you approve of, although they will have to be more personal than block lists.
replies(1): >>45311246 #
28. anigbrowl ◴[] No.45310847[source]
Especially given that YT frequently blocks yt-dlp and bans users who workaround by using the --cookie flag
29. cocogoatmain ◴[] No.45310856{6}[source]
~~Likely much less than .25/m if that’s mbps. The issue is you’d have no shortage of money at that scale - I run one of the two main Arch Linux package mirrors in my country and while it’s admittedly a quite niche and small distro in comparison, I’m nowhere close enough to saturate 1gbit on normal days, let alone my 10gbit link~~

It’s a trade off I suppose - you can very well host your own streaming solution, and for the same price you can get a great single node, but if you want good TTFB and nodes with close proximity to many regions you may as well pay for a managed solution as the price for multiple VPS/VM stacks up quickly when you have a low budget

Edit: I think I missed your point about bandwidth pricing lol, but the second still stands

30. MonaroVXR ◴[] No.45311046{5}[source]
I'm on mobile, but what player did you use on your website?

Does it handle buffer?

replies(1): >>45311447 #
31. geokon ◴[] No.45311126[source]
I never understood why do they not limit downloading data to the speed at which you could be possibly watching it. Yesterday I downloaded a 15hour show in like 20 minutes. There is no way I could have downloaded that much data in a legit way through their website/player

Im glad I wasn't blocked or throttled, but it seems like it'd be trivial to block someone like me

Am I missing something? It does sort of feel like they're allowing it

EDIT: Spooky skeletons.. Youtube suddenly as of today forces a "Sign in to confirm you’re not a bot" on both the website and yt-dl .. So maybe I've been fingerprinted and blacklisted somehow

replies(5): >>45311200 #>>45311207 #>>45311213 #>>45311224 #>>45313176 #
32. SilverElfin ◴[] No.45311155[source]
Why don’t creators both publish to YouTube but also publish somewhere else for archival or public access reasons, to help keep content available for outside walled gardens? Is it just not important to them? Is it hosting costs? Missing out on ad revenue?
replies(3): >>45311204 #>>45312394 #>>45314102 #
33. js8 ◴[] No.45311160[source]
I have YT Premium and if Google bans yt-dlp, I will cancel my subscription. I pay them not to do that.
replies(2): >>45311189 #>>45311201 #
34. lerp-io ◴[] No.45311189[source]
you show them who’s boss, premium user
35. axiolite ◴[] No.45311200[source]
You could have been a legit viewer... clicking to skip over segments of the video, presumably trying to find where you left off last time, or for some scene you remember, or the climax of the video... whatever.

Youtube does try to throttle the data speeds, when that first happened, youtube-dl stopped being useful and everyone upgraded their python versions and started using yt-dlp instead.

replies(1): >>45311580 #
36. phoronixrly ◴[] No.45311201[source]
Seems quite naive to think they'd be affected in any way by the tiny intersection of users that are both yt-dlp users and premium subscribers boycotting them...
replies(1): >>45311332 #
37. iamflimflam1 ◴[] No.45311204[source]
Where else should they be publishing to? And who is going to pay for this service?

Don’t forget - most “content creators” are not technical - self hosting is not an option.

And even if it were - it costs money.

replies(1): >>45311220 #
38. Waraqa ◴[] No.45311207[source]
There is an official download option inside the app. If they limit the download speed to the watching time, it won't be useful.
replies(2): >>45312387 #>>45313493 #
39. phoronixrly ◴[] No.45311213[source]
I think they are, yt-dlp just circumvents it
40. SilverElfin ◴[] No.45311220{3}[source]
I just mean some kind of public service like one of those archive sites. So they would place it into YouTube for revenue but also these other places so there’s a way to get the videos without Google being a dictatorial overlord.
41. bheadmaster ◴[] No.45311224[source]
They still want the YouTube experience to be smooth, to allow users to skip small parts of videos without waiting for it to load every time, to be able to watch multiple videos at the same time, to be able to leave video paused until it loads, etc., which limiting downloading data would hinder. I assume blocking downloads is just not worth destroyinf user experience.
replies(1): >>45311265 #
42. drnick1 ◴[] No.45311246{3}[source]
This is more or less what I already do with uBlock/uMatrix. By default, I filter out ALL third party content on every website, and manually allow CDNs and other legitimate third party domains. I still use DNS blacklists however so that mobile devices where this can't be easily done benefit from some protection against the most common offenders (Google Analytics, Facebook Pixel, etc.)
43. jamiek88 ◴[] No.45311265{3}[source]
Also they allow downloads for premium subs maybe it’s more efficient to not check that status every time.
44. Barbing ◴[] No.45311300{3}[source]
Right!

I very rarely download YouTube videos but simply having done it a few times over the years, and even watching the text fly by in the terminal with yt-dlp, everything you’ve said is obvious.

Screen recording indeed might fail—Apple lets devs block it, so even screen recording the iPhone Mirroring app can result in an all-black recording.

How long until YouTube only plays on authorized devices with screens optimized for anti-camera recording? Silver lining, could birth a new creative industry of storytelling, like courtroom sketch artists with more Mr. Beast.

45. renegat0x0 ◴[] No.45311332{3}[source]
I think it is not about making a change, it is putting money where your mouth is.

To buy premium to support creators.

Once yt becomes hostile the deal between me and yt is off.

46. genezeta ◴[] No.45311447{6}[source]
Not the person above but they're using Video.js 7.10.2 <http://videojs.com/>
47. Karrot_Kream ◴[] No.45311516{6}[source]
No lol nobody is reading the numbers. Vimeo is $20 / mo. Vimeo + $5 Linode server = $25 / mo, cheaper than the $30 / mo OVH server. The quoted ScaleEngine is $25 / mo, which ($25 + $5 = $30) the same as the OVH server.

Y'all just have two different budgets. For one person $30 / mo is reasonable for the other it's expensive.

But the core claim, that $5 / mo hosts a lot of non-video content but not much video content, holds.

48. brutal_chaos_ ◴[] No.45311580{3}[source]
If you click to skip over, even clicking every minute, you're still not grabbing the whole thing, right? Whereas downloading is grabbing every second.
replies(1): >>45311717 #
49. matheusmoreira ◴[] No.45311645[source]
> there is already a secret header used for authenticating that you are using the Google version of Chrome browser

Google needs to be broken up already.

50. zenmac ◴[] No.45311717{4}[source]
Depending on the player and how they cache it. Yes, if google monitor every byte to which client had downloaded, but that just seems like ultra micro managing, and have no idea how many players will it break. Youtube seems like one of those site, should allow people to download or make them a public utility on IPFS or something like that.
51. Sophira ◴[] No.45311727[source]
> (mostly, I've never had a download NOT work, on the rare occasion I grab one)

A lot of the reason for that is because yt-dlp explicitly makes it easy for you to update it, so I would imagine that many frontends will do so automatically - something which is becoming more necessary as time goes on, as YouTube and yt-dip play cat and mouse with each other.

Unfortunately, lately, yt-dip has had to disable by default the downloading of certain formats that it was formerly able to access by pretending to be the YouTube iOS client, because they were erroring too often. There are alternatives, of course, but those ones were pretty good.

A lot of what you see in yt-dlp is because of the immense amount of work that the developers put in in order to keep it working. Despite that it now allows for downloading from many more sites than it originally was developed for, they're still not going to give up YouTube support (as long as it still allows DRM-free versions) without a fight.

Once YouTube moves to completely DRM'd videos, however, that may have to be when yt-dlp retires support for YouTube, because yt-dlp very deliberately does not bypass DRM. I'd imagine the name would change at that point.

52. Almondsetat ◴[] No.45312054{6}[source]
Here's a thought: what if paying a fixed amount to encrypt your video would grant you a much higher commission for the ads shown?
53. Biganon ◴[] No.45312387{3}[source]
This option is only available to premium users afaik
54. Biganon ◴[] No.45312394[source]
LTT kinda do, but they're the exception, not the norm
55. kragen ◴[] No.45312466{4}[source]
Yes, this absolutely does not shield YouTube from liability from third parties, since the copyright holder of third-party content included in the video is not a party to the agreement. That's why they have a copyright notice and takedown procedure in the first place, and also the reason for numerous lawsuits against YouTube in the past, some of which they have lost.

To date, many Creative Commons licenses do in fact amount to "permission from that party", but if they start using DRM, those licenses would cease to grant YouTube permission.

56. qiine ◴[] No.45313122[source]
This is starting to look like some quality llm benchmark!

And ever updating with that!

57. RobotToaster ◴[] No.45313176[source]
As some people already said, skipping section. Also you can increase video speeds, I normally watch youtube at 2x speed but I think you can go up to 5x.
58. privatelypublic ◴[] No.45313190{4}[source]
Doesn't cloudflare and amazon have this now? Pretty sure CF is developing a closed source player- but theres plenty of FOSS ones (rip the one jellyfin uses out of it- at worst).

And, theres plenty of tutorials on using ffmpeg based tools to make the files. And yes, "oh no, I need to learn something new for my video workflow."

replies(1): >>45313913 #
59. alright2565 ◴[] No.45313493{3}[source]
The official download option doesn't download it to your filesystem as a file. It just lets you watch the video offline in the official app/website. Just tested it now.
replies(1): >>45313947 #
60. ◴[] No.45313913{5}[source]
61. soared ◴[] No.45313947{4}[source]
Meaning the video file exists in your file system somewhere, so downloading at a higher speed than possibly viewing the video is an existing functionality in the app.
62. gmiller123456 ◴[] No.45314102[source]
Youtube pays them per (ad) view, and also recommends the video to more people based on how many people click on it. So giving people another way to watch it will decrease their revenue and audience.