ip: 18.226.159.74 DKs blog - ffmpeg examples how to

DK's Blog

Ffmpeg

How to install ffmpeg exe 

I prefer staticlly linked exes, so no need for DLLs ...

If you use windows go to zeranoe build and choos 32/64 bit ffmpeg for you version of OS, I just copy 3 execs to c:/windows directory and that's it.

 


How to convert animated gif to avi (divx)

fix framerate to 10 fps (-r 10)

ffmpeg -r 10 -i GifName.gif AviName.avi

 


How to convert animated gif to avi and fix bitrate

fix bitrate to 500kb/s

ffmpeg -b:v 500k -i GifName.gif AviName.avi

 


How to convert wmv to mp4 video with mp3 audio

you can choose any other audio codec if you want and resize movie with -vf resize=800x600

ffmpeg -i MovieName.wmv -c:v libx264 -crf 23 -c:a mp3 -b:a 128k -vf scale=720x404 MovieName.mp4

 


@2016