FFmpeg eq; every field is live.
The node type.
−1–1, 0 = unchanged.
0–2, 1 = unchanged.
0–2, 1 = unchanged.
0.5–2, 1 = unchanged.
Gaussian blur (FFmpeg gblur).
The node type.
0–10 (live).
Always 3.
Hue rotation; changes in place while playing.
The node type.
−180–180 (live).
unsharp: 3×3 (small) or 7×7 (large) luma matrix.
The node type.
0–2.
Matrix size.
hqdn3d strengths.
The node type.
0–20 (0 = off).
0–20 (0 = off).
0–20 (0 = off).
0–20 (0 = off).
FFmpeg deblock.
The node type.
Filter strength.
FFmpeg deband.
The node type.
0.003–0.5, the same for all four planes.
Integer 1–64.
Applied after the player's own source orientation.
The node type.
Clockwise degrees; applied before the flips.
Mirror horizontally.
Mirror vertically.
Deinterlacing. interlaced and all are FFmpeg BWDIF in the chain;
field doubles the frame rate.
when: "auto" is the player's own deinterlacer instead: decided per frame
from the decoder's interlaced flag, with the decoder's hardware
deinterlacer where frames stay on the GPU; progressive frames pass
untouched. It needs no frames in memory, so a chain with only this node
keeps zero-copy hardware decoding (any other node still needs a copy back
to memory). It always outputs one frame per field, so it takes
output: "field" only ("frame" fails with invalid). It runs before
every plugin's chain wherever it is written, and is shared: on while any
plugin's chain has one. A chain with it has no other deinterlace node.
Snapshots and exports deinterlace the same frames with BWDIF at field rate.
The node type.
interlaced: only frames flagged interlaced; all: every frame;
auto: the player's deinterlacer, on frames flagged interlaced.
One frame per frame, or one per field (double rate); when: "auto"
takes field only.
Crop to / pad to a display aspect; x, y place it (−1 left/top … 1 right/bottom).
The node type.
Crop the picture, or pad it with black bars.
Target display aspect 0.25–4.
−1 (left) … 0 (centre) … 1 (right).
−1 (top) … 0 (centre) … 1 (bottom).
Blended frame-rate conversion (FFmpeg framerate), an integer 24–120.
At most one across all plugins; the player runs it after every chain.
The node type.
Output frame rate, integer 24–120.
A convolution matrix of your own per plane (FFmpeg convolution): sharpen,
blur, emboss or detect edges with a 3×3, 5×5 or 7×7 kernel, or a row or
column kernel. planes[i] is plane i of the decoded picture: for the
usual YUV video 0 is luma (brightness), 1 and 2 are the colour planes, 3 is
alpha. A missing entry or null leaves that plane as it is; at least one
entry has a matrix.
The node type.
1–4 entries, by plane; null passes the plane through.
Recolour the picture with a 3D look-up table (FFmpeg lut3d): a .cube
file the plugin ships in its package or wrote to its
Plugin.dataDirectory. The player reads the file when the chain is
set (and again for each new source, snapshot or export), so it must stay
there while the chain uses it. The table is applied to RGB; the player
converts the picture to RGB and back.
The node type.
Absolute path of a .cube file (LUT_3D_SIZE 2–65, at most
16 MiB) inside the plugin's package directory or data directory
after following links; a path with [ or ] is refused. Outside
those: invalid; a file that does not exist: missing.
The player checks only that header; the table itself is read by
FFmpeg's .cube reader (parse_cube in FFmpeg's
libavfilter/vf_lut3d.c),
which takes a subset of the
Adobe/Resolve format:
LUT_3D_SIZE N is skipped (a TITLE, comments,
and also a DOMAIN_MIN or DOMAIN_MAX there, which then has no
effect).TITLE, DOMAIN_MIN r g b and
DOMAIN_MAX r g b lines (default 0 0 0 and 1 1 1), blank
lines and # comments, then N³ data lines of three numbers
r g b, red changing fastest, then green, then blue.LUT_3D_SIZE, such as MIN or MAX, is
read as a data line, and FFmpeg refuses the file, as it does one
with fewer than N³ data lines. The chain then fails and the
player reports mpv's "error running command (-12)".TITLE "Identity"
LUT_3D_SIZE 2
DOMAIN_MIN 0 0 0
DOMAIN_MAX 1 1 1
0 0 0
1 0 0
0 1 0
1 1 0
0 0 1
1 0 1
0 1 1
1 1 1
How colours between the table's points are computed; tetrahedral is FFmpeg's default.
The video plays a little brighter and more saturated, slightly sharper
and turned a quarter clockwise. The nodes run in array order; set sends
the whole chain as this plugin's desired value (last write wins), and the
player applies it to every source until it changes (the chain follows
the source by itself while it is set).
const chain: VideoNode[] = [
// Live fields: moving them later changes the picture in place.
{ kind: "eq", brightness: 0.05, contrast: 1.1, saturation: 1.2, gamma: 1 },
// Not live: changing `amount` later rebuilds the stage (a one-frame stall).
{ kind: "sharpen", amount: 0.5, size: "small" },
{ kind: "transform", rotate: 90, flipH: false, flipV: false },
];
plugin.video.filter("picture").set(chain);
One node of a VideoFilter chain, by
kind. Values outside the ranges below fail withinvalid. Fields marked "live" change in place while playing; changing any other field rebuilds the stage (the picture may stall for one frame), so drive sliders with live fields.Nodes act after the player's own orientation handling (container rotation): a portrait video is upright before
transformruns. At most 64 nodes across all plugins.