iphone-videos-to-music-video-with-audio-track
Made by JeffCut many iPhone takes of a lip-synced performance into a music video locked to a clean master track. Use when editing music video footage, syncing takes to a song, or lip-sync editing.
From Jeffrey's Skills.md: professionally crafted skills for any AI agent, installed and kept in sync by the jsm CLI. Subscription only, $20/month.
Works With
Quality and Utility come from canonical skill metadata. Community ratings appear separately as stars when subscriber reviews exist.
Subscribe to download
Public previews are available, but downloads, CLI sync, and premium content require an active subscription.
Sign In to Subscribe- Full skill content with deterministic versioning
- CLI sync + local search index
- Access to Jeffrey’s premium library
Save to your account
Saved skills live in your cloud list. Run jsm sync on each machine to pull them locally.
What's New with this Skill
1Updates, enhancements, and release notes for this skill.
New: iphone-videos-to-music-video-with-audio-track, lip sync measured instead of eyeballed
The input is fifteen phone takes of someone singing along to a speaker plus one clean master recording; the output is a vertical video where the mouth matches the audio. Each take is aligned to the master by onset-envelope cross-correlation refined with GCC-PHAT, and three independently refined windows agree to within 0.13 ms against a 33.3 ms frame. Lip sync is then made structural: a segment whose source time equals its song time cannot drift.
- Three-window alignment spread is at most 0.13 ms against a 33.3 ms frame: onset envelopes at 172 Hz for the coarse offset, then GCC-PHAT over 250-5000 Hz at 16 kHz with 8x interpolation, plus a three-window fit that measures clock drift.
- Sync-locked segments make lip sync structural: when a segment's source time equals its song time the mouth cannot drift, and the auditor rejects any time-shifted or slowed segment inside a sung section.
- Timing is integer milliseconds on one master timeline, with frame indices derived only at render time, because iPhone capture is variable frame rate and a frame number is not a stable unit until the encode.
- The vocal stem's RMS decides where singing occurs; ASR only supplies what the words are. Treating the transcript as the authority on timing is the mistake this prevents.
- The mouth rule: footage time-shifted into an instrumental passage must come from a source moment that was also non-sung. It caught eight segments that otherwise looked correct.
- Hard exclusions live in the EDL as data: a background that must never appear becomes a constraint the audit script checks on every build.
- Two-tier footage quality separates takes that carry a performance from takes that only compose well. That recovered 1662 seconds of material for non-vocal passages.
- Documented ffmpeg traps: -t belongs before -i or it bounds the output, the GPU filter path silently drops rotation to landscape, zoompan's integer stepping needs 3x supersampling to stop visible vibration, and -fps_mode cfr keeps the frame count from wandering between runs.
- Two automated talking detectors failed: one locked onto a forearm, the other scored confirmed-talking below the corpus median. Both ship as documented negative results.
Alignment has to be right before anything else can be, and it is cheap to get almost right. Onset-strength envelopes at 172 Hz give a coarse offset by cross-correlation; GCC-PHAT over a 250-5000 Hz band at 16 kHz with 8x interpolation refines it, and a fit across three windows measures clock drift (at most 1.6 ppm here, so it was stored and left unapplied). The three windows agreed to within 0.13 ms, roughly 250 times finer than one frame at 30 fps. Everything downstream depends on the convention that timing is integer milliseconds on a single master timeline, with frame indices derived only a