From e5abb1293bb015e2f5610f0095eeb3badb90f4f9 Mon Sep 17 00:00:00 2001 From: ThePendulum Date: Sat, 25 Jul 2026 23:09:55 +0200 Subject: [PATCH] Add project brief --- PROJECT_BRIEF.md | 220 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 220 insertions(+) create mode 100644 PROJECT_BRIEF.md diff --git a/PROJECT_BRIEF.md b/PROJECT_BRIEF.md new file mode 100644 index 0000000..f47de9c --- /dev/null +++ b/PROJECT_BRIEF.md @@ -0,0 +1,220 @@ +# Project: Lossless A/V Sync Marker Tool + +## Goal + +Build a Linux desktop GUI app — think "LosslessCut, but for fixing audio/video +sync" — that lets a user: + +1. Load a video file (it has both a video track and an audio track, currently + out of sync with each other). +2. Scrub the video track to a specific frame where a known event happens + (e.g. a clap, a flash, a beep) and click "Mark Video". +3. Scrub the audio track to the same event and click "Mark Audio". +4. The app computes the offset between the two markers (in ms). +5. The app exports a new file with the audio shifted to match the video, + **losslessly** (stream copy, no re-encoding) via ffmpeg. + +This replaces a manual workflow of: scrub in a player, write down two +timestamps, subtract them by hand, then run an ffmpeg command with +`-itsoffset`. + +## Why frame-accurate scrubbing matters + +Sync events are often only 1-2 frames wide. HTML5 `