Repository navigation
Muxer Chapter VTT
Phillippe Pelzer edited this page Nov 15, 2026
·
1 revision
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.
# 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 <a>
00:00:05.000 --> 00:00:20.000
Chapter 2
The muxer has no options. ffmpeg -h muxer=chapters_vtt prints only the name and the extension (vtt).
| 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 &, < and >. |
| 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.
- The muxer needs no stream. It declares that it has none, so
-mapis not needed. - With input that has no chapters, a run to stdout prints only the
WEBVTTline. - To use chapters from another file or a metadata file, add
-map_chaptersas usual. - The output directory must exist. See Auto-Create-Directories.
The muxer is in every platform archive.
Users
Filters and components
- Filter-stemsplit
- Filter-lyricsalign
- Whisper-Language-Detection
- Whisper-Word-Timestamps
- Filter-trailingsilence
- Filter-keydetect
- Filter-beatdetect
- Filter-rubberband
- Muxer-Sprite-Sheet
- Muxer-Chapter-VTT
- Muxer-VOBsub
- Protocol-dvdread
- Protocol-OmniDrive
- Auto-Create-Directories
- AACS-and-BDplus
- HLS-Master-Playlist
- Subtitles-OCR
- HEVC-Alpha
Acceleration and codecs
Contributors