YouTube-dl fork with additional features and fixes
github.com
github.com
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.)
YouTube itself is the lamest entity to be wasting time fighting youtube-dl because I doubt most creators want that protection. I can see why say, NBC.com or whoever doesn't want to be sued by the content owners for letting people download a show. But YouTube? The site that shows videos to anyone without a subscription? Interesting choice of where to focus your attention, Google.
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.
That's what automatic SkipMode is for!
https://explore.tivo.com/how-to/SkipMode
Unfortunately:
"Note: The SkipMode feature is available only on certain recorded shows; we hope to make it available for the most popular shows on the most popular channels watched by TiVo subscribers"
A limitation that 0.000% of viewers wanted.
> 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.
Analog seems pretty well settled in the US for the past ~40 years.
https://en.wikipedia.org/wiki/Sony_Corp._of_America_v._Unive....
But my point is actually a bit different. Weren't VCRs a good thing? Isn't it a bad thing that it is so much harder now to record internet TV than it was to record broadcast and cable TV in the 1980s-2000s?
Yes, but not always. There was a time when it was a new thing, and, when so, it was much argued.
> But my point is actually a bit different. Weren't VCRs a good thing? Isn't it a bad thing that it is so much harder now to record internet TV than it was to record broadcast and cable TV in the 1980s-2000s?
Yes, they were! Yes, it is! But my point wasn't to disagree with you on either of these points, just to observe that it's not that the content owners who went along with previous innovations are suddenly balking at this. Rather, my invocation of even long settled questions like analog recording was meant to point to the fact that content owners have always argued against use of their material that they didn't like, which was any use of their material that they didn't completely control and directly profit from.
I am reminded of the backlash against player pianos, and of Sousa's "The Menace of Mechanical Music" (and his accompanying copyright advocacy), etc. I think he probably did accurately predict a drop in amateur music performance (and sheet music sales), though the cat had been out of the bag since the advent of orchestrions, street organs (and organ grinders), and other technology dating back to the 18th century and probably earlier.
Previously I'd tried to record video and never succeeded, but it (currently) works full-screen on youtube!
Edit: Apparently the audio is just a limitation of QuickTime Player. So... Mac DVRs should work with youtube and possibly some other sites?
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.
Maybe I loaded the link to the ad but never downloaded it; the site didn't require this. Maybe I downloaded the ad but my user agent chose not to display it. Maybe it did get displayed, and my eyes chose not to look at it. It's the same thing either way: I, the user, did not consume that content. All of this content is offered for free on request. There is no moral obligation to consume one piece of content just because it is delivered alongside another.
You're doing the digital equivalent of saying "the pumpkins are right there for me to take, they were delivered outside for me to pick up and place in my car, for free. With no exchange of currency. I can just walk by the store and grab one and walk away".
In other words, you're ignoring both the legal contract (the terms of service) and the social contract (if everyone just grabs a pumpkin and walks away its obviously not going to be profitable and the company will stop offering it, we can only have the social 'nice thing' if everyone plays nice).
Just because its physically possible to do a thing doesn't mean the company consents to you doing it, or you deserve to do it.
You can easily litter. There's nothing stopping you. The ground is right there. You shouldn't though and you're rightfully called an asshole if you do.
If you applied your mentality everywhere, you would say "if you don't want me to litter in this National Forest, there ought not to be any businesses that sell disposable products within a 500 mile radius. It's not my fault you set this up for me to do so."
When reading a magazine, do I need to start from the first page and spend a minimum number of seconds staring at the multiple full-page ads before flipping to an article I might actually be interested in?
Do we need to make VHS tapes and DVRs illegal, if they allow the user to record only the parts of the program they're interested in, while skipping over the commercial breaks?
The pumpkins argument is a strawman: with physical goods, theft and loss of value has occurred. The legal owner of the unpaid pumpkins (the store) is now unable to sell them to a paying customer. When I choose to watch one video, but not another, I have not somehow taken value away from anyone. The original copy of the data is still on the server, ready to be delivered to the next viewer.
The littering argument is a strawman: when I choose to watch one video, but not another, I have not committed an act of vandalism. No person other than me can even be aware that this has transpired, unless I tell someone else about it. What I choose to focus my attention on affects me, and me alone. Littering affects others, making it a poor comparison.
Of course the endgame - which we already see - is embedded video ads and product placement. "Hey youtube I'm going to provide the 10 second answer you were searching for, but first let me tell you how to lose money fast with crapcoin..." I was going to say that music doesn't have that yet but I'm not sure that is the case.
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.
Why should they get a cut every time I view a video? If I watch a video saved to disk I use 0% of YouTube's infrastructure and cost the creator 0% in extra expenses.
Do I owe them a cut if I remember part of a video? Do I owe them a double amount of ad watching if I watch the video with someone else? Do they owe me a cut if they repeated a detail from a Wikipedia article I edited or web page I wrote? What about their college history professor that taught them a historical fact, do they need to go back and pay them when they reference it in their video?
For any bit of created media there are hundreds of uncredited and uncompensated second order contributions. The idea that someone making a YouTube video should get compensated every time I watch it is absolutely absurd. They're certainly not tracking down every second order contribution to the video and compensating them in turn.
If you buy a CD you pay for it one time. The artist doesn't get a nickel every time you play a track. You could put it on repeat for 50 years and they'll never get more than your up front payment. The only entity being paid is your power company for running that CD player for 50 years. If you powered the CD player with a solar panel and battery would you feel the utility company needs to be paid for your use of electricity despite not using any of their infrastructure?
You don't send a plumber a check every time you flush your toilet. If I watch a YouTube video once it's simply ludicrous to suggest I need to pay for a second viewing if I'm not using anyone's infrastructure but my own.
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.
Glitch?
Already posted here how I have it as part of my stack: https://news.ycombinator.com/item?id=37113339