@revideo/create 0.5.10-alpha.1087 → 0.5.10
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.
- package/examples/avatar-with-background/package.json +8 -8
- package/examples/avatar-with-background/src/scenes/example.tsx +1 -0
- package/examples/default/package.json +8 -8
- package/examples/github-stars-celebration/package.json +7 -7
- package/examples/github-stars-celebration/src/scenes/example.tsx +2 -2
- package/examples/google-cloud-run-parallelized/render-orchestrator/package.json +21 -21
- package/examples/google-cloud-run-parallelized/render-worker/package.json +8 -8
- package/examples/marketing-templates/marketing-template/package.json +7 -7
- package/examples/marketing-templates/multiple-videos-in-one/package.json +7 -7
- package/examples/minimal-drag-drop/README.md +27 -0
- package/examples/minimal-drag-drop/next/app/api/render/route.ts +22 -0
- package/examples/minimal-drag-drop/next/app/globals.css +3 -0
- package/examples/minimal-drag-drop/next/app/layout.tsx +25 -0
- package/examples/minimal-drag-drop/next/app/page.tsx +277 -0
- package/examples/minimal-drag-drop/next/next-env.d.ts +5 -0
- package/examples/minimal-drag-drop/next/next.config.mjs +4 -0
- package/examples/minimal-drag-drop/next/package-lock.json +5577 -0
- package/examples/minimal-drag-drop/next/package.json +35 -0
- package/examples/minimal-drag-drop/next/postcss.config.js +6 -0
- package/examples/minimal-drag-drop/next/public/favicon.ico +0 -0
- package/examples/minimal-drag-drop/next/public/next.svg +1 -0
- package/examples/minimal-drag-drop/next/public/vercel.svg +1 -0
- package/examples/minimal-drag-drop/next/tailwind.config.ts +30 -0
- package/examples/minimal-drag-drop/next/tsconfig.json +26 -0
- package/examples/minimal-drag-drop/next/utils/parse.ts +35 -0
- package/examples/minimal-drag-drop/revideo/package-lock.json +3771 -0
- package/examples/minimal-drag-drop/revideo/package.json +24 -0
- package/examples/minimal-drag-drop/revideo/src/global.css +1 -0
- package/examples/minimal-drag-drop/revideo/src/project.meta +28 -0
- package/examples/minimal-drag-drop/revideo/src/project.ts +9 -0
- package/examples/minimal-drag-drop/revideo/src/render.ts +15 -0
- package/examples/minimal-drag-drop/revideo/src/revideo.d.ts +1 -0
- package/examples/minimal-drag-drop/revideo/src/scenes/example.meta +5 -0
- package/examples/minimal-drag-drop/revideo/src/scenes/example.tsx +44 -0
- package/examples/minimal-drag-drop/revideo/tsconfig.json +9 -0
- package/examples/minimal-drag-drop/revideo/vite.config.ts +6 -0
- package/examples/parallelized-aws-lambda/revideo-project/package.json +8 -11
- package/examples/parallelized-aws-lambda/revideo-project/src/lambda.ts +15 -2
- package/examples/parallelized-aws-lambda/revideo-project/src/render.ts +2 -1
- package/examples/parallelized-aws-lambda/revideo-project/src/scenes/example.tsx +1 -0
- package/examples/reddit-post-video/package.json +7 -7
- package/examples/reddit-post-video/src/project.meta +2 -2
- package/examples/rive-explanation-video/package.json +8 -8
- package/examples/saas-template/next/package.json +33 -33
- package/examples/saas-template/revideo/package.json +23 -23
- package/examples/stitching-videos/package.json +6 -6
- package/examples/stitching-videos/src/render.ts +2 -1
- package/examples/three-js-example/package-lock.json +41 -41
- package/examples/three-js-example/package.json +7 -7
- package/examples/youtube-shorts/README.md +7 -7
- package/examples/youtube-shorts/package-lock.json +332 -365
- package/examples/youtube-shorts/package.json +8 -8
- package/examples/youtube-shorts/src/get-assets.ts +34 -0
- package/examples/youtube-shorts/src/render.ts +4 -35
- package/examples/youtube-shorts/src/scenes/example.tsx +25 -12
- package/index.js +122 -16
- package/package.json +9 -9
- package/examples/avatar-with-background/package-lock.json +0 -3223
- package/examples/marketing-templates/marketing-template/package-lock.json +0 -3824
- package/examples/marketing-templates/multiple-videos-in-one/package-lock.json +0 -3824
- package/examples/rive-explanation-video/package-lock.json +0 -3706
- package/examples/stitching-videos/package-lock.json +0 -2801
|
@@ -9,17 +9,17 @@
|
|
|
9
9
|
"render": "tsc && node dist/render.js"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@revideo/2d": "0.5.
|
|
13
|
-
"@revideo/core": "
|
|
14
|
-
"@revideo/renderer": "
|
|
15
|
-
"@revideo/ffmpeg": "
|
|
12
|
+
"@revideo/2d": "0.5.10",
|
|
13
|
+
"@revideo/core": "0.5.10",
|
|
14
|
+
"@revideo/renderer": "0.5.10",
|
|
15
|
+
"@revideo/ffmpeg": "0.5.10",
|
|
16
16
|
"three": "^0.167.1"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@revideo/ui": "
|
|
20
|
-
"@revideo/vite-plugin": "
|
|
19
|
+
"@revideo/ui": "0.5.10",
|
|
20
|
+
"@revideo/vite-plugin": "0.5.10",
|
|
21
21
|
"@types/three": "^0.167.1",
|
|
22
22
|
"typescript": "5.5.4",
|
|
23
23
|
"vite": "^4.0.0"
|
|
24
24
|
}
|
|
25
|
-
}
|
|
25
|
+
}
|
|
@@ -7,10 +7,11 @@ https://github.com/redotvideo/revideo-examples/assets/122226645/98bc202d-6b7d-4b
|
|
|
7
7
|
|
|
8
8
|
## Project Structure
|
|
9
9
|
|
|
10
|
-
There are
|
|
10
|
+
There are three main files you should look at in this project:
|
|
11
11
|
|
|
12
12
|
- `src/scenes/example.tsx`: This file defines the flow of the video and its animations. It accepts variables such as a list of background images, a voiceover audio file, as well as a list of words along with their timestamps to display the video captions.
|
|
13
|
-
- `src/
|
|
13
|
+
- `src/get-assets.ts`: This is a node.js process which generates assets (script, voiceover, etc.) using AI services and writes them to a json file storing your video variables
|
|
14
|
+
- `src/render.ts`: This code calls `renderVideo()` with variables from a metadata file to export the final video.
|
|
14
15
|
|
|
15
16
|
|
|
16
17
|
## Getting Started
|
|
@@ -25,12 +26,11 @@ You can start the editor using the following command:
|
|
|
25
26
|
npm start
|
|
26
27
|
```
|
|
27
28
|
|
|
28
|
-
The editor preview uses example assets (images and voiceovers) specified in `src/metadata.json` which are located in an AWS bucket we own. This way, you can test the template without having to generate your own assets.
|
|
29
|
+
The editor preview uses example assets (images and voiceovers) specified in `src/metadata.json` which are located in an AWS bucket we own. This way, you can test the template without having to generate your own assets. To render the video with the example asseets, click the render button in the UI or run `npm run render`.
|
|
29
30
|
|
|
30
|
-
When previewing the video in the editor, your browser will first have to load the assets, which can cause a bit of a lag - you might have to wait a few seconds.
|
|
31
|
+
When previewing the video in the editor, your browser will first have to load the assets, which can cause a bit of a lag - you might have to wait a few seconds.
|
|
31
32
|
|
|
32
|
-
|
|
33
|
-
## Rendering your own Videos
|
|
33
|
+
## Rendering Videos with your own AI assets
|
|
34
34
|
If you want to render your own videos using ChatGPT, Dall-E and Elevenlabs voiceovers, you need to create a `.env` file in the project root directory and add the following environment variables:
|
|
35
35
|
|
|
36
36
|
```
|
|
@@ -39,7 +39,7 @@ ELEVEN_API_KEY=<your-elevenlabs-key>
|
|
|
39
39
|
DEEPGRAM_API_KEY=<your-deepgram-key>
|
|
40
40
|
```
|
|
41
41
|
|
|
42
|
-
Now you can run `
|
|
42
|
+
Now you can run `tsc && node dist/get-assets.ts`, which will create a new metadata file that you can use in `render.ts` and `project.ts`.
|
|
43
43
|
|
|
44
44
|
|
|
45
45
|
## Animating Subtitles
|