techstackbro avatar
@techstackbro
resource · comment DOORON

Kaagaz jaisa lyric video, Claude se

Poora video kaagaz ki paraton se bana lagta hai: pop-up book jaisa sheher, dhaage se latke taare, har shabd gaane ke saath girta hai. Par ye sab code hai. Neeche ek prompt hai jo setup se reel, cover aur caption tak sab karta hai.

kaagaz, kainchi aur code ✂️

Follow @techstackbro
output

Ye style banega

Six frames from the paper-cut lyric video: a dusk city with a boy on a rooftop, a girl on a hanging crescent moon with paper wings, a street between two balconies, paper planes at night, the song title in cut-paper letters, and cloud frames closing at the end

Ye prompt ka lyric video wala hissa hai (45 sec, 540p, bina awaaz, gaana uske artist ka hai). Reel mein yahi phone frame ke andar chalta hai aur tap pe fullscreen hota hai.

pehle ye

Setup, 2 minute

Bas Claude Code chahiye. Baaki sab (Node.js, ffmpeg, Python, Whisper, Remotion) prompt khud install karwata hai.

1Ek khali folder banao, jaise paper-lyric.
2Gaane ka official / studio version usme daalo, naam song.mp3 (mp4 bhi chalega). Live version mat lo, uski timing alag hoti hai. Cover art cover.jpg naam se.
3Us folder mein terminal kholo aur claude chalao. Neeche wala prompt paste karo.

Mac pe Homebrew, Windows pe winget, Linux pe apt use hoga. Password maange toh tum khud daalna.

1 prompt

Poora prompt

Ek prompt, 4 cheezein: paper lyric video, reel (phone frame jo tap pe fullscreen hota hai), cover image aur caption + hashtags. Upar INPUTS mein gaane ka naam, hissa, apna handle aur comment word bharo.

claude code
Make me a finished Instagram lyric reel for my song in a modern PAPER-CUT style: every frame drawn in code, looking like layered sheets of card. Then frame it in a phone that taps to fullscreen, and give me a cover image and a caption. Use Remotion. No images except the song cover, no stock footage, no image or video AI.

INPUTS (fill these):
SONG: ./song.mp3 (an mp4 also works). Use the OFFICIAL/studio version: live versions have different timings.
NAME: "<song name>"  ARTIST: "<artist>"
PART: <start> to <end> in the song (if blank, pick the strongest 35-45 s that starts on a full line)
COVER: ./cover.jpg (the song's cover art)
HANDLE: @<my instagram>  CTA WORD: <word people comment, e.g. LYRICS>

STEP 1 - SETUP (do it all yourself, verify each step, ask me only for passwords)
1. Check Node 20+, ffmpeg and Python 3.10+. Install anything missing (Homebrew on Mac, winget on Windows, apt on Linux).
2. Create a Blank Remotion project here (npx create-video@latest), 1080x1920, 30 fps. Add @remotion/google-fonts. Copy the song and cover into public/.
3. Extract the song audio to public/song.wav (48 kHz stereo) with ffmpeg.
4. Make a Python venv, pip install faster-whisper, transcribe PART with the "medium" model, word_timestamps=True, vad_filter=False (VAD drops singing), once with the song's language and once with a close language, and compare.

STEP 2 - LYRICS CHECK (stop here)
Whisper invents words on sung vocals. Write out/captions-to-verify.md: a table of every on-screen line with the song time of its first word. Tell me which lines you are least sure of. STOP and wait: I will correct the words. Use my corrected words exactly, keep your timings, and never guess a lyric again after this.

STEP 3 - THE PAPER LYRIC VIDEO (composition "Lyric", 9:16)
Paper rules (never break):
- Every shape is a flat sheet of card: one solid colour, no outlines, no gradients inside a shape, no glow.
- Depth comes only from stacking sheets. Every sheet throws a soft shadow down-right onto the sheet behind it (two SVG feDropShadows: one tight, one wide; bigger for sheets that float higher).
- Paper grain over the whole frame: feTurbulence into feDiffuseLighting, blended multiply at ~40%, plus faint long fibres. Soft vignette.
- People are modern and simple, built from stacked card pieces: a hoodie or a dress, hair as one shape, the face is just one small curved eye and a blush dot. Never detailed faces.
- Lettering looks cut from card: Fraunces 900 italic with a hard offset shadow. Small labels in Inter with wide letter spacing.

Three "light-box" sets (use all three, change set when the mood of the lyric changes):
A. Dusk city: sheets go cream -> coral -> pink -> purple -> navy from back to front, a big cream moon behind, city skylines with lit windows, a rooftop in front with string lights.
B. Blue night: one blue family from pale to near-black, one warm light only. Nested soft cloud-shaped frames (each a sheet with a hole) around a glowing centre. A crescent moon hanging on two threads.
C. Street: two apartment blocks facing each other (teal and terracotta), balconies with plants, a street lamp. It starts as a peach dusk and turns to navy night while the song plays: mix every sheet colour over time, sun sets, moon rises, windows light up.

Story: read the corrected lyrics and give every line a small acted moment between two people who are far apart (or whatever the song is about). Use paper ideas: paper planes that fall short and stay on the street, a line of fairy lights that stretches toward the other person and stops, a paper heart that drifts away, wings that fan open like folded paper, a note in the hand.

Motion (this is what makes it feel hand-made):
- Opening: the scene builds like a pop-up book. Sheets rise from below one after another (0.1 s apart, ease-out, no bounce), the moon rises, stars drop on threads.
- Depth camera: give each sheet a depth 0..1.2. When the camera pans or zooms, far sheets move and scale less than near ones. Use slow pushes, one fast push-in on an emotional line, one wide pull-back for the title line.
- Hanging things (stars, the crescent, planes) drop on a thread, swing like a pendulum and settle (decaying sine).
- Scene changes are paper moves, never cuts or fades: a new backdrop sheet slides up over the old scene; buildings slide in from the sides like stage flats; the nested cloud frames scale in from large to close around the new scene.
- Smooth motion only. Do not fake stop-motion with stepped frames, flicker or moving grain: it reads as jitter.
- Lyrics: one line = 2-4 words. Each word is a cut-out that drops in on its sung time (falls ~half its height, rotates ~9 degrees into place, 0.3 s ease-out). One key word per line in an accent colour. The song-title line is big: its letters drop one by one.
- Animate scenes on their own clock and pin key moments to words with a piecewise-linear time map (reel seconds -> scene seconds), so every action lands on its word.
- Layout: keep lyrics between y 300 and 800 or in a clear area low in the frame; nothing important in the top 260 px (the tile sits there) or the bottom 300 px (Instagram UI). Text colour must flip between dark and cream as the background changes.

STEP 4 - THE REEL WRAPPER (composition "Reel", 9:16, plays the Lyric comp inside it)
- Light dotted canvas (#EEF0F6, dot grid), Baloo 2 + Kalam fonts, thick dark outlines and hard offset shadows.
- Open on a phone mockup playing the Lyric video, a tile above it "cover.jpg x Claude mark", and a speech bubble "Claude Code se bana."
- Leave the bottom-left corner clear for a presenter I add later; if I give ./presenter.png place it there static: no bounce, no idle bob.
- At about 2 seconds: a tap indicator on the screen, a small press dip, then the screen grows smoothly to full frame (12 frames, ease in-out). Bubble fades, tile stays at the top.
- Outro (last ~3 s): freeze the last lyric frame, shrink it back into the phone, bubble "aisa banana hai?" and a note "comment <CTA WORD>". Fade the song out before the next line starts.

STEP 5 - COVER + CAPTION
- Composition "Cover", 1080x1920, one frame: same light dotted canvas, a two-line title with the second line in hot pink, a pill "song x Claude", and a framed card showing the title frame of the lyric video with the real cover small in its corner. Keep everything inside the centre 1080x1350.
- Write out/post.md: a short Hinglish caption (what it is, 4-5 short emoji lines of scenes, "Comment <CTA WORD>", song credit), 8-12 hashtags, SEO keywords, alt text. No money words, no fake claims.

QUALITY RULES
- Text must never be clipped or overflow: white-space nowrap, fit size to the frame, check every line.
- Before each full render, render 8 stills spread across the video, look at them yourself, and fix overlaps (text over faces or buildings), empty frames, off-word actions and anything that looks cheap. Repeat until clean.
- Do not show app UI (chat boxes, counters, status pills) inside the lyric video: it makes it look like a tech demo.

RENDER
- out/lyric-video.mp4 (Lyric comp), out/reel.mp4 (Reel comp), out/cover.png. h264, crf 18, with audio.
- If rendering hangs on the bundled browser (common on Mac), use system Chrome via browserExecutable. If another Remotion project is running on this machine, pass an explicit port to the renderer.
- When done, tell me the files, their lengths, and which lyric lines you were least sure about.

Prompt English mein hai kyunki Claude English instructions sabse saaf follow karta hai. Gaana kisi bhi bhasha ka chalega.

zaroori step

Lyrics khud check karo

Prompt beech mein ek baar rukta hai. Claude ek file banata hai, out/captions-to-verify.md, jisme har line aur uska time hota hai. Use padho aur galat shabd theek karke batao.

Ye step chhodna mat. Gaaye hue shabdon pe Whisper galat sunta hai. Hamare run mein usne ek poori line galat likhi thi, aur humne wo tab pakdi jab list saamne aayi.
theek karne ke liye
Line at 2:11 should be "<sahi line>". Keep your timings, use my words exactly, then continue.
agar atke

Chhote fix prompts

shabd late ya jaldi
The action on "<word>" lands early. Move that scene moment to the exact time the word is sung and re-check the stills.
tech video jaisa lag raha
This feels like a tech demo. Remove every UI element from the lyric video and tell the story only with paper objects, light and the two people.
sasta lag raha
This shot looks cheap. Rebuild it with more stacked sheets, clearer shadows between them, and bigger, simpler shapes. Show me a still before rendering.
fullscreen jaldi chahiye
Move the tap to fullscreen to 2 seconds, and move the first lyric lines down so the tile does not cover them.
zaroor padho

Limits, seedhi baat

Reel mein "Dooron Dooron" (Paresh Pahuja) use hua. Gaane ke saare haq unke paas hain.

series

AI se video kaise banaye

Ye guide AI se video kaise banaye series ka hissa hai. Poori series yahan hai:

  1. 1Poora setup: Claude Code + exact prompt + free voice clone
  2. 2Apna 2D character kaise banaye
  3. 3Animation kaise kaam karta hai (code se video)
  4. 4Captions perfectly sync kaise hote hain

Poora video setup chahiye? Part 1 se shuru karo.

follow karo @techstackbro 👀