[FFmpeg-user] Where are the presets for x264?

Lou lou at lrcd.com
Fri Aug 19 07:51:20 CEST 2011


On Thu, 18 Aug 2011 22:00:45 -0400
sean darcy <seandarcy2 at gmail.com> wrote:

> On 08/18/2011 05:30 PM, Jonathan Isom wrote:
> > On Thu, Aug 18, 2011 at 4:25 PM, Sean Darcy<seandarcy2 at gmail.com>
> > wrote:
> >> Using the latest git, I only find these presets:
> >>
> >>
> >> /usr/share/ffmpeg/libvpx-1080p.ffpreset
> >> /usr/share/ffmpeg/libvpx-1080p50_60.ffpreset
> >> /usr/share/ffmpeg/libvpx-360p.ffpreset
> >> /usr/share/ffmpeg/libvpx-720p.ffpreset
> >> /usr/share/ffmpeg/libvpx-720p50_60.ffpreset
> >> /usr/share/ffmpeg/libx264-ipod320.ffpreset
> >> /usr/share/ffmpeg/libx264-ipod640.ffpreset
> >> /usr/share/ffmpeg/libx264-lossless_fast.ffpreset
> >> /usr/share/ffmpeg/libx264-lossless_max.ffpreset
> >> /usr/share/ffmpeg/libx264-lossless_medium.ffpreset
> >> /usr/share/ffmpeg/libx264-lossless_slow.ffpreset
> >> /usr/share/ffmpeg/libx264-lossless_slower.ffpreset
> >> /usr/share/ffmpeg/libx264-lossless_ultrafast.ffpreset
> >>
> >> i'm doing 2-pass encoding with x264. There used to be a firstpass
> >> preset. Is it just gone? What should I use instead for the first
> >> pass?
> >>
> >
> > Removed in April git has now added 3 new options for libx264
> > encoding: -preset<preset>
> > -tune<tune>
> > -profile<profile>
> >
> > These options are directly mapped to internal tune and presets
> > within libx264. The old presets files have been removed, please use
> > the new options.
> >
> > Such as:
> > -profile baseline
> >
> > See "x264 --help" to see available presets, tunes, and profiles
> >
> >
> >
> >
> >> sean
> >>
> OK. So what should I use for pass1?
> 
> sean

Now you just use the same preset for both passes for most cases.
Example:

ffmpeg -i input -pass 1 -vcodec libx264 -preset fast -b 512k \
-threads 0 -f mp4 -an -y /dev/null && \
ffmpeg -i input -pass 2 -vcodec libx264 -preset fast -b 512k \
-threads 0 -acodec libfaac -ab 128k -ac 2 output.mp4


More information about the ffmpeg-user mailing list