-2
I'd like to download YouTube videos by specifying a YouTube channel URL or playlist URL. I then want to convert the videos to MP3 and put them in a separate folder according to the playlist.
Is this possible? How can I do that?
-2
I'd like to download YouTube videos by specifying a YouTube channel URL or playlist URL. I then want to convert the videos to MP3 and put them in a separate folder according to the playlist.
Is this possible? How can I do that?
2
With youtube-dl
, you can download an entire playlist and extract the audio of videos to MP3 or AAC (.m4a
). It requires ffmpeg
to be installed on your system.
This is a script you can run in Bash, assuming you have ffmpeg
and youtube-dl
installed.
#!/bin/bash
if [ -z "$1" ]; then
echo "Usage: $0 <playlist-url>"
exit 1
fi
playlist="$1"
title="$(youtube-dl -s "$playlist" | perl -ne 'if (/(?<=Downloading playlist: )(.*)/) { print $1 }')"
mkdir -p "$title"
cd "$title"
youtube-dl -x "$playlist"
cd ..
Save it, e.g. under download.sh
, and make it executable with chmod +x download.sh
. Then, run it like so:
./download.sh http://www.youtube.com/playlist?list=PLs4hTtftqnlCxP-7nkw3iNep08rvg79YB
It'll leave you with just the audio files in a folder named like the playlist.
THANK YOUUU soo much, your solution worked like a lovely charm, only one thing (excuse my greed), I'm trying to download videos from a whole channel not just a playlist, is that possible ? – Dv_MH – 2013-09-15T23:47:48.507
Not that I'm aware of, at least not with youtube-dl
, sorry. – slhck – 2013-09-16T07:20:18.470
1
I don't think there is a piece of software out there that will do all that for you, but I have a alternate way of doing it.
Using Firefox, download this free add-on: Download Flash and Video :: Add-ons for Firefox
This is a plugin that will allow your browser to detect any Flash video being played and download it with a simple click.
Xilisoft is one of the best video converters I've ever used so far. You can pretty much convert anything to anything (format to format).
As far as the rest of the question goes, I'm sure you can figure it out. :)
Would be nice to explain how to download each video from a playlist without having to click through it – imagine there's a playlist with 40 videos. – slhck – 2013-09-15T17:53:02.573
@slhck, thanks for the edit, but honestly i have no idea what hes talking about with playlists. My answer will do most of the heavy lifting, as far as his playlist goes, i think hes looking for a magic program to do ALL of that for him with a click of a button, which doesn't exist, hes going have make his own play lists. – Sickest – 2013-09-15T18:04:47.167
The OP means YouTube playlists, which collect a number of videos: http://www.youtube.com/yt/playbook/playlists.html
– slhck – 2013-09-15T18:11:27.400Never seen one, nope. Why slhck, have you? if so.. where? – Sickest – 2013-09-15T18:16:11.947
Could be that you don't use YouTube frequently, but they're used quite often, especially for music videos or series. I'm sure you'll stumble across a few ones if you browse YouTube for a while. – slhck – 2013-09-15T18:29:46.490
1
You can use the program youtube-dl
, which runs on Windows, Linux and OS X.
This tutorial is for Linux mint. Here's a tutorial for other Linuxes or OS X.
Then, you can use the program ffmpeg and convert the downloaded file to MP3.
youtube-dl is not only fairly universal in the repositories of linux distros (at least, the ones aimed at people who are likely to want to download youtube videos), but it can work perfectly well on Windows, at least according to the youtube-dl website.
– evilsoup – 2013-09-15T17:33:00.287Can you please describe how ImageMagick can convert videos to MP3? I'd be very surprised if it had such capabilities. – slhck – 2013-09-15T17:56:10.230
I wrote imagemagick instead of ffmpeg. Sorry, was tired - which is an bad exuse. slhck, you did the right thing to edit my text and questioning me about my statement regarding imagemagick. – Peter G Holm – 2013-09-18T19:53:01.950
No problem. I was sure you meant something else :) By the way, I later found out that youtube-dl
could extract audio right away, as long as ffmpeg
is installed. See the -x
option. (Oh, and please note that you have to ping users with @slhck in order to have them receive a reply!) – slhck – 2013-09-18T19:58:18.587
3Is there anything you've already tried? What is your operating system? – slhck – 2013-09-15T17:51:05.750
Yes, I've tried wondershare, http://www.download-you-tube.com/youtube-downloader, but it doesn't suit my requirements. I have windows 8 pro 64-bit.
– Dv_MH – 2013-09-15T21:12:18.380