[FFmpeg-user] New options -preset and -tune for x264 encoding

sean darcy seandarcy2 at gmail.com
Tue Apr 19 17:56:40 CEST 2011

On 04/16/2011 08:10 PM, Baptiste Coudurier wrote:
> Hi everyone,
> Latest git has now added 2 new options for libx264 encoding:
> -preset<preset>
> -tune<tune>
> These options are directly mapped to internal tune and presets within
> libx264. The old presets files have been removed, please use the new
> options.
> Best regards.
How do these new presets work with 2 passes?

For instance, I have a script that used:

-pass 1 -vpre slow_firstpass

-pass 2 -vpre slow

I've changed it to:

-pass 1 -preset slow

-pass 2 -preset slow

I used to get 100 fps on the 1st pass, now about 70. Is this to be 
expected? Or do I need to do something else on the 1st pass?

Here's the full script:

ffmpeg -i $INPUT -an -pass 1  -vcodec libx264 -level 30 -preset slow     \
        -bufsize 10000000 -maxrate 10000000 -b 1200k -threads 0 -f mp4 
-y /dev/null
ffmpeg -i $INPUT -an -pass 2  -vcodec libx264 -level 30 -preset slow 
-timestamp now \
        -bufsize 10000000 -maxrate 10000000 -b 1200k -threads 0 $1.m4v



More information about the ffmpeg-user mailing list