OptionalpresetEncoding preset. Slower = better compression. Default: medium
OptionaltuneVisual tune. Optimize for content type or special use case.
OptionalprofileH.264 profile
OptionalcrfConstant Rate Factor, 0–51. Lower = better quality. Ignored if qp or bitrate set.
OptionalqpConstant QP mode, -1 means disabled. Overrides crf.
OptionalbNumber of B-frames, 0–16
OptionalbB-frame pyramid mode
OptionalaqAdaptive quantization mode: 0=disabled, 1=VAQ, 2=auto-VAQ, 3=LADSAQ
OptionalaqAQ strength, 0–3.0
OptionalweightpWeighted prediction for P-frames: 0=none, 1=blind, 2=smart
OptionalrefsNumber of reference frames, 1–16
OptionalsubqSubpel motion estimation quality, 1–11
OptionalmeMotion estimation method
OptionalmeME range, 4–1000
OptionaltrellisTrellis quantization: 0=disabled, 1=final MB, 2=all MBs
OptionaldeblockDeblocking filter parameters as "alpha:beta", e.g. "0:0"
OptionalnalNAL HRD model for CBR/VBR signaling
OptionalbitrateTarget video bitrate in kbps (VBV/ABR mode)
OptionalmaxrateMaximum bitrate, kbps
OptionalbufsizeBufsize for VBV, kbps
OptionalqpMinimum QP
OptionalqpMaximum QP
OptionalkeyintGOP size (keyframe interval)
OptionalkeyintMin keyframe interval
OptionalscenecutScene cut threshold, -1 to disable
Optionalx264Pass raw x264 option string, e.g. "ratetol=1.0:qcomp=0.7"
OptionalpixForced pixel format
Typed options for the libx264 encoder. All options derived directly from
ffmpeg -h encoder=libx264dump.