Skip to content

Instantly share code, notes, and snippets.

@philthompson
philthompson / mergechapters.py
Last active October 15, 2025 12:14 — forked from cliss/mergechapters.py
Merge Files with Chapters
#
# concatenate mp4 files with ffmpeg, including chapter markers
#
# forked by Phil Thompson to allow merging of an arbitrary number
# of video files
#
# originally from: https://gist.github.com/cliss/53136b2c69526eeed561a5517b23cefa
#
# with background at his blog: https://www.caseyliss.com/2021/1/26/joining-files-keeping-chapters-using-ffmpeg
#