Py’otrMuhammad Toheed Sahar

Premiere EDL to JSON preset for templated video

A parser that reads a Premiere Pro EDL (CMX3600) and writes a JSON preset describing the upload slot, overlay layers, audio and FFmpeg hints for templated video.

Client
A post-production studio
Year
2026
Type
AI video & media

The problem

A post-production studio wanted to automate cutting client clips into a Premiere template. The template's structure lives in the EDL, so the first step was a machine-readable description of it: where a client clip goes, which layers sit on top and what audio runs underneath.

How I built it

A single Node.js script parses the EDL events, separates the one base clip that is a client upload slot from the composite and key layers above it, converts timecodes at 29.97 fps non-drop, and writes a JSON preset with slots, transitions, overlays, audio levels and FFmpeg filter hints for a later render step. I delivered it as Milestone 1 of a three milestone plan.

What got hard

  1. The first version reported a sequence length of 54.6 seconds for a clip that is about 21 seconds long, and counted three upload slots instead of one.

    Two late events carried both a source clip and a key, which makes them composite overlays, not base tracks. Only pure base tracks now count as slots, which gives one slot and a duration of 21.47 seconds, matching the frame-count math.

The result

The preset for the sample sequence lists 29 events, one upload slot and 10 overlay layers, and the parser's duration matches the timecode math for the base clip.