Created
May 9, 2021 21:34
-
-
Save FLGMwt/5b3f3b5d61b40d6382fba53ffb15ee8f to your computer and use it in GitHub Desktop.
Add title / artists / chapter metadata to an `.mp4` using `FFmpeg`
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ffmpeg -i video.mp4 -i metadata.txt -map_metadata 1 -codec copy video_with_metadata.mp4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;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