
How do I encode x264 with FFmpeg?
x264 is awesome but has a nightmare of options. The easiest thing to do it to use presets with FFmpeg.
Simply dump the contents of this zip file into your ~/.ffmpeg directory.
If that directory does not exist, create it.
Now you can use options like this to specify a preset:
-vcodec libx264 -vpre libx264-fast
Here is a random example:
ffmpeg -i myvideo.ogv -vcodec libx264 -vpre libx264-fast -qscale 5 myvideo.mp4
Sweet!



1. Please check this issue and fix the problem in presets:
https://ffmpeg.org/trac/ffmpeg/ticket/1405
2. replace -vpre with -preset
Beside this, works great for me.
Best regards, Miloš