Using FFMPEG to add chapter tags

Created on 2020-10-31T23:20:13-05:00

Return to the Index

This card can also be read via Gemini.

Extracting meta-data from a file:

ffmpeg -i INPUT -f ffmetadata FFMETADATAFILE

Injecting meta-data in to files:

ffmpeg -i INPUT -i FFMETADATAFILE -map_metadata 1 -codec copy OUTPUT

File format

Hashes and newlines apparently must be escaped with backslashes.

;FFMETADATA1

Version tag.

[CHAPTER]
TIMEBASE=n/d
START=s
END=e
title=name

A timecode of 1/1 means full seconds.