While using lUbuntuLinux machine, I found myself needing to “extract” or pull out the audio from a video in FLV format. The video happens to be a YouTube video. For the purposes of this demo, I’m going to use the video (which I made) that I wanted an audio version of, my tutorial on Making a Persistent Boot USB Flash Drive.
Here’s a Mac-friendly tutorial (it uses iExtract) that I haven’t tried and probably won’t for awhile since I’m on a linux machine.
But, how to accomplish extracting the audio from an FLV or video file?
Extracting audio is pretty easy these days…although you can do it at the command line using ffmpeg (free), there’s now a GUI program called FFMultiConverter for getting the job done:
FF Multi Converter is a simple graphical application which converts audio, video, image, and document files between all popular formats, using and combining other programs. It uses ffmpeg for audio/video files, unoconv for document files, and the PythonMagick library for image file conversions.
In truth, I found the program incredibly easy to use.
PREPARING THE COMPUTER
Step 1 – Setup LubuntuLinux with the right software
sudo add-apt-repository ppa:ffmulticonverter/stable
Note: You might find this tutorial helpful.
Step 2 – Update
sudo apt-get update
Step 3 – Install FF MultiConverter and YouTube-DL
sudo apt-get install ffmulticonverter youtube-dl
GETTING THE VIDEO
Step 1 – Get the Video using YouTube-dl at the command line.
Obviously, there are lots of ways to download a video from YouTube. If you use Firefox with Download Helper (Get the Firefox add-on), it’s a cinch and you never have to go to the command line…you can save the video OR the MP3 if you have conversion enabled, so Download Helper is the way to go).
With Download Helper, you click on the balloons (red, yellow,blue)….
Then you get a list of video formats to download:
The benefit of the command line, though, is that you can download multiple videos linked in a videos.txt file (read about the process here).
YouTube-dl is a python (whatever that is) script that you can run and as such, will work on Windows and Mac, not just GNU/Linux operating systems.
To get the video, you would just type:
Step 2 – Extract audio as MP3 from the FLV video
Once you have the video saved on your computer, simply run the FFMultiConverter:
Note that you can convert all similar files with the same extension (FLV) to MP3 and you have the option of deleting the original FLV file. That can save some time!
Step 3 – Play your MP3 file.
This is the easiest and most obvious step…play your MP3.
Everything posted on Miguel Guhlin’s blogs/wikis are his personal opinion and do not necessarily represent the views of his employer(s) or its clients. Read Full Disclosure