Skip to content

Instantly share code, notes, and snippets.

Created June 6, 2014 11:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/5bc2e8a93b47312ed896 to your computer and use it in GitHub Desktop.
Save anonymous/5bc2e8a93b47312ed896 to your computer and use it in GitHub Desktop.
C:\Users\Admin\Desktop\Demo Videos>x265-32bit-latest.exe --help
x265 [info]: HEVC encoder version 1.1+45-e5656f1e1904
x265 [info]: build info [Windows][GCC 4.6.3][64 bit] 8bpp
Syntax: x265 [options] infile [-o] outfile
infile can be YUV or Y4M
outfile is raw HEVC bitstream
Executable Options:
-h/--help Show this help text and exit
-V/--version Show version info and exit
--[no-]asm <bool|int|string> Override CPU detection. Default: auto
--threads <integer> Number of threads for thread pool (0: detect CP
U core count, default)
-F/--frame-threads <integer> Number of concurrently encoded frames. 0: auto-
determined by core count
--log-level <string> Logging level: none error warning info debug fu
ll. Default info
--csv <filename> Comma separated log file, log level >= 3 frame
log, else one line per run
--no-progress Disable CLI progress reports
-o/--output <filename> Bitstream output file name
Input Options:
--input <filename> Raw YUV or Y4M input file name. `-` for stdin
--y4m Force parsing of input stream as YUV4MPEG2 rega
rdless of file extension
--input-depth <integer> Bit-depth of input file. Default 8
--dither Enable dither if downscaling to 8 bit pixels. D
efault disabled
--nr <integer> An integer value in range of 100 to 1000, which
denotes strength of noise reduction. Default disabled
--input-res WxH Source picture size [w x h], auto-detected if Y
4M
--input-csp <string> Source color space: i420, i444 or i422, auto-de
tected if Y4M. Default: i420
--level <integer|float> Force a minumum required decoder level (as '5.0
' or '50')
--fps <float|rational> Source frame rate (float or num/denom), auto-de
tected if Y4M
--[no-]interlace <bff|tff> Indicate input pictures are interlace fields in
temporal order. Default progressive
--seek <integer> First frame to encode
--qpfile <string> Force frametypes and QPs for some or all frames
Format of each line: framenumber frametype QP
QP is optional (none lets x265 choose). Frametypes: I,i,P,B,b.
QPs are restricted by qpmin/qpmax.
Presets:
-f/--frames <integer> Maximum number of frames to encode. Default all
-p/--preset <string> Trade off performance for compression efficienc
y. Default medium
ultrafast, superfast, veryfast, faster, fast, m
edium, slow, slower, veryslow, or placebo
-t/--tune <string> Tune the settings for a particular type of sour
ce or situation:
psnr, ssim, zerolatency, or fastdecode
Quality reporting metrics:
--[no-]ssim Enable reporting SSIM metric scores. Default di
sabled
--[no-]psnr Enable reporting PSNR metric scores. Default di
sabled
Quad-Tree analysis:
--[no-]wpp Enable Wavefront Parallel Processing. Default e
nabled
-s/--ctu <64|32|16> Maximum CU size (default: 64x64). Default 64
--tu-intra-depth <integer> Max TU recursive depth for intra CUs. Default 1
--tu-inter-depth <integer> Max TU recursive depth for inter CUs. Default 1
Temporal / motion search options:
--me <string> Motion search method dia hex umh star full. Def
ault 1
-m/--subme <integer> Amount of subpel refinement to perform (0:least
.. 7:most). Default 2
--merange <integer> Motion search range. Default 57
--[no-]rect Enable rectangular motion partitions Nx2N and 2
NxN. Default disabled
--[no-]amp Enable asymmetric motion partitions, requires -
-rect. Default disabled
--max-merge <1..5> Maximum number of merge candidates. Default 2
--[no-]early-skip Enable early SKIP detection. Default disabled
--[no-]fast-cbf Enable Cbf fast mode. Default disabled
Spatial / intra options:
--rdpenalty <0..2> penalty for 32x32 intra TU in non-I slices. 0:d
isabled 1:RD-penalty 2:maximum. Default 0
--[no-]tskip Enable intra transform skipping. Default disabl
ed
--[no-]tskip-fast Enable fast intra transform skipping. Default d
isabled
--[no-]strong-intra-smoothing Enable strong intra smoothing for 32x32 blocks.
Default enabled
--[no-]constrained-intra Constrained intra prediction (use only intra co
ded reference pixels) Default disabled
Slice decision options:
--[no-]open-gop Enable open-GOP, allows I slices to be non-IDR.
Default enabled
-I/--keyint <integer> Max IDR period in frames. -1 for infinite-gop.
Default 250
-i/--min-keyint <integer> Scenecuts closer together than this are coded a
s I, not IDR. Default: auto
--no-scenecut Disable adaptive I-frame decision
--scenecut <integer> How aggressively to insert extra I-frames. Defa
ult 40
--rc-lookahead <integer> Number of frames for frame-type lookahead (dete
rmines encoder latency) Default 20
--bframes <integer> Maximum number of consecutive b-frames (now it
only enables B GOP structure) Default 4
--bframe-bias <integer> Bias towards B frame decisions. Default 0
--b-adapt <0..2> 0 - none, 1 - fast, 2 - full (trellis) adaptive
B frame scheduling. Default 2
--[no-]b-pyramid Use B-frames as references. Default enabled
--[no-]b-intra Enable intra in B frames in veryslow presets. D
efault enabled
--ref <integer> max number of L0 references to be allowed (1 ..
16) Default 3
-w/--[no-]weightp Enable weighted prediction in P slices. Default
enabled
--[no-]weightb Enable weighted prediction in B slices. Default
disabled
--[no-]lossless Enable lossless: bypass transform, quant and lo
op filters globally. Default disabled
Rate control and rate distortion options:
--bitrate <integer> Target bitrate (kbps), implies ABR. Default 0
--crf <float> Quality-based VBR (0-51). Default 28.000000
--crf-max <float> With CRF+VBV, limit RF to this value. Default 0
.000000
May cause VBV underflows!
--crf-min <float> With CRF+VBV, limit RF to this value. Default 0
.000000
this specifies a minimum rate factor value for
encode!
--vbv-maxrate <integer> Max local bitrate (kbit/s). Default 0
--vbv-bufsize <integer> Set size of the VBV buffer (kbit). Default 0
--vbv-init <float> Initial VBV buffer occupancy (fraction of bufsi
ze or in kbits). Default 0.900000
-q/--qp <integer> Base QP for CQP mode
--aq-mode <integer> Mode for Adaptive Quantization - 0:none 1:unifo
rm AQ 2:auto variance. Default 2
--aq-strength <float> Reduces blocking and blurring in flat and textu
red areas.(0 to 3.0). Default 1.000000
--[no-]cutree Enable cutree for Adaptive Quantization. Defaul
t enabled
--cbqpoffs <integer> Chroma Cb QP Offset. Default 0
--crqpoffs <integer> Chroma Cr QP Offset. Default 0
--[no-]hrd Enable HRD parameters signalling. Default disab
led
--rd <0..6> Level of RD in mode decision 0:least....6:full
RDO. Default 3
--psy-rd <0..2.0> Strength of psycho-visual optimization. Require
s slow preset or below. Default 0.000000
--[no-]signhide Hide sign bit of one coeff per TU (rdo). Defaul
t enabled
--[no-]cu-lossless Consider lossless mode in CU RDO decisions. Def
ault disabled
Loop filters (deblock and SAO):
--[no-]lft Enable Deblocking Loop Filter. Default enabled
--[no-]sao Enable Sample Adaptive Offset. Default enabled
--sao-lcu-bounds <integer> 0: right/bottom boundary areas skipped 1: non-
deblocked pixels are used. Default 0
--sao-lcu-opt <integer> 0: SAO picture-based optimization, 1: SAO LCU-b
ased optimization. Default 1
VUI options:
--sar <width:height|int> Sample Aspect Ratio, the ratio of width to heig
ht of an individual pixel.
Choose from 0=undef, 1=1:1("square"), 2=12:11,
3=10:11, 4=16:11,
5=40:33, 6=24:11, 7=20:11, 8=32:11, 9=80:33, 10
=18:11, 11=15:11,
12=64:33, 13=160:99, 14=4:3, 15=3:2, 16=2:1 or
custom ratio of <int:int>. Default 0
--crop-rect <string> Add 'left,top,right,bottom' to the bitstream-le
vel cropping rectangle
--overscan <string> Specify whether it is appropriate for decoder t
o show cropped region: undef, show or crop. Default undef
--videoformat <string> Specify video format from undef, component, pal
, ntsc, secam, mac. Default undef
--range <string> Specify black level and range of luma and chrom
a signals as full or limited Default limited
--colorprim <string> Specify color primaries from undef, bt709, bt47
0m, bt470bg, smpte170m,
smpte240m, film, bt2020. Default undef
--transfer <string> Specify transfer characteristics from undef, bt
709, bt470m, bt470bg, smpte170m,
smpte240m, linear, log100, log316, iec61966-2-4
, bt1361e, iec61966-2-1,
bt2020-10, bt2020-12. Default undef
--colormatrix <string> Specify color matrix setting from undef, bt709,
fcc, bt470bg, smpte170m,
smpte240m, GBR, YCgCo, bt2020nc, bt2020c. Defau
lt undef
--chromaloc <integer> Specify chroma sample location (0 to 5). Defaul
t of 0
Bitstream options:
--[no-]aud Emit access unit delimiters at the start of eac
h access unit. Default disabled
--[no-]repeat-headers Emit SPS and PPS headers at each keyframe. Defa
ult disabled
--hash <integer> Decoded Picture Hash SEI 0: disabled, 1: MD5, 2
: CRC, 3: Checksum. Default 0
Reconstructed video options (debugging):
-r/--recon <filename> Reconstructed raw image YUV or Y4M output file
name
--recon-depth <integer> Bit-depth of reconstructed raw image file. Defa
ults to input bit depth, or 8 if Y4M
Full documentation may be found at http://x265.readthedocs.org/en/default/cli.ht
ml
C:\Users\Admin\Desktop\Demo Videos>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment