Guest User

x264 --fullhelp 2017.06.29 from Linux Mint

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