Easily extract audio from any YouTube video
Monday, February 19, 2007
There are times when you come across a YouTube video that has a soundtrack that you just must have. You can download the video... but then you still have the video attached. What if you want just the audio? Well, if you're running Linux, ffmpeg has come to your rescue. Using any YouTube ripper, first download the video. Make sure it saves in .flv format. After that we can simply run the following command:
This will give you just the audio of the video in nice mp3 format. From there, you can encode it as you wish.
Another method you may want to use, utilizing mplayer, is:
This gives you a file called stream.dump in the original audio format. Rename the file as you wish.
Enjoy!
ffmpeg -i input.flv -f mp3 -vn -acodec copy output.mp3
This will give you just the audio of the video in nice mp3 format. From there, you can encode it as you wish.
Another method you may want to use, utilizing mplayer, is:
mplayer -dumpaudio [name of file].flv
This gives you a file called stream.dump in the original audio format. Rename the file as you wish.
Enjoy!
4
Comments:
That is a very useful idea. Thanks
Great! This was just what I was looking for! Thanks!
I'm using that kind of commands and I provide a tool to extract audio from youtube (or any other) video here:
http://vmeste.fr/data/svs/
I hope that'll be useful.
Gaetan
http://vmeste.fr/data/svs/
I hope that'll be useful.
Gaetan
Thanks!!
commented by Dave, 9:58 PM