JeremyPerson.com
-My Corner of the Web
User's Online 
8 People Online Now

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

Posted in Open Source & Linux on January 9th, 2010 by Jeremy at 12:09 am with (42 views)

One Response

  1. abhilash

    (1) Installing ffmpeg Ubuntu is very simple using command below :

    sudo apt-get install ffmpeg

    (2) To convert .flv to .mpg using ffmpeg

    First you need to download your .flv file to a folder and you need to Open a terminal window and go in to the .flv file folder and type the following command

    ffmpeg -i jokes.flv -ab 56 -ar 22050 -b 500 -s 320×240 jokes.mpg Convert videos Ubuntu :

Leave a Comment

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.