x264 Presets and FFmpeg

By | 2010/06/29

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