Ubuntu: Convert Video Using FFmpeg

I needed to create a .FLV file in Ubuntu from a .MOV for the Jungle Jim’s video and learned about FFmpeg which allows you to use the command line to convert files.  Open terminal and copy/paste one of the following commands below.  Replace the original and final file names and press the enter key.  Depending on the size of your video it could take several minutes for the video to encode.

Convert a FLV file to a MPG
ffmpeg -i original_file.flv new_file.mpg

Convert a MPG file to a FLV
ffmpeg -i original_file.flv new_file.mpg

Make a MP3 from a MPG
ffmpeg -i input.mpg -vn output.mp3

Convert a WAV file to a MP3
ffmpeg -i son_original_file.avi -vn -ar 44100 -ac 2 -ab 192 -f mp3 new_file.mp3

Extract Sound from a Video and Make it a MP3
ffmpeg -i source_video_here.avi -vn -ar 44100 -ac 2 -ab 192 -f mp3 soundHere.mp3

Extracting Sound from a Video and Save it as a Mp3
ffmpeg -i source_video_here.avi -vn -ar 44100 -ac 2 -ab 192 -f mp3 videoSoundHere.mp3

One thought on “Ubuntu: Convert Video Using FFmpeg

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

This site uses Akismet to reduce spam. Learn how your comment data is processed.