Skip to content

Instantly share code, notes, and snippets.

@sandr1x
Last active February 26, 2024 12:40
Show Gist options
  • Save sandr1x/975a4fb0f346764c5e8b8b0a3afa4001 to your computer and use it in GitHub Desktop.
Save sandr1x/975a4fb0f346764c5e8b8b0a3afa4001 to your computer and use it in GitHub Desktop.
ffmpeg -h encoder=av1
Encoder libaom-av1 [libaom AV1]:
General capabilities: delay threads
Threading capabilities: other
Supported pixel formats: yuv420p yuv422p yuv444p gbrp yuv420p10le yuv422p10le yuv444p10le yuv420p12le yuv422p12le yuv444p12le gbrp10le gbrp12le gray gray10le gray12le
libaom-av1 encoder AVOptions:
-cpu-used <int> E..V....... Quality/Speed ratio modifier (from 0 to 8) (default 1)
-auto-alt-ref <int> E..V....... Enable use of alternate reference frames (2-pass only) (from -1 to 2) (default -1)
-lag-in-frames <int> E..V....... Number of frames to look ahead at for alternate reference frame selection (from -1 to INT_MAX) (default -1)
-arnr-max-frames <int> E..V....... altref noise reduction max frame count (from -1 to INT_MAX) (default -1)
-arnr-strength <int> E..V....... altref noise reduction filter strength (from -1 to 6) (default -1)
-aq-mode <int> E..V....... adaptive quantization mode (from -1 to 4) (default -1)
none 0 E..V....... Aq not used
variance 1 E..V....... Variance based Aq
complexity 2 E..V....... Complexity based Aq
cyclic 3 E..V....... Cyclic Refresh Aq
-error-resilience <flags> E..V....... Error resilience configuration (default 0)
default E..V....... Improve resiliency against losses of whole frames
-crf <int> E..V....... Select the quality for constant quality mode (from -1 to 63) (default -1)
-static-thresh <int> E..V....... A change threshold on blocks below which they will be skipped by the encoder (from 0 to INT_MAX) (default 0)
-drop-threshold <int> E..V....... Frame drop threshold (from INT_MIN to INT_MAX) (default 0)
-denoise-noise-level <int> E..V....... Amount of noise to be removed (from -1 to INT_MAX) (default -1)
-denoise-block-size <int> E..V....... Denoise block size (from -1 to INT_MAX) (default -1)
-undershoot-pct <int> E..V....... Datarate undershoot (min) target (%) (from -1 to 100) (default -1)
-overshoot-pct <int> E..V....... Datarate overshoot (max) target (%) (from -1 to 1000) (default -1)
-minsection-pct <int> E..V....... GOP min bitrate (% of target) (from -1 to 100) (default -1)
-maxsection-pct <int> E..V....... GOP max bitrate (% of target) (from -1 to 5000) (default -1)
-frame-parallel <boolean> E..V....... Enable frame parallel decodability features (default auto)
-tiles <image_size> E..V....... Tile columns x rows
-tile-columns <int> E..V....... Log2 of number of tile columns to use (from -1 to 6) (default -1)
-tile-rows <int> E..V....... Log2 of number of tile rows to use (from -1 to 6) (default -1)
-row-mt <boolean> E..V....... Enable row based multi-threading (default auto)
-enable-cdef <boolean> E..V....... Enable CDEF filtering (default auto)
-enable-global-motion <boolean> E..V....... Enable global motion (default auto)
-enable-intrabc <boolean> E..V....... Enable intra block copy prediction mode (default auto)
-enable-restoration <boolean> E..V....... Enable Loop Restoration filtering (default auto)
-usage <int> E..V....... Quality and compression efficiency vs speed trade-off (from 0 to INT_MAX) (default good)
good 0 E..V....... Good quality
realtime 1 E..V....... Realtime encoding
-tune <int> E..V....... The metric that the encoder tunes for. Automatically chosen by the encoder by default (from -1 to 1) (default -1)
psnr 0 E..V.......
ssim 1 E..V.......
-enable-rect-partitions <boolean> E..V....... Enable rectangular partitions (default auto)
-enable-1to4-partitions <boolean> E..V....... Enable 1:4/4:1 partitions (default auto)
-enable-ab-partitions <boolean> E..V....... Enable ab shape partitions (default auto)
-enable-angle-delta <boolean> E..V....... Enable angle delta intra prediction (default auto)
-enable-cfl-intra <boolean> E..V....... Enable chroma predicted from luma intra prediction (default auto)
-enable-filter-intra <boolean> E..V....... Enable filter intra predictor (default auto)
-enable-intra-edge-filter <boolean> E..V....... Enable intra edge filter (default auto)
-enable-smooth-intra <boolean> E..V....... Enable smooth intra prediction mode (default auto)
-enable-paeth-intra <boolean> E..V....... Enable paeth predictor in intra prediction (default auto)
-enable-palette <boolean> E..V....... Enable palette prediction mode (default auto)
-enable-flip-idtx <boolean> E..V....... Enable extended transform type (default auto)
-enable-tx64 <boolean> E..V....... Enable 64-pt transform (default auto)
-reduced-tx-type-set <boolean> E..V....... Use reduced set of transform types (default auto)
-use-intra-dct-only <boolean> E..V....... Use DCT only for INTRA modes (default auto)
-use-inter-dct-only <boolean> E..V....... Use DCT only for INTER modes (default auto)
-use-intra-default-tx-only <boolean> E..V....... Use default-transform only for INTRA modes (default auto)
-enable-ref-frame-mvs <boolean> E..V....... Enable temporal mv prediction (default auto)
-enable-reduced-reference-set <boolean> E..V....... Use reduced set of single and compound references (default auto)
-enable-obmc <boolean> E..V....... Enable obmc (default auto)
-enable-dual-filter <boolean> E..V....... Enable dual filter (default auto)
-enable-diff-wtd-comp <boolean> E..V....... Enable difference-weighted compound (default auto)
-enable-dist-wtd-comp <boolean> E..V....... Enable distance-weighted compound (default auto)
-enable-onesided-comp <boolean> E..V....... Enable one sided compound (default auto)
-enable-interinter-wedge <boolean> E..V....... Enable interinter wedge compound (default auto)
-enable-interintra-wedge <boolean> E..V....... Enable interintra wedge compound (default auto)
-enable-masked-comp <boolean> E..V....... Enable masked compound (default auto)
-enable-interintra-comp <boolean> E..V....... Enable interintra compound (default auto)
-enable-smooth-interintra <boolean> E..V....... Enable smooth interintra mode (default auto)
-aom-params <dictionary> E..V....... Set libaom options using a :-separated list of key=value pairs
Encoder librav1e [librav1e AV1]:
General capabilities: dr1 delay threads
Threading capabilities: other
Supported pixel formats: yuv420p yuvj420p yuv420p10le yuv420p12le yuv422p yuvj422p yuv422p10le yuv422p12le yuv444p yuvj444p yuv444p10le yuv444p12le
librav1e AVOptions:
-qp <int> E..V....... use constant quantizer mode (from -1 to 255) (default -1)
-speed <int> E..V....... what speed preset to use (from -1 to 10) (default -1)
-tiles <int> E..V....... number of tiles encode with (from -1 to I64_MAX) (default 0)
-tile-rows <int> E..V....... number of tiles rows to encode with (from -1 to I64_MAX) (default 0)
-tile-columns <int> E..V....... number of tiles columns to encode with (from -1 to I64_MAX) (default 0)
-rav1e-params <dictionary> E..V....... set the rav1e configuration using a :-separated list of key=value parameters
Encoder libsvtav1 [SVT-AV1(Scalable Video Technology for AV1) encoder]:
General capabilities: delay threads
Threading capabilities: other
Supported pixel formats: yuv420p yuv420p10le
libsvtav1 AVOptions:
-hielevel <int> E..V....... Hierarchical prediction levels setting (from 3 to 4) (default 4level)
3level 3 E..V.......
4level 4 E..V.......
-la_depth <int> E..V....... Look ahead distance [0, 120] (from -1 to 120) (default -1)
-preset <int> E..V....... Encoding preset [0, 8] (from 0 to 8) (default 8)
-tier <int> E..V....... Set operating point tier (from 0 to 1) (default main)
main 0 E..V.......
high 1 E..V.......
-rc <int> E..V....... Bit rate control mode (from 0 to 3) (default cqp)
cqp 0 E..V....... Constant quantizer
vbr 1 E..V....... Variable Bit Rate, use a target bitrate for the entire stream
cvbr 2 E..V....... Constrained Variable Bit Rate, use a target bitrate for each GOP
-qp <int> E..V....... Quantizer to use with cqp rate control mode (from 0 to 63) (default 50)
-sc_detection <boolean> E..V....... Scene change detection (default false)
-tile_columns <int> E..V....... Log2 of number of tile columns to use (from 0 to 4) (default 0)
-tile_rows <int> E..V....... Log2 of number of tile rows to use (from 0 to 6) (default 0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment