News for hackers. Stuff that matters.
Re:Music Company Asks Google to Delist 'YouTube Downloader' ... by shams93 on Sunday May 28, 2023 @03:39PM (#36107056)
Sounds like the don't understand that official music and video content like rental films are DRMed - youtube-dl and other downloads error out when trying to download DRMed content.
Re:Music Company Asks Google to Delist 'YouTube Downloader' ... by codetrotter on Sunday May 28, 2023 @04:01PM (#36107228)
> youtube-dl and other downloads error out when trying to download DRMed content

Can you give an example of a YouTube video where this happens?

Take for example https://www.youtube.com/watch?v=E0ozmU9cJDg

That's a video of a song from the channel of the band that killed the Napster P2P network and software back in the day.

I hear that there is no problem downloading that song with yt-dlp.

Likewise, https://www.youtube.com/watch?v=_FTATjvCJ-Q

That's a video with music from a YouTube channel owned by one of the most copyright lawyered cartoon companies in the world. They successfully made videos of a cartoon mouse stay protected after it was supposed to enter public domain.

Yet, I hear that this video is also able to be downloaded without problem with yt-dlp.

So when these videos are able to download without problem, idk what public videos on YouTube would not be able to be downloaded with yt-dlp.

Re:Music Company Asks Google to Delist 'YouTube Downloader' ... by antasvara on Sunday May 28, 2023 @04:20PM (#36107387)
The piece mentioning "rental films" leads me to believe they're referring to the paid content available on YouTube. Much like Amazon Video or other sites, YouTube allows movies to be rented or purchased. These are unable to be downloaded via programs like yt-dlp.

This is not in reference to copyright. It's in reference to DRM, which isn't present on public videos (but seems to be present on purchased and rented videos).

Re:Music Company Asks Google to Delist 'YouTube Downloader' ... by netrus on Sunday May 28, 2023 @04:11PM (#36107311)
Presumably those only accessibly with YouTube Music or for a fee (movie rentals).
Re:Music Company Asks Google to Delist 'YouTube Downloader' ... by codetrotter on Sunday May 28, 2023 @04:13PM (#36107340)
Idk, I don't use YouTube Music.

Parent commenter said:

> Sounds like the don't understand that official music and video content like rental films are DRMed

And that's what I was responding to. Not YouTube Music.

There are plenty videos with music from the original distributors, like those I linked above, on regular YouTube, and which as mentioned will be able to download with yt-dlp.

Re:Music Company Asks Google to Delist 'YouTube Downloader' ... by EGreg on Sunday May 28, 2023 @04:03PM (#36107249)
All those other ones you hadn’t mentioned. The true scotsman videos
Re:Music Company Asks Google to Delist 'YouTube Downloader' ... by kmeisthax on Sunday May 28, 2023 @04:38PM (#36107554)
The official music industry position is that all YouTube content is DRMed, whether or not it invokes an EME decryption module, because the URLs are obfuscated. They've been trying to get YouTube downloaders banned for years now on that basis.
Re:Music Company Asks Google to Delist 'YouTube Downloader' ... by bitwize on Sunday May 28, 2023 @05:02PM (#36107754)
The URL obfuscation probably counts as an "effective" copyright protection measure under the DMCA. YouTube download sites and tools are thus illegal.
Re:Music Company Asks Google to Delist 'YouTube Downloader' ... by themerone on Sunday May 28, 2023 @05:46PM (#36108105)
As long as it can be copied from the URL bar, there is no copy protection.
Re:Music Company Asks Google to Delist 'YouTube Downloader' ... by jffry on Sunday May 28, 2023 @06:03PM (#36108225)
The URL of the actual media files is different than the video ID in the URL
Re:Music Company Asks Google to Delist 'YouTube Downloader' ... by bitwize on Sunday May 28, 2023 @06:10PM (#36108269)
There's some obfuscation going on fetching the actual audio and video, the URLs to which are never shown to the user. Those URLs are decoded with a bit of JavaScript. Youtube-dl (and yt-dlp) contain enough of a JavaScript interpreter to evaluate that JavaScript in order to decode the URL.

Since the purpose of the obfuscated URLs and JavaScript is to gate access to the video and audio through a browser hitting the YouTube site where they can't be saved, this scheme constitutes an "effective" copy protection measure. Bypassing this gating mechanism is thus circumvention, illegal under the DMCA.

Re:Music Company Asks Google to Delist 'YouTube Downloader' ... by aprilllll on Sunday May 28, 2023 @06:51PM (#36108556)
Surprisingly enough, it's even simpler than that. You can trivially access a direct URL that serves the entire video or audio (they're served as different files).

Just open up DevTools, look for requests to googlevideo.com, find the request with the video or audio (i.e. content-type response of either video/mp4 or audio/webm), copy the entire request URL, remove the range parameter entirely, open the link, and voila!

Re:Music Company Asks Google to Delist 'YouTube Downloader' ... by contravariant on Sunday May 28, 2023 @07:23PM (#36108771)
That's the same thing. The only difference is which user agent you run the javascript in.

The lie that Google et al. try to perpetuate is that if your user agent fails to put their interests over yours then it is illegal.

Re:Music Company Asks Google to Delist 'YouTube Downloader' ... by varenc on Sunday May 28, 2023 @08:14PM (#36109118)
Those URLs are temporary and locked to the IP that fetched them. You can't effectively share the URLs since they're generated uniquely per-client. Not sure if this changes anything though.

edit: some quick testing confirms these URLs are temporary, but they don't appear limited to the IP that generated them. Your IP is embedded in the URL though, and you can't modify it without breaking the URL, so I'm guessing some IP limits kick in at some point.

Re:Music Company Asks Google to Delist 'YouTube Downloader' ... by 2OEH8eoCRo0 on Sunday May 28, 2023 @08:14PM (#36109122)
Couldn't you claim anything digital is obfuscated since it must be encoded/decoded somehow?
Re:Music Company Asks Google to Delist 'YouTube Downloader' ... by pests on Sunday May 28, 2023 @08:23PM (#36109186)
I have a browser where I can right click on any video and download it locally.

I do not interact with obfuscated URLS, JavaScript, opening any kind of console or dev tools, and no source code.

I save it just as I would save a photo or a pdf.

How is this circumvention? I'm using a feature offered by my browser and using it in a way intended by the creators. The media files are already on my computer (memory or storage, who cares, its been copied already) I am just renaming some metadata like its directory and filename.

Re:Music Company Asks Google to Delist 'YouTube Downloader' ... by biofunsf on Sunday May 28, 2023 @08:38PM (#36109288)
This thread is about YouTube. But the videos you mentioned are fine and no one would call right clicking on a video and downloading it a DRM violation.

But I'm quite confident you can't view or download YouTube videos if your browser doesn't run JavaScript. They require the client evaluate intentionally obfuscated JS in order to determine the video URL signature. Whether this counts as DRM or not, I don't know, and I hope it doesn't, but it's clear that YouTube is making it difficult intentionally.

Re:Music Company Asks Google to Delist 'YouTube Downloader' ... by pests on Sunday May 28, 2023 @10:35PM (#36109943)
Yes, this is a thread about YouTube. Why are we confirming this?

I meant no JavaScript as in me meddling with the js.

Re:Music Company Asks Google to Delist 'YouTube Downloader' ... by biofunsf on Monday May 29, 2023 @07:09PM (#36119181)
Oh apologizes! When you said you don't interact with JavaScript I thought this meant you didn't run JS but I see your point now.

You can right click on YouTube videos to download them? That sounds slick! How did you set this up? Is something YouTube-specific happening or is it generalized and just happens to work on YouTube? That's totally something I'd like.

I have no idea what that means legally, but to me it certainly supports the argument that doing something so simple clearly isn't bypass DRM/violating the DMCA. (though I'm sure the media industry would argue that whatever browser/extension making this possible is guilty of defeating DRM. )

Re:Music Company Asks Google to Delist 'YouTube Downloader' ... by DaveExeter on Sunday May 28, 2023 @08:40PM (#36109305)
>I have a browser where I can right click on any video and download it locally.

What browser is that?

Re:Music Company Asks Google to Delist 'YouTube Downloader' ... by biofunsf on Sunday May 28, 2023 @09:12PM (#36109488)
Not the parent, but most any browser should support this for basic videos. And with JS disabled I think it's only basic videos you'll see.

That is, any <video> HTML element can be right clicked and downloaded, at least in Chrome and Safari where I tested. Interestingly this even works when for `<video controls controlslist="nodownload" ...>` elements where the developer tries to prevent downloading. (in Chrome that removes the download option from the video player's controls, but not from right-click)

Re:Music Company Asks Google to Delist 'YouTube Downloader' ... by somat on Sunday May 28, 2023 @10:24PM (#36109890)
Chrome is a user agent. a program with the ability to take the users request, download a video and then show it.

Firefox is a user agent. a program with the ability to take the users request, download a video and then show it.

youtube-dl is a user agent. a program with the ability to take the users request and download a video

Youtube has no authentication, nothing is being circumvented.

Re:Music Company Asks Google to Delist 'YouTube Downloader' ... by eek2121 on Sunday May 28, 2023 @10:35PM (#36109951)
One could argue that browsers themselves violate the so called "spirit of the law" because they interpret javascript.

Browser names/standards/whatever are not codified in law. youtube-dl is no different than Google Chrome in this regard. Good luck proving otherwise. If the video had legitimate copy protection and used encryption, etc. I could understand it, but the videos can be pulled by anything that can interpret Javascript. Ask Oracle and Apple how those lawsuits turned out.

Re:Music Company Asks Google to Delist 'YouTube Downloader' ... by varenc on Sunday May 28, 2023 @08:10PM (#36109098)
I think it's a bit of an understatement to say that YouTube video content URLs are just obfuscated. I don't think this is referring to the youtube.com URLs of public videos, which are public so not "obfuscated", but the underlying URLs that serve the raw video data to the client. These are temporary and generated per-client.

While only paid content and some special videos use the serious DRM that requires browser extensions like WideVine, all YouTube videos require a pretty complex process to download.

Famously, yt-dlp has its own minimal JavaScript interpreter which is needed to evaluate the special per-client JS script that YouTube provides so the client can determine its actual video download URL. The end of the process does just result in figuring out an obfuscated URL but that URL is temporary and limited per-client. Here's the yt-dlp JS interpreter (though I don't know in which situations it actually needs to use it): https://github.com/ytdl-org/youtube-dl/blob/master/youtube_d...

Re:Music Company Asks Google to Delist 'YouTube Downloader' ... by gwd on Sunday May 28, 2023 @05:16PM (#36107868)
FWIW I've never seen this happen. In fact, I've handed Youtube Music URLs to yt-dlp and so far haven't had any problems downloading the content. (Admittedly I don't do this often; but at least one of the things I downloaded was a soundtrack by Disney, whom I'd expect to be more strict about this sort of thing.)
Re:Music Company Asks Google to Delist 'YouTube Downloader' ... by jeroenhd on Sunday May 28, 2023 @06:00PM (#36108210)
youtube-dl will error out. yt-dlp works differently, and works with more videos.

I believe youtube-dl simulates the browser Javascript client and yt-dlp emulates the Android client, though I'm not 100% sure of the modern workings.

Re:Music Company Asks Google to Delist 'YouTube Downloader' ... by midoridensha on Monday May 29, 2023 @12:06AM (#36110542)
youtube-dl is not really developed any more. yt-dlp is the program everyone should be using.
Re:Music Company Asks Google to Delist 'YouTube Downloader' ... by mvdtnz on Sunday May 28, 2023 @08:54PM (#36109390)
I have a script that uses ytdlp to download every item on a Youtube Music playlist I maintain so sync mp3's to my watch. I have never seen it error out from DRM.