x264 core:165 r3222 b35605a Syntax: x264 [options] -o outfile infile Infile can be raw (in which case resolution is required), or YUV4MPEG (*.y4m), or Avisynth if compiled with support (yes). or libav* formats if compiled with lavf support (no) or ffms support (no). Outfile type is selected by filename: .264 -> Raw bytestream .mkv -> Matroska .flv -> Flash Video .mp4 -> MP4 if compiled with GPAC or L-SMASH support (no) Output bit depth: 8/10 Options: -h, --help List basic options --longhelp List more options --fullhelp List all options Example usage: Constant quality mode: x264 --crf 24 -o Two-pass with a bitrate of 1000kbps: x264 --pass 1 --bitrate 1000 -o x264 --pass 2 --bitrate 1000 -o Lossless: x264 --qp 0 -o Maximum PSNR at the cost of speed and visual quality: x264 --preset placebo --tune psnr -o Constant bitrate at 1000kbps with a 2 second-buffer: x264 --vbv-bufsize 2000 --bitrate 1000 -o Presets: --profile Force the limits of an H.264 profile Overrides all settings. - baseline, main, high, high10, high422, high444 --preset Use a preset to select encoding settings [medium] Overridden by user settings. - ultrafast,superfast,veryfast,faster,fast - medium,slow,slower,veryslow,placebo --tune Tune the settings for a particular type of source or situation Overridden by user settings. Multiple tunings are separated by commas. Only one psy tuning can be used at a time. - psy tunings: film,animation,grain, stillimage,psnr,ssim - other tunings: fastdecode,zerolatency Frame-type options: -I, --keyint Maximum GOP size [250] --tff Enable interlaced mode (top field first) --bff Enable interlaced mode (bottom field first) --pulldown Use soft pulldown to change frame rate - none, 22, 32, 64, double, triple, euro (requires cfr input) Ratecontrol: -B, --bitrate Set bitrate (kbit/s) --crf Quality-based VBR (-12-51) [23.0] --vbv-maxrate Max local bitrate (kbit/s) [0] --vbv-bufsize Set size of the VBV buffer (kbit) [0] -p, --pass Enable multipass ratecontrol - 1: First pass, creates stats file - 2: Last pass, does not overwrite stats 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) --quiet Quiet Mode Filtering: --vf, --video-filter //... Apply video filtering to the input file Filter options may be specified in :