Advertisement
Guest User

x264 --help

a guest
Jul 4th, 2012
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.77 KB | None | 0 0
  1. Syntax: x264 [options] -o outfile infile
  2.  
  3. Infile can be raw (in which case resolution is required),
  4. or YUV4MPEG (*.y4m),
  5. or Avisynth if compiled with support (no).
  6. or libav* formats if compiled with lavf support (no) or ffms support (no).
  7. Outfile type is selected by filename:
  8. .264 -> Raw bytestream
  9. .mkv -> Matroska
  10. .flv -> Flash Video
  11. .mp4 -> MP4 if compiled with GPAC support (no)
  12. Output bit depth: 8 (configured at compile time)
  13.  
  14. Options:
  15.  
  16. -h, --help List basic options
  17. --longhelp List more options
  18. --fullhelp List all options
  19.  
  20. Example usage:
  21.  
  22. Constant quality mode:
  23. x264 --crf 24 -o <output> <input>
  24.  
  25. Two-pass with a bitrate of 1000kbps:
  26. x264 --pass 1 --bitrate 1000 -o <output> <input>
  27. x264 --pass 2 --bitrate 1000 -o <output> <input>
  28.  
  29. Lossless:
  30. x264 --qp 0 -o <output> <input>
  31.  
  32. Maximum PSNR at the cost of speed and visual quality:
  33. x264 --preset placebo --tune psnr -o <output> <input>
  34.  
  35. Constant bitrate at 1000kbps with a 2 second-buffer:
  36. x264 --vbv-bufsize 2000 --bitrate 1000 -o <output> <input>
  37.  
  38. Presets:
  39.  
  40. --profile <string> Force the limits of an H.264 profile
  41. Overrides all settings.
  42. - baseline,main,high,high10,high422,high444
  43. --preset <string> Use a preset to select encoding settings [medium]
  44. Overridden by user settings.
  45. - ultrafast,superfast,veryfast,faster,fast
  46. - medium,slow,slower,veryslow,placebo
  47. --tune <string> Tune the settings for a particular type of source
  48. or situation
  49. Overridden by user settings.
  50. Multiple tunings are separated by commas.
  51. Only one psy tuning can be used at a time.
  52. - psy tunings: film,animation,grain,
  53. stillimage,psnr,ssim
  54. - other tunings: fastdecode,zerolatency
  55.  
  56. Frame-type options:
  57.  
  58. -I, --keyint <integer or "infinite"> Maximum GOP size [250]
  59. --tff Enable interlaced mode (top field first)
  60. --bff Enable interlaced mode (bottom field first)
  61. --pulldown <string> Use soft pulldown to change frame rate
  62. - none, 22, 32, 64, double, triple, euro (requires cfr input)
  63.  
  64. Ratecontrol:
  65.  
  66. -B, --bitrate <integer> Set bitrate (kbit/s)
  67. --crf <float> Quality-based VBR (0-51) [23.0]
  68. --vbv-maxrate <integer> Max local bitrate (kbit/s) [0]
  69. --vbv-bufsize <integer> Set size of the VBV buffer (kbit) [0]
  70. -p, --pass <integer> Enable multipass ratecontrol
  71. - 1: First pass, creates stats file
  72. - 2: Last pass, does not overwrite stats file
  73.  
  74. Input/Output:
  75.  
  76. -o, --output <string> Specify output file
  77. --sar width:height Specify Sample Aspect Ratio
  78. --fps <float|rational> Specify framerate
  79. --seek <integer> First frame to encode
  80. --frames <integer> Maximum number of frames to encode
  81. --level <string> Specify level (as defined by Annex A)
  82. --quiet Quiet Mode
  83.  
  84. Filtering:
  85.  
  86. --vf, --video-filter <filter0>/<filter1>/... Apply video filtering to the input file
  87.  
  88. Filter options may be specified in <filter>:<option>=<value> format.
  89.  
  90. Available filters:
  91. crop:left,top,right,bottom
  92. select_every:step,offset1[,...]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement