default: ::=<20>:<23>:<25>
--vbr set bitrate for VBR mode (kbps)
--vbrhq set bitrate for VBR (High Quality) mode (kbps)
--cbr set bitrate for CBR mode (kbps)
--cbrhq set bitrate for CBR (High Quality) mode (kbps)
default: 7500 kbps
-u,--preset set encoder preset
default, performance, quality
--vbr-quality target quality for VBR mode (0-51, 0=auto)
--max-bitrate set Max Bitrate (kbps)
--dynamic-rc :,=[,=][...]
change the rate control mode within the specified range of output frames
params
cqp= or ::
vbr=
vbrhq=
cbr=
cbrhq=
max-bitrate=
vbr-quality=
--qp-init or set initial QP
:: default: auto
--qp-max or set max QP
:: default: unset
--qp-min or set min QP
:: default: unset
--gop-len set GOP Length / default: 0 frames (auto)
--lookahead enable lookahead and set lookahead depth (1-32)
default: 16 frames
--strict-gop avoid GOP len fluctuation
--no-i-adapt disable adapt. I frame insertion
--no-b-adapt disable adapt. B frame insertion
for lookahead mode only, default: off
-b,--bframes set number of consecutive B frames
default: 3 frames
--ref set ref frames / default 3 frames
--multiref-l0 set multiple ref frames (L0)
--multiref-l1 set multiple ref frames (L1)
--weightp enable weighted prediction for P frame
--nonrefp enable adapt. non-reference P frame insertion
--mv-precision set MV Precision / default: auto
auto,
Q-pel (High Quality),
half-pel,
full-pel (Low Quality, not recommended)
--slices number of slices, default 0 (auto)
--vbv-bufsize set vbv buffer size (kbit) / default: auto
--(no-)aq enable spatial adaptive quantization
--aq-temporal enable temporal adaptive quantization
--aq-strength set aq strength (weak 1 - 15 strong)
default: 0 = auto
--bref-mode set B frame reference mode
- disabled (default)
- each
- middle
--direct [H264] set B Direct mode
auto(default), none, spatial, temporal
--(no-)adapt-transform [H264] set adaptive transform mode (default=auto)
--cabac [H264] use CABAC
--cavlc [H264] use CAVLC (no CABAC)
--bluray [H264] for bluray / default: off
--(no-)deblock [H264] enable(disable) deblock filter
--cu-max [HEVC] set max CU size
--cu-min [HEVC] set min CU size
8, 16, 32 are avaliable
warning: it is not recommended to use --cu-max or --cu-min,
leaving it auto will enhance video quality.
--aud insert aud nal unit to ouput stream.
--pic-struct insert pic-timing SEI with pic_struct.
--chromaloc set chroma location flag [ 0 ... 5 ]
default: 0 = unspecified
--videoformat undef, auto, ntsc, component, pal, secam
mac
default: undef
--colormatrix undef, auto, auto_res, bt709, smpte170m
bt470bg, smpte240m, YCgCo, fcc, GBR
bt2020nc, bt2020c, derived-ncl, derived-cl
ictco, 2100-lms
default: undef
--colorprim undef, auto, auto_res, bt709, smpte170m
bt470m, bt470bg, smpte240m, film, bt2020
st428, st431-2, st432-1, ebu3213-e
default: undef
--transfer undef, auto, auto_res, bt709, smpte170m
bt470m, bt470bg, smpte240m, linear, log100
log316, iec61966-2-4, bt1361e, iec61966-2-1
bt2020-10, bt2020-12, smpte2084, smpte428
arib-std-b67
default: undef
--colorrange undef, limited, tv, full, pc, auto
default: undef
--max-cll , set MaxCLL/MaxFall in nits. e.g. "1000,300"
--master-display set Mastering display data.
e.g. "G(13250,34500)B(7500,3000)R(34000,16000)WP(15635,16450)L(10000000,1)"
--dhdr10-info apply dynamic HDR10+ metadata from json file.
--input-analyze set time (sec) which reader analyze input file.
default: 5 (seconds).
could be only used with avhw/avsw reader.
use if reader fails to detect audio stream.
--video-track set video track to encode in track id
1 (default) highest resolution video track
2 next high resolution video track
...
-1 lowest resolution video track
-2 next low resolution video track
...
--video-streamid set video track to encode in stream id
--audio-source input extra audio file.
--audio-file [?][:]
extract audio into file.
could be only used with avhw/avsw reader.
below are optional,
in [?], specify track number to extract.
in [?], specify output format.
--trim :[,:]...
trim video for the frame range specified.
frame range should not overwrap each other.
--seek [:][:][.] (hh:mm:ss.ms)
skip video for the time specified,
seek will be inaccurate but fast.
--input-format set input format of input file.
this requires use of avhw/avsw reader.
-f,--output-format set output format of output file.
if format is not specified, output format will
be guessed from output file extension.
set "raw" for H.264/ES output.
--audio-copy [[,...]] mux audio with video during output.
could be only used with
avhw/avsw reader and avcodec muxer.
by default copies all audio tracks.
"--audio-copy 1,2" will extract
audio track #1 and #2.
--audio-codec [?]
encode audio to specified format.
in [?], specify track number to encode.
--audio-profile [?]
specify audio profile.
in [?], specify track number to apply.
--audio-bitrate [?]
set encode bitrate for audio (kbps).
in [?], specify track number of audio.
--audio-ignore-decode-error (default: 10)
set numbers of continuous packets of audio decode
error to ignore, replaced by silence.
--audio-samplerate [?]
set sampling rate for audio (Hz).
in [?], specify track number of audio.
--audio-resampler set audio resampler.
swr (swresampler: default), soxr (libsoxr)
--audio-delay [?] set audio delay (ms).
--audio-stream [?][][:][,[][:]][..
set audio streams in channels.
in [?], specify track number to split.
in , set input channels to use from source stream.
if unset, all input channels will be used.
in , set output channels to mix.
if unset, all input channels will be copied without mixing.
example1: --audio-stream FL,FR
splitting dual mono audio to each stream.
example2: --audio-stream :stereo
mixing input channels to stereo.
example3: --audio-stream 5.1,5.1:stereo
keeping 5.1ch audio and also adding downmixed stereo stream.
usable symbols
mono = FC
stereo = FL + FR
2.1 = FL + FR + LFE
3.0 = FL + FR + FC
3.0(back) = FL + FR + BC
3.1 = FL + FR + FC + LFE
4.0 = FL + FR + FC + BC
quad = FL + FR + BL + BR
quad(side) = FL + FR + SL + SR
5.0 = FL + FR + FC + SL + SR
5.1 = FL + FR + FC + LFE + SL + SR
6.0 = FL + FR + FC + BC + SL + SR
6.0(front) = FL + FR + FLC + FRC + SL + SR
hexagonal = FL + FR + FC + BL + BR + BC
6.1 = FL + FR + FC + LFE + BC + SL + SR
6.1(front) = FL + FR + LFE + FLC + FRC + SL + SR
7.0 = FL + FR + FC + BL + BR + SL + SR
7.0(front) = FL + FR + FC + FLC + FRC + SL + SR
7.1 = FL + FR + FC + LFE + BL + BR + SL + SR
7.1(wide) = FL + FR + FC + LFE + FLC + FRC + SL + SR
--audio-filter [?]
set audio filter.
in [?], specify track number of audio.
--chapter-copy copy chapter to output file.
--chapter set chapter from file specified.
--key-on-chapter set key frame on chapter.
--sub-source input extra subtitle file.
--sub-copy [[,...]] copy subtitle to output file.
these could be only used with
avhw/avsw reader and avcodec muxer.
below are optional,
in [?], specify track number to copy.
--caption2ass [] enable caption2ass during encode.
!! This feature requires Caption.dll !!
supported formats ... srt (default), ass
--data-copy [[,...]] copy data stream to output file.
--avsync method for AV sync (default: cfr)
cfr ... assume cfr
forcecfr ... check timestamp and force cfr
vfr ... honor source timestamp and enable vfr output.
only available for avsw/avhw reader,
and could not be used with --trim.
--input-option :
set input option name and value.
these could be only used with avhw/avsw reader.
-m,--mux-option :
set muxer option name and value.
these could be only used with
avhw/avsw reader and avcodec muxer.
--vpp-deinterlace set deinterlace mode / default: none
none, bob, adaptive (normal)
available only with avhw reader
--vpp-afs [=][,=][...]
enable auto field shift deinterlacer
params
preset=
default, triple, double, anime, cinema, min_afterimg,
24fps, 24fps_sd, 30fps
ini=
read setting from ini file specified (output of afs.auf)
!! params from preset & ini will be overrided by user settings below !!
Aviutl????????
top= (?) clip range to scan (default=16)
bottom= (?) clip range to scan (default=16)
left= (?) clip range to scan (default=32)
right= (?) clip range to scan (default=32)
left & right must be muitiple of 4
method_switch= (???) (default=0, 0-256)
coeff_shift= (???) (default=192, 0-256)
thre_shift= (?(???)) stripe(shift)thres (default=128, 0-1024)
thre_deint= (?(??)) stripe(deint)thres (default=48, 0-1024)
thre_motion_y= (Y??) Y motion threshold (default=112, 0-1024)
thre_motion_c= (C??) C motion threshold (default=224, 0-1024)
level= (??Lv) set deint level (default=3, 0-4
shift= (????????) enable field shift (default=on)
drop= (????) enable frame drop (default=off)
smooth= (??????) enable smoothing (default=off)
24fps= (24fps?) force 30fps->24fps (default=off)
tune= (?????) show scan result (default=off)
rff= rff flag aware (default=off)
timecode= output timecode (default=off)
log= output log (default=off)
--vpp-nnedi [=][,=][...]
enable nnedi deinterlacer
params
field=
auto (default) Generate latter field from first field.
top Generate bottom field using top field.
bottom Generate top field using bottom field.
nns= Neurons of neural net (default: 32)
16, 32, 64, 128, 256
nszie=x Area size neural net uses to generate a pixel.
8x6, 16x6, 32x6, 48x6, 8x4, 16x4, 32x4(default)
quality= quality settings
fast (default), slow
prescreen= (default: new_block)
none No pre-screening is done and all pixels will be
generated by neural net.
original Runs prescreener to determine which pixel to apply
new neural net, other pixels will be generated from
simple interpolation.
original_block GPU optimized ver of original/new.
new_block
errortype= Select weight parameter for neural net.
abs (default), square
prec= Select calculation precision.
auto (default), fp16, fp32
weightfile= Set path of weight file. By default (not specified),
internal weight params will be used.
--vpp-yadif [=]
enable yadif deinterlacer
params
mode=
auto (default) Generate latter field using first field.
tff Generate bottom field using top field.
bff Generate top field using bottom field.
bob Generate one frame from each field.
bob_tff Generate one frame from each field assuming tff.
bob_bff Generate one frame from each field assuming bff.
--vpp-rff apply rff flag, with avhw reader only.
--vpp-colorspace [=][,=][...]
Converts colorspace of the video.
params
matrix=:
bt709, smpte170m, bt470bg, smpte240m, YCgCo, fcc, GBR,
bt2020nc, bt2020c
colorprim=:
bt709, smpte170m, bt470m, bt470bg, smpte240m, film, bt2020
transfer=:
bt709, smpte170m, bt470m, bt470bg, smpte240m, linear,
log100, log316, iec61966-2-4, iec61966-2-1,
bt2020-10, bt2020-12, smpte2084, arib-srd-b67
range=:
limited, full
hdr2sdr= Enables HDR10 to SDR.
hable, mobius, reinhard, none
source_peak= (default: 1000.0)
ldr_nits= (default: 100.0)
--vpp-resize default, nn, npp_linear, cubic, super
lanczos, bilinear, nearest, spline16
spline36, spline64, lanczos2, lanczos3
lanczos4
default: default
--vpp-gauss disabled, 3, 5, 7
default: disabled
--vpp-knn [=][,=][...]
enable denoise filter by K-nearest neighbor.
params
radius= radius of knn (default=3)
strength= strength of knn (default=0.08, 0.0-1.0)
lerp= balance of orig & blended pixel (default=0.20)
lower value results strong denoise.
th_lerp= edge detect threshold (default=0.80, 0.0-1.0)
higher value will preserve edge.
--vpp-pmd [=][,=][...]
enable denoise filter by pmd.
params
apply_count= count to apply pmd denoise (default=2)
strength= strength of pmd (default=100.00, 0.0-100.0)
threshold= threshold of pmd (default=100.00, 0.0-255.0)
lower value will preserve edge.
--vpp-unsharp [=][,=][...]
enable unsharp filter.
params
radius= filter range for edge detection (default=3, 1-9)
weight= strength of filter (default=0.50, 0-10)
threshold= min brightness change to be sharpened (default=10.00, 0-255)
--vpp-edgelevel [=][,=][...]
edgelevel filter to enhance edge.
params
strength= strength (default=0, -31 - 31)
threshold= threshold to ignore noise (default=20.0, 0-255)
black= allow edge to be darker on edge enhancement
(default=0.0, 0-31)
white= allow edge to be brighter on edge enhancement
(default=0.0, 0-31)
--vpp-deband [=][,=][...]
enable deband filter.
params
range= range (default=15, 0-127)
sample= sample (default=1, 0-2)
thre= threshold for y, cb & cr
thre_y= threshold for y (default=15, 0-31)
thre_cb= threshold for cb (default=15, 0-31)
thre_cr= threshold for cr (default=15, 0-31)
dither=