🎥 Make videos programmatically with React
call it prompt to video
JonnyBurger70344739867e
diff --git a/bun.lock b/bun.lockindex 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.tsindex 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.examplesimilarity index 100%rename from packages/template-ai-video/.env.examplerename to packages/template-prompt-to-video/.env.examplediff --git a/packages/template-ai-video/.gitignore b/packages/template-prompt-to-video/.gitignoresimilarity index 100%rename from packages/template-ai-video/.gitignorerename to packages/template-prompt-to-video/.gitignorediff --git a/packages/template-ai-video/.prettierrc b/packages/template-prompt-to-video/.prettierrcsimilarity index 100%rename from packages/template-ai-video/.prettierrcrename to packages/template-prompt-to-video/.prettierrcdiff --git a/packages/template-ai-video/Promo.png b/packages/template-prompt-to-video/Promo.pngsimilarity index 100%rename from packages/template-ai-video/Promo.pngrename to packages/template-prompt-to-video/Promo.pngdiff --git a/packages/template-ai-video/README.md b/packages/template-prompt-to-video/README.mdsimilarity index 100%rename from packages/template-ai-video/README.mdrename to packages/template-prompt-to-video/README.mddiff --git a/packages/template-ai-video/cli/cli.ts b/packages/template-prompt-to-video/cli/cli.tssimilarity index 100%rename from packages/template-ai-video/cli/cli.tsrename to packages/template-prompt-to-video/cli/cli.tsdiff --git a/packages/template-ai-video/cli/service.ts b/packages/template-prompt-to-video/cli/service.tssimilarity index 100%rename from packages/template-ai-video/cli/service.tsrename to packages/template-prompt-to-video/cli/service.tsdiff --git a/packages/template-ai-video/cli/timeline.ts b/packages/template-prompt-to-video/cli/timeline.tssimilarity index 100%rename from packages/template-ai-video/cli/timeline.tsrename to packages/template-prompt-to-video/cli/timeline.tsdiff --git a/packages/template-ai-video/eslint.config.mjs b/packages/template-prompt-to-video/eslint.config.mjssimilarity index 100%rename from packages/template-ai-video/eslint.config.mjsrename to packages/template-prompt-to-video/eslint.config.mjsdiff --git a/packages/template-ai-video/package.json b/packages/template-prompt-to-video/package.jsonsimilarity index 100%rename from packages/template-ai-video/package.jsonrename to packages/template-prompt-to-video/package.jsondiff --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.mp3similarity index 100%rename from packages/template-ai-video/public/content/history-of-venus/audio/11f4911a-f39f-4567-8963-41511d05b593.mp3rename to packages/template-prompt-to-video/public/content/history-of-venus/audio/11f4911a-f39f-4567-8963-41511d05b593.mp3diff --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.mp3similarity index 100%rename from packages/template-ai-video/public/content/history-of-venus/audio/20cf0ab8-49cb-4ead-816d-6af0b588668a.mp3rename to packages/template-prompt-to-video/public/content/history-of-venus/audio/20cf0ab8-49cb-4ead-816d-6af0b588668a.mp3diff --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.mp3similarity index 100%rename from packages/template-ai-video/public/content/history-of-venus/audio/33b24fbd-dc71-4692-87af-fdff7661c222.mp3rename to packages/template-prompt-to-video/public/content/history-of-venus/audio/33b24fbd-dc71-4692-87af-fdff7661c222.mp3diff --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.mp3similarity index 100%rename from packages/template-ai-video/public/content/history-of-venus/audio/5584e376-d02e-48fc-9e47-fc7bf86000af.mp3rename to packages/template-prompt-to-video/public/content/history-of-venus/audio/5584e376-d02e-48fc-9e47-fc7bf86000af.mp3diff --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.mp3similarity index 100%rename from packages/template-ai-video/public/content/history-of-venus/audio/83e869e5-18fd-4de9-b70f-dc0f180da912.mp3rename to packages/template-prompt-to-video/public/content/history-of-venus/audio/83e869e5-18fd-4de9-b70f-dc0f180da912.mp3diff --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.mp3similarity index 100%rename from packages/template-ai-video/public/content/history-of-venus/audio/90917ba0-8b7c-4309-a784-4f1fdc28d9fb.mp3rename to packages/template-prompt-to-video/public/content/history-of-venus/audio/90917ba0-8b7c-4309-a784-4f1fdc28d9fb.mp3diff --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.mp3similarity index 100%rename from packages/template-ai-video/public/content/history-of-venus/audio/919d538b-3407-440a-b26a-73a5321a3af0.mp3rename to packages/template-prompt-to-video/public/content/history-of-venus/audio/919d538b-3407-440a-b26a-73a5321a3af0.mp3diff --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.mp3similarity index 100%rename from packages/template-ai-video/public/content/history-of-venus/audio/99af6411-714b-4b72-b66e-f6c02a184493.mp3rename to packages/template-prompt-to-video/public/content/history-of-venus/audio/99af6411-714b-4b72-b66e-f6c02a184493.mp3diff --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.jsonsimilarity index 100%rename from packages/template-ai-video/public/content/history-of-venus/descriptor.jsonrename to packages/template-prompt-to-video/public/content/history-of-venus/descriptor.jsondiff --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.pngsimilarity index 100%rename from packages/template-ai-video/public/content/history-of-venus/images/11f4911a-f39f-4567-8963-41511d05b593.pngrename to packages/template-prompt-to-video/public/content/history-of-venus/images/11f4911a-f39f-4567-8963-41511d05b593.pngdiff --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.pngsimilarity index 100%rename from packages/template-ai-video/public/content/history-of-venus/images/20cf0ab8-49cb-4ead-816d-6af0b588668a.pngrename to packages/template-prompt-to-video/public/content/history-of-venus/images/20cf0ab8-49cb-4ead-816d-6af0b588668a.pngdiff --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.pngsimilarity index 100%rename from packages/template-ai-video/public/content/history-of-venus/images/33b24fbd-dc71-4692-87af-fdff7661c222.pngrename to packages/template-prompt-to-video/public/content/history-of-venus/images/33b24fbd-dc71-4692-87af-fdff7661c222.pngdiff --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.pngsimilarity index 100%rename from packages/template-ai-video/public/content/history-of-venus/images/5584e376-d02e-48fc-9e47-fc7bf86000af.pngrename to packages/template-prompt-to-video/public/content/history-of-venus/images/5584e376-d02e-48fc-9e47-fc7bf86000af.pngdiff --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.pngsimilarity index 100%rename from packages/template-ai-video/public/content/history-of-venus/images/83e869e5-18fd-4de9-b70f-dc0f180da912.pngrename to packages/template-prompt-to-video/public/content/history-of-venus/images/83e869e5-18fd-4de9-b70f-dc0f180da912.pngdiff --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.pngsimilarity index 100%rename from packages/template-ai-video/public/content/history-of-venus/images/90917ba0-8b7c-4309-a784-4f1fdc28d9fb.pngrename to packages/template-prompt-to-video/public/content/history-of-venus/images/90917ba0-8b7c-4309-a784-4f1fdc28d9fb.pngdiff --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.pngsimilarity index 100%rename from packages/template-ai-video/public/content/history-of-venus/images/919d538b-3407-440a-b26a-73a5321a3af0.pngrename to packages/template-prompt-to-video/public/content/history-of-venus/images/919d538b-3407-440a-b26a-73a5321a3af0.pngdiff --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.pngsimilarity index 100%rename from packages/template-ai-video/public/content/history-of-venus/images/99af6411-714b-4b72-b66e-f6c02a184493.pngrename to packages/template-prompt-to-video/public/content/history-of-venus/images/99af6411-714b-4b72-b66e-f6c02a184493.pngdiff --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.jsonsimilarity index 100%rename from packages/template-ai-video/public/content/history-of-venus/timeline.jsonrename to packages/template-prompt-to-video/public/content/history-of-venus/timeline.jsondiff --git a/packages/template-ai-video/remotion.config.ts b/packages/template-prompt-to-video/remotion.config.tssimilarity index 100%rename from packages/template-ai-video/remotion.config.tsrename to packages/template-prompt-to-video/remotion.config.tsdiff --git a/packages/template-ai-video/src/Root.tsx b/packages/template-prompt-to-video/src/Root.tsxsimilarity index 100%rename from packages/template-ai-video/src/Root.tsxrename to packages/template-prompt-to-video/src/Root.tsxdiff --git a/packages/template-ai-video/src/components/AIVideo.tsx b/packages/template-prompt-to-video/src/components/AIVideo.tsxsimilarity index 100%rename from packages/template-ai-video/src/components/AIVideo.tsxrename to packages/template-prompt-to-video/src/components/AIVideo.tsxdiff --git a/packages/template-ai-video/src/components/Background.tsx b/packages/template-prompt-to-video/src/components/Background.tsxsimilarity index 100%rename from packages/template-ai-video/src/components/Background.tsxrename to packages/template-prompt-to-video/src/components/Background.tsxdiff --git a/packages/template-ai-video/src/components/Subtitle.tsx b/packages/template-prompt-to-video/src/components/Subtitle.tsxsimilarity index 100%rename from packages/template-ai-video/src/components/Subtitle.tsxrename to packages/template-prompt-to-video/src/components/Subtitle.tsxdiff --git a/packages/template-ai-video/src/components/Word.tsx b/packages/template-prompt-to-video/src/components/Word.tsxsimilarity index 100%rename from packages/template-ai-video/src/components/Word.tsxrename to packages/template-prompt-to-video/src/components/Word.tsxdiff --git a/packages/template-ai-video/src/index.ts b/packages/template-prompt-to-video/src/index.tssimilarity index 100%rename from packages/template-ai-video/src/index.tsrename to packages/template-prompt-to-video/src/index.tsdiff --git a/packages/template-ai-video/src/lib/constants.ts b/packages/template-prompt-to-video/src/lib/constants.tssimilarity index 100%rename from packages/template-ai-video/src/lib/constants.tsrename to packages/template-prompt-to-video/src/lib/constants.tsdiff --git a/packages/template-ai-video/src/lib/types.ts b/packages/template-prompt-to-video/src/lib/types.tssimilarity index 100%rename from packages/template-ai-video/src/lib/types.tsrename to packages/template-prompt-to-video/src/lib/types.tsdiff --git a/packages/template-ai-video/src/lib/utils.ts b/packages/template-prompt-to-video/src/lib/utils.tssimilarity index 100%rename from packages/template-ai-video/src/lib/utils.tsrename to packages/template-prompt-to-video/src/lib/utils.tsdiff --git a/packages/template-ai-video/tsconfig.json b/packages/template-prompt-to-video/tsconfig.jsonsimilarity index 100%rename from packages/template-ai-video/tsconfig.jsonrename to packages/template-prompt-to-video/tsconfig.jsondiff --git a/tsconfig.json b/tsconfig.jsonindex 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"