x264 core:54 Syntax: x264 [options] -o outfile infile [widthxheight] Infile can be raw YUV 4:2:0 (in which case resolution is required), or YUV4MPEG 4:2:0 (*.y4m), or AVI or Avisynth if compiled with AVIS support (no). Outfile type is selected by filename: .264 -> Raw bytestream .mkv -> Matroska .mp4 -> MP4 if compiled with GPAC support (no) Options: -h, --help List the more commonly used options --longhelp List all options Frame-type options: -I, --keyint Maximum GOP size [250] -b, --bframes Number of B-frames between I and P [0] --b-pyramid Keep some B-frames as references --no-cabac Disable CABAC -r, --ref Number of reference frames [1] -f, --deblock Loop filter AlphaC0 and Beta parameters [0:0] --interlaced Enable pure-interlaced mode Ratecontrol: -q, --qp Set QP (0=lossless) [26] -B, --bitrate Set bitrate (kbit/s) --crf Quality-based VBR (nominal QP) --vbv-bufsize Enable CBR and set size of the VBV buffer (kbit) [0] --ratetol Allowed variance of average bitrate [1.0] --ipratio QP factor between I and P [1.40] --pbratio QP factor between P and B [1.30] -p, --pass <1|2|3> Enable multipass ratecontrol - 1: First pass, creates stats file - 2: Last pass, does not overwrite stats file - 3: Nth pass, overwrites stats file --stats Filename for 2 pass stats ["x264_2pass.log"] --qcomp QP curve compression: 0.0 => CBR, 1.0 => CQP [0.60] --zones //... Tweak the bitrate of some regions of the video Analysis: -A, --partitions Partitions to consider ["p8x8,b8x8,i8x8,i4x4"] - p8x8, p4x4, b8x8, i8x8, i4x4 - none, all (p4x4 requires p8x8. i8x8 requires --8x8dct.) --direct Direct MV prediction mode ["spatial"] - none, spatial, temporal, auto -w, --weightb Weighted prediction for B-frames --me Integer pixel motion estimation method ["hex"] - dia, hex, umh --merange Maximum motion vector search range [16] -m, --subme Subpixel motion estimation and partition decision quality: 1=fast, 7=best. [5] --b-rdo RD based mode decision for B-frames. Requires subme 6. --mixed-refs Decide references on a per partition basis -8, --8x8dct Adaptive spatial transform size -t, --trellis Trellis RD quantization. Requires CABAC. [0] - 0: disabled - 1: enabled only on the final encode of a MB - 2: enabled on all mode decisions --no-fast-pskip Disables early SKIP detection on P-frames --no-dct-decimate Disables coefficient thresholding on P-frames --nr Noise reduction [0] --cqmfile Read custom quant matrices from a JM-compatible file Input/Output: -o, --output Specify output file --sar width:height Specify Sample Aspect Ratio --fps Specify framerate --seek First frame to encode --frames Maximum number of frames to encode --level Specify level (as defined by Annex A) -v, --verbose Print stats for each frame --progress Show a progress indicator while encoding --quiet Quiet Mode --no-psnr Disable PSNR computation --no-ssim Disable SSIM computation --threads Parallel encoding --thread-input Run Avisynth in its own thread