187 points · by bookofjoe · 3y ago · 113 comments
https://github.com/yt-dlp/yt-dlp/tree/master/yt_dlp/extracto...
Admittedly, the fork would have been better with "really-dl" but here we are
Also, due to the GitHub file list truncation, you may be happier linking to the more legible(?) https://github.com/yt-dlp/yt-dlp/blob/2023.07.06/supportedsi...
[1] https://github.com/yt-dlp/yt-dlp/blob/master/Collaborators.m...
Yt-dlp – A YouTube-dl fork with additional features and fixes - https://news.ycombinator.com/item?id=28319624 - Aug 2021 (332 comments)
> First, youtube-dl does not infringe or encourage the infringement of any copyrighted works, and its references to copyrighted songs in its unit tests are a fair use. Nevertheless, youtube-dl’s maintainers are replacing these references. Second, youtube-dl does not violate Section 1201 of the DMCA because it does not “circumvent” any technical protection measures on YouTube videos.
https://www.eff.org/deeplinks/2020/11/github-reinstates-yout...
(Where "512" and "1201" refer to the specific portions of US Code Title 17 copyright law regarding DMCA provisions for infringement safe-harbour protections to service providers and circumvention of copyright controls, respectively.)
I'd pointed this out at the time:
<https://news.ycombinator.com/item?id=24903429>
<https://news.ycombinator.com/item?id=24888234>
<https://news.ycombinator.com/item?id=24875684>
<https://web.archive.org/web/20201025175239/https://joindiasp...>
It’s just poorly maintained so yt-dlp has been accepted by the community as its natural successor.
0: https://github.blog/2020-11-16-standing-up-for-developers-yo...
The EFF has claimed that there is no DMCA violation since there is no copyright circumvention.
Did it change something that made it not violate fall into the same "this violates DMCA" trap that youtube-dl fall into, so that it's not susceptible to the same takedown?
Because that's interesting and worth learning about.
A copyright holder abused the DMCA process to take it down the first time.
I like to make fun of YT as much as anyone, but even this "everything, all the time should be mine" is a farcical concept to me.
Maybe, if you weren’t an RIAA shill, we could have a productive conversation.
Has the copyright system been corrupted by major corporate players? Of course it has. However, throwing it out to have no concept of copyright is an insult to those that do create content without being those corporate players. It takes time and effort and a not insignificant amount of money to bring content to the world. Removing any protections from those creators to be able to monetize their work product is just infantile tantrum throwing.
I put technical videos on Hardlimit on PeerTube, because Google's ads are annoying and I don't need "discovery" or "followers". The videos are linked from discussions and papers. This works fine, but is not the usual use case, where people are seeking fame, fortune, or at least attention.
Asking you to pay them for the service and the creators that created the video isn't really fighting you is it?
It's only "fighting" freeloaders.
(I'm asking because I've never been a paying user of Youtube.)
So much effort that downgrades the experience for paying users.
I imagine Tivo-style ad-skipping isn't a feature either.
Google doesn’t make money from ads if you download a video outside of their player.
I pay for YouTube premium and can download a video to my phone in the app. It’s not perfect but it works.
I once spent some weeks maintaining a handful of extractors just for myself and this is definitely much better.
Also if you're in (or even visiting) some (most?) countries this feature doesn't work. You don't get any refund either.
In any case, a download button is basically like a DVR. It is also an obvious feature that
- is easy to add
- is logically part of any video hosting site
- is wanted by most users
DVRs may be legal according to the law, but youtube and other sites spend an extraordinary amount of effort to make it hard for users to record the videos they are watching. It's basically a technologically enforced ban on video recording for the 99% of users who can't easily use youtube-dl or other tools.
While YT might originally have started with the Yous of the world creating content, it has greatly evolved from that where very professional types are releasing to it. Of course YT loves that as it means much more interest from users to their site. However, you know that concessions had to be made to convince music labels to release their content on the platform. We all know what those mean.
> In any case, a download button is basically like a DVR.
> DVRs may be legal according to the law …
The recordability of analog video (in the sense of whether it's OK to do so, not whether it is physically possible—although there was that useless tab on videocassettes), and the acceptability of using a DVR, have not always been settled subjects. To the extent that such things can be quantified, I'd suspect that the amount of conflict over them was roughly comparable if you account for (1) the increased number of people in a position to have an informed opinion and (2) the increased visibility of conflict.
Edit - the parent wildly edited their comment so mine no longer makes sense.
Most frequently I do this because I am analyzing the audio, and it's hard to reliably seek in the web player; my offline tools are much better at this task.
I guess the one angle I can see is that by watching the local copy, you aren't seeing any ads that might be on the page/video. But the website could embed ads into the downloaded video.
Really, how is this any different than recording TV on a VCR (or DVR)?
Each time a viewer watches a video a monetised channel makes a little more money. This money either comes from ads or Youtube Premium fees (Premium viewers are worth significantly more than free viewers).
Programs like yl-dlp bypass this - non-premium users can download ad-free videos contributing a single view to a video and consume that content any number of times. Youtube no longer makes advertising revenue per view, and content creators no long get their cut.
None of this is the case in TV, where ad revenue must be based on metrics other than straight-up view count, which cannot be counted meaningfully.
> But the website could embed ads into the downloaded video.
Many video creators do embed their own ads, but revenue from these ads are often based on view counts maintained by Youtube as well.
It really isn't. Except that we don't have easy-to-use DVRs for internet TV the way we used to have easy-to-use VCRs/DVRs for broadcast and cable TV.
And YouTube Premium already offers a Download button. It downloads it in the exact same format as they send it to your device in - m3u8 parts.
When using yt-dlp, I get a .webm file, and when asking for audio only using `-x`, I get an .opus file. Is there any reason for this?
You can customize which format to download by doing first:
yt-dlp -F <url>
Check what numbers are there, and then download the formats you want.
You can customize both the video format & rate, and same for sound, by using
yt-dlp #+# <url>
Where the first hash is the id of the video stream, and the 2nd hash is the id of the audio id.
Take into account that you'd probably need also ffmpeg available on the command line for this; that if you "mix" containers (Say, a webm video and an m4u audio stream) you-ll end up with an .mkv container; and finally, that all of the downloaded streams are themselves containers (.m4u, mp4 & webm).
He's complaining about getting an .mkv in the first place, so this seems unlikely to solve his problem.
My guess would be that yt-dlp is giving you whatever file format it finds, with no editorializing. The default is just to go with "best quality" available. So "Is there a reason for this?" is likely a better question for whoever maintains the site(s) you're downloading from.
Already posted here how I have it as part of my stack: https://news.ycombinator.com/item?id=37113339