Skip to content

Instantly share code, notes, and snippets.

@sandr1x
sandr1x / av1_qsv ffmpeg
Created August 2, 2025 12:47
ffmpeg -h encoder=av1_qsv
av1_qsv encoder AVOptions:
-async_depth <int> E..V....... Maximum processing parallelism (from 1 to INT_MAX) (default 4)
-preset <int> E..V....... (from 0 to 7) (default 0)
veryfast 7 E..V.......
faster 6 E..V.......
fast 5 E..V.......
medium 4 E..V.......
slow 3 E..V.......
slower 2 E..V.......
veryslow 1 E..V.......
@sandr1x
sandr1x / hevc_qsv ffmpeg
Created August 2, 2025 12:46
ffmpeg -h encoder=hevc_qsv
hevc_qsv encoder AVOptions:
-async_depth <int> E..V....... Maximum processing parallelism (from 1 to INT_MAX) (default 4)
-preset <int> E..V....... (from 0 to 7) (default 0)
veryfast 7 E..V.......
faster 6 E..V.......
fast 5 E..V.......
medium 4 E..V.......
slow 3 E..V.......
slower 2 E..V.......
veryslow 1 E..V.......
@sandr1x
sandr1x / av1_amf
Created August 2, 2025 12:35
ffmpeg -h encoder=av1_amf
av1_amf AVOptions:
-usage <int> E..V....... Set the encoding usage (from -1 to 5) (default -1)
transcoding 0 E..V....... Generic Transcoding
ultralowlatency 2 E..V....... ultra low latency trancoding
lowlatency 1 E..V....... Low latency usecase
webcam 3 E..V....... Webcam
high_quality 4 E..V....... high quality trancoding
lowlatency_high_quality 5 E..V....... low latency yet high quality trancoding
-bitdepth <int> E..V....... Set color bit deph (from 0 to 10) (default 0)
8 8 E..V....... 8 bit
@sandr1x
sandr1x / hevc_amf
Created August 2, 2025 12:35
ffmpeg -h encoder=hevc_amf
hevc_amf AVOptions:
-usage <int> E..V....... Set the encoding usage (from -1 to 5) (default -1)
transcoding 0 E..V....... Generic Transcoding
ultralowlatency 1 E..V....... Ultra low latency usecase
lowlatency 2 E..V....... Low latency usecase
webcam 3 E..V....... Webcam
high_quality 4 E..V....... High quality usecase
lowlatency_high_quality 5 E..V....... Low latency yet high quality usecase
-bitdepth <int> E..V....... Set color bit deph (from 0 to 10) (default 0)
8 8 E..V....... 8 bit
@sandr1x
sandr1x / h264_amf
Created May 1, 2025 11:45
ffmpeg -h encoder=h264_amf
h264_amf AVOptions:
-usage <int> E..V....... Encoder Usage (from -1 to 5) (default -1)
transcoding 0 E..V....... Generic Transcoding
ultralowlatency 1 E..V....... Ultra low latency usecase
lowlatency 2 E..V....... Low latency usecase
webcam 3 E..V....... Webcam
high_quality 4 E..V....... High quality usecase
lowlatency_high_quality 5 E..V....... Low latency yet high quality usecase
-profile <int> E..V....... Profile (from -1 to 257) (default -1)
main 77 E..V.......
@sandr1x
sandr1x / libx265
Last active August 2, 2025 12:36
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
Last active August 2, 2025 12:37
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 August 2, 2025 12:38
ffmpeg -h encoder=libvpx-vp9
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.......
forward 2 E..V.......
centered 3 E..V.......
-tune <int> E..V....... Tune the encoding to a specific scenario (from -1 to INT_MAX) (default -1)
psnr 0 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 August 2, 2025 12:53
ffmpeg -h encoder=h264_qsv
h264_qsv encoder AVOptions:
-async_depth <int> E..V....... Maximum processing parallelism (from 1 to INT_MAX) (default 4)
-preset <int> E..V....... (from 0 to 7) (default 0)
veryfast 7 E..V.......
faster 6 E..V.......
fast 5 E..V.......
medium 4 E..V.......
slow 3 E..V.......
slower 2 E..V.......
veryslow 1 E..V.......