Skip to content

Instantly share code, notes, and snippets.

@FLGMwt
Created May 9, 2021 21:34
Show Gist options
  • Save FLGMwt/5b3f3b5d61b40d6382fba53ffb15ee8f to your computer and use it in GitHub Desktop.
Save FLGMwt/5b3f3b5d61b40d6382fba53ffb15ee8f to your computer and use it in GitHub Desktop.
Add title / artists / chapter metadata to an `.mp4` using `FFmpeg`
ffmpeg -i video.mp4 -i metadata.txt -map_metadata 1 -codec copy video_with_metadata.mp4
;FFMETADATA1
title=video title from metadata
artist=video artist from metadata
[CHAPTER]
TIMEBASE=1/1000
START=0
END=3000
title=chapter \#1
[CHAPTER]
TIMEBASE=1/1000
START=3000
END=5000
title=chapter \#2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment