--- name: nd-video description: Explainer videos with HyperFrames (HTML → MP4) plus narrator, music and mixing on NeuralDeep infrastructure. Triggers: "make a video", "explainer", "explain visually", "add voiceover", "add music", "re-render", "change the voice / reverb". --- # nd-video: from idea to MP4 The pipeline was built on the LLM vs Jev video (112 s, [`media/jev-vs-llm.mp4`](../../media/jev-vs-llm.mp4)). Everything that worked there is here. Projects (`projects/`) are local and not tracked in git. The HyperFrames composition contract is in `vendor/hyperframes/skills/hyperframes-core/SKILL.md`; read it before writing the first line of HTML. ## Workflow 1. **Brief and storyboard.** One idea per scene. Each scene gets a question-style heading, 2–4 narrator lines and a "key idea" at the end. Without subtitles and a route map viewers don't understand what they are looking at (the main feedback on the first cut). 2. **Composition** `projects//index.html`: `npx hyperframes init --example blank`. Proven techniques are below, under "Techniques". 3. **Check**: `npx hyperframes check` and `npx hyperframes snapshot --at t1,t2,...`, then look at the contact sheet yourself. `check` flags overlaps where the camera intentionally goes under overlays (subtitles, magnifier); those are false positives, trust the frames. 4. **Narration text** in `projects//narration.json` (`start` + `text`, windows are computed). 5. **Voice** → `audio/raw/line_NN.wav`: - `scripts/tts_gpt_audio.py`: OpenAI gpt-audio via OpenRouter, best delivery. Voice `ash`. - `scripts/tts_hub.py`: the hub TTS (Qwen3-TTS, 8 presets). A bit weak for trailer delivery. - `scripts/tts_elevenlabs.py`: ElevenLabs `eleven_multilingual_v2`. The best Russian of the three; `voices` lists the account's voices, `speak` voices narration.json (neighbouring lines go as context). 6. **Music** → `audio/music.mp3`: - `scripts/music_lyria.py`: Lyria 3 Pro, $0.08 per track. - `scripts/music_acestep.py`: self-hosted ACE-Step 1.5 (MIT), see `docs/acestep.md`. 7. **Sound**: `scripts/build_audio.sh projects/ trailer` = fit lines into windows (`fit_narration.py`) → voice processing (`voice_fx.py`) → mix with ducking (`mix.py`). The composition has a single `