Skip to content
Raisul Sohan

Premiere Pro UXP Panel & Audio Sync Engine

LazyEditMirror

Copy a Front-Camera Edit onto the Side Camera, Synced by Audio, in Premiere Pro

Solo Developer & Creative Tools Engineer Documentation Adobe Premiere Pro UXP • Node.js & ffmpeg Audio Engine • v1.1.2

  • GitHub stars: 1
  • v1.1.2 · 2 months ago
LazyEditMirror

Try it yourself

Cut the pauses out of the front camera, Analyze a side-camera file, Sync, and press play: both cameras say the same line at the same moment.

A free Premiere Pro panel for two-camera shoots: cut the front camera once, and LazyEditMirror places the side camera on its own track with the same cuts and the same timing. A small audio engine finds the sync between the cameras by listening to both recordings, so there is nothing to line up by hand and nothing on the timeline is overwritten. Free and open source.

The challenge

A presenter video is usually filmed with two cameras: one from the front and one from the side. The editor cuts the front camera first, removing pauses, coughs and retakes, often with dozens of cuts. Then the same edit has to be rebuilt on the side camera, clip by clip, at exactly the same moments. Done by hand, that second pass takes about as long as the first, and a single slip leaves the lips out of sync. Multicam editing has to be set up before the first cut, not after it.

Technical challenges:
1. No audio in the API: Premiere's UXP API can read clips, tracks and source ranges, but not a single audio sample, so the panel cannot hear where the two cameras meet.
2. Many files on both sides: the front edit may be cut from several recordings, and the side camera may have several files that start and stop at different times.
3. Leaving the timeline untouched: Premiere's overwrite edit always brings a clip's linked audio along, with no video-only option, and the edit must never cover existing audio or clips already placed.
4. Exact to the frame: an offset measured in milliseconds has to land on the sequence's frame grid, and the result has to be checked, not assumed.

The solution

1. A small audio engine beside Premiere: a local HTTP server on 127.0.0.1 (Node.js and ffmpeg) decodes each file's audio to 8 kHz mono, turns it into a 200 Hz loudness envelope, caches it, and cross-correlates side against front with an FFT. The strongest, clearly isolated peak is the offset, measured to 5 ms; anything below the bar is reported as no match and left alone. The first read of a file is slow, every later one is instant.

2. Steps, not settings: choose the Master and Target tracks and a side-camera file, click Analyze, then Sync. The result card shows, per front file, what was found (side = front +0.635 s, correlation 0.84) and how many clips will be placed, are already done, or are still waiting for another side file.

3. Passes for many files: one side file per pass. A front clip is placed only when it fits inside the side file whole, clips already on the Target track are never touched, and the card names the front clips that still need a side file until every front clip is covered.

4. Nothing overwritten: the side audio is parked on an empty audio track for a moment and removed right after each placement, so the Target track ends up video-only and no existing audio is touched. Side in-points are snapped to the frame grid, the Target track is read back and verified against the plan, and every placement is its own Edit > Undo step.

5. Manual references when the audio cannot help: a pair of clips synced by hand, matching source timecode for jam-synced cameras, or an offset typed in, each with an optional extra offset for fine correction.

6. Nothing to set up: the installer adds the panel through Creative Cloud's own plugin installer, puts the engine in the user folder, registers a lazyeditmirror: link so the panel can start it without a window, and offers to install Node.js and ffmpeg with winget only when they are missing. The engine exits by itself after three idle hours.

7. Tested before Premiere sees it: every call checked against Adobe's Premiere Pro UXP reference and the official 26.5 type declarations; the timing maths is pure code with unit tests, an end-to-end run against a mock of the Premiere API, and an engine self-test on synthetic recordings made with ffmpeg. Confirmed on Premiere Pro 26.5.2 with an 86-clip, four-file front edit: correlation 0.84, and 23 clips placed and verified in one pass.

Highlights

  • Cut the front camera once; the side camera gets the same cuts on its own track
  • Sync found by sound: FFT cross-correlation of loudness envelopes, to 5 ms
  • One click to Analyze, one to Sync, with a result card per front file
  • Several front and side files, one side file per pass, until every clip is covered
  • Nothing overwritten: side audio parked and removed, existing clips untouched
  • Snapped to the frame grid, read back and verified, every placement one undo step
  • Manual references: a hand-synced pair, source timecode or a typed offset
  • The installer sets up the engine; Node.js and ffmpeg offered only when missing
  • Premiere Pro 26.5+ UXP panel; free and open source under MIT

Built with

  • Premiere Pro
  • Adobe UXP
  • Node.js
  • ffmpeg
  • Audio Sync
  • Multi-Camera
  • Productivity