Log in

View Full Version : What preset for first pass?


seandarcy
18th August 2011, 02:27
I have a script to transcode dv:

ffmpeg -i $INPUT -an -pass 1 -vf "yadif=1:0,hqdn3d" -vcodec libx264 -preset slow-firstpass -tune film \
-r $FRAMERATE -b 2000k -threads 0 -f mp4 -y /dev/null
ffmpeg -i $INPUT -an -pass 2 -vf "yadif=1:0,hqdn3d" -vcodec libx264 -preset veryslow -tune film \
-r $FRAMERATE -timestamp now -b 2000k -threads 0 $2.m4v

In the first pass, preset slow-firstpass used to work (I think!). It doesn't now:

x264 [error]: invalid preset 'slow-firstpass'

What should I use?

sean

Nevilne
18th August 2011, 02:43
change
-preset slow-firstpass
to
-preset veryslow -slow-firstpass

I would advise to remove -slow-firstpass switch altogether as it gives no real benefit for speed decrease.

nm
18th August 2011, 15:29
There is no -slow-firstpass option in ffmpeg. Older versions had -vpre slow_firstpass, which meant fast first pass for preset slow. Now the equivalent is simply -preset slow together with -pass 1. Fast first pass is on by default and it can be turned off with -fastfirstpass 0.

@seandarcy:
Just use -preset veryslow in both passes, as you would with x264 CLI.