makaron-cli 0.17.1 → 0.18.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (145) hide show
  1. package/.claude-plugin/plugin.json +2 -2
  2. package/.codex-plugin/plugin.json +5 -4
  3. package/README.md +45 -1
  4. package/bin/makaron.mjs +22 -8
  5. package/craft/manifest.json +2877 -0
  6. package/craft/prompts/agent-coding.md +220 -0
  7. package/craft/prompts/agent.md +86 -0
  8. package/craft/prompts/animate.md +448 -0
  9. package/craft/prompts/audio.md +261 -0
  10. package/craft/prompts/captions.md +220 -0
  11. package/craft/prompts/coding-submission.md +31 -0
  12. package/craft/prompts/coding-workflow.md +26 -0
  13. package/craft/prompts/creative.md +108 -0
  14. package/craft/prompts/cutout.md +81 -0
  15. package/craft/prompts/enhance.md +123 -0
  16. package/craft/prompts/generate_image_tool.md +26 -0
  17. package/craft/prompts/image.md +222 -0
  18. package/craft/prompts/legacy/agent.md +123 -0
  19. package/craft/prompts/legacy/coding-tool.md +31 -0
  20. package/craft/prompts/legacy/video-tool.md +38 -0
  21. package/craft/prompts/legacy/workspace-authoring.md +13 -0
  22. package/craft/prompts/niji.md +117 -0
  23. package/craft/prompts/pony_translate.md +42 -0
  24. package/craft/prompts/remotion-composition.md +405 -0
  25. package/craft/prompts/video-reverse.md +170 -0
  26. package/craft/prompts/video-submission.md +44 -0
  27. package/craft/prompts/video-workflow.md +42 -0
  28. package/craft/prompts/wai_translate.md +28 -0
  29. package/craft/prompts/web-search.md +1 -0
  30. package/craft/prompts/wild.md +119 -0
  31. package/craft/prompts/workspace-authoring.md +13 -0
  32. package/craft/skills/SKILL_README.md +249 -0
  33. package/craft/skills/_shared/aesthetic-lens-contract.md +68 -0
  34. package/craft/skills/_shared/native-audiovisual.md +44 -0
  35. package/craft/skills/_shared/remotion-director-contract.md +133 -0
  36. package/craft/skills/_shared/remotion-video-director/README.md +140 -0
  37. package/craft/skills/_shared/remotion-video-director/SKILL.md +391 -0
  38. package/craft/skills/_shared/remotion-video-director/references/component-library.md +608 -0
  39. package/craft/skills/_shared/remotion-video-director/references/expert-definitions.md +214 -0
  40. package/craft/skills/_shared/remotion-video-director/references/music-and-audio.md +186 -0
  41. package/craft/skills/_shared/remotion-video-director/references/remotion-patterns.md +439 -0
  42. package/craft/skills/_shared/remotion-video-director/references/video-archetypes.md +395 -0
  43. package/craft/skills/_shared/speech-clock.md +63 -0
  44. package/craft/skills/_shared/spoken-caption.md +75 -0
  45. package/craft/skills/_shared/studio-production/audio-direction.md +60 -0
  46. package/craft/skills/_shared/studio-production/production-contract.md +188 -0
  47. package/craft/skills/_shared/studio-production/reference-analysis.md +37 -0
  48. package/craft/skills/_shared/studio-production/review-contract.md +77 -0
  49. package/craft/skills/_shared/studio-production/taste-direction.md +114 -0
  50. package/craft/skills/_shared/visual-asset-bridge/SKILL.md +57 -0
  51. package/craft/skills/_shared/visual-direction/SKILL.md +98 -0
  52. package/craft/skills/_shared/voice-translation.md +55 -0
  53. package/craft/skills/aesthetic-disney-character-motion/SKILL.md +66 -0
  54. package/craft/skills/aesthetic-lottiefiles-motion/SKILL.md +78 -0
  55. package/craft/skills/aesthetic-rampstack-direction/SKILL.md +68 -0
  56. package/craft/skills/ai-video-gen/SKILL.md +48 -0
  57. package/craft/skills/animated-explainer/SKILL.md +53 -0
  58. package/craft/skills/animation/SKILL.md +53 -0
  59. package/craft/skills/avatar-spokesperson/SKILL.md +66 -0
  60. package/craft/skills/canvas-procedural-animation/SKILL.md +48 -0
  61. package/craft/skills/character-animation/SKILL.md +57 -0
  62. package/craft/skills/character-animation-qa/SKILL.md +48 -0
  63. package/craft/skills/character-rigging/SKILL.md +48 -0
  64. package/craft/skills/cinematic/SKILL.md +53 -0
  65. package/craft/skills/cinematic-video/SKILL.md +65 -0
  66. package/craft/skills/clip-factory/SKILL.md +53 -0
  67. package/craft/skills/comfyui/SKILL.md +48 -0
  68. package/craft/skills/content-repurpose/SKILL.md +54 -0
  69. package/craft/skills/create-video/SKILL.md +48 -0
  70. package/craft/skills/documentary-montage/SKILL.md +53 -0
  71. package/craft/skills/doubao-tts/SKILL.md +51 -0
  72. package/craft/skills/explainer-aesthetic-disney/SKILL.md +33 -0
  73. package/craft/skills/explainer-aesthetic-lottiefiles/SKILL.md +33 -0
  74. package/craft/skills/explainer-aesthetic-rampstack/SKILL.md +33 -0
  75. package/craft/skills/explainer-video/SKILL.md +423 -0
  76. package/craft/skills/ffmpeg/SKILL.md +48 -0
  77. package/craft/skills/grok-media/SKILL.md +47 -0
  78. package/craft/skills/hybrid/SKILL.md +53 -0
  79. package/craft/skills/localization-dub/SKILL.md +59 -0
  80. package/craft/skills/long-video-anchor/SKILL.md +111 -0
  81. package/craft/skills/long-video-director/SKILL.md +217 -0
  82. package/craft/skills/long-video-storyboard/SKILL.md +102 -0
  83. package/craft/skills/makaron-mascot/SKILL.md +83 -0
  84. package/craft/skills/makaron-mascot/assets/character-sheet.jpg +0 -0
  85. package/craft/skills/makaron-mascot/assets/makaron-spark-pixel-wizard-concepts.png +0 -0
  86. package/craft/skills/media-use/SKILL.md +47 -0
  87. package/craft/skills/motion-design-video/SKILL.md +64 -0
  88. package/craft/skills/motion-graphics/SKILL.md +48 -0
  89. package/craft/skills/multi-angle-video/SKILL.md +533 -0
  90. package/craft/skills/music/SKILL.md +47 -0
  91. package/craft/skills/music-to-video/SKILL.md +60 -0
  92. package/craft/skills/photo-to-video/SKILL.md +60 -0
  93. package/craft/skills/podcast-repurpose/SKILL.md +53 -0
  94. package/craft/skills/pose-library-design/SKILL.md +48 -0
  95. package/craft/skills/reference-video-studio/SKILL.md +55 -0
  96. package/craft/skills/remotion/SKILL.md +48 -0
  97. package/craft/skills/remotion-best-practices/SKILL.md +48 -0
  98. package/craft/skills/screen-demo/SKILL.md +61 -0
  99. package/craft/skills/seedance-2-0/SKILL.md +48 -0
  100. package/craft/skills/seedance-2-5/SKILL.md +48 -0
  101. package/craft/skills/sound-effects/SKILL.md +47 -0
  102. package/craft/skills/source-video-studio/SKILL.md +68 -0
  103. package/craft/skills/speech-to-text/SKILL.md +47 -0
  104. package/craft/skills/sticker-maker/SKILL.md +178 -0
  105. package/craft/skills/svg-character-animation/SKILL.md +48 -0
  106. package/craft/skills/synthetic-screen-recording/SKILL.md +48 -0
  107. package/craft/skills/talking-head/SKILL.md +106 -0
  108. package/craft/skills/text-to-speech/SKILL.md +50 -0
  109. package/craft/skills/threejs-animation/SKILL.md +48 -0
  110. package/craft/skills/threejs-fundamentals/SKILL.md +48 -0
  111. package/craft/skills/threejs-geometry/SKILL.md +48 -0
  112. package/craft/skills/threejs-lighting/SKILL.md +48 -0
  113. package/craft/skills/threejs-materials/SKILL.md +48 -0
  114. package/craft/skills/threejs-shaders/SKILL.md +48 -0
  115. package/craft/skills/threejs-textures/SKILL.md +48 -0
  116. package/craft/skills/tiktok-video/SKILL.md +188 -0
  117. package/craft/skills/tiktok-video/references/audio-sync.md +58 -0
  118. package/craft/skills/tiktok-video/references/caption-direction.md +36 -0
  119. package/craft/skills/tiktok-video/references/delivery-qa.md +84 -0
  120. package/craft/skills/tiktok-video/references/platform-layout.md +62 -0
  121. package/craft/skills/video-edit/SKILL.md +144 -0
  122. package/craft/skills/video-edit/references/direct-reference-route.md +141 -0
  123. package/craft/skills/video-edit/references/editing-protocol.md +79 -0
  124. package/craft/skills/video-edit/references/frame-location.md +85 -0
  125. package/craft/skills/video-edit/references/replication-protocol.md +67 -0
  126. package/craft/skills/video-edit/references/shot-blueprint.md +116 -0
  127. package/craft/skills/video-edit/references/shot-blueprint.schema.json +143 -0
  128. package/craft/skills/video-edit/references/similarity-qa.md +47 -0
  129. package/craft/skills/video-edit/scripts/extract-shot-blueprint.mjs +313 -0
  130. package/craft/skills/video-ffmpeg-lab/SKILL.md +220 -0
  131. package/craft/skills/video-mature-themes/SKILL.md +175 -0
  132. package/craft/skills/video-segment-edit/SKILL.md +16 -0
  133. package/craft/skills/video-translate/SKILL.md +148 -0
  134. package/craft/skills/video-understand/SKILL.md +48 -0
  135. package/craft/skills/visual-style/SKILL.md +47 -0
  136. package/craft/skills/wan-3-0/SKILL.md +59 -0
  137. package/craft/skills/web-design-guidelines/SKILL.md +47 -0
  138. package/craft/skills/website-to-video/SKILL.md +61 -0
  139. package/craft-source.json +7 -0
  140. package/package.json +12 -5
  141. package/runtime/adapter.mjs +615 -0
  142. package/runtime/configure.mjs +28 -0
  143. package/runtime/tool-catalog.json +807 -0
  144. package/runtime/tool-cli.mjs +98 -0
  145. package/skills/makaron-native/SKILL.md +89 -0
@@ -0,0 +1,214 @@
1
+ # Expert Definitions & Review Protocol
2
+
3
+ ## Expert Roles
4
+
5
+ Each expert has a specific lens they bring to video creation. When assembling a panel, pick 3-4 experts that match the video's archetype and context.
6
+
7
+ ### Brand Strategist
8
+ **Lens**: Does this video reinforce the brand's positioning?
9
+ **Asks**:
10
+ - Is the value proposition clear in the first 5 seconds?
11
+ - Does the visual language match the brand identity?
12
+ - Is competitive differentiation visible (not just features, but positioning)?
13
+ **Review criteria**: Hook clarity, message consistency, brand alignment
14
+
15
+ ### Video Director
16
+ **Lens**: Does the pacing and structure keep viewers engaged?
17
+ **Asks**:
18
+ - Is there dead time (frames with no new information)?
19
+ - Does the emotional arc build toward the CTA?
20
+ - Are transitions smooth or jarring?
21
+ **Review criteria**: Pacing, scene flow, emotional journey, timing
22
+
23
+ ### UX Designer
24
+ **Lens**: Are the product demos and interactions clear?
25
+ **Asks**:
26
+ - Can viewers understand the product from the demo alone?
27
+ - Are browser mockups and UI elements readable at video resolution?
28
+ - Is the interaction flow logical (input -> process -> output)?
29
+ **Review criteria**: Demo clarity, visual hierarchy, readability
30
+
31
+ ### Growth Marketer
32
+ **Lens**: Will this video convert viewers into users?
33
+ **Asks**:
34
+ - Is the CTA strong and specific?
35
+ - Does social proof appear before the ask?
36
+ - Is the video optimized for the distribution channel (length, aspect ratio, captions)?
37
+ **Review criteria**: CTA strength, conversion path, channel fit
38
+
39
+ ### Data Architect
40
+ **Lens**: Is this video template efficiently reusable?
41
+ **Asks**:
42
+ - Is the config object clean and minimal?
43
+ - Can a non-developer update the data and re-render?
44
+ - Are there unnecessary hardcoded values that should be in config?
45
+ **Review criteria**: Config cleanliness, separation of data/presentation, automation readiness
46
+
47
+ ### Content Strategist
48
+ **Lens**: Does the recurring format build audience habit?
49
+ **Asks**:
50
+ - Is the structure consistent enough to be recognized?
51
+ - Does each edition deliver enough novelty within the format?
52
+ - Is the opening and closing ritualized (brand recall)?
53
+ **Review criteria**: Format consistency, novelty balance, ritualization
54
+
55
+ ### Visualization Designer
56
+ **Lens**: Do charts and data displays communicate effectively?
57
+ **Asks**:
58
+ - Is the hero number prominent enough?
59
+ - Do chart animations aid comprehension or just look cool?
60
+ - Is the data hierarchy clear (what matters most)?
61
+ **Review criteria**: Data clarity, animation purpose, visual hierarchy
62
+
63
+ ### Narrative Designer
64
+ **Lens**: Does the story work?
65
+ **Asks**:
66
+ - Is there a clear 3-act structure (setup, value, bridge)?
67
+ - Does the narrative earn the viewer's attention at each beat?
68
+ - Is the closing memorable?
69
+ **Review criteria**: Story arc, emotional beats, memorability
70
+
71
+ ### Instructional Designer
72
+ **Lens**: Does this set the right expectations for learning?
73
+ **Asks**:
74
+ - Is the audience clearly identified?
75
+ - Are learning outcomes implied or stated?
76
+ - Does the video motivate participation?
77
+ **Review criteria**: Audience clarity, expectation setting, motivation
78
+
79
+ ### Social Proof Curator
80
+ **Lens**: Is the evidence of value convincing?
81
+ **Asks**:
82
+ - Are participant quotes specific (not generic praise)?
83
+ - Do chat messages feel authentic?
84
+ - Is the proof relevant to the target audience?
85
+ **Review criteria**: Authenticity, specificity, relevance
86
+
87
+ ### Developer Advocate
88
+ **Lens**: Will developers trust and understand this demo?
89
+ **Asks**:
90
+ - Is the pacing right for a technical audience (not too fast, not patronizing)?
91
+ - Are the right features highlighted (not just flashy ones)?
92
+ - Does the demo show real usage, not a contrived example?
93
+ **Review criteria**: Technical accuracy, pacing, authenticity
94
+
95
+ ### Motion Designer
96
+ **Lens**: Do animations serve the content?
97
+ **Asks**:
98
+ - Are animations consistent (same easing, same timing for similar elements)?
99
+ - Do transitions aid comprehension or just add visual noise?
100
+ - Is the animation vocabulary restrained (3-4 patterns max)?
101
+ **Review criteria**: Consistency, purposefulness, restraint
102
+
103
+ ### Copywriter
104
+ **Lens**: Does every word earn its place?
105
+ **Asks**:
106
+ - Is the hook copy specific and punchy?
107
+ - Are there wasted words that slow the pace?
108
+ - Does the CTA use active, urgent language?
109
+ **Review criteria**: Hook strength, economy of language, CTA urgency
110
+
111
+ ### Data Analyst
112
+ **Lens**: Will the variants produce learnable results?
113
+ **Asks**:
114
+ - Are variants different enough to test distinct hypotheses?
115
+ - Is one variable changing at a time (or is it too many variables)?
116
+ - Can results be measured with available analytics?
117
+ **Review criteria**: Hypothesis clarity, variable isolation, measurability
118
+
119
+ ### Brand Guardian
120
+ **Lens**: Are all variants on-brand?
121
+ **Asks**:
122
+ - Do all variants maintain visual consistency?
123
+ - Is brand voice preserved across different messaging?
124
+ - Are there any variants that could damage brand perception?
125
+ **Review criteria**: Visual consistency, voice consistency, brand safety
126
+
127
+ ### Cinematographer
128
+ **Lens**: Does the visual composition create emotional impact?
129
+ **Asks**:
130
+ - Is there enough negative space? (Cramped frames feel cheap)
131
+ - Are key elements centered and visually balanced?
132
+ - Is the color palette cohesive and consistent across scenes?
133
+ - Does the typography hierarchy create clear visual weight?
134
+ - Are transitions smooth or jarring?
135
+ **Review criteria**: Composition, color harmony, visual weight balance, premium feel
136
+
137
+ ### Music Director
138
+ **Lens**: Does the audio enhance the emotional arc?
139
+ **Asks**:
140
+ - Does the music style match the creative direction?
141
+ - Is volume balanced - not too loud to distract, not too quiet to notice?
142
+ - Does the music lower during data-heavy or text-heavy scenes?
143
+ - Does the ending feel complete (not abruptly cut)?
144
+ - Is there silence where silence would be more powerful?
145
+ **Review criteria**: Music-mood alignment, volume dynamics, emotional arc support
146
+
147
+ ---
148
+
149
+ ## Recommended Panels by Archetype
150
+
151
+ | Archetype | Panel |
152
+ |-----------|-------|
153
+ | Product Launch | Brand Strategist, Video Director, UX Designer, Growth Marketer |
154
+ | Recurring Data Report | Data Architect, Content Strategist, Visualization Designer |
155
+ | Narrative Intro | Narrative Designer, Instructional Designer, Social Proof Curator, Cinematographer |
156
+ | Technical Demo | Developer Advocate, UX Designer, Motion Designer, Copywriter |
157
+ | Growth Marketing | Growth Marketer, Copywriter, Data Analyst, Brand Guardian |
158
+
159
+ ---
160
+
161
+ ## Multi-Expert Review Protocol
162
+
163
+ ### When to Run
164
+
165
+ Run the review after the first render is complete and the user has seen the video. The review helps identify improvements before the video is finalized.
166
+
167
+ ### Scorecard Template
168
+
169
+ Generate a scorecard tailored to the video type. Universal dimensions:
170
+
171
+ | Dimension | Priority | Score | Notes |
172
+ |-----------|----------|-------|-------|
173
+ | Hook clarity (first 3-5s) | Critical | /5 | Does the opening grab attention? |
174
+ | Core message landed | Critical | /5 | Would a viewer remember the ONE key point? |
175
+ | Pacing / dynamism | High | /5 | Any dead time? Too fast/slow? |
176
+ | Visual readability | High | /5 | Text size, contrast, safe zones? |
177
+ | Target action clear | High | /5 | Does the viewer know what to do next? |
178
+ | Audience fit | Medium | /5 | Right tone/level for the intended viewer? |
179
+
180
+ Add 2-3 type-specific dimensions based on the archetype (e.g., "Config reusability" for data reports, "Demo credibility" for tech demos).
181
+
182
+ ### Review Output Structure
183
+
184
+ For each expert on the panel, generate a 3-5 sentence review:
185
+
186
+ ```
187
+ ### [Expert Role] Perspective
188
+
189
+ [What works well from this angle.]
190
+ [What could be improved - specific, actionable.]
191
+ [One specific recommendation with frame/scene reference.]
192
+ ```
193
+
194
+ Then synthesize:
195
+
196
+ ```
197
+ ### Synthesis
198
+
199
+ **Strengths**: [2-3 bullet points where experts agree]
200
+ **Improvements**: [2-3 specific changes, prioritized]
201
+ **Verdict**: [Ship as-is / Needs one more pass / Needs significant rework]
202
+ ```
203
+
204
+ ### Cross-Variant Review (Growth Marketing only)
205
+
206
+ When reviewing multiple variants, add a comparison table:
207
+
208
+ | Dimension | Variant A | Variant B | Variant C |
209
+ |-----------|-----------|-----------|-----------|
210
+ | Hook strength | ... | ... | ... |
211
+ | Differentiation | ... | ... | ... |
212
+ | CTA urgency | ... | ... | ... |
213
+
214
+ Recommend which variant to lead with and why.
@@ -0,0 +1,186 @@
1
+ # Music & Audio Guide
2
+
3
+ Audio transforms videos from "animated slideshows" into compelling content. Music is the #1 factor that changes viewer perception of quality.
4
+
5
+ ---
6
+
7
+ ## Music Sourcing
8
+
9
+ ### Recommended Sources
10
+
11
+ | Source | Cost | License | Best For |
12
+ |--------|------|---------|----------|
13
+ | **Pixabay Music** (pixabay.com/music/) | Free | Royalty-free, no attribution | All use cases - recommended default |
14
+ | Artlist | $10/mo | Unlimited commercial | Professional/client work |
15
+ | Epidemic Sound | $13/mo | Unlimited commercial | High-volume content |
16
+ | Suno (AI) | Free tier | Generated | Experimental - quality varies |
17
+
18
+ **Do NOT rely on AI-generated ambient audio** (e.g., asking Claude to "create music"). The results are consistently too quiet, repetitive, and low-quality. Use a real music track from Pixabay.
19
+
20
+ ### Music Selection by Creative Direction
21
+
22
+ | Creative Direction | Music Style | Search Terms |
23
+ |-------------------|-------------|-------------|
24
+ | **Minimal/Jobs** | Sparse piano, ambient pads, silence with beat drops | "minimal piano", "ambient corporate", "cinematic simple" |
25
+ | **Data-Rich/Bloomberg** | Subtle electronic, light synth | "electronic ambient", "tech corporate", "data visualization" |
26
+ | **Warm/Narrative** | Acoustic guitar, warm strings, soft indie | "acoustic warm", "inspiring indie", "storytelling" |
27
+ | **Terminal/Hacker** | Lo-fi electronic, synthwave, chiptune | "lo-fi coding", "synthwave", "cyberpunk ambient" |
28
+
29
+ ### Track Selection Criteria
30
+
31
+ 1. **Duration**: Pick a track close to your video length. If longer, use the ending section for a natural conclusion
32
+ 2. **Energy arc**: Match the track's energy to your video's emotional arc (build → climax → resolve)
33
+ 3. **No vocals**: Instrumental only - vocals compete with on-screen text
34
+ 4. **Preview at 0.3 volume**: The track should still sound good quiet, since it plays behind visuals
35
+
36
+ ---
37
+
38
+ ## Integration Patterns
39
+
40
+ ### Basic Background Music
41
+
42
+ ```tsx
43
+ import { Audio, staticFile } from "remotion";
44
+
45
+ // In your Video component:
46
+ const frame = useCurrentFrame();
47
+ const { durationInFrames } = useVideoConfig();
48
+
49
+ const musicVolume = interpolate(
50
+ frame,
51
+ [0, 60, durationInFrames - 60, durationInFrames],
52
+ [0, 0.30, 0.30, 0],
53
+ { extrapolateLeft: "clamp", extrapolateRight: "clamp" }
54
+ );
55
+
56
+ <Audio src={staticFile("music.mp3")} volume={musicVolume} />
57
+ ```
58
+
59
+ ### Scene-Adaptive Volume
60
+
61
+ Lower music during data-heavy or text-heavy scenes so viewers can focus on reading:
62
+
63
+ ```tsx
64
+ const musicVolume = (f: number) => {
65
+ const fadeIn = interpolate(f, [0, 60], [0, 1], clamp);
66
+ const fadeOut = interpolate(f, [totalFrames - 60, totalFrames], [1, 0], clamp);
67
+ const envelope = Math.min(fadeIn, fadeOut);
68
+
69
+ // Lower during data-heavy scenes
70
+ const isDataScene = f >= S.data.start * FPS && f < (S.data.start + S.data.dur) * FPS;
71
+ const cruising = isDataScene ? 0.15 : 0.30;
72
+
73
+ return envelope * cruising;
74
+ };
75
+
76
+ <Audio src={staticFile("music.mp3")} volume={musicVolume} />
77
+ ```
78
+
79
+ ### Music Timing: Matching Track to Video
80
+
81
+ **Problem**: Your track is 3 minutes but your video is 40 seconds.
82
+
83
+ **Solutions**:
84
+ 1. **Use the ending**: Start playback at `trackDuration - videoDuration` using `startFrom` prop
85
+ 2. **Trim externally**: Use ffmpeg to extract the best 40-second segment:
86
+ ```bash
87
+ ffmpeg -i full-track.mp3 -ss 00:00:30 -t 00:00:40 -c copy music.mp3
88
+ ```
89
+ 3. **Use `startFrom` in Remotion**:
90
+ ```tsx
91
+ <Audio
92
+ src={staticFile("music.mp3")}
93
+ startFrom={90 * 30} // Start from 90 seconds into the track (in frames)
94
+ volume={musicVolume}
95
+ />
96
+ ```
97
+
98
+ ---
99
+
100
+ ## Voice-Over Pipeline
101
+
102
+ ### Step 1: Generate Script
103
+
104
+ Extract narration text from scene content. Each scene gets 1-2 sentences:
105
+
106
+ ```
107
+ Scene 1 (Hook, 4s): "Five experts. Forty seconds. One MP4."
108
+ Scene 2 (Gap, 6s): "The API tells you how. But who helps you think?"
109
+ ...
110
+ ```
111
+
112
+ **Pacing rule**: ~3 words per second for comfortable narration. A 40-second video = ~120 words max.
113
+
114
+ ### Step 2: Generate Audio
115
+
116
+ **Option A - ElevenLabs** (recommended for quality):
117
+ ```bash
118
+ # Using ElevenLabs API
119
+ curl -X POST "https://api.elevenlabs.io/v1/text-to-speech/<voice_id>" \
120
+ -H "xi-api-key: $ELEVENLABS_API_KEY" \
121
+ -H "Content-Type: application/json" \
122
+ -d '{"text": "Your narration text", "model_id": "eleven_multilingual_v2"}' \
123
+ --output narration.mp3
124
+ ```
125
+
126
+ **Option B - User records**: Ask user to record using any voice memo app, save as MP3.
127
+
128
+ ### Step 3: Integrate with Music Ducking
129
+
130
+ When voice-over is present, music volume drops to 0.10-0.15:
131
+
132
+ ```tsx
133
+ const hasNarration = true;
134
+
135
+ <Audio src={staticFile("narration.mp3")} volume={1.0} />
136
+ <Audio
137
+ src={staticFile("music.mp3")}
138
+ volume={(f) => {
139
+ const fadeIn = interpolate(f, [0, 30], [0, 1], clamp);
140
+ const fadeOut = interpolate(f, [totalFrames - 30, totalFrames], [1, 0], clamp);
141
+ const envelope = Math.min(fadeIn, fadeOut);
142
+ const cruising = hasNarration ? 0.12 : 0.30;
143
+ return envelope * cruising;
144
+ }}
145
+ />
146
+ ```
147
+
148
+ ### Step 4: Subtitles (Optional)
149
+
150
+ Use `@remotion/captions` for word-level highlighting:
151
+
152
+ ```bash
153
+ npm install @remotion/captions
154
+ ```
155
+
156
+ Generate a transcript JSON from ElevenLabs or Whisper, then render synchronized captions.
157
+
158
+ ---
159
+
160
+ ## Common Mistakes
161
+
162
+ | Mistake | Fix |
163
+ |---------|-----|
164
+ | AI-generated ambient audio | Use real tracks from Pixabay |
165
+ | Music too quiet (volume < 0.15) | Cruise at 0.25-0.35 for background, 0.10-0.15 only during narration |
166
+ | Music doesn't fade out | Always add 2-second fade-out before video ends |
167
+ | Track longer than video, cuts abruptly | Use `startFrom` to play the ending section, or trim with ffmpeg |
168
+ | Same volume throughout | Lower during data-heavy scenes, raise during emotional moments |
169
+ | Music with vocals | Use instrumental-only tracks |
170
+ | Forgetting `--muted` flag during dev | Render with `--muted` for faster iteration, add audio for final render |
171
+
172
+ ---
173
+
174
+ ## Audio Dependencies
175
+
176
+ Add to `package.json` if using audio:
177
+
178
+ ```json
179
+ {
180
+ "dependencies": {
181
+ "@remotion/media-utils": "4.0.261"
182
+ }
183
+ }
184
+ ```
185
+
186
+ Place audio files in `public/` directory and reference with `staticFile()`.