Server Administration & Management

How to converting Audio & Videos using FFMPEG

1) This will convert video.mov to video.flv

# ffmpeg -i video.mov video.flv

2) Converting 3GP to FLV using FFMPEG

# ffmpeg -i video.3gp -sameq -an video.flv

This will convert video.3gp file to video.flv (Sound will be disaled in video.flv)

3) Converting Mpeg to FLV using FFMPEG

# ffmpeg -i video.mpeg video.flv

This will convert video.mpeg file to video.flv

4) Converting MPEG to 3GP using FFMPEG

# ffmpeg -i video.mpeg -ab 8.85k -acodec libamr_wb -ac 1 -ar 16000 -vcodec h263 -s qcif video.3gp

5) Converting AVI to FLV using FFMPEG

# ffmpeg -i video.avi -s 500×500 video.flv ( resolution of video.flv wil be  500×500)

6)Creating video thumbnails using ffmpeg

# ffmpeg  -itsoffset -4  -i video.avi -vcodec mjpeg -vframes 1 -an -f rawvideo -s 320×240 video.jpg

This command generates a 320×240 sized PNG thumbnail at the 4th second in the video.

Audio conversion:-

1) Converting WMV to FLV using FFMPEG

# ffmpeg -i audio.wmv audio.flv

This will convert audio.wmv file to audio.flv.

2) Converting AMR to MP3 using FFMPEG

# ffmpeg -i audio1.amr -ar 25050 audio1.mp3

This will convert audio.amr file to audio.mp3  with audio rate of  25.05 KHz

3)Converting WMV to MP3 using FFMPEG

# ffmpeg -i audio1.wmv audio1.mp3

This will convert audio1.wmv file to audio1.mp3

4) Converting aac to mp3 using FFMPEG

# ffmpeg -i audio1.aac -ar 25050 -ab 32 audio1.mp3

This will convert audio.aac to audio.mp3 with audio rate 25.05 KHz and Audio BitRate 32KHz


September 29, 2011 Posted by | FFMPEG | , | Leave a comment