Live data from Hacker News

Youtube-dl: Command-line program to download videos

github.com

141–150 of 253 posts

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

#141
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.

Sometimes the ads can be very inapropiate for a 4 year old. I ended up installing Adblock just for that.

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

#142

Little-known but very helpful feature of Youtube-dl: paste a URL to a playlist in, and it'll dutifully download every video in the playlist.

It's helpful to use

    -i, --ignore-errors
When doing that. By default, if a playlist contains a single video that's no longer available, youtube-dl will stop downloading the playlist when it hits that video.

When playing a youtube playlist in mpv with youtube-dl, sometimes --load-unsafe-playlists is needed. This is rare however.

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

#144

I used to use it frequently, but nowadays I just replace “youtube.com” with “hooktube.com” in the URL.

If you have ffmpeg, youtube-dl will let you mix and match any audio and video stream you choose, giving you a lot of options that hooktube simply doesn't. For instance you can combine a very small low quality video stream with a high quality audio stream, if you know you're mostly just going to be listening to the video.

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

#145

Earlier quoted context omitted.

Not everyone has fast enough bandwidth to watch live videos. Many people rely on downloaders to actually watch the video.

But they don't download the ads, so I doubt they matter very much as far as google is concerned

FWIW, youtube-dl can download from a ton of sites...

https://rg3.github.io/youtube-dl/supportedsites.html

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

#146

The strength of youtube-dl is that – contradictionary to its name – there are `extractors` for almost every streaming, video, tv or radio website: https://github.com/rg3/youtube-dl/tree/master/youtube_dl/ext... I always use it to rip TV or radio shows from German public stations

Reminds me of XBMC - Xbox Media Centre - (since renamed to Kodi) which runs on much more than Xbox (if it even runs on Xbox any more at all...)

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

#147
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...

Just for posterity and fun, I'll post this quick and hacky lua script I wrote to do the job for me some time ago.

https://gist.github.com/folknor/4d7da1168497eae5eaf404f20c98...

It requires a few lua modules and CLI tools, for example https://github.com/sharkdp/fd - like all the lua scripts I write for my own use.

Also, now that I was going to post it, I went through my system log and noticed it actually has problems if the youtube ID includes a dash (-), because I didn't escape the ID in the ytdl() call at the bottom. I'll leave that as an exercise for the reader.

And, of course, I removed the controversial feeds in the list before posting.

Anyway, it works fine for me - hopefully it can inspire others :-)

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

#148
post #128

Earlier quoted context omitted.

What constitutes "important and desirable media" is extremely personal and subjective, and the producer will not always be available to respond to your request. Here's an example of something that is very important and desirable to me but doesn't exist anywhere else on the internet. https://www.youtube.com/watch?v=Fd_p2B8ReqE

I agree with you overall, but the album actually does exist here: https://yadi.sk/d/SMKn5Af43LitRc . At 320 kbps, it's a little higher quality than YouTube. By the way, Diamond Harbour is fantastic. What other music do you love?

Well I’ll be. I’ve got a vinyl copy now so I’m in good standing quality wise.

You should check out the Growing Bin web store - there are some fascinating musical rarities and curios there. There’s some great stuff on Jamie Tiller’s label Music From Memory. His mixes (available on Soundcloud) are also excellent, as are those on the Red Light Radio Soundcloud. I could go on...

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

#149

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 use a shell wrapper for mpv that takes the URL from the clipboard when no arguments are given: mpv() { if [ $# -eq 0 ]; then env mpv "$(xsel -b)" else env mpv "$@" fi }

What if you have "&& rm -rf /" in your clipboard and forget about it?

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

#150
post #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.

I used this extension:

https://addons.mozilla.org/en-US/firefox/addon/open-with/

mpv can easily be configured to open full screen on a specific screen.

Post reply on HN