Video options

Parameter Value Comment
vcodec libx264 use libx264 for H.264 video encoding
b 668000 default to fmt_std video bitrate
coder 1 CABAC enabled
trellis 1 trellis decisions enabled in the final encode of a master block. requires CABAC
flags +loop enable loop filter (same as default)
cmp +chroma enable chroma subpixel refinement
partitions +parti8x8+parti4x4+partp8x8+partb8x8 I-macroblocks at 4×4 and 8×8 partitions. P-macroblocks at 8×8 partitions. B-macroblocks at 8×8 partitions. i8x8 requires dct8x8, creating High Profile
me_method umh unsymmetric cross multi-hexagon grid motion estimation search
me_range 16 motion search at 16 motion vectors (same as default)
rc_eq ‘blurCplx^(1-qComp)’ ratecontrol equation
qcomp 0.6 quantizer compression
qdiff 4 maximum difference between the quantizer scale steps
qmin 10 minimum difference between the quantizer scale
qmax 51 maximum difference between the quantizer scale
g 250 keyframe interval, a.k.a. group of picture length. maximum distance between I-frames
keyint_min 25 minimum group of picture size. minimum distance between I-frames
sc_threshold 40 scene change detection threshold
i_qfactor 0.71 quantizer scale difference between I-frames and P-frames
b_strategy 2 slowest, most accurate B-frame decision mode used for two-pass encoding
bf 3 limit the number of consequtive B-frames for compatibility across a broad range of playback devices
refs 4 reference frames to consider for motion compensation. limit for decoded picture buffer compatibility
directpred 3 automatically choose between spatial and temporal prediction mode for B-frames
flags2 +wpred+mixed_refs+dct8x8+fastpskip+mbtree’ allow B-frames to use non-default weighted prediction. allow different references for each p8x8 block. high-profile 8×8 transform. full analysis on all P-blocks. use macroblock tree ratecontrol
wpredp 2 weighted prediction smart weighting (full fade detection analysis)

1280px width format extras

Parameter Value Comment
deblockalpha 0 boost deblock strength. better tolerance for in-loop blocking artifacts in motion estimation. requires loop filter (-flags +loop)
deblockbeta 0 boost deblock theshold. requires loop filter (-flags +loop)
trellis 2 enable analysis of all mode decisions. boost PSNR rounding. requires CABAC
partitions +parti8x8+parti4x4+partp8x8+partp4x4+partb8x8 add p4x4
subq 9 activate rate-distortion refinement for motion vectors and intra prediction modes

Audio options

Parameter Value Comment
acodec libfaac use libfaac for AAC audio encoding
ab 128000 128kps audio bitrate default
ar 48000 48000 Hz sampling frequency
async 1 sync the audio track to the start of the video track

Bitrates

Width Video Audio
400 668k 128k
640 1400k 128k
1280 3000k 160k