Is there an easy way to add chapters (i.e.: sections with titles) to .mp4 files using a python script?
For example, the script could process a 3-minutes video and label the first minute as "Beginning", the second minute as "Middle", and the last minute as "End".
The only solution (link) I stumbled upon so far involves using a ffmpeg command on the command line to extract the original ffmetadata from the video file before appending the chapters to it and updating the video with it.
However, I would like the process to be automated using a python script (instead of having to use the command line each time I have to process a video).