Tool

ffmpeg filter_complex Graph Visualizer

A filter_complex full of labels like [0:v][1:v]overlay[v] is hard to follow by eye. Paste the command and the tool draws which input goes through which filter to which output, and before you run ffmpeg it looks for syntax-level mistakes such as label typos, labels used twice, and mixing up video and audio. What you paste is processed only inside your browser.

1. Paste an ffmpeg command or a filter_complex string

Line continuations (\, ^, backtick) and quotes are read the way a shell would. What you paste is processed only inside this browser and is not sent anywhere.

2. Check results

Filters 2 · chains 2 · input files 2 · output files 1 · 0 errors · 0 warnings · 0 notes

No problems found within what this tool checks (label definitions and uses, pad counts, video/audio type).

“No errors” is not a guarantee that ffmpeg will run. The tool cannot check filter argument values, the actual streams in your input files, or which filters your ffmpeg build supports.

3. Connection diagram (inputs on the left → outputs on the right)

VideoAudioUnknown typeLinked by a comma, no label
logov1:v0:v[1:v]input stream[0:v]input streamscale200:-2overlayW-w-10:H-h-10[v]taken out by -map

The dashed rounded boxes are the points where the graph meets the outside. On the left are input streams or auto-connected inputs; on the right are labeled outputs taken out with -map and automatic outputs. On a narrow screen, scroll the diagram sideways.

4. Filter list

ChainFilterInput labelsOutput labelspads (in→out)
1scale200:-2[1:v][logo]1→1
2overlayW-w-10:H-h-10[0:v] [logo][v]2→1

Input files (numbered from 0)

  • 0 main.mp4
  • 1 logo.png

Output files and -map

  • out.mp4 [v] 0:a

How to read filter_complex

This tool follows the filtergraph syntax from the ffmpeg documentation. Four rules are enough to read it.

  1. A comma (,) joins filters into one chain, and a semicolon (;) separates chains. In scale=1280:-2,hflip, the output of scale goes straight into hflip. The diagram draws this as a dashed arrow.
  2. [name] is a label. A label before a filter names the input that filter receives; a label after it is the name given to that filter's output. A label shaped like number:type, such as [0:v], points to a stream of an input file (the video of file 0).
  3. One filter output connects to only one place. To use the same video in two places, split it with split (asplit for audio) and give each output its own label.
  4. Unlabeled inputs and outputs are handled automatically. According to the ffmpeg documentation, an unlabeled input is connected to the first not-yet-used stream of the same type in the input files, and an unlabeled output goes to the first output file. This is convenient, but it can pick up a stream you did not intend, so the tool flags it as a warning.

What this tool checks

  • Undefined input labels: a label that is not the output of any filter and is not a stream specifier like 0:v either. If there is a similar name, it is suggested as a likely typo.
  • Labels used more than once and labels defined twice.
  • -map cross-check: when the name in -map "[name]" is not in the filter_complex, and conversely when a labeled output is not taken out with -map.
  • Video/audio type mismatch: for example putting [0:a] into scale, or connecting the output of overlay to an audio filter. The input and output types of each filter come from the table this site maintains.
  • Pad counts: attaching more labels than a filter has inputs or outputs (for example [a][b][c] on split=2), outputs of an earlier filter left over so the next filter cannot receive them, and input file numbers that do not exist ([2:v] when there are only two -i).
  • Syntax: unclosed brackets or quotes, empty filters (doubled commas) and empty chains (doubled semicolons), and labels with an empty name [].

How to use the result

  • Check before running: when you edit a long filter_complex, it is common to change one label and forget to change -map. Paste it and the tool finds the mismatch between the two. For error messages that appeared while running, try the ffmpeg error log explainer.
  • Understanding someone else's command: look at the diagram first to see what a command copied from the internet does. The options of each filter are explained by the command explainer and lint tool; this tool deals only with the connection structure.
  • Building a command: for a simple conversion, the ffmpeg command builder is faster. When there are two or more inputs or one input makes several outputs, use this tool to check the structure.
  • Together with sizing: when you combine videos of different input sizes with hstack or overlay, you can decide the scale values with the resize calculator.

Common pitfalls

  • Wrap the label in -map in quotes. Square brackets can have a special meaning in a shell, so it is safer to write -map "[v]".
  • In Windows cmd, a single quote is not a quoting character. If you paste a Linux example such as -filter_complex '...' as is, cmd treats the quotes as ordinary characters and splits the arguments at spaces. Change them to double quotes. This tool guesses the shell from the shape of the command (a ^ continuation, a C:\ path, .exe) and unquotes accordingly, but it can be wrong.
  • When a filter argument such as drawtext contains a colon, comma or single quote, it needs separate escaping at the filter syntax level (backslashes, single-quoted sections). This tool does not treat a single-quoted part or the character after a backslash as a separator.
  • The input order of the concat filter is video, then audio, for each segment. With concat=n=2:v=1:a=1, it takes 4 inputs as [0:v][0:a][1:v][1:a] and produces one video output and one audio output. If you write the order as [0:v][1:v][0:a][1:a], it is flagged as a type mismatch.
  • When you use -vf and -filter_complex together, applying both to the same stream is known to conflict, so the tool flags it as a warning.

Limits worth knowing

  • This tool does not run ffmpeg. It only interprets syntax and connection rules according to the documentation, so ‘no errors’ does not mean the command will run, and an ‘error’ may pass on a particular version. I could not verify it by running the commands myself.
  • The filter table contains only the number and type of inputs and outputs of common filters. A filter that is not in the table (for example hardware-accelerated filters or filters from external libraries) is treated as having unknown pad counts and types, the related checks are skipped, and it is marked ‘not in table.’ This is not a verdict that the filter does not exist.
  • It does not check whether filter argument values (resolution expressions, times, colors) are correct. The number of inputs of variable-input filters (hstack, amix, concat and so on) is computed by reading the arguments, and if an argument is a variable or an expression, the default is assumed.
  • The tool cannot know the actual stream layout of the input files (for example whether there is audio). If you wrote [1:a] but file 1 has no audio, check it with ffprobe.
  • Options such as a -filter_complex_script file, several -filter_complex in one command, and per-stream -filter:v are not read, or only partly read. The diagram is based on the first -filter_complex only.
  • This is a syntax tool and has nothing to do with this site's VMAF and file size measurements. The differences in quality and speed that come from choosing a filter were not measured.