Search code examples
videoffmpegmplayerkodi

How to batch generate EDL (edit decision list) files for a folder of videos with different run times


How to batch generate EDL (edit decision list) files for a folder of videos with different run times? I need to skip exact amount of seconds from the start and another amount of seconds from the end. All the videos have different runtimes I can make EDL files for skipping the intro but need a way to read the video runtime and skip the last 60 or 90 seconds.

This is the format for the EDL I am using with kodi

0:00:00   0:01:20.    3

So if the video is 40 mins 30 seconds the EDL generated skipping 80 seconds from the start and 90 seconds from the end should be

0:00:00   0:01:20.    3
0:39:00   0:40:30.    3

More info about kodi EDL

https://kodi.wiki/view/Edit_decision_list


Solution

  • Jellyfin has a plugin that detects intros and outros and another plugin that writes edl files.