@carterbunch are you still utilizing this bash script? I'm having trouble getting this to work. I also may not completely understand how you have it setup and how you are using it.
What I want to be able to do is take the Channels DVR recorded video and EDL generated file and add chapters to a MKV file that Plex sees. That way when a commercial break comes up I can simply skip to the next chapter and it brings me to the end of the commercial break and when the show resumed.
Am I understanding that is what this script is supposed to do?
I setup Hazel to watch a directory and run the shell script. I already have ffmpeg installed view homebrew (I altered the scripts path). Installed mediainfo. When I drop the video file and EDL in the folder Hazel is watching and watch the Hazel log, it recognizes the edl file as a match and doesn't do anything. It says done processing the folder.

I’ll have to decide if I really need that or automate deleting old files.