All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Download free YouTube videos (the legit version)
I saw we dumped a thread on downloading YT videos...I thought I'd share a legit method that I've used.
It's not a stunning revelation: youtube-dl
Something like this:
$ # discover supported formats $ youtube-dl -F 'some youtube url' $ # download one format and specify a file name $ youtube-dl -f 18 -o 'jarland dances.mp4' 'some youtube url' $ # download a playlist $ youtube-dl -f 18 'some youtube url'
youtube-dl has been pretty bulletproof for me. I'm still an iPod Classic man, and nearly every week I dump some URLs in a script and have it download them for syncing.
Some notes:
It handles playlists quite well - just give it the playlist URL and it'll suck down all videos in the playlist. Unfortunately, the sequence isn't preserved (e.g., they'll all just be named the video name, not 1, 2, 3, etc.)
Your distro's version of youtube-dl is worthless. It's sensitive to HTML changes, so if a download fails, your first step is to either run youtube-dl -u (update) or manually get the latest from github. Your distro's youtube-dl is hopelessly out of date.
There isn't a magic "format = mp3" flag, but it's trivial to download in one of the audio-only formats and run it through a converter.See below
Been a great tool for me...enjoy!
Comments
I've been using youtube-dl too, mostly for things that I cant' buy in the United States because of arbitrary restrictions. You'd think corporations would be more interested in giving me a way to give them money for stuff that I want to buy, but hey, welcome to 2017.
youtube-dl --extract-audio --audio-format mp3 --audio-quality 0
If you're a Youtube Red subscriber, newer versions can download the subscription versions of things too.
Holy fuck next time a tutorial how to use "apt-get".
+1 for youtube-dl. It is being actively developed and receives constant updates with new features/bug fixes.
Plus it can pull videos from a fuckton of video sites.
Edit: just realized it supports your favorite site @raindog308, xhamster. No wonder you like it so much :P
Thanks @Damian - I didn't know about --audio-format mp3. I suspect it only works for some vids i.e., if they use that codec because I don't think youtube-dl will convert for you - ?
That's why one of my sock puppet accounts was on here asking for 600TB storage...
If you have ffmpeg/avconv installed, and you use the "audio-quality 0" switch, youtube-dl will automatically download whatever will have the best audio quality, then convert it to mp3 for you. Example:
$ youtube-dl --extract-audio --audio-format mp3 --audio-quality 0 https://www.youtube.com/watch?v= oiKj0Z_Xnjc [youtube] oiKj0Z_Xnjc: Downloading webpage [youtube] oiKj0Z_Xnjc: Downloading video info webpage [youtube] oiKj0Z_Xnjc: Extracting video information [youtube] oiKj0Z_Xnjc: Downloading js player vflZQAwO8 [youtube] oiKj0Z_Xnjc: Downloading MPD manifest [download] Destination: Stromae - Papaoutai-oiKj0Z_Xnjc.webm [download] 100% of 3.84MiB in 00:00 [ffmpeg] Destination: Stromae - Papaoutai-oiKj0Z_Xnjc.mp3 Deleting original file Stromae - Papaoutai-oiKj0Z_Xnjc.webm (pass -k to keep)
My alias for archival-quality downloads, with all metadata:
For beginners
Youtube-dl webui
Rapidleech YouTube plugin...though less powerful than youtube-dl
Nice share thanks man...
Doesn't YouTube block IPs using youtube-dl? Is there some rate limit or something? Pretty sure I've had people who got IPs basically blocked completely for using it for a while.
Youtube-dl is great, but mostly I just use it because Sinusbot uses it to pull music for me...
Not as far as I can tell. I'm not a super heavy user but I've used it from a few static IP addresses for quite a long time.
I've downloaded entire channels (2000+ videos, sometimes over 500GB for a single channel) from my home IP, and I've never been blocked. Worst I've seen is specific videos slowing down to a crawl, but that seems to be down to specific servers on YouTube's end having issues.
what the hell is that
Dunno. Must be for the Linux gods
4K downloader
youtube-dl is the proper way of using youtube and other such sites.
Just download it from the website and update if from time to time: sudo youtube-dl -U
We should send some love towards the person that develops it.
https://rg3.github.io/youtube-dl/donations.html
some say it's a competitor to "yum install"
The hell you say!!!!!oneone!!11!
tbh, 99% of people know what youtube-dl is on this forum.
For everyone else there is:
what about ssyoutube? just add "ss" in front of youtube like ssyoutube.com/watch?blabla and you're good to go