linux simple tips – convert many video files to mp3

okay folks, lets get through and make dirty your hands. what we’re doing here is convert a few video files to mp3 files, using Linux ofcourse. what you need is just working linux box, i personally uses Debian (apt-get style), sure, you can do with your fav. linux box, like centos or zencafe even gentoo! so, let game our wish:

  1. sudo apt-get ffmpeg
  2. sudo apt-get gstreamer0.10-plugins-ugly gstreamer0.10-plugins-ugly-multiverse gstreamer0.10-plugins-bad gstreamer0.10-plugins-bad-multiverse


  • mpg to mp3 -> ffmpeg -i input_file.mpg -f mp3 output_file.mp3
  • 3gp to avi -> ffmpeg -i input_file.3gp -f avi -vcodec xvid -acodec mp3 -ar 22050 file.avi
  • avi to 3gp -> ffmpeg -i input_file.avi-s qcif -vcodec h263 -acodec mp3 -ac 1 -ar 8000 -r 25 -ab 32 -y output-file.3gp
  • mpg to 3gp -> ffmpeg -i input_file.mpg -s qcif -vcodec h263 -acodec mp3 -ac 1 -ar 8000 -ab 32 -y clip.3gp
  • flv to mp4 -> ffmpeg -i input_file.flv -vcodec h264 -r 25 -b 200 -ab 128 -acodec mp3 -ac 2 -ar 44100 output-file.mp4

now, for the sake of curiosity, play your file with your fav. player, mplayer, vlc, songbird, totem, quicktime. and keep in your mind, tune those parameter to achieve better result. happy converting!

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s