Live data from Hacker News

Youtube-dl: Command-line program to download videos

github.com

61–70 of 253 posts

Re: Youtube-dl: Command-line program to download videos

#61

I feel like the first rule of youtube-dl is not to talk about youtube-dl. I keep expecting Google (and all the other sites it works on) to start taking active measures to disable it. At some point YouTube is going to require an EME module to play even "free" videos.

12 years ago i built google video downloader as a way to help me learn C#. it took about a month after the release for google to defeat my basic scraping. I did a few iterations to circumvent their changes, and then they changed tact, and erased the project from google. they only let it back into the search results after i stopped maintaining it.

https://sourceforge.net/projects/gvdownloader/files/stats/ti...

Re: Youtube-dl: Command-line program to download videos

#62

The most useful part of youtube-dl is that it works with mpv, so you just pass a URL on the command line and MPV just plays the video in it. I have two monitors, so I put a button on my Firefox toolbar to launch MPV with the current URL, and configured MPV to start fullscreen on the second monitor immediately and quit when done. It's made my video-watching experience on the web an order of magnitude better.

> I have two monitors, so I put a button on my Firefox toolbar to launch MPV with the current URL, and configured MPV to start fullscreen on the second monitor immediately and quit when done. It's made my video-watching experience on the web an order of magnitude better.

How did you do that? I would really like to have that setup also.

Re: Youtube-dl: Command-line program to download videos

#63
post #58
post #56

Earlier quoted context omitted.

That would be sad, but I'll ditch Youtube for good if they'll introduce this garbage.

YouTube has the network effect just like every other big provider. You can’t ditch it unless the content you want to see has decided to move elsewhere.

Important and desirable media is almost always available from more than one source. If not, then Sometimes, it's as simple as asking the producer to upload to your preferred streaming endpoint.

Re: Youtube-dl: Command-line program to download videos

#64
post #53
post #48

Earlier quoted context omitted.

A lot of anime/game music is not on any streaming service; so youtube-dl is the only option.

It's especially bad with games because music gets updated and changed all the time. Official soundtracks often leave tracks out, take for example Civilization V which has an official soundtrack with like 30 tracks, when the game itself has more like 300. It's up to avid players of the game to compile and document the full collection. Game developers by and large don't give a shit if the musician's work is preserved.…

> Game developers by and large don't give a shit if the musician's work is preserved. If they don't make an effort then as far as I'm concerned they're forfeiting their right to take issue with the morality of downloading their game's music.

That's a very slanted view of the situation. The game developers may not have rights to distribute all of the music as a soundtrack (they would have to have rights to distribute in the context of the game).

Re: Youtube-dl: Command-line program to download videos

#65
post #7

When I want to download a video from a site I always think “it would be great if youtube-dl worked with this niche website, but I think it’s too specific”, then I try and it works, I’m always surprised.

It's a pretty extensive list: https://github.com/rg3/youtube-dl/tree/master/youtube_dl/ext...

Re: Youtube-dl: Command-line program to download videos

#66
post #18

Since letting kids alone on youtube, is clusterf* of a nightmare, this is a godsend tool to archive approved channels to a local media server. This config file (with separate channel-list- and archive-files) template found here, has proven quite useful to me combined with some minimal batch job: https://www.reddit.com/r/DataHoarder/comments/858ny5/my_yout...

Another option is to embed youtube videos on your own web page (hosted locally or whatever). You don't need to download the actual videos, the ads tend to be banners (not ones that make you wait to view it). Works great for my 4 year old.

Oh, nice one!

Re: Youtube-dl: Command-line program to download videos

#67

The most useful part of youtube-dl is that it works with mpv, so you just pass a URL on the command line and MPV just plays the video in it. I have two monitors, so I put a button on my Firefox toolbar to launch MPV with the current URL, and configured MPV to start fullscreen on the second monitor immediately and quit when done. It's made my video-watching experience on the web an order of magnitude better.

If you hold down shift, you can drag-and-drop youtube links into a running mpv instance to add those links to the current playlist.

Re: Youtube-dl: Command-line program to download videos

#68

Youtube-dl works with soundcloud as well, which is a useful feature. It can even download playlists and albums. It also has support for downloading images from Flickr, to an extent.

Youtube-dl works with nearly everything. It's incredibly versatile.

Re: Youtube-dl: Command-line program to download videos

#69

The elephant in the room is obviously that this is probably illegal under DMCA.

If by "elephant in the room" you mean "something nobody gives a single shit about." Seriously, why should I care?

Should File->Save Page As... be considered the "elephant in the room" when Firefox is discussed?

Re: Youtube-dl: Command-line program to download videos

#70

I've been using this ever since youtube dropped flash support. Early this year youtube began throttling certain file formats and qualities. The way around this is to call youtube-dl so that it uses an external downloader like, --external-downloader aria2c --external-downloader-args "-j 8 -s 8" I wrap the entire thing up in some shell script as a .bashrc function which takes a URL, touches the downloaded file (since y…

When I tried using aria2 to work around the throttling you mentioned, I noticed that simply using aria2 at all (no parallelism with -j/-s) fixed the download rate. The primary difference was the User-Agent header; the standard youtube-dl User-Agent[1] was throttled, but "aria2/1.30.0" was full speed.

The throttling also seemed to depend on which server was sending the file; a bunch of recent uploads were throttled, while an obscure video from 8 years ago with The throttling problem seemed to go away after a few weeks, and returned again for a few hours a . Is it possible the "throttling" was actually some type of bug or configuration error in Google's network and/or data archives?

[1] https://github.com/rg3/youtube-dl/blob/master/youtube_dl/uti...

Post reply on HN