Editing Beat Synced Saree Reels
Editing Beat-Synced Saree Reels
Run these first (ffmpeg + librosa). Replace track.mp3 with the supplied file.
Bash# 1. Detect tempo, beats, and downbeats python - <<'EOF' import librosa, json y, sr = librosa.load("track.mp3") tempo, beats = librosa.beat.beat_track(y=y, sr=sr, units="time") onset_env = librosa.onset.onset_strength(y=y, sr=sr) energy = librosa.feature.rms(y=y)[0] json.dump({"tempo": float(tempo), "beats": beats.tolist()}, open("beats.json","w")) print(f"BPM ~{float(tempo):.1f}, {len(beats)} beats, {len(y)/sr:.1f}s total") EOF # 2. Probe the footage for f in clips/*; do ffprobe -v error -show_entries stream=width,height,r_frame_rate,duration -of csv=p=0 "$f"; done
Then: pick the strongest 15-25s window of the track, map beat times to cut points, grade, assemble, export 1080x1920 at 30fps.
Progress:
- [ ] Step 1: Audit the track (BPM, beat grid, energy map, intro/drop/outro)
- [ ] Step 2: Choose the cut window (only as much track as needed)
- [ ] Step 3: Audit and rank footage (hero shots, textures, movement)
- [ ] Step 4: Build the cut map (beat -> shot -> transition)
- [ ] Step 5: Define one master color grade
- [ ] Step 6: Assemble the timeline, snap every cut to the beat
- [ ] Step 7: Add transitions on strong beats, speed ramps on drops
- [ ] Step 8: Master audio (fade out, loudness)
- [ ] Step 9: Export and run the QC checklist
Step 1: Audit the track
- Get BPM, beat timestamps, and a bar structure (1 bar = 4 beats; downbeat = beat 1).
- Mark the energy map: soft intro, build, drop/chorus, outro. Use RMS peaks to locate the drop.
- Compute beat length:
60 / BPMseconds. At 30fps, convert each beat time to a frame number and round to the nearest frame. Never cut between frames.
Step 2: Choose the cut window
Use as little of the track as the story needs.
- Target duration: 15-25s (Reels sweet spot; 20s default).
- Start on a downbeat, ideally 1-2 bars before a build or the drop so the reel opens with intent.
- End on a downbeat or a natural phrase ending, not mid-bar.
- Trim with ffmpeg, then add a 1-1.5s fade-out so it resolves instead of chopping:
Bashffmpeg -ss <start> -to <end> -i track.mp3 \ -af "afade=t=in:d=0.15,afade=t=out:st=<dur-1.2>:d=1.2,loudnorm=I=-14:TP=-1.5" \ cut_track.wav
If the track has a clean built-in ending inside the window, prefer that over a fade.
Step 3: Audit the footage
Rank every clip into roles:
- Hero: full-length drape, model turn, pallu flow. Reserved for the drop.
- Detail: zari, border, weave, embroidery macro. Fills intro and build.
- Movement: walking, twirl, fabric in wind. Carries transitions.
- Brand: logo, storefront, tag. Used last.
Discard shaky, soft-focus, or off-palette clips. Fewer, better shots beat coverage.
Step 4: Build the cut map
Pacing follows the energy map. Cut length is a multiple of the beat:
| Section | Cut length | Shot role |
|---|---|---|
| Intro (soft) | 2 beats / 1 bar | Details, slow reveals |
| Build | 1 beat, tightening | Movement, textures |
| Drop / chorus | 1/2 beat to 1 beat | Hero shots, fastest cuts |
| Outro | 2 to 4 beats | Hero hold, then brand |
Write the map as a table before touching the timeline:
Beat 1 (0.00s) Detail: zari border macro -> hard cut
Beat 5 (2.00s) Detail: pallu texture -> whip pan
Beat 9 (4.00s) Movement: twirl -> match cut
Beat 17 (8.00s) HERO: full drape, DROP -> flash + speed ramp
...
Beat 33 (16.00s) Brand: logo hold -> fade w/ audio out
Step 5: One master color grade
Premium = consistent, rich, skin-faithful. Apply one grade to the whole reel, then small per-clip corrections only for exposure and white balance.
Defaults:
- Contrast: gentle S-curve, lifted blacks slightly (matte-premium, never crushed).
- Saturation: push fabric colors, protect skin. Isolate skin hues (orange/red 15-35 degrees) and keep them natural; boost saturation of the saree's dominant hue selectively.
- Warmth: slightly warm highlights, neutral-to-cool shadows (teal-gold split tone, subtle).
- Highlights: protect zari/gold from clipping; they should glow, not blow out.
- Grain: very light, 2-4%, for a filmic finish.
ffmpeg starting point (refine in a grading tool if available):
Bash-vf "eq=contrast=1.08:saturation=1.15:gamma=0.97,\ colorbalance=rs=-0.03:bs=0.04:rh=0.05:bh=-0.04,\ curves=preset=medium_contrast,noise=alls=6:allf=t"
Verify skin tones on every clip against the first graded frame. If one drifts, correct that clip, not the global grade.
Step 6: Snap every cut to the beat
- Place cuts on the beat or 1-2 frames before it (visual lead feels tighter than a late cut).
- Land the biggest visual change (hero reveal) exactly on the drop downbeat.
- Use cut points from
beats.json. Do not eyeball. - Keep rhythm varied: an occasional off-beat cut on the "and" (half-beat) adds groove, but the downbeats stay locked.
Pythonfps = 30 frames = [round(t * fps) for t in beats] # cut frames
Step 7: Transitions as the main effect
Transitions carry the polish. Pick the type by what the music is doing:
| Musical moment | Transition |
|---|---|
| Soft beats | Hard cut or short cross-dissolve (4-6 frames) |
| Snare/clap hit | Whip pan or swipe in the direction of motion |
| Build (rising) | Zoom-in punch, increasing speed |
| Drop downbeat | Flash frame (1-2 frames white) + speed ramp, or glitch-free impact cut |
| Fabric movement in frame | Match cut: pallu sweep wipes into the next shot |
| Outro | Slow fade or dip to ivory/black |
Rules:
- Max 3 distinct transition types per reel. Repetition reads as intentional.
- Transition duration is a fraction of a beat (never longer than half a beat).
- Use the saree itself as the wipe where possible: a billowing pallu or twirl covering the frame is the most on-brand transition.
- Speed ramps: ease into slow motion on a hero turn (60-120fps source ideal), snap back to 100% on the next beat.
Step 8: Master audio
- Fade the track out over the last 1-1.5s.
- Normalize to about -14 LUFS, true peak under -1.5 dB.
- If a transition has a whoosh/hit SFX, keep it 10-15 dB below the music and aligned to the beat.
- No original clip audio unless requested.
Step 9: Export and QC
Bashffmpeg -i assembled.mp4 -i cut_track.wav -map 0:v -map 1:a \ -c:v libx264 -preset slow -crf 17 -pix_fmt yuv420p \ -vf "scale=1080:1920:flags=lanczos,fps=30" \ -c:a aac -b:a 256k -movflags +faststart -shortest reel.mp4
QC checklist:
- Every cut lands on a beat (scrub frame by frame at 3 random spots)
- Drop coincides with the hero reveal
- Skin tones natural, fabric colors vivid, zari not clipped
- No transition longer than half a beat
- Reel ends cleanly (fade or phrase end), logo readable for 1.5s+
- 9:16, 1080x1920, 30fps, under 30s, audio at -14 LUFS
- Key visuals sit inside the safe zone (keep ~250px clear top/bottom for UI overlays)
Example 1: Input: 120 BPM track, 3:20 long, drop at 0:48. Footage: 14 clips (6 detail, 5 movement, 2 hero, 1 logo). Output: Window 0:40-1:00 (20s). Beat = 0.5s. Intro 0:40-0:48 uses 2-beat detail cuts (1s each). Drop at 0:48 triggers flash + hero speed ramp. Fastest section is 1-beat cuts (0.5s). Logo holds 2s with 1.2s audio fade. Total 40 beats, 26 cuts, 3 transition types (hard cut, whip pan, pallu match cut).
Example 2: Input: Slow 78 BPM instrumental, no obvious drop, 2:10 long. Output: Beat = 0.77s. No drop, so build the arc on pacing alone: 2-beat cuts opening, accelerate to 1-beat at the midpoint, resolve on a held hero shot. Window 0:20-0:38 (18s), ending on the phrase cadence. Soft cross-dissolves dominate; one whip pan at the midpoint as the single "accent" transition. Warm gold grade leaning romantic.
Example 3: Input: Brand has only 5 usable clips. Output: Reuse clips with different crops (wide, punch-in 130%, detail crop) and reverse or speed-vary them. Never repeat the same framing twice within 4 beats.
- Music first, picture second. Build the cut map from the beat grid before assembling anything.
- Restraint reads as luxury. Slower cuts, fewer effects, and generous hero holds feel more premium than constant motion.
- Cut on motion. Start the next shot mid-movement so the eye carries across the cut.
- Guard the fabric. The saree is the product: keep texture, color accuracy, and drape visible and never obscured by effects.
- Open strong. The first 1.5s decides retention; start on the most striking detail or a bold color reveal.
- Make the end loop-friendly. A clean resolve invites replays and reads as finished.
- Use only the track you need. A tight 20s with a satisfying arc beats a longer, padded edit.
- Cutting off the beat grid by eye; always use computed beat frames.
- Using the whole song; trim to the best window and resolve it.
- Chopping the audio abruptly instead of fading or ending on a phrase.
- Stacking many transition types (looks like a template pack, not a brand).
- Over-saturating, which pushes skin orange and makes zari muddy.
- Crushing blacks or clipping gold highlights, which flattens fabric detail.
- Per-clip grades that drift apart; keep one master grade.
- Putting text or logo in the platform UI zone where it gets covered.
- Putting the hero shot before the drop, which wastes the biggest beat.
Reply with these and the edit can be executed end to end:
- The audio file (and preferred section if any)
- The footage folder (with any must-use shots)
- Brand logo file and any required tagline or CTA
- Brand palette or a reference reel for the grade
If the track or footage isn't provided yet, run the Quick Start analysis as soon as they are, and deliver the cut map table for approval before final render.