Skip to content

Instantly share code, notes, and snippets.

@sandr1x
sandr1x / libx265
Created February 26, 2024 12:41
ffmpeg -h encoder=libx265
libx265 AVOptions:
-crf <float> E..V....... set the x265 crf (from -1 to FLT_MAX) (default -1)
-qp <int> E..V....... set the x265 qp (from -1 to INT_MAX) (default -1)
-forced-idr <boolean> E..V....... if forcing keyframes, force them as IDR frames (default false)
-preset <string> E..V....... set the x265 preset
-tune <string> E..V....... set the x265 tune parameter
-profile <string> E..V....... set the x265 profile
-udu_sei <boolean> E..V....... Use user data unregistered SEI if available (default false)
-a53cc <boolean> E..V....... Use A53 Closed Captions (if available) (default true)
-x265-params <dictionary> E..V....... set the x265 configuration using a :-separated list of key=value parameter
@sandr1x
sandr1x / av1_nvenc
Created February 26, 2024 12:35
ffmpeg -h encoder=av1_nvenc
av1_nvenc AVOptions:
-preset <int> E..V....... Set the encoding preset (from 0 to 18) (default p4)
default 0 E..V.......
slow 1 E..V....... hq 2 passes
medium 2 E..V....... hq 1 pass
fast 3 E..V....... hp 1 pass
p1 12 E..V....... fastest (lowest quality)
p2 13 E..V....... faster (lower quality)
p3 14 E..V....... fast (low quality)
p4 15 E..V....... medium (default)
@sandr1x
sandr1x / libvpx-vp9
Last active February 26, 2024 12:38
ffmpeg -h encoder=libvpx-vp9
Encoder libvpx-vp9 [libvpx VP9]:
General capabilities: dr1 delay threads
Threading capabilities: other
Supported pixel formats: yuv420p yuva420p yuv422p yuv440p yuv444p yuv420p10le yuv422p10le yuv440p10le yuv444p10le yuv420p12le yuv422p12le yuv440p12le yuv444p12le gbrp gbrp10le gbrp12le
libvpx-vp9 encoder AVOptions:
-lag-in-frames <int> E..V....... Number of frames to look ahead for alternate reference frame selection (from -1 to INT_MAX) (default -1)
-arnr-maxframes <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 INT_MAX) (default -1)
-arnr-type <int> E..V....... altref noise reduction filter type (from -1 to INT_MAX) (default -1)
backward 1 E..V.......
@sandr1x
sandr1x / libx264
Created July 2, 2023 21:09
ffmpeg -h encoder=libx264
libx264 AVOptions:
-preset <string> E..V....... Set the encoding preset (cf. x264 --fullhelp) (default "medium")
-tune <string> E..V....... Tune the encoding params (cf. x264 --fullhelp)
-profile <string> E..V....... Set profile restrictions (cf. x264 --fullhelp)
-fastfirstpass <boolean> E..V....... Use fast settings when encoding first pass (default true)
-level <string> E..V....... Specify level (as defined by Annex A)
-passlogfile <string> E..V....... Filename for 2 pass stats
-wpredp <string> E..V....... Weighted prediction for P-frames
-a53cc <boolean> E..V....... Use A53 Closed Captions (if available) (default true)
-x264opts <string> E..V....... x264 options
@sandr1x
sandr1x / h264_qsv ffmpeg
Last active February 26, 2024 12:36
ffmpeg -h encoder=h264_qsv
264_qsv encoder AVOptions:
-async_depth <int> E..V....... Maximum processing parallelism (from 1 to INT_MAX) (default 4)
-avbr_accuracy <int> E..V....... Accuracy of the AVBR ratecontrol (from 0 to INT_MAX) (default 0)
-avbr_convergence <int> E..V....... Convergence of the AVBR ratecontrol (from 0 to INT_MAX) (default 0)
-preset <int> E..V....... (from 1 to 7) (default medium)
veryfast 7 E..V.......
faster 6 E..V.......
fast 5 E..V.......
medium 4 E..V.......
slow 3 E..V.......
@sandr1x
sandr1x / libx264
Last active February 26, 2024 12:39
ffmpeg -h encoder=libx264
libx264 AVOptions:
-preset <string> E..V....... Set the encoding preset (cf. x264 --fullhelp) (default "medium")
-tune <string> E..V....... Tune the encoding params (cf. x264 --fullhelp)
-profile <string> E..V....... Set profile restrictions (cf. x264 --fullhelp)
-fastfirstpass <boolean> E..V....... Use fast settings when encoding first pass (default true)
-level <string> E..V....... Specify level (as defined by Annex A)
-passlogfile <string> E..V....... Filename for 2 pass stats
-wpredp <string> E..V....... Weighted prediction for P-frames
-a53cc <boolean> E..V....... Use A53 Closed Captions (if available) (default true)
-x264opts <string> E..V....... x264 options
@sandr1x
sandr1x / libsvtav1
Last active February 26, 2024 12:39
ffmpeg -h encoder=libsvtav1
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)
@sandr1x
sandr1x / libaom-av1
Last active February 26, 2024 12:40
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)
@sandr1x
sandr1x / hevc_nvenc
Last active February 26, 2024 12:40
ffmpeg -h encoder=hevc_nvenc
hevc_nvenc AVOptions:
-preset <int> E..V....... Set the encoding preset (from 0 to 18) (default p4)
default 0 E..V.......
slow 1 E..V....... hq 2 passes
medium 2 E..V....... hq 1 pass
fast 3 E..V....... hp 1 pass
hp 4 E..V.......
hq 5 E..V.......
bd 6 E..V.......
ll 7 E..V....... low latency
# ffmpeg -h encoder=h264_nvenc
Encoder h264_nvenc [NVIDIA NVENC H.264 encoder]:
General capabilities: dr1 delay hardware
Threading capabilities: none
Supported hardware devices: cuda cuda d3d11va d3d11va
Supported pixel formats: yuv420p nv12 p010le yuv444p p016le yuv444p16le bgr0 bgra rgb0 rgba x2rgb10le x2bgr10le gbrp gbrp16le cuda d3d11
h264_nvenc AVOptions:
-preset <int> E..V....... Set the encoding preset (from 0 to 18) (default p4)
default 0 E..V.......
slow 1 E..V....... hq 2 passes