linux poison RSS
linux poison Email

HowTo Convert multimedia files between formats using ffmpeg

FFmpeg is a complete, cross-platform solution to record, convert and stream audio and video. It includes libavcodec - the leading audio/video codec library.


Video Examples:
    * Converting MOV to FLV using FFMPEG
      ffmpeg -i movie1.mov movie1.flv
      This will convert movie1.mov file to movie1.flv

    * Converting Mpeg to FLV using FFMPEG
      ffmpeg -i movie1.mpeg movie1.flv
      This will convert movie1.mpeg file to movie1.flv

    * Converting AVI to FLV using FFMPEG
      ffmpeg -i movie1.avi -s 500×500 movie1.flv
      This will convert movie1.avi file to movie1.flv and will resize the video resolution to 500×500

    * Converting 3GP to FLV using FFMPEG
      ffmpeg -i movie1.3gp -sameq -an movie1.flv
      This will convert movie1.3gp file to movie1.flv and will keep the original file settings and will  disable the audio content

    * Converting MPEG to 3GP using FFMPEG
      ffmpeg -i movie1.mpeg -ab 8.85k -acodec libamr_wb -ac 1 -ar 16000 -vcodec h263 -s qcif movie2.3gp

    * FFV1 Encoding
      ffmpeg -i -vcodec ffv1 -an output.mov


    * Converting flv to mpg using FFMPEG
      ffmpeg -i myvideo.flv -ar 22050 -b 500 -s 320x240 myvideo.mpg 

Audio Examples:
    * Converting aac to mp3 using FFMPEG with MetaData
      ffmpeg -i audio1.aac -ar 22050 -ab 32 -map_meta_data audio1.mp3:audio1.aac audio1.mp3
      This will convert audio1.aac to audio1.mp3 having audio rate 22.05 Khz and Audio BitRate 32Khz and will copy the meta data from .aac file to .mp3 file

    * Converting WMV to MP3 using FFMPEG
      ffmpeg -i audio1.wmv audio1.mp3
      This will convert audio1.wmv file to audio1.mp3

    * Converting WMV to FLV using FFMPEG
      ffmpeg -i audio1.wmv audio1.flv
      This will convert audio1.wmv file to audio1.flv, this will generate only audio content

    * Converting AMR to MP3 using FFMPEG
      ffmpeg -i audio1.amr -ar 22050 audio1.mp3
      This will convert audio1.amr file to audio1.mp3 having audio rate 22.05 Khz

    * Converting aac to mp3 using FFMPEG
      ffmpeg -i audio1.aac -ar 22050 -ab 32 audio1.mp3
      This will convert audio1.aac to audio1.mp3 having audio rate 22.05 Khz and Audio BitRate 32Khz

    * Rip MP3 From Video
      ffmpeg -i movie.flv -vn -acodec copy movie.mp3


6 comments:

Alan said...

"WinFF is a GUI for the command line video converter,FFMPEG.."

http://winff.org/html_new/

Alan said...

"WinFF is a GUI for the command line video converter, FFMPEG..."

http://winff.org/html_new/

Anonymous said...

"WinFF is a GUI for the command line video converter, FFMPEG. It will convert most any video file that FFmpeg will convert..."

http://winff.org/html_new/

Unknown said...

my camera gives .MOV file and it did not get converted to .flv file with the first command?

Kate said...

I often convert videos of various format to flash videos by video converter so that I can embed them into blog or webpage more easily.

Anonymous said...

Imagine i have a video of mp4 in my system and i want to convert it to flv, using ffmpeg . when you are converting one video format to another format in my case as mentioned below, does it convert frame wise of the entire file together.. ? and is there any debugging tool for ffmpeg

Post a Comment

Related Posts with Thumbnails