Skip to content

🎥 Make videos programmatically with React

call it prompt to video

JonnyBurger70344739867e
diff --git a/bun.lock b/bun.lock
index 75fdcbb7af..ca8e5ff359 100644
--- a/bun.lock
+++ b/bun.lock
@@ -1345,42 +1345,6 @@
"@remotion/bundler": "workspace:*",
},
},
- "packages/template-ai-video": {
- "name": "template-ai-video",
- "version": "1.0.0",
- "dependencies": {
- "@remotion/animation-utils": "workspace:*",
- "@remotion/cli": "workspace:*",
- "@remotion/google-fonts": "workspace:*",
- "@remotion/layout-utils": "workspace:*",
- "@remotion/media": "workspace:*",
- "@remotion/zod-types": "workspace:*",
- "react": "19.0.0",
- "react-dom": "19.0.0",
- "remotion": "workspace:*",
- "zod": "3.22.3",
- },
- "devDependencies": {
- "@elevenlabs/elevenlabs-js": "^2.20.0",
- "@remotion/eslint-config-flat": "workspace:*",
- "@types/prompts": "^2.4.9",
- "@types/react": "19.0.0",
- "@types/uuid": "^11.0.0",
- "@types/web": "0.0.166",
- "@types/yargs": "^17.0.33",
- "chalk": "^5.6.2",
- "dotenv": "^17.2.3",
- "eslint": "9.19.0",
- "ora": "^9.0.0",
- "prettier": "3.6.0",
- "prompts": "^2.4.2",
- "tsx": "^4.20.6",
- "typescript": "5.8.2",
- "uuid": "^13.0.0",
- "yargs": "^18.0.0",
- "zod-to-json-schema": "^3.24.6",
- },
- },
"packages/template-audiogram": {
"name": "template-audiogram",
"version": "1.0.0",
@@ -1646,6 +1610,42 @@
"typescript": "5.8.2",
},
},
+ "packages/template-prompt-to-video": {
+ "name": "template-ai-video",
+ "version": "1.0.0",
+ "dependencies": {
+ "@remotion/animation-utils": "workspace:*",
+ "@remotion/cli": "workspace:*",
+ "@remotion/google-fonts": "workspace:*",
+ "@remotion/layout-utils": "workspace:*",
+ "@remotion/media": "workspace:*",
+ "@remotion/zod-types": "workspace:*",
+ "react": "19.0.0",
+ "react-dom": "19.0.0",
+ "remotion": "workspace:*",
+ "zod": "3.22.3",
+ },
+ "devDependencies": {
+ "@elevenlabs/elevenlabs-js": "^2.20.0",
+ "@remotion/eslint-config-flat": "workspace:*",
+ "@types/prompts": "^2.4.9",
+ "@types/react": "19.0.0",
+ "@types/uuid": "^11.0.0",
+ "@types/web": "0.0.166",
+ "@types/yargs": "^17.0.33",
+ "chalk": "^5.6.2",
+ "dotenv": "^17.2.3",
+ "eslint": "9.19.0",
+ "ora": "^9.0.0",
+ "prettier": "3.6.0",
+ "prompts": "^2.4.2",
+ "tsx": "^4.20.6",
+ "typescript": "5.8.2",
+ "uuid": "^13.0.0",
+ "yargs": "^18.0.0",
+ "zod-to-json-schema": "^3.24.6",
+ },
+ },
"packages/template-react-router": {
"name": "template-react-router",
"dependencies": {
@@ -6562,7 +6562,7 @@
"teeny-request": ["[email protected]", "", { "dependencies": { "http-proxy-agent": "5.0.0", "https-proxy-agent": "5.0.1", "node-fetch": "2.6.9", "stream-events": "1.0.5", "uuid": "9.0.1" } }, "sha512-resvxdc6Mgb7YEThw6G6bExlXKkv6+YbuzGg9xuXxSgxJF7Ozs+o8Y9+2R3sArdWdW8nOokoQb1yrpFB0pQK2g=="],
- "template-ai-video": ["template-ai-video@workspace:packages/template-ai-video"],
+ "template-ai-video": ["template-ai-video@workspace:packages/template-prompt-to-video"],
"template-audiogram": ["template-audiogram@workspace:packages/template-audiogram"],
diff --git a/packages/create-video/src/templates.ts b/packages/create-video/src/templates.ts
index 9037906171..25aae4b2f0 100644
--- a/packages/create-video/src/templates.ts
+++ b/packages/create-video/src/templates.ts
@@ -37,7 +37,7 @@ export type Template = {
| 'google-tts'
| 'audiogram'
| 'music-visualization'
- | 'ai-video'
+ | 'prompt-to-video'
| 'skia'
| 'overlay'
| 'stargazer'
@@ -378,24 +378,24 @@ export const FEATURED_TEMPLATES: Template[] = [
allowEnableTailwind: true,
},
{
- homePageLabel: 'AI Video',
- shortName: 'AI Video',
+ homePageLabel: 'Prompt to Video',
+ shortName: 'Prompt to Video',
org: 'remotion-dev',
- repoName: 'template-ai-video',
- description: 'Create AI Videos from description',
+ repoName: 'template-prompt-to-video',
+ description: 'Create a story with images and voiceover from a prompt',
longerDescription:
- 'A template that turns video descriptions into full videos that can be posted on Social Media.',
+ 'A template that turns prompts into short videos with a script, images and voiceover.',
promoVideo: {
muxId: 'FGl01Rw6c5YOjBCTdVhn5wrmVaRWDOjDeT28iY3Sv47w',
height: 1920,
width: 1080,
},
- cliId: 'ai-video' as const,
+ cliId: 'prompt-to-video' as const,
type: 'video' as const,
defaultBranch: 'main',
featuredOnHomePage: null,
previewURL: null,
- templateInMonorepo: 'template-ai-video',
+ templateInMonorepo: 'template-prompt-to-video',
allowEnableTailwind: true,
},
{
diff --git a/packages/template-ai-video/.env.example b/packages/template-prompt-to-video/.env.example
similarity index 100%
rename from packages/template-ai-video/.env.example
rename to packages/template-prompt-to-video/.env.example
diff --git a/packages/template-ai-video/.gitignore b/packages/template-prompt-to-video/.gitignore
similarity index 100%
rename from packages/template-ai-video/.gitignore
rename to packages/template-prompt-to-video/.gitignore
diff --git a/packages/template-ai-video/.prettierrc b/packages/template-prompt-to-video/.prettierrc
similarity index 100%
rename from packages/template-ai-video/.prettierrc
rename to packages/template-prompt-to-video/.prettierrc
diff --git a/packages/template-ai-video/Promo.png b/packages/template-prompt-to-video/Promo.png
similarity index 100%
rename from packages/template-ai-video/Promo.png
rename to packages/template-prompt-to-video/Promo.png
diff --git a/packages/template-ai-video/README.md b/packages/template-prompt-to-video/README.md
similarity index 100%
rename from packages/template-ai-video/README.md
rename to packages/template-prompt-to-video/README.md
diff --git a/packages/template-ai-video/cli/cli.ts b/packages/template-prompt-to-video/cli/cli.ts
similarity index 100%
rename from packages/template-ai-video/cli/cli.ts
rename to packages/template-prompt-to-video/cli/cli.ts
diff --git a/packages/template-ai-video/cli/service.ts b/packages/template-prompt-to-video/cli/service.ts
similarity index 100%
rename from packages/template-ai-video/cli/service.ts
rename to packages/template-prompt-to-video/cli/service.ts
diff --git a/packages/template-ai-video/cli/timeline.ts b/packages/template-prompt-to-video/cli/timeline.ts
similarity index 100%
rename from packages/template-ai-video/cli/timeline.ts
rename to packages/template-prompt-to-video/cli/timeline.ts
diff --git a/packages/template-ai-video/eslint.config.mjs b/packages/template-prompt-to-video/eslint.config.mjs
similarity index 100%
rename from packages/template-ai-video/eslint.config.mjs
rename to packages/template-prompt-to-video/eslint.config.mjs
diff --git a/packages/template-ai-video/package.json b/packages/template-prompt-to-video/package.json
similarity index 100%
rename from packages/template-ai-video/package.json
rename to packages/template-prompt-to-video/package.json
diff --git a/packages/template-ai-video/public/content/history-of-venus/audio/11f4911a-f39f-4567-8963-41511d05b593.mp3 b/packages/template-prompt-to-video/public/content/history-of-venus/audio/11f4911a-f39f-4567-8963-41511d05b593.mp3
similarity index 100%
rename from packages/template-ai-video/public/content/history-of-venus/audio/11f4911a-f39f-4567-8963-41511d05b593.mp3
rename to packages/template-prompt-to-video/public/content/history-of-venus/audio/11f4911a-f39f-4567-8963-41511d05b593.mp3
diff --git a/packages/template-ai-video/public/content/history-of-venus/audio/20cf0ab8-49cb-4ead-816d-6af0b588668a.mp3 b/packages/template-prompt-to-video/public/content/history-of-venus/audio/20cf0ab8-49cb-4ead-816d-6af0b588668a.mp3
similarity index 100%
rename from packages/template-ai-video/public/content/history-of-venus/audio/20cf0ab8-49cb-4ead-816d-6af0b588668a.mp3
rename to packages/template-prompt-to-video/public/content/history-of-venus/audio/20cf0ab8-49cb-4ead-816d-6af0b588668a.mp3
diff --git a/packages/template-ai-video/public/content/history-of-venus/audio/33b24fbd-dc71-4692-87af-fdff7661c222.mp3 b/packages/template-prompt-to-video/public/content/history-of-venus/audio/33b24fbd-dc71-4692-87af-fdff7661c222.mp3
similarity index 100%
rename from packages/template-ai-video/public/content/history-of-venus/audio/33b24fbd-dc71-4692-87af-fdff7661c222.mp3
rename to packages/template-prompt-to-video/public/content/history-of-venus/audio/33b24fbd-dc71-4692-87af-fdff7661c222.mp3
diff --git a/packages/template-ai-video/public/content/history-of-venus/audio/5584e376-d02e-48fc-9e47-fc7bf86000af.mp3 b/packages/template-prompt-to-video/public/content/history-of-venus/audio/5584e376-d02e-48fc-9e47-fc7bf86000af.mp3
similarity index 100%
rename from packages/template-ai-video/public/content/history-of-venus/audio/5584e376-d02e-48fc-9e47-fc7bf86000af.mp3
rename to packages/template-prompt-to-video/public/content/history-of-venus/audio/5584e376-d02e-48fc-9e47-fc7bf86000af.mp3
diff --git a/packages/template-ai-video/public/content/history-of-venus/audio/83e869e5-18fd-4de9-b70f-dc0f180da912.mp3 b/packages/template-prompt-to-video/public/content/history-of-venus/audio/83e869e5-18fd-4de9-b70f-dc0f180da912.mp3
similarity index 100%
rename from packages/template-ai-video/public/content/history-of-venus/audio/83e869e5-18fd-4de9-b70f-dc0f180da912.mp3
rename to packages/template-prompt-to-video/public/content/history-of-venus/audio/83e869e5-18fd-4de9-b70f-dc0f180da912.mp3
diff --git a/packages/template-ai-video/public/content/history-of-venus/audio/90917ba0-8b7c-4309-a784-4f1fdc28d9fb.mp3 b/packages/template-prompt-to-video/public/content/history-of-venus/audio/90917ba0-8b7c-4309-a784-4f1fdc28d9fb.mp3
similarity index 100%
rename from packages/template-ai-video/public/content/history-of-venus/audio/90917ba0-8b7c-4309-a784-4f1fdc28d9fb.mp3
rename to packages/template-prompt-to-video/public/content/history-of-venus/audio/90917ba0-8b7c-4309-a784-4f1fdc28d9fb.mp3
diff --git a/packages/template-ai-video/public/content/history-of-venus/audio/919d538b-3407-440a-b26a-73a5321a3af0.mp3 b/packages/template-prompt-to-video/public/content/history-of-venus/audio/919d538b-3407-440a-b26a-73a5321a3af0.mp3
similarity index 100%
rename from packages/template-ai-video/public/content/history-of-venus/audio/919d538b-3407-440a-b26a-73a5321a3af0.mp3
rename to packages/template-prompt-to-video/public/content/history-of-venus/audio/919d538b-3407-440a-b26a-73a5321a3af0.mp3
diff --git a/packages/template-ai-video/public/content/history-of-venus/audio/99af6411-714b-4b72-b66e-f6c02a184493.mp3 b/packages/template-prompt-to-video/public/content/history-of-venus/audio/99af6411-714b-4b72-b66e-f6c02a184493.mp3
similarity index 100%
rename from packages/template-ai-video/public/content/history-of-venus/audio/99af6411-714b-4b72-b66e-f6c02a184493.mp3
rename to packages/template-prompt-to-video/public/content/history-of-venus/audio/99af6411-714b-4b72-b66e-f6c02a184493.mp3
diff --git a/packages/template-ai-video/public/content/history-of-venus/descriptor.json b/packages/template-prompt-to-video/public/content/history-of-venus/descriptor.json
similarity index 100%
rename from packages/template-ai-video/public/content/history-of-venus/descriptor.json
rename to packages/template-prompt-to-video/public/content/history-of-venus/descriptor.json
diff --git a/packages/template-ai-video/public/content/history-of-venus/images/11f4911a-f39f-4567-8963-41511d05b593.png b/packages/template-prompt-to-video/public/content/history-of-venus/images/11f4911a-f39f-4567-8963-41511d05b593.png
similarity index 100%
rename from packages/template-ai-video/public/content/history-of-venus/images/11f4911a-f39f-4567-8963-41511d05b593.png
rename to packages/template-prompt-to-video/public/content/history-of-venus/images/11f4911a-f39f-4567-8963-41511d05b593.png
diff --git a/packages/template-ai-video/public/content/history-of-venus/images/20cf0ab8-49cb-4ead-816d-6af0b588668a.png b/packages/template-prompt-to-video/public/content/history-of-venus/images/20cf0ab8-49cb-4ead-816d-6af0b588668a.png
similarity index 100%
rename from packages/template-ai-video/public/content/history-of-venus/images/20cf0ab8-49cb-4ead-816d-6af0b588668a.png
rename to packages/template-prompt-to-video/public/content/history-of-venus/images/20cf0ab8-49cb-4ead-816d-6af0b588668a.png
diff --git a/packages/template-ai-video/public/content/history-of-venus/images/33b24fbd-dc71-4692-87af-fdff7661c222.png b/packages/template-prompt-to-video/public/content/history-of-venus/images/33b24fbd-dc71-4692-87af-fdff7661c222.png
similarity index 100%
rename from packages/template-ai-video/public/content/history-of-venus/images/33b24fbd-dc71-4692-87af-fdff7661c222.png
rename to packages/template-prompt-to-video/public/content/history-of-venus/images/33b24fbd-dc71-4692-87af-fdff7661c222.png
diff --git a/packages/template-ai-video/public/content/history-of-venus/images/5584e376-d02e-48fc-9e47-fc7bf86000af.png b/packages/template-prompt-to-video/public/content/history-of-venus/images/5584e376-d02e-48fc-9e47-fc7bf86000af.png
similarity index 100%
rename from packages/template-ai-video/public/content/history-of-venus/images/5584e376-d02e-48fc-9e47-fc7bf86000af.png
rename to packages/template-prompt-to-video/public/content/history-of-venus/images/5584e376-d02e-48fc-9e47-fc7bf86000af.png
diff --git a/packages/template-ai-video/public/content/history-of-venus/images/83e869e5-18fd-4de9-b70f-dc0f180da912.png b/packages/template-prompt-to-video/public/content/history-of-venus/images/83e869e5-18fd-4de9-b70f-dc0f180da912.png
similarity index 100%
rename from packages/template-ai-video/public/content/history-of-venus/images/83e869e5-18fd-4de9-b70f-dc0f180da912.png
rename to packages/template-prompt-to-video/public/content/history-of-venus/images/83e869e5-18fd-4de9-b70f-dc0f180da912.png
diff --git a/packages/template-ai-video/public/content/history-of-venus/images/90917ba0-8b7c-4309-a784-4f1fdc28d9fb.png b/packages/template-prompt-to-video/public/content/history-of-venus/images/90917ba0-8b7c-4309-a784-4f1fdc28d9fb.png
similarity index 100%
rename from packages/template-ai-video/public/content/history-of-venus/images/90917ba0-8b7c-4309-a784-4f1fdc28d9fb.png
rename to packages/template-prompt-to-video/public/content/history-of-venus/images/90917ba0-8b7c-4309-a784-4f1fdc28d9fb.png
diff --git a/packages/template-ai-video/public/content/history-of-venus/images/919d538b-3407-440a-b26a-73a5321a3af0.png b/packages/template-prompt-to-video/public/content/history-of-venus/images/919d538b-3407-440a-b26a-73a5321a3af0.png
similarity index 100%
rename from packages/template-ai-video/public/content/history-of-venus/images/919d538b-3407-440a-b26a-73a5321a3af0.png
rename to packages/template-prompt-to-video/public/content/history-of-venus/images/919d538b-3407-440a-b26a-73a5321a3af0.png
diff --git a/packages/template-ai-video/public/content/history-of-venus/images/99af6411-714b-4b72-b66e-f6c02a184493.png b/packages/template-prompt-to-video/public/content/history-of-venus/images/99af6411-714b-4b72-b66e-f6c02a184493.png
similarity index 100%
rename from packages/template-ai-video/public/content/history-of-venus/images/99af6411-714b-4b72-b66e-f6c02a184493.png
rename to packages/template-prompt-to-video/public/content/history-of-venus/images/99af6411-714b-4b72-b66e-f6c02a184493.png
diff --git a/packages/template-ai-video/public/content/history-of-venus/timeline.json b/packages/template-prompt-to-video/public/content/history-of-venus/timeline.json
similarity index 100%
rename from packages/template-ai-video/public/content/history-of-venus/timeline.json
rename to packages/template-prompt-to-video/public/content/history-of-venus/timeline.json
diff --git a/packages/template-ai-video/remotion.config.ts b/packages/template-prompt-to-video/remotion.config.ts
similarity index 100%
rename from packages/template-ai-video/remotion.config.ts
rename to packages/template-prompt-to-video/remotion.config.ts
diff --git a/packages/template-ai-video/src/Root.tsx b/packages/template-prompt-to-video/src/Root.tsx
similarity index 100%
rename from packages/template-ai-video/src/Root.tsx
rename to packages/template-prompt-to-video/src/Root.tsx
diff --git a/packages/template-ai-video/src/components/AIVideo.tsx b/packages/template-prompt-to-video/src/components/AIVideo.tsx
similarity index 100%
rename from packages/template-ai-video/src/components/AIVideo.tsx
rename to packages/template-prompt-to-video/src/components/AIVideo.tsx
diff --git a/packages/template-ai-video/src/components/Background.tsx b/packages/template-prompt-to-video/src/components/Background.tsx
similarity index 100%
rename from packages/template-ai-video/src/components/Background.tsx
rename to packages/template-prompt-to-video/src/components/Background.tsx
diff --git a/packages/template-ai-video/src/components/Subtitle.tsx b/packages/template-prompt-to-video/src/components/Subtitle.tsx
similarity index 100%
rename from packages/template-ai-video/src/components/Subtitle.tsx
rename to packages/template-prompt-to-video/src/components/Subtitle.tsx
diff --git a/packages/template-ai-video/src/components/Word.tsx b/packages/template-prompt-to-video/src/components/Word.tsx
similarity index 100%
rename from packages/template-ai-video/src/components/Word.tsx
rename to packages/template-prompt-to-video/src/components/Word.tsx
diff --git a/packages/template-ai-video/src/index.ts b/packages/template-prompt-to-video/src/index.ts
similarity index 100%
rename from packages/template-ai-video/src/index.ts
rename to packages/template-prompt-to-video/src/index.ts
diff --git a/packages/template-ai-video/src/lib/constants.ts b/packages/template-prompt-to-video/src/lib/constants.ts
similarity index 100%
rename from packages/template-ai-video/src/lib/constants.ts
rename to packages/template-prompt-to-video/src/lib/constants.ts
diff --git a/packages/template-ai-video/src/lib/types.ts b/packages/template-prompt-to-video/src/lib/types.ts
similarity index 100%
rename from packages/template-ai-video/src/lib/types.ts
rename to packages/template-prompt-to-video/src/lib/types.ts
diff --git a/packages/template-ai-video/src/lib/utils.ts b/packages/template-prompt-to-video/src/lib/utils.ts
similarity index 100%
rename from packages/template-ai-video/src/lib/utils.ts
rename to packages/template-prompt-to-video/src/lib/utils.ts
diff --git a/packages/template-ai-video/tsconfig.json b/packages/template-prompt-to-video/tsconfig.json
similarity index 100%
rename from packages/template-ai-video/tsconfig.json
rename to packages/template-prompt-to-video/tsconfig.json
diff --git a/tsconfig.json b/tsconfig.json
index 58233b2157..08b687fa35 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -172,7 +172,7 @@
"path": "./packages/template-audiogram"
},
{
- "path": "./packages/template-ai-video"
+ "path": "./packages/template-prompt-to-video"
},
{
"path": "./packages/template-music-visualization"