RSS



How to rip the audio from your video files

Wed, Aug 16, 2006

ArsGeek, Linux, Ubuntu

Talk about it in our Forums

fffffffmpeg

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: , , , ,

Click the icon, share the link:
  • Digg
  • del.icio.us
  • MisterWong
  • Furl
  • Reddit
  • Technorati
  • BlinkList
  • feedmelinks
  • PopCurrent
  • Blogosphere News
  • Facebook
  • Fark
  • Mixx
  • Slashdot

This post was written by:

arsgeek - who has written 1980 posts on ArsGeek.


Contact the author

0 Comments For This Post

3 Trackbacks For This Post

  1. How to rip the audio from your video files : Tech Tips Says:

    [...] How to rip the audio from your video files [...]

  2. ArsGeek :: How to copy a dual layer DVD in Linux Says:

    [...] 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. [...]

  3. ArsGeek :: ArsGeek’s guide to installing Ubuntu 6.6 on a Lenovo (IBM) X60s Laptop Says:

    [...] FFMPEG – Get audio tracks from video. [...]

Leave a Reply