![]()
I was paging through ffmpeg’s info when I came across this handy little tidbit. Say you have an awesome video (avi or mpg) that you really want to listen to on your mp3 player. Since you can’t play mpg files, you’d like to convert it to mp3. Well, with one simple line of code, you can do that.
First, you’ll need ffmpeg installed. In Ubuntu it’s simple:
sudo apt-get install ffmpeg
Now that ffmpeg is installed, let’s say you’re trying to convert a file called awesong.mpg located in your /home/username/videos folder. Simply type:
ffmpeg -i “/home/username/videos/awesong.mpg” -f mp3 “/home/username/songs/awesong.mp3″
That will rip the audio from the file, and dump it into your songs directory as an mp3 called awesong.
geek out.
Technorati Tags: mpeg to mp3, mpg, avi, rip audio from video clips, i(heart)ubuntu















0 Comments For This Post
3 Trackbacks For This Post
August 16th, 2006 at 10:46 pm
[...] How to rip the audio from your video files [...]
August 17th, 2006 at 12:54 pm
[...] Now that we’ve looked at doing various things to multimedia files and burning them to a DVD, let’s examine how to make a copy of a dual layer DVD. If you have a dual layer burner, then there’s no reason to read further. If you’re like me howevever, and you have a single layer (4.7GB) drive and DVDs then this will be a helpful guide. [...]
August 23rd, 2006 at 12:28 pm
[...] FFMPEG – Get audio tracks from video. [...]
Leave a Reply