This script will extract a chapter list from a given mp4 file and create a kodi-compatible .edl file excluding any chapters named "Advertisement". This is useful for videos recored using https://playon.tv
Uses mp4chaps from the mp4v2 library https://code.google.com/archive/p/mp4v2/
./genedl.py some-file.mp4