techstackbro avatar
@techstackbro
ai se video kaise banaye · part 1 ▶ part 1 reel dekho

Claude Code se viral 2D reels: poora setup

Reel mein promise kiya tha, ye raha: Claude Code ka setup, mera exact prompt, aur free voice clone ka poora setup. Copy karo, paste karo, reel banao.

Animator nahi chahiye. Bas laptop aur thoda sabar 🙂

series · part 1 of 5

AI se video kaise banaye

Ye guide part 1 ka hai. Pehle reel dekho, phir yahan se step by step karo.

  1. 1Poora setup: Claude Code + exact prompt + free voice clonetum yahan ho
  2. 2Apna 2D character kaise banaye
  3. 3Animation kaise kaam karta hai (code se video)
  4. 4Captions perfectly sync kaise hote hain
  5. 5Ek reel ka asli kharcha, aur free mein kaise banayejaldi aa raha
step 0

Kya chahiye

CheezKyunCost
Claude CodeSaara code, scenes, animation likhta haiClaude Pro/Max plan
Node.js 20+Remotion chalane ke liyefree
Python 3.11/3.12Voice clone scriptsfree
ffmpegAudio clean, speed, loudnessfree
VoiceGPT voice (paid) ya free clone (VoxCPM2 / Chatterbox)paid ya free

Mac (M1 ya naya) ya NVIDIA GPU wala PC best hai. Free voice models CPU pe bhi chalte hain, par bahut slow.

mac pe tools install (homebrew)
brew install node [email protected] ffmpeg

Windows pe: nodejs.org, python.org se install karo, aur ffmpeg ke liye winget install ffmpeg.

step 1

Claude Code install karo

mac / linux
curl -fsSL https://claude.ai/install.sh | bash

Windows ya baaki options: code.claude.com/docs. Install ke baad ek khaali folder banao aur wahan Claude Code start karo:

naya project
mkdir my-reels && cd my-reels
claude

Pehli baar ye login maangega. Apne Claude account se login karo. Bas, ab tumhare paas ek developer hai jo terminal mein baitha hai.

step 2 · asli game

Master prompt: reel factory banao

Ye prompt ek baar chalana hai. Ye Claude Code se poora "reel factory" banwata hai: tumhara apna character, captions, cards, render script, aur ek skill file jisme saare rules save ho jaate hain. Uske baad har reel ke liye bas ek line bolni hai.

Brackets [ ] wali cheezein apne hisaab se badlo. Apna khud ka character aur style banao, copy nahi: wahi tumhara brand banega.

prompt · paste in claude code
Create a Remotion 4 project for vertical explainer reels (1080x1920, 30fps).

MY STYLE (fill these in)
- Character: [describe YOUR character: what it is (person, animal, robot, object), look, colours, outfit]
- Where it sits on screen: [e.g. bottom centre / right side / full body in the middle]
- Expressions: [list 3 to 5 you want]
- Captions: [e.g. big bold subtitles in the centre / word-by-word pop / speech bubble]
- Colours and font: [your background, 2 or 3 accent colours, one font]
Keep all colours in one theme file so I can change the look later.

WHAT TO BUILD
1. The character, drawn in SVG code (no images), with the expressions above. Its mouth moves with the voice loudness, and it blinks.
2. Captions synced word by word to the voice-over, in my caption style.
3. Reusable visual blocks: titles, cards, big numbers that count up, icons. Each pops in when the voice says the matching word.
4. An end card with my handle [@yourhandle] and a follow prompt.
5. A cover image for each reel.

TIMING
Everything is timed to words in the voice-over. Write a script that takes the voice file, gets word timestamps with Whisper, and also saves the loudness per frame for the mouth. Scenes should say "show this when word N is spoken".

RULES
Text never overlaps the character or captions. Something new moves or appears every 2 to 3 seconds. Keep reels under 60 seconds.

RENDER
One command renders the reel MP4, the cover, and a contact sheet of frames so you can check the layout yourself.

Build a demo reel about [TOPIC] with a placeholder voice, render it, check the contact sheet and fix anything that overlaps. Then write everything you learned into a skill file at .claude/skills/reels/SKILL.md, so next time I can just say "make a reel about X" and you follow the same steps.
Pehli baar mein perfect nahi hoga, aur ye normal hai. Contact sheet dekho aur Claude ko seedha bolo: "character bada karo", "captions text pe aa rahe hain", "cards mein thoda zyada bounce". Har fix skill file mein save karwa lo.
step 3

Voice: apni awaaz clone karo, free

A · GPT voice / ElevenLabsSabse easy, natural Hinglish. Par zyada use karo toh paise lagte hain.
easiest
B · VoxCPM2 cloneApni awaaz clone karo. English words achhe bolta hai. Apache-2.0 licence.
freeMac/GPU
C · Chatterbox HindiHindi words sabse saaf. Apni awaaz clone. MIT licence.
freeMac/GPU
D · Voicebox appCode nahi likhna? Ye desktop app Chatterbox jaise models button se chalata hai.
freeno code

Pehle apni awaaz record karo

Sirf apni awaaz clone karo, ya jiski permission ho. Kisi aur ki awaaz bina permission ke use karna galat hai, aur kai jagah illegal bhi.

B · VoxCPM2 (free)

install
python3.12 -m venv .venv-vox
source .venv-vox/bin/activate
pip install voxcpm soundfile
clone_vox.py
import soundfile as sf
from voxcpm import VoxCPM

# Mac: device="mps", NVIDIA: device="cuda". First run downloads the model (a few GB).
model = VoxCPM.from_pretrained("openbmb/VoxCPM2", load_denoiser=False, optimize=False, device="mps")

wav = model.generate(
    text=open("script.txt").read().strip(),
    reference_wav_path="me.wav",          # your voice
    prompt_wav_path="me.wav",             # same file again
    prompt_text=open("me.txt").read().strip(),  # what you said in me.wav
    cfg_value=2.0,
    inference_timesteps=10,
)
sf.write("vo.wav", wav, model.tts_model.sample_rate)

Lamba script ek saath mat do. 2 se 3 sentences ke chunks banao, har chunk alag generate karo, phir jodo. Ek chunk ajeeb aaye toh sirf wahi dobara banao.

C · Chatterbox Hindi (free)

install
python3.12 -m venv .venv-cb
source .venv-cb/bin/activate
pip install chatterbox-tts "setuptools<81"
clone_cb.py
import re, torch, torchaudio as ta
from huggingface_hub import hf_hub_download, snapshot_download
from chatterbox.mtl_tts import ChatterboxMultilingualTTS

# Base model files + the Hindi-tuned text model, in one folder
snapshot_download("ResembleAI/chatterbox", local_dir="cb-hi",
    allow_patterns=["ve.pt", "s3gen.pt", "conds.pt", "grapheme_mtl_merged_expanded_v1.json"])
hf_hub_download("ResembleAI/Chatterbox-Multilingual-hi", "t3_hi.safetensors", local_dir="cb-hi")

model = ChatterboxMultilingualTTS.from_local("cb-hi", "mps", t3_model="t3_hi.safetensors")  # or "cuda"

text = open("script.txt").read().strip()
parts = [s for s in re.split(r"(?<=[।.?!])\s+", text) if s]   # one sentence at a time
out = []
for i, s in enumerate(parts):
    torch.manual_seed(42 + i)
    out += [model.generate(s, language_id="hi", audio_prompt_path="me.wav",
                           exaggeration=0.5, cfg_weight=0.3).cpu(),
            torch.zeros(1, int(model.sr * 0.06))]   # tiny gap between sentences
ta.save("vo.wav", torch.cat(out, dim=1), model.sr)

Install mein error aaye (jaise spacy-pkuseg build fail), toh pip uninstall spacy-pkuseg karke dobara try karo. Ya error seedha Claude Code ko paste karo, wo fix kar dega.

aage kya

Series mein aage aa raha hai

Setup ho gaya. Ab har step ka alag reel aayega, uske tricks ke saath:

Miss na ho, isliye follow kar lo 🔔

faq

Sawaal

Kitna kharcha aata hai?

Claude ka plan (Pro ya Max). Voice free hai agar clone (VoxCPM2, Chatterbox) apne computer pe chalao. Paid voice (GPT, ElevenLabs) mein har reel ke kuch rupaye. Poora hisaab ek alag reel mein aa raha hai.

Coding aani chahiye?

Nahi. Code Claude Code likhta hai. Tumhe bas terminal kholna, prompt paste karna, aur result dekh ke feedback dena aana chahiye.

Ek reel mein kitna time?

Setup ek baar 1 se 2 ghante. Uske baad script ready ho toh lagbhag 15 minute mein reel.

Windows pe chalega?

Haan. Claude Code aur Remotion Windows pe chalte hain. Free voice models ke liye NVIDIA GPU ho toh device="cuda" use karo.

Reels monetise kar sakte hain?

VoxCPM2 (Apache-2.0) aur Chatterbox (MIT) commercial use allow karte hain. Remotion individuals aur chhoti teams ke liye free hai, badi company ke liye licence lagta hai: remotion.dev/license. Har tool ka licence ek baar khud padh lo.

Free voice GPT jaisi lagti hai?

Kaafi close, par perfect nahi. Chatterbox Hindi words saaf bolta hai, VoxCPM2 English words better. Dono try karo, apne kaan se decide karo.

links

Sab links ek jagah

Ye "AI se video kaise banaye" series ka part 1 hai. Har step ka alag reel aa raha hai.

follow karo @techstackbro 👀