Friday, February 03, 2012

Another method to extract music from YouTube

Previously I created a post that described how to extract music from YouTube using a variety of Linux tools. I am getting ready for a road-trip and needed some theme music (Mustang Sally, Slow Ride, etc...), but didnt have a Linux system available. So here is another method using Windows tools.

DISCLAIMER: I am not fully aware of the legality of this. I am assuming that it is OK since I am not doing any hacking or breaking of cryptography, but your mileage may vary.

Tools needed

Step 1: Find the video you want
This is the easy part, just search YouTube for the video you want. 
It may be a good idea to listen to it before hand to ensure it is the version you want. There are a lot of remixes and covers by other bands (professional or otherwise). You wouldn't want to download a heavy metal song and find out later that its a polka remix

Step 2: Download the video
Use Free YouTube Download to download the video to your computer. I found the default quality and format settings to work fine.

Step 3: Extract the audio

Using VLC, walk through the Convert process to extract the music as an MP3.
If you have a lot of files, you can use the following command to bulk convert them.
for %i in (*.mp4) do "c:\program files\videolan\vlc\vlc.exe" "%i" --sout #transcode{acodec=mp3}:duplicate{dst=std{access=file,mux=raw,dst=\""%i.mp3"\"},select=\"novideo\"} vlc://quit

No comments: