User Tools

Site Tools



= FFMPEG - Video Editing Application =

Install ffmpeg

Install ffmpeg Plain

apt-get install ffmpeg

Install ffmpeg with MP3 support

This above step will install ffmpeg and only the basic codecs. Note: the mp3 audio codec is missing from the package above.

I suggest you add the following to your /etc/apt/sources.list: vi /etc/apt/sources.list deb stable main apt-get update apt-get install ffmpeg

Convert AVI or MPG or MPEG to FLV (Flash Video)

General to Good conversion settings

ffmpeg -i MOV02780.MPG -acodec mp3 -ab 64 -ar 22050 -s 640×480 -b 350000 -r 4 -deinterlace MOV02780.flv

# It was a balance between how many frames to show, and at what quality to show them. # The above shows frames quite slow at: ~35fps (-r 4), and reasonable quality (-b 350000). # If the frame rate above was increased leaving bitrate (b), more discrepencies would be shown up!!

Better Conversion Settings with NO sound

ffmpeg -i MOV03669.MPG -an -s 640×480 -b 600000 -r 6 -deinterlace MOV03669.flv #better quality and smoother and no sound

Sample example

ffmpeg -i MOV02780.MPG -acodec mp3 -ab 64 -ar 22050 -s 640×480 -b 400000 -r 1 -deinterlace MOV02780.flv

-r 1 #puts frame rate at ~10fps #The video was very jumpy. The quality was good, but it was jumping from frame to frame. The audio was fine and played away/

-r 3 # ~25fps

Compress MP3 Audio File

Simply: ffmpeg -i /tmp/songin.mp3 -acodec mp3 -ab 8k /tmp/songout.mp3

Sources: ffmpeg -i MOV02780.MPG -f flv -vcodec flv -acodec mp3 -ab 64 -ar 22050 -s 640×480 -deinterlace MOV02780.flv ffmpeg -i movie.mpg -ar 22050 -ab 32 -f flv -s 320×240 -aspect 4:3 -y movie.flv ffmpeg -i video.avi -ar 22050 -ab 32 -f flv -s 320×240 video.flv ffmpeg -i someVideo.avi -o -f flv -b 200000 someVideo.flv ffmpeg.exe -i 'video.avi' -y -ab 64 -ar 22050 -b 200 -r 25 -s 650*450 'video.flv'

ffmpeg.txt · Last modified: 2022/07/19 21:13 by