formats

x264 Presets and FFmpeg

Published on June 29, 2010, by + in linux.




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!


One Response

  1. Miloš Arunović

    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š

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Notify me of followup comments via e-mail. You can also subscribe without commenting.

Home linux x264 Presets and FFmpeg