Skip to content

Instantly share code, notes, and snippets.

Usage: SvtAv1EncApp <options> <-b dst_filename> -i src_filename
Examples:
Multi-pass encode (VBR):
SvtAv1EncApp <--stats svtav1_2pass.log> --passes 2 --rc 1 --tbr 1000 -b dst_filename -i src_filename
Multi-pass encode (CRF):
SvtAv1EncApp <--stats svtav1_2pass.log> --passes 2 --rc 0 --crf 43 -b dst_filename -i src_filename
Single-pass encode (VBR):
SvtAv1EncApp --passes 1 --rc 1 --tbr 1000 -b dst_filename -i src_filename
@nico-lab
nico-lab / libsvtav1.txt
Last active March 14, 2024 13:04
ffmpeg -h encoder=libsvtav1
Encoder libsvtav1 [SVT-AV1(Scalable Video Technology for AV1) encoder]:
General capabilities: delay threads
Threading capabilities: other
Supported pixel formats: yuv420p yuv420p10le
libsvtav1 AVOptions:
-preset <int> E..V....... Encoding preset (from -2 to 13) (default -2)
-crf <int> E..V....... Constant Rate Factor value (from 0 to 63) (default 0)
-qp <int> E..V....... Initial Quantizer level value (from 0 to 63) (default 0)
-svtav1-params <dictionary> E..V....... Set the SVT-AV1 configuration using a :-separated list of key=value parameters
@nico-lab
nico-lab / hevc_amf
Last active March 6, 2024 18:08
ffmpeg -h encoder=hevc_amf
Encoder hevc_amf [AMD AMF HEVC encoder]:
General capabilities: dr1 delay hardware
Threading capabilities: none
Supported hardware devices: d3d11va d3d11va dxva2 dxva2
Supported pixel formats: nv12 yuv420p d3d11 dxva2_vld
hevc_amf AVOptions:
-usage <int> E..V....... Set the encoding usage (from 0 to 5) (default transcoding)
transcoding 0 E..V....... Generic Transcoding
ultralowlatency 1 E..V....... ultra low latency trancoding
lowlatency 2 E..V....... low latency trancoding
@nico-lab
nico-lab / libvpx-v1.14.0.txt
Last active February 27, 2024 12:49
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.......
@nico-lab
nico-lab / av1_amf.txt
Last active February 26, 2024 06:13
ffmpeg -h encoder=av1_amf
Encoder av1_amf [AMD AMF AV1 encoder]:
General capabilities: dr1 delay hardware
Threading capabilities: none
Supported hardware devices: d3d11va d3d11va dxva2 dxva2
Supported pixel formats: nv12 yuv420p d3d11 dxva2_vld
av1_amf AVOptions:
-usage <int> E..V....... Set the encoding usage (from 0 to 1) (default transcoding)
transcoding 0 E..V.......
lowlatency 1 E..V.......
-profile <int> E..V....... Set the profile (default main) (from 1 to 1) (default main)
@nico-lab
nico-lab / libwebp_anim.txt
Created December 30, 2019 02:19
ffmpeg -h encoder=libwebp_anim
Encoder libwebp_anim [libwebp WebP image]:
General capabilities: delay
Threading capabilities: none
Supported pixel formats: bgra yuv420p yuva420p
libwebp_anim AVOptions:
-lossless <int> E..V...... Use lossless mode (from 0 to 1) (default 0)
-preset <int> E..V...... Configuration preset (from -1 to 5) (default none)
none -1 E..V...... do not use a preset
default 0 E..V...... default preset
picture 1 E..V...... digital picture, like portrait, inner shot
@nico-lab
nico-lab / h264_amf
Last active December 15, 2023 13:56
ffmpeg -h encoder=h264_amf
Encoder h264_amf [AMD AMF H.264 Encoder]:
General capabilities: dr1 delay hardware
Threading capabilities: none
Supported hardware devices: d3d11va d3d11va dxva2 dxva2
Supported pixel formats: nv12 yuv420p d3d11 dxva2_vld
h264_amf AVOptions:
-usage <int> E..V....... Encoder Usage (from 0 to 5) (default transcoding)
transcoding 0 E..V....... Generic Transcoding
ultralowlatency 1 E..V....... ultra low latency trancoding
lowlatency 2 E..V....... low latency trancoding
@nico-lab
nico-lab / h264_mf.txt
Created August 19, 2023 00:37
ffmpeg -h encoder=h264_mf
Encoder h264_mf [H264 via MediaFoundation]:
General capabilities: dr1 delay hybrid
Threading capabilities: none
Supported pixel formats: nv12 yuv420p
h264_mf AVOptions:
-rate_control <int> E..V....... Select rate control mode (from -1 to INT_MAX) (default default)
default -1 E..V....... Default mode
cbr 0 E..V....... CBR mode
pc_vbr 1 E..V....... Peak constrained VBR mode
u_vbr 2 E..V....... Unconstrained VBR mode
@nico-lab
nico-lab / init_hw_device-vulkan.txt
Last active July 15, 2023 06:23
ffmpeg -hide_banner -v verbose -init_hw_device vulkan
Supported validation layers:
VK_LAYER_NV_optimus
VK_LAYER_OBS_HOOK
Using instance extension VK_KHR_portability_enumeration
GPU listing:
0: NVIDIA T400 (discrete) (0x1fb2)
Device 0 selected: NVIDIA T400 (discrete) (0x1fb2)
Queue families:
0: graphics compute transfer sparse (queues: 16)
@nico-lab
nico-lab / ffmpeg_libplacebo.txt
Last active July 12, 2023 11:53
ffmpeg -h filter=libplacebo
Filter libplacebo
Apply various GPU filters from libplacebo
Inputs:
dynamic (depending on the options)
Outputs:
#0: default (video)
libplacebo AVOptions:
inputs <int> ..FV....... Number of inputs (from 1 to INT_MAX) (default 1)
w <string> ..FV....... Output video frame width (default "iw")
h <string> ..FV....... Output video frame height (default "ih")