Advertisement
Guest User

x264.exe --fullhelp

a guest
Oct 24th, 2014
4,917
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 26.88 KB | None | 0 0
  1. x264 core:142 r2479 dd79a61
  2. Syntax: x264 [options] -o outfile infile
  3.  
  4. Infile can be raw (in which case resolution is required),
  5. or YUV4MPEG (*.y4m),
  6. or Avisynth if compiled with support (yes).
  7. or libav* formats if compiled with lavf support (yes) or ffms support (no).
  8. Outfile type is selected by filename:
  9. .264 -> Raw bytestream
  10. .mkv -> Matroska
  11. .flv -> Flash Video
  12. .mp4 -> MP4 if compiled with GPAC or L-SMASH support (no)
  13. Output bit depth: 8 (configured at compile time)
  14.  
  15. Options:
  16.  
  17. -h, --help List basic options
  18. --longhelp List more options
  19. --fullhelp List all options
  20.  
  21. Example usage:
  22.  
  23. Constant quality mode:
  24. x264 --crf 24 -o <output> <input>
  25.  
  26. Two-pass with a bitrate of 1000kbps:
  27. x264 --pass 1 --bitrate 1000 -o <output> <input>
  28. x264 --pass 2 --bitrate 1000 -o <output> <input>
  29.  
  30. Lossless:
  31. x264 --qp 0 -o <output> <input>
  32.  
  33. Maximum PSNR at the cost of speed and visual quality:
  34. x264 --preset placebo --tune psnr -o <output> <input>
  35.  
  36. Constant bitrate at 1000kbps with a 2 second-buffer:
  37. x264 --vbv-bufsize 2000 --bitrate 1000 -o <output> <input>
  38.  
  39. Presets:
  40.  
  41. --profile <string> Force the limits of an H.264 profile
  42. Overrides all settings.
  43. - baseline:
  44. --no-8x8dct --bframes 0 --no-cabac
  45. --cqm flat --weightp 0
  46. No interlaced.
  47. No lossless.
  48. - main:
  49. --no-8x8dct --cqm flat
  50. No lossless.
  51. - high:
  52. No lossless.
  53. - high10:
  54. No lossless.
  55. Support for bit depth 8-10.
  56. - high422:
  57. No lossless.
  58. Support for bit depth 8-10.
  59. Support for 4:2:0/4:2:2 chroma subsampling.
  60. - high444:
  61. Support for bit depth 8-10.
  62. Support for 4:2:0/4:2:2/4:4:4 chroma subsampling.
  63. --preset <string> Use a preset to select encoding settings [medium]
  64. Overridden by user settings.
  65. - ultrafast:
  66. --no-8x8dct --aq-mode 0 --b-adapt 0
  67. --bframes 0 --no-cabac --no-deblock
  68. --no-mbtree --me dia --no-mixed-refs
  69. --partitions none --rc-lookahead 0 --ref 1
  70. --scenecut 0 --subme 0 --trellis 0
  71. --no-weightb --weightp 0
  72. - superfast:
  73. --no-mbtree --me dia --no-mixed-refs
  74. --partitions i8x8,i4x4 --rc-lookahead 0
  75. --ref 1 --subme 1 --trellis 0 --weightp 1
  76. - veryfast:
  77. --no-mixed-refs --rc-lookahead 10
  78. --ref 1 --subme 2 --trellis 0 --weightp 1
  79. - faster:
  80. --no-mixed-refs --rc-lookahead 20
  81. --ref 2 --subme 4 --weightp 1
  82. - fast:
  83. --rc-lookahead 30 --ref 2 --subme 6
  84. --weightp 1
  85. - medium:
  86. Default settings apply.
  87. - slow:
  88. --b-adapt 2 --direct auto --me umh
  89. --rc-lookahead 50 --ref 5 --subme 8
  90. - slower:
  91. --b-adapt 2 --direct auto --me umh
  92. --partitions all --rc-lookahead 60
  93. --ref 8 --subme 9 --trellis 2
  94. - veryslow:
  95. --b-adapt 2 --bframes 8 --direct auto
  96. --me umh --merange 24 --partitions all
  97. --ref 16 --subme 10 --trellis 2
  98. --rc-lookahead 60
  99. - placebo:
  100. --bframes 16 --b-adapt 2 --direct auto
  101. --slow-firstpass --no-fast-pskip
  102. --me tesa --merange 24 --partitions all
  103. --rc-lookahead 60 --ref 16 --subme 11
  104. --trellis 2
  105. --tune <string> Tune the settings for a particular type of source
  106. or situation
  107. Overridden by user settings.
  108. Multiple tunings are separated by commas.
  109. Only one psy tuning can be used at a time.
  110. - film (psy tuning):
  111. --deblock -1:-1 --psy-rd <unset>:0.15
  112. - animation (psy tuning):
  113. --bframes {+2} --deblock 1:1
  114. --psy-rd 0.4:<unset> --aq-strength 0.6
  115. --ref {Double if >1 else 1}
  116. - grain (psy tuning):
  117. --aq-strength 0.5 --no-dct-decimate
  118. --deadzone-inter 6 --deadzone-intra 6
  119. --deblock -2:-2 --ipratio 1.1
  120. --pbratio 1.1 --psy-rd <unset>:0.25
  121. --qcomp 0.8
  122. - stillimage (psy tuning):
  123. --aq-strength 1.2 --deblock -3:-3
  124. --psy-rd 2.0:0.7
  125. - psnr (psy tuning):
  126. --aq-mode 0 --no-psy
  127. - ssim (psy tuning):
  128. --aq-mode 2 --no-psy
  129. - fastdecode:
  130. --no-cabac --no-deblock --no-weightb
  131. --weightp 0
  132. - zerolatency:
  133. --bframes 0 --force-cfr --no-mbtree
  134. --sync-lookahead 0 --sliced-threads
  135. --rc-lookahead 0
  136. --slow-firstpass Don't force these faster settings with --pass 1:
  137. --no-8x8dct --me dia --partitions none
  138. --ref 1 --subme {2 if >2 else unchanged}
  139. --trellis 0 --fast-pskip
  140.  
  141. Frame-type options:
  142.  
  143. -I, --keyint <integer or "infinite"> Maximum GOP size [250]
  144. -i, --min-keyint <integer> Minimum GOP size [auto]
  145. --no-scenecut Disable adaptive I-frame decision
  146. --scenecut <integer> How aggressively to insert extra I-frames [40]
  147. --intra-refresh Use Periodic Intra Refresh instead of IDR frames
  148. -b, --bframes <integer> Number of B-frames between I and P [3]
  149. --b-adapt <integer> Adaptive B-frame decision method [1]
  150. Higher values may lower threading efficiency.
  151. - 0: Disabled
  152. - 1: Fast
  153. - 2: Optimal (slow with high --bframes)
  154. --b-bias <integer> Influences how often B-frames are used [0]
  155. --b-pyramid <string> Keep some B-frames as references [normal]
  156. - none: Disabled
  157. - strict: Strictly hierarchical pyramid
  158. - normal: Non-strict (not Blu-ray compatible)
  159. --open-gop Use recovery points to close GOPs
  160. Only available with b-frames
  161. --no-cabac Disable CABAC
  162. -r, --ref <integer> Number of reference frames [3]
  163. --no-deblock Disable loop filter
  164. -f, --deblock <alpha:beta> Loop filter parameters [0:0]
  165. --slices <integer> Number of slices per frame; forces rectangular
  166. slices and is overridden by other slicing options
  167. --slices-max <integer> Absolute maximum slices per frame; overrides
  168. slice-max-size/slice-max-mbs when necessary
  169. --slice-max-size <integer> Limit the size of each slice in bytes
  170. --slice-max-mbs <integer> Limit the size of each slice in macroblocks (max)
  171. --slice-min-mbs <integer> Limit the size of each slice in macroblocks (min)
  172. --tff Enable interlaced mode (top field first)
  173. --bff Enable interlaced mode (bottom field first)
  174. --constrained-intra Enable constrained intra prediction.
  175. --pulldown <string> Use soft pulldown to change frame rate
  176. - none, 22, 32, 64, double, triple, euro (requires cfr input)
  177. --fake-interlaced Flag stream as interlaced but encode progressive.
  178. Makes it possible to encode 25p and 30p Blu-Ray
  179. streams. Ignored in interlaced mode.
  180. --frame-packing <integer> For stereoscopic videos define frame arrangement
  181. - 0: checkerboard - pixels are alternatively from L and R
  182. - 1: column alternation - L and R are interlaced by column
  183. - 2: row alternation - L and R are interlaced by row
  184. - 3: side by side - L is on the left, R on the right
  185. - 4: top bottom - L is on top, R on bottom
  186. - 5: frame alternation - one view per frame
  187.  
  188. Ratecontrol:
  189.  
  190. -q, --qp <integer> Force constant QP (0-69, 0=lossless)
  191. -B, --bitrate <integer> Set bitrate (kbit/s)
  192. --crf <float> Quality-based VBR (0-51) [23.0]
  193. --rc-lookahead <integer> Number of frames for frametype lookahead [40]
  194. --vbv-maxrate <integer> Max local bitrate (kbit/s) [0]
  195. --vbv-bufsize <integer> Set size of the VBV buffer (kbit) [0]
  196. --vbv-init <float> Initial VBV buffer occupancy [0.9]
  197. --crf-max <float> With CRF+VBV, limit RF to this value
  198. May cause VBV underflows!
  199. --qpmin <integer> Set min QP [0]
  200. --qpmax <integer> Set max QP [69]
  201. --qpstep <integer> Set max QP step [4]
  202. --ratetol <float> Tolerance of ABR ratecontrol and VBV [1.0]
  203. --ipratio <float> QP factor between I and P [1.40]
  204. --pbratio <float> QP factor between P and B [1.30]
  205. --chroma-qp-offset <integer> QP difference between chroma and luma [0]
  206. --aq-mode <integer> AQ method [1]
  207. - 0: Disabled
  208. - 1: Variance AQ (complexity mask)
  209. - 2: Auto-variance AQ (experimental)
  210. --aq-strength <float> Reduces blocking and blurring in flat and
  211. textured areas. [1.0]
  212.  
  213. -p, --pass <integer> Enable multipass ratecontrol
  214. - 1: First pass, creates stats file
  215. - 2: Last pass, does not overwrite stats file
  216. - 3: Nth pass, overwrites stats file
  217. --stats <string> Filename for 2 pass stats ["x264_2pass.log"]
  218. --no-mbtree Disable mb-tree ratecontrol.
  219. --qcomp <float> QP curve compression [0.60]
  220. --cplxblur <float> Reduce fluctuations in QP (before curve compression) [20.0]
  221. --qblur <float> Reduce fluctuations in QP (after curve compression) [0.5]
  222. --zones <zone0>/<zone1>/... Tweak the bitrate of regions of the video
  223. Each zone is of the form
  224. <start frame>,<end frame>,<option>
  225. where <option> is either
  226. q=<integer> (force QP)
  227. or b=<float> (bitrate multiplier)
  228. --qpfile <string> Force frametypes and QPs for some or all frames
  229. Format of each line: framenumber frametype QP
  230. QP is optional (none lets x264 choose). Frametypes: I,i,K,P,B,b.
  231. K=<I or i> depending on open-gop setting
  232. QPs are restricted by qpmin/qpmax.
  233.  
  234. Analysis:
  235.  
  236. -A, --partitions <string> Partitions to consider ["p8x8,b8x8,i8x8,i4x4"]
  237. - p8x8, p4x4, b8x8, i8x8, i4x4
  238. - none, all
  239. (p4x4 requires p8x8. i8x8 requires --8x8dct.)
  240. --direct <string> Direct MV prediction mode ["spatial"]
  241. - none, spatial, temporal, auto
  242. --no-weightb Disable weighted prediction for B-frames
  243. --weightp <integer> Weighted prediction for P-frames [2]
  244. - 0: Disabled
  245. - 1: Weighted refs
  246. - 2: Weighted refs + Duplicates
  247. --me <string> Integer pixel motion estimation method ["hex"]
  248. - dia: diamond search, radius 1 (fast)
  249. - hex: hexagonal search, radius 2
  250. - umh: uneven multi-hexagon search
  251. - esa: exhaustive search
  252. - tesa: hadamard exhaustive search (slow)
  253. --merange <integer> Maximum motion vector search range [16]
  254. --mvrange <integer> Maximum motion vector length [-1 (auto)]
  255. --mvrange-thread <int> Minimum buffer between threads [-1 (auto)]
  256. -m, --subme <integer> Subpixel motion estimation and mode decision [7]
  257. - 0: fullpel only (not recommended)
  258. - 1: SAD mode decision, one qpel iteration
  259. - 2: SATD mode decision
  260. - 3-5: Progressively more qpel
  261. - 6: RD mode decision for I/P-frames
  262. - 7: RD mode decision for all frames
  263. - 8: RD refinement for I/P-frames
  264. - 9: RD refinement for all frames
  265. - 10: QP-RD - requires trellis=2, aq-mode>0
  266. - 11: Full RD: disable all early terminations
  267. --psy-rd <float:float> Strength of psychovisual optimization ["1.0:0.0"]
  268. #1: RD (requires subme>=6)
  269. #2: Trellis (requires trellis, experimental)
  270. --no-psy Disable all visual optimizations that worsen
  271. both PSNR and SSIM.
  272. --no-mixed-refs Don't decide references on a per partition basis
  273. --no-chroma-me Ignore chroma in motion estimation
  274. --no-8x8dct Disable adaptive spatial transform size
  275. -t, --trellis <integer> Trellis RD quantization. [1]
  276. - 0: disabled
  277. - 1: enabled only on the final encode of a MB
  278. - 2: enabled on all mode decisions
  279. --no-fast-pskip Disables early SKIP detection on P-frames
  280. --no-dct-decimate Disables coefficient thresholding on P-frames
  281. --nr <integer> Noise reduction [0]
  282.  
  283. --deadzone-inter <int> Set the size of the inter luma quantization deadzone [21]
  284. --deadzone-intra <int> Set the size of the intra luma quantization deadzone [11]
  285. Deadzones should be in the range 0 - 32.
  286. --cqm <string> Preset quant matrices ["flat"]
  287. - jvt, flat
  288. --cqmfile <string> Read custom quant matrices from a JM-compatible file
  289. Overrides any other --cqm* options.
  290. --cqm4 <list> Set all 4x4 quant matrices
  291. Takes a comma-separated list of 16 integers.
  292. --cqm8 <list> Set all 8x8 quant matrices
  293. Takes a comma-separated list of 64 integers.
  294. --cqm4i, --cqm4p, --cqm8i, --cqm8p <list>
  295. Set both luma and chroma quant matrices
  296. --cqm4iy, --cqm4ic, --cqm4py, --cqm4pc <list>
  297. Set individual quant matrices
  298.  
  299. Video Usability Info (Annex E):
  300. The VUI settings are not used by the encoder but are merely suggestions to
  301. the playback equipment. See doc/vui.txt for details. Use at your own risk.
  302.  
  303. --overscan <string> Specify crop overscan setting ["undef"]
  304. - undef, show, crop
  305. --videoformat <string> Specify video format ["undef"]
  306. - component, pal, ntsc, secam, mac, undef
  307. --range <string> Specify color range ["auto"]
  308. - auto, tv, pc
  309. --colorprim <string> Specify color primaries ["undef"]
  310. - undef, bt709, bt470m, bt470bg, smpte170m,
  311. smpte240m, film, bt2020
  312. --transfer <string> Specify transfer characteristics ["undef"]
  313. - undef, bt709, bt470m, bt470bg, smpte170m,
  314. smpte240m, linear, log100, log316,
  315. iec61966-2-4, bt1361e, iec61966-2-1,
  316. bt2020-10, bt2020-12
  317. --colormatrix <string> Specify color matrix setting ["???"]
  318. - undef, bt709, fcc, bt470bg, smpte170m,
  319. smpte240m, GBR, YCgCo, bt2020nc, bt2020c
  320. --chromaloc <integer> Specify chroma sample location (0 to 5) [0]
  321. --nal-hrd <string> Signal HRD information (requires vbv-bufsize)
  322. - none, vbr, cbr (cbr not allowed in .mp4)
  323. --filler Force hard-CBR and generate filler (implied by
  324. --nal-hrd cbr)
  325. --pic-struct Force pic_struct in Picture Timing SEI
  326. --crop-rect <string> Add 'left,top,right,bottom' to the bitstream-level
  327. cropping rectangle
  328.  
  329. Input/Output:
  330.  
  331. -o, --output <string> Specify output file
  332. --muxer <string> Specify output container format ["auto"]
  333. - auto, raw, mkv, flv
  334. --demuxer <string> Specify input container format ["auto"]
  335. - auto, raw, y4m, avs, lavf
  336. --input-fmt <string> Specify input file format (requires lavf support)
  337. --input-csp <string> Specify input colorspace format for raw input
  338. - valid csps for `raw' demuxer:
  339. i420, yv12, nv12, i422, yv16, nv16, i444, yv24, bgr, bgra, rgb
  340. - valid csps for `lavf' demuxer:
  341. yuv420p, yuyv422, rgb24, bgr24, yuv422p,
  342. yuv444p, yuv410p, yuv411p, gray, monow, monob,
  343. pal8, yuvj420p, yuvj422p, yuvj444p, xvmcmc,
  344. xvmcidct, uyvy422, uyyvyy411, bgr8, bgr4,
  345. bgr4_byte, rgb8, rgb4, rgb4_byte, nv12, nv21,
  346. argb, rgba, abgr, bgra, gray16be, gray16le,
  347. yuv440p, yuvj440p, yuva420p, vdpau_h264,
  348. vdpau_mpeg1, vdpau_mpeg2, vdpau_wmv3,
  349. vdpau_vc1, rgb48be, rgb48le, rgb565be,
  350. rgb565le, rgb555be, rgb555le, bgr565be,
  351. bgr565le, bgr555be, bgr555le, vaapi_moco,
  352. vaapi_idct, vaapi_vld, yuv420p16le,
  353. yuv420p16be, yuv422p16le, yuv422p16be,
  354. yuv444p16le, yuv444p16be, vdpau_mpeg4,
  355. dxva2_vld, rgb444le, rgb444be, bgr444le,
  356. bgr444be, ya8, bgr48be, bgr48le, yuv420p9be,
  357. yuv420p9le, yuv420p10be, yuv420p10le,
  358. yuv422p10be, yuv422p10le, yuv444p9be,
  359. yuv444p9le, yuv444p10be, yuv444p10le,
  360. yuv422p9be, yuv422p9le, vda_vld, gbrp, gbrp9be,
  361. gbrp9le, gbrp10be, gbrp10le, gbrp16be,
  362. gbrp16le, yuva422p, yuva444p, yuva420p9be,
  363. yuva420p9le, yuva422p9be, yuva422p9le,
  364. yuva444p9be, yuva444p9le, yuva420p10be,
  365. yuva420p10le, yuva422p10be, yuva422p10le,
  366. yuva444p10be, yuva444p10le, yuva420p16be,
  367. yuva420p16le, yuva422p16be, yuva422p16le,
  368. yuva444p16be, yuva444p16le, vdpau, xyz12le,
  369. xyz12be, nv16, nv20le, nv20be, rgba64be,
  370. rgba64le, bgra64be, bgra64le, yvyu422, vda,
  371. ya16be, ya16le
  372. --output-csp <string> Specify output colorspace ["i420"]
  373. - i420, i422, i444, rgb
  374. --input-depth <integer> Specify input bit depth for raw input
  375. --input-range <string> Specify input color range ["auto"]
  376. - auto, tv, pc
  377. --input-res <intxint> Specify input resolution (width x height)
  378. --index <string> Filename for input index file
  379. --sar width:height Specify Sample Aspect Ratio
  380. --fps <float|rational> Specify framerate
  381. --seek <integer> First frame to encode
  382. --frames <integer> Maximum number of frames to encode
  383. --level <string> Specify level (as defined by Annex A)
  384. --bluray-compat Enable compatibility hacks for Blu-ray support
  385. --avcintra-class <integer> Use compatibility hacks for AVC-Intra class
  386. - 50, 100, 200
  387. --stitchable Don't optimize headers based on video content
  388. Ensures ability to recombine a segmented encode
  389.  
  390. -v, --verbose Print stats for each frame
  391. --no-progress Don't show the progress indicator while encoding
  392. --quiet Quiet Mode
  393. --log-level <string> Specify the maximum level of logging ["info"]
  394. - none, error, warning, info, debug
  395. --psnr Enable PSNR computation
  396. --ssim Enable SSIM computation
  397. --threads <integer> Force a specific number of threads
  398. --lookahead-threads <integer> Force a specific number of lookahead threads
  399. --sliced-threads Low-latency but lower-efficiency threading
  400. --thread-input Run Avisynth in its own thread
  401. --sync-lookahead <integer> Number of buffer frames for threaded lookahead
  402. --non-deterministic Slightly improve quality of SMP, at the cost of repeatability
  403. --cpu-independent Ensure exact reproducibility across different cpus,
  404. as opposed to letting them select different algorithms
  405. --asm <integer> Override CPU detection
  406. --no-asm Disable all CPU optimizations
  407. --opencl Enable use of OpenCL
  408. --opencl-clbin <string> Specify path of compiled OpenCL kernel cache
  409. --opencl-device <integer> Specify OpenCL device ordinal
  410. --dump-yuv <string> Save reconstructed frames
  411. --sps-id <integer> Set SPS and PPS id numbers [0]
  412. --aud Use access unit delimiters
  413. --force-cfr Force constant framerate timestamp generation
  414. --tcfile-in <string> Force timestamp generation with timecode file
  415. --tcfile-out <string> Output timecode v2 file from input timestamps
  416. --timebase <int/int> Specify timebase numerator and denominator
  417. <integer> Specify timebase numerator for input timecode file
  418. or specify timebase denominator for other input
  419. --dts-compress Eliminate initial delay with container DTS hack
  420.  
  421. Filtering:
  422.  
  423. --vf, --video-filter <filter0>/<filter1>/... Apply video filtering to the input file
  424.  
  425. Filter options may be specified in <filter>:<option>=<value> format.
  426.  
  427. Available filters:
  428. crop:left,top,right,bottom
  429. removes pixels from the edges of the frame
  430. resize:[width,height][,sar][,fittobox][,csp][,method]
  431. resizes frames based on the given criteria:
  432. - resolution only: resizes and adapts sar to avoid stretching
  433. - sar only: sets the sar and resizes to avoid stretching
  434. - resolution and sar: resizes to given resolution and sets the sar
  435. - fittobox: resizes the video based on the desired constraints
  436. - width, height, both
  437. - fittobox and sar: same as above except with specified sar
  438. - csp: convert to the given csp. syntax: [name][:depth]
  439. - valid csp names [keep current]: i420, yv12, nv12, i422, yv16, nv16, i444, yv24, bgr, bgra, rgb
  440. - depth: 8 or 16 bits per pixel [keep current]
  441. note: not all depths are supported by all csps.
  442. - method: use resizer method ["bicubic"]
  443. - fastbilinear, bilinear, bicubic, experimental, point,
  444. - area, bicublin, gauss, sinc, lanczos, spline
  445. select_every:step,offset1[,...]
  446. apply a selection pattern to input frames
  447. step: the number of frames in the pattern
  448. offsets: the offset into the step to select a frame
  449. see: http://avisynth.nl/index.php/Select#SelectEvery
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement