I was trying to decide if I should do a recurring blog post every week devoted to some subject, so I guess I'll try an Terminal tip-related post every Monday!
Get all the audio you want off Youtube:
Before you start this trick, you need to download a nifty little script that'll download Youtube videos:
Youtube-dl
Also be sure you have ffmpeg.
First, find the youtube video you want.
For example, let's use this link to the song Americana, by Offspring.
now that we have the video we want, type into terminal
youtube-dl http://www.youtube.com/watch?v=OU-vs5YtH1Q
this will download the video to your current location (which by default is your home folder)
now that we have it downloaded, now it's time to convert it to an MP3!
Type into terminal:
ffmpeg -i OU-vs5YtH1Q.flv -f mp3 Americana.mp3 (I would personally rename the video to something simpler before converting, like song.flv)
And after all of that, you should have the song you want. I would probably use this to get any good sound bytes I find on Youtube, but I guess that's just me :)
No comments:
Post a Comment