Skip to content

Instantly share code, notes, and snippets.

@nico-lab
nico-lab / av1_qsv.txt
Last active May 8, 2024 11:01
ffmpeg -h encoder=av1_qsv
Encoder av1_qsv [AV1 (Intel Quick Sync Video acceleration)]:
General capabilities: delay hybrid
Threading capabilities: none
Supported hardware devices: qsv qsv qsv
Supported pixel formats: nv12 p010le 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.......
@nico-lab
nico-lab / vp9_qsv.txt
Last active May 8, 2024 11:01
ffmpeg -h encoder=vp9_qsv
Encoder vp9_qsv [VP9 video (Intel Quick Sync Video acceleration)]:
General capabilities: delay hybrid
Threading capabilities: none
Supported hardware devices: qsv qsv qsv
Supported pixel formats: nv12 p010le vuyx qsv xv30le
vp9_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.......
@nico-lab
nico-lab / format_tags.txt
Created July 18, 2022 01:07
v5.0 ffprobe -show_entries format_tags -i input
[FORMAT]
TAG:major_brand=isom
TAG:minor_version=1
TAG:compatible_brands=isom
TAG:creation_time=2016-12-06T06:06:38.000000Z
TAG:copyright=
TAG:copyright-eng=
[/FORMAT]
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 / aomenc.txt
Last active April 29, 2025 07:10
aomenc --help
Usage: aomenc <options> -o dst_filename src_filename
Options:
--help Show usage options and exit
-c <arg>, --cfg=<arg> Config file to use
-D, --debug Debug mode (makes output deterministic)
-o <arg>, --output=<arg> Output filename
--codec=<arg> Codec to use
-p <arg>, --passes=<arg> Number of passes (1/2/3)
--pass=<arg> Pass to execute (1/2/3)
@nico-lab
nico-lab / libaom-av1.txt
Last active October 1, 2024 12:02
ffmpeg -h encoder=libaom-av1
Encoder libaom-av1 [libaom AV1]:
General capabilities: dr1 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)
@nico-lab
nico-lab / libsvtav1.txt
Last active May 20, 2024 11:48
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
-dolbyvision <boolean> E..V....... Enable Dolby Vision RPU coding (default auto)
@nico-lab
nico-lab / relative.txt
Last active March 21, 2022 02:33
fieldhintフィルタのhintファイル
0,0
0,-1
0,-1
0,0
0,0
@nico-lab
nico-lab / helper.py
Created January 26, 2022 11:27
https://ikyle.me/blog/2020/add-mp4-chapters-ffmpeg より時間とチャプター名からチャプターをつくるPythonスクリプト
import re
chapters = list()
with open('chapters.txt', 'r') as f:
for line in f:
x = re.match(r"(\d):(\d{2}):(\d{2}) (.*)", line)
hrs = int(x.group(1))
mins = int(x.group(2))
secs = int(x.group(3))
@nico-lab
nico-lab / ffmpeg_libplacebo.txt
Last active July 29, 2025 11:51
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")