Registry Mirror
Skip to content

# Proposal: place unmatched clips on the timeline using relative timestamps #31

Open

Description

@REVPKD

What are you trying to do?

I have a working prototype based on Align v0.3.3 that turns the sync result into a workspace for reviewing and correcting picture and sound before export. The goal is to check a match, listen to the camera and recorder, and fix the edit without leaving Align or rendering preview files. Would this workflow be useful upstream?

  • Review picture and sound inside Align. An embedded source monitor loads the original video when a clip is selected. Switch between camera audio and overlapping external recorder audio without reloading or retiming the picture. A separate timeline playhead lets you listen anywhere in the edit; playback starts paused.
  • Inspect and correct the sync visually. See linked waveforms for embedded camera audio alongside independent recorder tracks. Drag with snapping, nudge by a frame or milliseconds, and undo or redo placement changes. The review timeline and NLE timeline export use the same placements.
  • Place unmatched files using relative recording timestamps. Waveform matches establish the timeline positions and stay untouched by estimation. For a file that couldn't be matched, find a waveform-synced clip from the same device and add the difference between their recording timestamps to that anchor's timeline position. For example, if the matched clip starts at 11:38 on the camera's clock and the unmatched clip starts at 12:58 on that same clock, estimate its position 1 hour 20 minutes after the anchor, before compacting empty gaps. This uses recording timestamps, not embedded timecode, and never compares absolute clock readings across devices. The placement stays marked as an unconfirmed estimate until reviewed.
  • Resume where you left off. Restore inputs, sync results, manual edits and review state on reopening. Keep media that failed to decode visible, find missing numbered camera takes explicitly, and flag previously matched clips that become unmatched after a rerun.

For raw media, natural filename order keeps camera takes in sequence, and gap compaction removes only spans where every track is empty. MOV/MP4 export with external audio is a separate change: both streams are copied without re-encoding.

The prototype has Windows regression coverage, including synthetic FFmpeg fixtures for exported packet payloads and offsets. This is a proposal, not a merge-ready patch: agreed changes would be ported to current main and tested there. No private recordings or projects are needed.

How do you do it today?

No response

What would help?

No response

Editor and version

No response

Activity

  1. added
    enhancement
    on Nov 18, 2026
  2. FedyaLight commented on Nov 19, 2026

    @FedyaLight
    Owner

    Thanks for writing this up, and for offering to port it. Align 0.3.5 is out, and sync and export changed a lot since 0.3.3: track layout, OTIO, the Resolve import script, and how sound is placed on frames. Please base anything on current main.

    Placing unmatched files from relative recording timestamps would be a real improvement. Today Align orders unmatched clips and groups by recording time, but it reads one clock for a whole group. It gives up when the camera and recorder clocks disagree, and it never puts an unmatched clip inside the time span of a group that has a clip from the same camera. Anchoring to the matched clip from the same device fixes both. I'd take it first, as its own PR. It should keep the rules you describe: anchor only to a waveform-matched clip from the same device, never compare clocks across devices, never move a waveform match, and keep the estimate visibly unconfirmed, in the result and in the exports. Tests with a matched camera clip and a later unmatched one from the same camera would be great.

    Natural filename order (take2 before take10) is a small, welcome change too. A separate PR is easiest.

    The review workspace (source monitor, waveform timeline with drag, nudge and undo, session restore) is welcome as a PR too, separate from the other two. In the description, please explain how manual edits are stored in the result, what happens to them when sync runs again, and how exports treat manually placed clips. Screenshots or a short recording would help a lot.

    On the rest:

    • MOV/MP4 with external audio: Align already writes complete camera files with the recorder's audio and copies the video without re-encoding (--export-media). If yours works differently, tell me how.
    • Gap compaction: export already has gap removal options (align-cli export --help). If your rule differs, a short example would help.

    CONTRIBUTING.md lists the checks each PR needs. Thanks again!

  3. REVPKD commented on Nov 20, 2026

    @REVPKD
    ContributorAuthor

    submitted 2 PRs!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions