News for hackers. Stuff that matters.
Re:The RIAA’s attack on YouTube-dl is not a DMCA 512 infring... by marcan_42 on Monday October 26, 2020 @03:56AM (#24893770)
0. As people have stated before, the whole point of those tests is that they test a specific kind of obfuscation that YouTube only uses for certain partner videos. So unless someone manages to dig up some obscure partner video that has that feature turned on and yet arguably consists entirely of freely licensable or non-copyrightable content, that won't work.

1~4. youtube-dl isn't just a user facing tool, it is a library and tool that lots of other software shells out to, e.g. so you can play YouTube videos from your favorite standalone player in better quality than using a web player. Integrating ToS links and extra user interaction into that isn't trivial.

Re:The RIAA’s attack on YouTube-dl is not a DMCA 512 infring... by cookiengineer on Monday October 26, 2020 @04:24AM (#24893890)
As I said, it was a suggestion to remove that attack surface. If you come up with reasons why it is impossible to comply legally, then don't cry when the legal system f*s you up.

Legality is not an option. It is a necessity, by definition.

Re:The RIAA’s attack on YouTube-dl is not a DMCA 512 infring... by feanaro on Monday October 26, 2020 @04:53AM (#24894049)
I think there are essentially two problems here that decrease the signal-to-noise ratio in these kinds of discussions.

One is that people often mix political and legal matters in colloquial discussions of such topics. I frequently catch myself doing it too.

It is clearly not in the interest of most people for functionality that youtube-dl offers to be illegal. In fact, most of the time it isn't really illegal, in a de facto sense, since it is never acted upon and prosecuted.

However, sometimes a shady organization such as the RIAA acts upon this legal grey area and tries to push the needle in its own direction. When people then say "There is actually nothing wrong with this, this is definitely not illegal.", they are actually making a political statement without realizing. They are really saying: this shouldn't be illegal because it makes no sense that it is so. Since people actually hold all the power, this act makes this the reality in a way, but in order for this to completely materialize, the will of the people must first be focused so that it is reified into law.

The other problem is that the world is not the US and there are many jurisdictions where circumventing copyright protections and/or downloading a media file for personal use are not problematic at all. This fact also often seeps into the discussion, but sometimes only implicitly, so people often talk past each other.

Re:The RIAA’s attack on YouTube-dl is not a DMCA 512 infring... by cookiengineer on Monday October 26, 2020 @05:28AM (#24894279)
Overall, in this case you cannot assume to be right by relying on fair use, because fair use as a legal concept implies that there has to be a court decision in order to exist.

And all of the required measurements in order to apply fair use are almost impossible to prove, therefore it is an unlikely case to win in court.

I agree with the political sentiment in this discussion, and I have a biased opinion, too - but when talking about pushing the needle in a specific direction the maintainers of youtubedl did a bad job at doing so.

I mean, they have one of the most powerful industries siding against them, with nearly unlimited funding, so it is obvious that this was bound to happen and they should have been more careful.

Especially when they, as a project, cannot afford lawyers to fight potential battles in court.

That's why I described it as an unnecessary attack surface, because that's what it is.

Don't give them reasons to push the needle.

Re:The RIAA’s attack on YouTube-dl is not a DMCA 512 infring... by tveita on Monday October 26, 2020 @10:31AM (#24896522)
> they have one of the most powerful industries siding against them, with nearly unlimited funding

The music industry through RIAA are aggressive and may be punching above their weight class in litigation and lobbying, but remember that they are not really that large in the grand scheme of things. Certainly not in the class of juggernauts like oil, medicine etc.

https://www.riaa.com/reportcat/sales-revenue/ says the US music industry had $11.1 billion in revenue for 2019, a fraction of many large tech companies.

Re:The RIAA’s attack on YouTube-dl is not a DMCA 512 infring... by brokenmachine on Monday October 26, 2020 @11:20PM (#24904205)
Although this is fact is probably correct, and is mildly interesting, it has no relevance here because $11.1 billion is certainly a hell of a lot more than youtube-dl has to fight them in court.
Re:The RIAA’s attack on YouTube-dl is not a DMCA 512 infring... by GoblinSlayer on Monday October 26, 2020 @06:45AM (#24894684)
>one of the most powerful industries

That's just a reason to not pay them anything ever even you find it desirable, they are obviously incapable to handle the money, powerful and incompetent is just too malicious.

Re:The RIAA’s attack on YouTube-dl is not a DMCA 512 infring... by romanoderoma on Monday October 26, 2020 @02:18PM (#24899262)
> because fair use as a legal concept implies that there has to be a court decision in order to exist.

There are countries where fair use is always permitted unless a court decision prohibits it in that single case.

Re:The RIAA’s attack on YouTube-dl is not a DMCA 512 infring... by deelowe on Monday October 26, 2020 @10:55AM (#24896801)
How does an automated test suite that downloads a mere few seconds of data simply for the purposes of software testing constitute infringement and not fair use? We've allowed this to go way too far. There is no way the RIAA can prove any sort of damages from this. This is an abuse of the copyright system for the sole purpose of attacking a tool they are unhappy with. Given the RIAA's history, are we in any way surprised by this?

It is extremely important to recognize in all this that as a country formed during the enlightenment, the founders of the US understood the importance information sharing holds for a free society. Copyright is intended to protect against wonton plagiarism and illegal redistribution. Fair use provisions exist to prevent abuse of this system and allow for legal redistribution and derivative works. These concepts. Patents and copyrights are at their core, systems designed to encourage distribution, not restrict it. Groups like the RIAA, Disney, the MPAA, and others are chipping away at this.

Re:The RIAA’s attack on YouTube-dl is not a DMCA 512 infring... by TylerE on Monday October 26, 2020 @12:27PM (#24897893)
On what grounds do you think it would constitute fair use?

Fair use isn't some magic pixie dust that lets you do whatever you want with someone else's copyrighted material.

Fair use is a defense you can raise in court, _after_ you have been sued. It is not a presumptive right.

Re:The RIAA’s attack on YouTube-dl is not a DMCA 512 infring... by deelowe on Monday October 26, 2020 @01:29PM (#24898668)
> On what grounds do you think it would constitute fair use?

It meets at least 2 of the fair use factors:

1) the purpose and character of the use, including whether such use is of a commercial nature or is for nonprofit educational purposes;

2) the amount and substantiality of the portion used in relation to the copyrighted work as a whole;

> Fair use isn't some magic pixie dust that lets you do whatever you want with someone else's copyrighted material.

I didn't claim it was? I said this specific use seems to be a fairly good example. See above factors.

> Fair use is a defense you can raise in court, _after_ you have been sued. It is not a presumptive right.

Not correct. This has been challenged in court and it was found that fair use is a right and not simply a defense.

Re:The RIAA’s attack on YouTube-dl is not a DMCA 512 infring... by labawi on Monday October 26, 2020 @01:19PM (#24898571)
I was quite surprised by your claim, as I'm quite sure it is a right in EU and other countries. It seems you have been correct, though not any more. See quote[1]:

The U.S. Supreme Court has traditionally characterized fair use as an affirmative defense, but in .. (2015) .. U.S. Court of Appeals .. concluded that fair use was not merely a defense .. but was an expressly authorized right, and an exception to the exclusive rights granted to the author of a creative work by copyright law.

[1] https://en.wikipedia.org/wiki/Fair_use

Re:The RIAA’s attack on YouTube-dl is not a DMCA 512 infring... by gamblor956 on Monday October 26, 2020 @03:06PM (#24899901)
No, Tyler's still correct.

Fair use is still a defense to copyright violations, not a right. The 9th Circuit did not hold that fair use was a right in that case (the dancing baby case), only that a copyright holder must consider whether the alleged violation was potentially fair use before filing a lawsuit.

Importantly, the copyright holder is only required to consider whether the violation is fair use. They can still decide that it is not, and proceed with their lawsuit, with the only additional effort required being to state in their claim that they considered fair use and decided that the violation was not fair use.

(Note: while the 9th Circuit precedent is limited to the West Coast of the US, because most tech companies are HQ'd in CA or WA, so as a practical matter this case governs the internet.)

Re:The RIAA’s attack on YouTube-dl is not a DMCA 512 infring... by labawi on Monday October 26, 2020 @04:46PM (#24901192)
I'll quote from the first paragraph of court's opinion:

We hold that the statute requires copyright holders to consider fair use before sending a takedown notification, and that failure to do so raises a triable issue as to whether the copyright holder formed a subjective good faith belief that the use was not authorized by law. [2]

Note that the case was about abuse of DMCA takedowns by copyright holders if not considering fair use. Judge considers fair use as authorized by law, which I would interpret as right, not defense.

Another quote: We agree with the district court and hold that the statute unambiguously contemplates fair use as a use authorized by the law. [2]

Fair use is not just excused by the law, it is wholly authorized by the law [2]

From previously quoted wikipedia article, the paragraph continues:

"Fair use is therefore distinct from affirmative defenses where a use infringes a copyright, but there is no liability due to a valid excuse, e.g., misuse of a copyright." [1]

As for plaintiff considerations, IMO, of course plaintiff is required to argue it's standing, otherwise the case is thrown out, or in this case DMCA is abused. Normally the first bar is to make a coherent argument, then the court gets to decide whether your opinion is right, but that does not lower the defendant's rights to a "defense", even if they are a defense.

[2] Court's decision, hopefully: https://scholar.google.com/scholar_case?case=125676491686801...

Re:The RIAA’s attack on YouTube-dl is not a DMCA 512 infring... by gamblor956 on Monday October 26, 2020 @07:30PM (#24902750)
You mostly just restated what I said. The decision merely requires the copyright holder to consider fair use. It doesn't require them to accept that the alleged violation is fair use or even to do a detailed analysis:

In order to comply with the strictures of § 512(c)(3)(A)(v), a copyright holder's consideration of fair use need not be searching or intensive. We follow Rossi's guidance that formation of a subjective good faith belief does not require investigation of the allegedly infringing content

As for the quote, Fair use is not just excused by the law, it is wholly authorized by the law

The court is referring to 17 USC 107. Fair use exists in the context of whether something is a violation of copyright, in the same sense that self-defense is authorized by the law but is still a defense to criminal charges. Notably, I didn't call it an affirmative defense because it is not one.

Re:The RIAA’s attack on YouTube-dl is not a DMCA 512 infring... by romanoderoma on Monday October 26, 2020 @02:33PM (#24899466)
> On what grounds do you think it would constitute fair use?

Can you take a few seconds of a video and show it to a class of students for educational purpose?

Yes, you can

Can you do the same to test a software feature?

Yes, you can

The video is never used or displayed for its commercial value, but only to learn something from it.

Re:The RIAA’s attack on YouTube-dl is not a DMCA 512 infring... by ezoe on Monday October 26, 2020 @06:11AM (#24894482)
Then, you can't test that and former youtube-dl maintainer said in an interview that they download just few seconds of it and he believe it satisfy the fair-use but well, he think it should be removed to avoid issues if necessary.

https://news.perthchat.org/youtube-dl-removed-from-github/

Re:The RIAA’s attack on YouTube-dl is not a DMCA 512 infring... by panny on Monday October 26, 2020 @08:22AM (#24895333)
>If you come up with reasons why it is impossible to comply legally

It isn't illegal. Copyright protects the video/audio content, not the hyperlink. You would have to establish ytdl induces infringement. Grokster induced infringement. An automated test does not induce infringement.

Re:The RIAA’s attack on YouTube-dl is not a DMCA 512 infring... by curryst on Monday October 26, 2020 @10:22AM (#24896433)
I am not a lawyer, but my impression is that the distinction is important. If you can demonstrate that those links were chosen because there were no viable links that were free of copyright, rather than to encourage users to pirate things, it would strengthen a fair use argument.

Many people are pointing to those links as evidence that youtube-dl was intended to be a tool for piracy (under the assumption that downloading videos from YouTube is automatically a DMCA violation, which I'm not fully convinced of).

Re:The RIAA’s attack on YouTube-dl is not a DMCA 512 infring... by wolfgke on Monday October 26, 2020 @10:32AM (#24896531)
> Legality is not an option. It is a necessity, by definition.

Publishing the software anonymously on hidden servers (say, Tor onion Services) is not an option. It is a necessity, by definition, because the legal system will f*k you up.

Re:The RIAA’s attack on YouTube-dl is not a DMCA 512 infring... by bryanrasmussen on Monday October 26, 2020 @06:39AM (#24894659)
>As people have stated before, the whole point of those tests is that they test a specific kind of obfuscation that YouTube only uses for certain partner videos.

what is the purpose of this obfuscation? I mean if it is to hide the licensed content then legally speaking it doesn't sound like a great argument.

Re:The RIAA’s attack on YouTube-dl is not a DMCA 512 infring... by hhjj on Monday October 26, 2020 @07:01AM (#24894805)
I didn't dive in the code that much but I think it is a cost effective DRM, a protection you can't remove accidentally by renaming a file on your computer (ie you need to break it specifically even if removing said obfuscation is easy) and thus is protected by DMCA. In my opinion, it is the only argument in RIAA letter that is relevant.

So to have a "nice" youtube-dl, just remove those tests and more importantly the DRM removal (not sure it will benefit RIAA in long term though...)

Re:The RIAA’s attack on YouTube-dl is not a DMCA 512 infring... by ttt0 on Monday October 26, 2020 @10:32AM (#24896533)
It's not DRM. It can't be DRM, obfuscation is never a valid measure to restrict access. The purpose of obfuscation is the opposite, it makes sure that you can still for example run the obfuscated code, but it's just hard to understand what's going on.

The reality is that there is no "circumvention of protection measures", like RIAA is claiming. Youtube provides a javascript to decrypt their cipher, youtube-dl runs it just as intended and that's it, that's just what a normal browser does.

Re:The RIAA’s attack on YouTube-dl is not a DMCA 512 infring... by gamblor956 on Monday October 26, 2020 @03:10PM (#24899961)
It can't be DRM, obfuscation is never a valid measure to restrict access.

From a technical (code) perspective, obfuscation may be an inadequate protection. But legally, the DMCA only requires some technical measure, and obfuscation satisfies that requirement. It is irrelevant that youtube-dl waits until after Youtube decrypts the content, since the law as written is agnostic to the specific technical details of how copyright protection schemes are implemented.

Re:The RIAA’s attack on YouTube-dl is not a DMCA 512 infring... by GoblinSlayer on Monday October 26, 2020 @04:39PM (#24901107)
It looks like a measure against hotlinking, but not against execution of the script as intended, if that's what youtube-dl does. Is it what they call winedive or something else?
Re:The RIAA’s attack on YouTube-dl is not a DMCA 512 infring... by ttt0 on Monday October 26, 2020 @03:45PM (#24900439)
The content itself is not encrypted in any way as far as I know. They encrypt some kind of URL, to the actual content I think.

If this is truly the case, then every web browser that can access YouTube and supports JavaScript is guilty as well.

It's like distributing an encrypted video along with a python script that decrypts it and then saying that anyone who executes that script on linux is circumventing the copy protection. It's ridiculous.

Re:The RIAA’s attack on YouTube-dl is not a DMCA 512 infring... by gamblor956 on Monday October 26, 2020 @04:14PM (#24900822)
No, that's not how the DMCA or copyright works at all.

Youtube-dl will not win this argument based on technical details on how content is provided by a licensee to an end user. That's irrelevant to how copyright law works. The entire history of copyright law has been about preventing the unauthorized copying of protected works through technical means, so copyright laws are deliberately agnostic to how the technical details are implemented. In the case of the DMCA, all that is required is that some technical effort went into restricting the unauthorized copying of licensed content.

A lot of HN commenters have pointed out that the technical efforts were quite simple: obfuscating the name of the cache file in the browser's cache folder. But for legal purposes that is sufficient. And if it's not, then in the very near future Youtube will no longer store RIAA music videos (or possibly any content) in an accessible cache folder, and congratulations: youtube-dl (and its competitors) won't work at all for it's namesake site.

Re:The RIAA’s attack on YouTube-dl is not a DMCA 512 infring... by ttt0 on Monday October 26, 2020 @04:54PM (#24901267)
I mean, sure, but the argument is that it circumvents the protection measures. If you willingly give someone a dedicated tool that decrypts your content, I just don't understand in what world using it is considered to be a circumvention of protection measures.

I have no idea how American courts usually work, but what a given program actually does seems pretty relevant to me, if you allege something like that. But I guess that's just my opinion and the American law really is that fucked. Thanks for your answer.

Re:The RIAA’s attack on YouTube-dl is not a DMCA 512 infring... by gamblor956 on Monday October 26, 2020 @07:20PM (#24902667)
If you willingly give someone a dedicated tool that decrypts your content, I just don't understand in what world using it is considered to be a circumvention of protection measures.

No, they don't willingly give someone a dedicated tool that decrypts the content. Youtube simply does that for expediency.

The end result if youtube-dl wins on these technical access grounds is that Youtube will be forcedby the RIAA and other content licensors to stop caching content in accessible form. Youtube-dl will win the battle and lose the war.

Re:The RIAA’s attack on YouTube-dl is not a DMCA 512 infring... by ttt0 on Monday October 26, 2020 @08:02PM (#24903061)
The point is that they provide the tool for clients to decrypt the URL. And youtube-dl is a YouTube client, just like Chrome or Firefox is. If you have a key to a locked house, unlocking the door doesn't mean that you "circumvented the door" and went in through a window. I really don't know how else to put it.

I might be missing something, but I'm not sure what's the caching thing is about. YouTube tells you under what URL you can access the specific video or audio file, you download it and that's it. Whether the downloaded data is saved to a file or temporarily stored in RAM or whatever is up to the client. And the way everything is structured right now, I really can't see any other way they could do it without creating some kind of proprietary YouTube client.

Re:The RIAA’s attack on YouTube-dl is not a DMCA 512 infring... by VVertigo on Monday October 26, 2020 @10:53PM (#24904081)
> I really can't see any other way they could do it without creating some kind of proprietary YouTube client.

The next step is probably go with Widevine: but YouTube probably doesn’t want to go there unless it has to.

Re:The RIAA’s attack on YouTube-dl is not a DMCA 512 infring... by dagurp on Monday October 26, 2020 @09:47AM (#24896090)
Probably a dumb question but could they remove the tests and put them in a different repo?
Re:The RIAA’s attack on YouTube-dl is not a DMCA 512 infring... by omgwtfbyobbq on Monday October 26, 2020 @11:28AM (#24897206)
That's what I was thinking. It can optionally integrate youtube-dl-tests or whatever.
Re:The RIAA’s attack on YouTube-dl is not a DMCA 512 infring... by rpastuszak on Monday October 26, 2020 @05:44AM (#24894352)
> play YouTube videos from your favorite standalone player in better quality than using a web player

Mildly off topic and poor timing I guess, but can you recommend any?

Re:The RIAA’s attack on YouTube-dl is not a DMCA 512 infring... by MaxBarraclough on Monday October 26, 2020 @05:59AM (#24894425)
Re:The RIAA’s attack on YouTube-dl is not a DMCA 512 infring... by rvnx on Monday October 26, 2020 @02:15PM (#24899228)
Which is then in violation of YouTube ToS
Re:The RIAA’s attack on YouTube-dl is not a DMCA 512 infring... by MaxBarraclough on Monday October 26, 2020 @02:24PM (#24899332)
Any use of youtube-dl is in violation of the ToS, no?
Re:The RIAA’s attack on YouTube-dl is not a DMCA 512 infring... by GoblinSlayer on Monday October 26, 2020 @04:11PM (#24900762)
An existence of a github repo can't be in violation of YouTube ToS, because it doesn't use YouTube service.
Re:The RIAA’s attack on YouTube-dl is not a DMCA 512 infring... by pbhjpbhj on Monday October 26, 2020 @06:37AM (#24894644)
Surely Fair Use exceptions and DDA provide legal reason for downloading any media in USA. A particular download might lie outside those exceptions, but it's not a thing you can deduce from code, you need to know who is running out and what the context is.

This comment is my personal opinion, not legal advice, and in no way relates to my employment.

Re:The RIAA’s attack on YouTube-dl is not a DMCA 512 infring... by samoa42 on Monday October 26, 2020 @04:41AM (#24893987)
> youtube-dl isn't just a user facing tool

it sure is on my end

Re:The RIAA’s attack on YouTube-dl is not a DMCA 512 infring... by segfaultbuserr on Monday October 26, 2020 @04:50AM (#24894038)
The keyword here is "isn't just". It is, but there's more. For example, I use the commandline tool youtube-dl to download videos, but I sometimes also use mpv to play YouTube videos transparently (it invokes youtube-dl internally). The former use is user-facing, while the latter one is not.