Update changelog.
[deb_x265.git] / debian / x265.1
CommitLineData
4d13a1de
MB
1.TH X265 "1" "AUGUST 2014" "v1.4" "User Commands"
2.SH NAME
3x265 \- H.265/HEVC video encoder
4
5.SH SYNOPSIS
6.B x265 \fR[options] \fIinfile \fR[\-o] \fIoutfile
7.br
8Bit depth: 8
9.PP
10.B x265\-10bit \fR[options] \fIinfile \fR[\-o] \fIoutfile
11.br
12Bit depth: 10
13.PP
14infile can be YUV or Y4M
15.br
16outfile is raw HEVC bitstream
17
18.SH DESCRIPTION
19Increasing demand for high definition and ultra\-high definition video,
20along with an increasing desire for video on demand has led to
21exponential growth in demand for bandwidth and storage requirements.
22These challenges can be met by the new High Efficiency Video Coding
23(HEVC) standard, also known as H.265. The x265 HEVC encoder project was
24launched by MulticoreWare in 2013, aiming to provide the most efficient,
25highest performance HEVC video encoder.
26.SS About HEVC
27The High Efficiency Video Coding (HEVC) was developed by the ISO/IEC
28Moving Picture Experts Group (MPEG) and ITU\-T Video Coding Experts Group
29(VCEG), through their Joint Collaborative Team on Video Coding (JCT\-VC).
30HEVC is also known as ISO/IEC 23008\-2 MPEG\-H Part 2 and ITU\-T H.265.
31HEVC provides superior video quality and up to twice the data
32compression as the previous standard (H.264/MPEG\-4 AVC). HEVC can
33support 8K Ultra High Definition video, with a picture size up to
348192x4320 pixels.
35.SS About x265
36The primary objective of x265 is to become the best H.265/HEVC encoder
37available anywhere, offering the highest compression efficiency and the
38highest performance on a wide variety of hardware platforms. The x265
39encoder is available as an open source library, published under the
40GPLv2 license. It is also available under a commercial license, enabling
41commercial companies to utilize and distribute x265 in their solutions
42without being subject to the restrictions of the GPL license.
43
44.SH OPTIONS
45.TP
46\fB\-h/\-\-help
47Show this help text and exit
48.TP
49\fB\-V/\-\-version
50Show version info and exit
51
52.SS "Output Options:"
53.TP
54\fB\-\-output <filename>
55Bitstream output file name
56.TP
57\fB\-\-log\-level <string>
58Logging level: none error warning info debug full. Default info
59.TP
60\fB\-\-no\-progress
61Disable CLI progress reports
62.TP
63\fB\-\-[no\-]cu\-stats
64Enable logging stats about distribution of cu across all modes. Default disabled
65.TP
66\fB\-\-csv <filename>
67Comma separated log file, log level >= 3 frame log, else one line per run
68
69.SS "Input Options:"
70.TP
71\fB\-\-input <filename>
72Raw YUV or Y4M input file name. `\-` for stdin
73.TP
74\fB\-\-y4m
75Force parsing of input stream as YUV4MPEG2 regardless of file extension
76.TP
77\fB\-\-fps <float|rational>
78Source frame rate (float or num/denom), auto\-detected if Y4M
79.TP
80\fB\-\-input\-res WxH
81Source picture size [w x h], auto\-detected if Y4M
82.TP
83\fB\-\-input\-depth <integer>
84Bit\-depth of input file. Default 8
85.TP
86\fB\-\-input\-csp <string>
87Source color space: i420, i444 or i422, auto\-detected if Y4M. Default: i420
88.TP
89\fB\-f/\-\-frames <integer>
90Maximum number of frames to encode. Default all
91.TP
92\fB\-\-seek <integer>
93First frame to encode
94.TP
95\fB\-\-[no\-]interlace <bff|tff>
96Indicate input pictures are interlace fields in temporal order. Default progressive
97.TP
98\fB\-\-dither
99Enable dither if downscaling to 8 bit pixels. Default disabled
100
101.SS "Quality reporting metrics:"
102.TP
103\fB\-\-[no\-]ssim
104Enable reporting SSIM metric scores. Default disabled
105.TP
106\fB\-\-[no\-]psnr
107Enable reporting PSNR metric scores. Default disabled
108
109.SS "Profile, Level, Tier:"
110.TP
111\fB\-\-profile <string>
112Enforce an encode profile: main, main10, mainstillpicture
113.TP
114\fB\-\-level\-idc <integer|float>
115Force a minumum required decoder level (as '5.0' or '50')
116.TP
117\fB\-\-[no\-]high\-tier
118If a decoder level is specified, this modifier selects High tier of that level
119
120.SS "Threading, performance:"
121.TP
122\fB\-\-threads <integer>
123Number of threads for thread pool (0: detect CPU core count, default)
124.TP
125\fB\-F/\-\-frame\-threads <integer>
126Number of concurrently encoded frames. 0: auto\-determined by core count
127.TP
128\fB\-\-[no\-]wpp
129Enable Wavefront Parallel Processing. Default enabled
130.TP
131\fB\-\-[no\-]pmode
132Parallel mode analysis. Default disabled
133.TP
134\fB\-\-[no\-]pme
135Parallel motion estimation. Default disabled
136.TP
137\fB\-\-[no\-]asm <bool|int|string>
138Override CPU detection. Default: auto
139
140.SS Presets:
141.TP
142\fB\-p/\-\-preset <string>
143Trade off performance for compression efficiency. Default medium
144.br
145ultrafast, superfast, veryfast, faster, fast, medium, slow, slower, veryslow, or placebo
146.TP
147\fB\-t/--tune <string>
148Tune the settings for a particular type of source or situation:"
149.br
150psnr, ssim, zerolatency, or fastdecode
151
152.SS "Quad-Tree size and depth:"
153.TP
154\fB\-s/\-\-ctu <64|32|16>
155Maximum CU size (default: 64x64). Default 64
156.TP
157\fB\-\-tu\-intra\-depth <integer>
158Max TU recursive depth for intra CUs. Default 1
159.TP
160\fB\-\-tu\-inter\-depth <integer>
161Max TU recursive depth for inter CUs. Default 1
162.TP
163\fB\-\-[no\-]rect
164Enable rectangular motion partitions Nx2N and 2NxN. Default disabled
165.TP
166\fB\-\-[no\-]amp
167Enable asymmetric motion partitions, requires \fB\-\-rect\fR. Default disabled
168.TP
169\fB\-\-rd <0..6>
170Level of RD in mode decision 0:least....6:full RDO. Default 3
171.TP
172\fB\-\-psy\-rd <0..2.0>
173Strength of psycho\-visual rate distortion optimization, 0 to disable. Default 0.000000
174.TP
175\fB\-\-psy\-rdoq <0..50.0>
176Strength of psycho\-visual optimization in quantization, 0 to disable. Default 0.000000
177.TP
178\fB\-\-nr <integer>
179An integer value in range of 100 to 1000, which denotes strength of noise reduction. Default disabled
180.TP
181\fB\-\-[no\-]tskip\-fast
182Enable fast intra transform skipping. Default disabled
183.TP
184\fB\-\-[no\-]early\-skip
185Enable early SKIP detection. Default disabled
186.TP
187\fB\-\-[no\-]fast\-cbf
188Enable early outs based on whether residual is coded. Default disabled
189
190.SS "Coding tools:"
191.TP
192\fB\-w/\-\-[no\-]weightp
193Enable weighted prediction in P slices. Default enabled
194.TP
195\fB\-\-[no\-]weightb
196Enable weighted prediction in B slices. Default disabled
197.TP
198\fB\-\-[no\-]cu-lossless
199Consider lossless mode in CU RDO decisions. Default disabled
200.TP
201\fB\-\-[no\-]signhide
202Hide sign bit of one coeff per TU (rdo). Default enabled
203.TP
204\fB\-\-[no\-]tskip
205Enable intra transform skipping. Default disabled
206
207.SS "Temporal / motion search options:"
208.TP
209\fB\-\-me <string>
210Motion search method dia hex umh star full. Default 1
211.TP
212\fB\-m/\-\-subme <integer>
213Amount of subpel refinement to perform (0:least .. 7:most). Default 2
214.TP
215\fB\-\-merange <integer>
216Motion search range. Default 57
217.TP
218\fB\-\-max\-merge <1..5>
219Maximum number of merge candidates. Default 2
220.TP
221\fB\-\-[no\-]temporal\-mvp
222Enable temporal MV predictors. Default enabled
223
224.SS "Spatial / intra options:"
225.TP
226\fB\-\-[no\-]strong\-intra\-smoothing
227Enable strong intra smoothing for 32x32 blocks. Default enabled
228.TP
229\fB\-\-[no\-]constrained\-intra
230Constrained intra prediction (use only intra coded reference pixels) Default disabled
231.TP
232\fB\-\-[no\-]b\-intra
233Enable intra in B frames in veryslow presets. Default disabled
234.TP
235\fB\-\-[no\-]fast\-intra
236Enable faster search method for angular intra predictions. Default disabled
237.TP
238\fB\-\-rdpenalty <0..2>
239penalty for 32x32 intra TU in non\-I slices. 0:disabled 1:RD\-penalty 2:maximum. Default 0
240
241.SS "Slice decision options:"
242.TP
243\fB\-\-[no\-]open\-gop
244Enable open\-GOP, allows I slices to be non\-IDR. Default enabled
245.TP
246\fB\-I/\-\-keyint <integer>
247Max IDR period in frames. \-1 for infinite\-gop. Default 250
248.TP
249\fB\-i/\-\-min\-keyint <integer>
250Scenecuts closer together than this are coded as I, not IDR. Default: auto
251.TP
252\fB\-\-no\-scenecut
253Disable adaptive I\-frame decision
254.TP
255\fB\-\-scenecut <integer>
256How aggressively to insert extra I\-frames. Default 40
257.TP
258\fB\-\-rc\-lookahead <integer>
259Number of frames for frame\-type lookahead (determines encoder latency) Default 20
260.TP
261\fB\-\-bframes <integer>
262Maximum number of consecutive b\-frames (now it only enables B GOP structure) Default 4
263.TP
264\fB\-\-bframe\-bias <integer>
265Bias towards B frame decisions. Default 0
266.TP
267\fB\-\-b\-adapt <0..2>
2680 \- none, 1 \- fast, 2 \- full (trellis) adaptive B frame scheduling. Default 2
269.TP
270\fB\-\-[no\-]b\-pyramid
271Use B\-frames as references. Default enabled
272.TP
273\fB\-\-ref <integer>
274max number of L0 references to be allowed (1 .. 16) Default 3
275.TP
276\fB\-\-qpfile <string>
277Force frametypes and QPs for some or all frames
278.br
279Format of each line: framenumber frametype QP
280.br
281QP is optional (none lets x265 choose). Frametypes: I,i,P,B,b.
282.br
283QPs are restricted by qpmin/qpmax.
284.PP
285
286.SS "Rate control, Quantization:"
287.TP
288\fB\-\-bitrate <integer>
289Target bitrate (kbps) for ABR (implied). Default 0
290.TP
291\fB\-\-crf <float>
292Quality\-based VBR (0\-51). Default 28.000000
293.TP
294\fB\-\-[no\-]lossless
295Enable lossless: bypass transform, quant and loop filters globally. Default disabled
296.TP
297\fB\-\-crf\-max <float>
298With CRF+VBV, limit RF to this value. Default 0.000000
299.br
300May cause VBV underflows!
301.TP
302\fB\-\-crf\-min <float>
303With CRF+VBV, limit RF to this value. Default 0.000000
304.br
305this specifies a minimum rate factor value for encode!
306.TP
307\fB\-\-vbv\-maxrate <integer>
308Max local bitrate (kbit/s). Default 0
309.TP
310\fB\-\-vbv\-bufsize <integer>
311Set size of the VBV buffer (kbit). Default 0
312.TP
313\fB\-\-vbv\-init <float>
314Initial VBV buffer occupancy (fraction of bufsize or in kbits). Default 0.900000
315.TP
316\fB\-\-aq\-mode <integer>
317Mode for Adaptive Quantization \- 0:none 1:uniform AQ 2:auto variance. Default 2
318.TP
319\fB\-\-aq\-strength <float>
320Reduces blocking and blurring in flat and textured areas.(0 to 3.0). Default 1.000000
321.TP
322\fB\-\-[no\-]cutree
323Enable cutree for Adaptive Quantization. Default enabled
324.TP
325\fB\-\-ipratio <float>
326QP factor between I and P. Default 1.400000
327.TP
328\fB\-\-pbratio <float>
329QP factor between P and B. Default 1.300000
330.TP
331\fB\-\-cbqpoffs <integer>
332Chroma Cb QP Offset. Default 0
333.TP
334\fB\-\-crqpoffs <integer>
335Chroma Cr QP Offset. Default 0
336.TP
337\fB\-\-stats
338Filename for stats file in multipass pass rate control. Default x265_2pass.log
339.TP
340\fB\-\-pass
341Multi pass rate control.
342.br
343 \- 1 : First pass, creates stats file
344.br
345 \- 2 : Last pass, does not overwrite stats file
346.br
347 \- 3 : Nth pass, overwrites stats file
348.TP
349\fB\-\-[no\-]slow\-firstpass
350Enable a slow first pass in a multipass rate control mode. Default disabled
351.TP
352\fB\-\-analysis\-mode <string|int>
353save \- Dump analysis info into file, load \- Load analysis buffers from the file. Default 0
354.TP
355\fB\-\-analysis-file <filename>
356Specify file name used for either dumping or reading analysis data.
357.TP
358\fB\-\-scaling\-list <string>
359Specify a file containing HM style quant scaling lists or 'default' or 'off'. Default: off
360.TP
361\fB\-\-lambda\-file <string>
362Specify a file containing replacement values for the lambda tables
363.br
364MAX_MAX_QP+1 floats for lambda table, then again for lambda2 table
365.br
366Blank lines and lines starting with hash(#) are ignored
367.br
368Comma is considered to be white-space
369
370.SS "Loop filters (deblock and SAO):"
371.TP
372\fB\-\-[no\-]lft
373Enable Deblocking Loop Filter. Default enabled
374.TP
375\fB\-\-[no\-]sao
376Enable Sample Adaptive Offset. Default enabled
377.TP
378\fB\-\-[no\-]sao\-non\-deblock
379Use non\-deblocked pixels, else right/bottom boundary areas skipped. Default disabled
380
381.SS "VUI options:"
382.TP
383\fB\-\-sar <width:height|int>
384Sample Aspect Ratio, the ratio of width to height of an individual pixel.
385.br
386Choose from 0=undef, 1=1:1("square"), 2=12:11, 3=10:11, 4=16:11,
3875=40:33, 6=24:11, 7=20:11, 8=32:11, 9=80:33, 10=18:11, 11=15:11,
38812=64:33, 13=160:99, 14=4:3, 15=3:2, 16=2:1 or custom ratio of <int:int>. Default 0
389.TP
390\fB\-\-crop\-rect <string>
391Add 'left,top,right,bottom' to the bitstream\-level cropping rectangle
392.TP
393\fB\-\-overscan <string>
394Specify whether it is appropriate for decoder to show cropped region: undef, show or crop. Default undef
395.TP
396\fB\-\-videoformat <string>
397Specify video format from undef, component, pal, ntsc, secam, mac. Default undef
398.TP
399\fB\-\-range <string>
400Specify black level and range of luma and chroma signals as full or limited Default limited
401.TP
402\fB\-\-colorprim <string>
403Specify color primaries from undef, bt709, bt470m, bt470bg, smpte170m,
404smpte240m, film, bt2020. Default undef
405.TP
406\fB\-\-transfer <string>
407Specify transfer characteristics from undef, bt709, bt470m, bt470bg, smpte170m,
408smpte240m, linear, log100, log316, iec61966\-2\-4, bt1361e, iec61966\-2\-1,
409bt2020\-10, bt2020\-12. Default undef
410.TP
411\fB\-\-colormatrix <string>
412Specify color matrix setting from undef, bt709, fcc, bt470bg, smpte170m,
413smpte240m, GBR, YCgCo, bt2020nc, bt2020c. Default undef
414.TP
415\fB\-\-chromaloc <integer>
416Specify chroma sample location (0 to 5). Default of 0
417
418.SS "Bitstream options:"
419.TP
420\fB\-\-[no\-]info
421Emit SEI identifying encoder and parameters. Default enabled
422.TP
423\fB\-\-[no\-]aud
424Emit access unit delimiters at the start of each access unit. Default disabled
425.TP
426\fB\-\-[no\-]hrd
427Enable HRD parameters signalling. Default disabled
428.TP
429\fB\-\-[no\-]repeat\-headers
430Emit SPS and PPS headers at each keyframe. Default disabled
431.TP
432\fB\-\-hash <integer>
433Decoded Picture Hash SEI 0: disabled, 1: MD5, 2: CRC, 3: Checksum. Default 0
434
435.SS "Reconstructed video options (debugging):"
436.TP
437\fB\-r/\-\-recon <filename>
438Reconstructed raw image YUV or Y4M output file name
439.TP
440\fB\-\-recon\-depth <integer>
441Bit\-depth of reconstructed raw image file. Defaults to input bit depth, or 8 if Y4M
442.SH COPYRIGHT
443Copyright \(co 2013\-2014 MulticoreWare, Inc.
444.PP
445The x265 software is owned and copyrighted by MulticoreWare, Inc.
446MulticoreWare is committed to offering the x265 software under the GNU
447GPL v2 license. Companies who do not wish to integrate the x265
448Software in their products under the terms of the GPL license can
449contact MulticoreWare (\fIlicense@x265.com\fR) to obtain a commercial
450license agreement. Companies who use x265 under the GPL may also wish
451to work with MulticoreWare to accelerate the development of specific
452features or optimized support for specific hardware or software
453platforms, or to contract for support.
454.PP
455The GNU GPL v2 license or the x265 commercial license agreement govern
456your rights to access the copyrighted x265 software source code, but do
457not cover any patents that may be applicable to the function of binary
458executable software created from the x265 source code. You are
459responsible for understanding the laws in your country, and for
460licensing all applicable patent rights needed for use or distribution of
461software applications created from the x265 source code. A good place
462to start is with the Motion Picture Experts Group \- Licensing Authority
463\- HEVC Licensing Program.
464.PP
465x265 is a registered trademark of MulticoreWare, Inc. The x265 logo is
466a trademark of MulticoreWare, and may only be used with explicit written
467permission. All rights reserved.
468
469.SH "SEE ALSO"
470.TP
471\fIhttp://x265.readthedocs.org/en/default/cli.html\fR
472online documentation