Introduction
FFmetadata is FFmpeg's plain text format for metadata, laid out much like an INI file. FFmpeg can write a media file's tags and chapters to it, and read the edited text back into a new copy of the media.
Structure
- The file is UTF-8 and begins with
;FFMETADATAand a version number, currently 1. - Each tag is a
key=valueline. Spaces belong to the key or value. - Tags straight after the header apply to the whole file.
[STREAM]and[CHAPTER]start sections for a stream or a chapter. - A chapter may give
TIMEBASE=num/den, thenSTART=andEND=. Without a time base, times are in nanoseconds. - Empty lines and lines starting with
;or#are ignored. - The characters
=,;,#,\and newline are escaped with a backslash.
ffmpeg -i INPUT -f ffmetadata metadata.ffmeta
Not described
This page is a short summary, and there is no viewer for FFmetadata files.
Known, not yet covered
- Reference: a full field-by-field account of how FFmpeg reads and writes the file.
- Viewer: showing the tags and chapters.
Links
Software
- FFmpeg – media toolkit that writes and reads the format
Reference
- FFmpeg Formats Documentation – the Metadata chapter and the ffmetadata muxer
- ffmetaenc.c – FFmpeg's writer for the format