Skip to content

Muxer Chapter VTT

Phillippe Pelzer edited this page Nov 15, 2026 · 1 revision

chapters_vtt: chapter VTT muxer

chapters_vtt writes the chapters of a file as a WebVTT file. You do not map any stream. A player can use the result for chapter navigation.

The muxer is NoMercy-only. It is not in official FFmpeg.

Since: v1.0.32.

Quick example

# Chapters of an MKV or MP4 into chapters.vtt
ffmpeg -i input.mkv -f chapters_vtt chapters.vtt

# To stdout
ffmpeg -i input.mp4 -f chapters_vtt -

The output looks like this. It was produced on v1.0.47 from a file with two chapters. The first has a title with a < in it. The second has no title.

WEBVTT

00:00:00.000 --> 00:00:05.000
Intro &lt;a&gt;

00:00:05.000 --> 00:00:20.000
Chapter 2

Options

The muxer has no options. ffmpeg -h muxer=chapters_vtt prints only the name and the extension (vtt).

What it does

Case Result
A chapter has a title The title is the cue text.
A chapter has no title, or an empty one The cue text is Chapter N, counting from 1.
A title contains &, < or > They are written as &amp;, &lt; and &gt;.
A title contains a line break Each line break becomes a space.
The input has no chapters The file contains only WEBVTT, and a warning is logged.

Times are written as HH:MM:SS.mmm.

Notes

  • The muxer needs no stream. It declares that it has none, so -map is not needed.
  • With input that has no chapters, a run to stdout prints only the WEBVTT line.
  • To use chapters from another file or a metadata file, add -map_chapters as usual.
  • The output directory must exist. See Auto-Create-Directories.

Platform notes

The muxer is in every platform archive.

Clone this wiki locally