16
2006
How to rip the audio from your video files
![]()
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
How to rip the audio from your video files
Originally from ArsGeek by
