Script for chapters conversion

Hi

I was looking for a way to create a video with chapters.
I found the way to export markers as a chapter file, but I couldn’t do anything with it. So I made a little Python script to convert the file exported from Shotcut to a file format (OGM) supported by MKVToolNix (a great tool for MKV muxing). This way I was able to nicely incorporate into a MKV file chapters coming from my Shotcut markers.
Here is the script:

Cheers
Ofboir

Thanks, here is a related page with script to use ffmpeg (included with Shotcut) that can also work with MP4 and MOV files.

The link on that page to the docs for the ffmetadata text file format is wrong. Correct link is FFmpeg Formats Documentation