@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.
Files changed (62) hide show
  1. package/examples/avatar-with-background/package.json +8 -8
  2. package/examples/avatar-with-background/src/scenes/example.tsx +1 -0
  3. package/examples/default/package.json +8 -8
  4. package/examples/github-stars-celebration/package.json +7 -7
  5. package/examples/github-stars-celebration/src/scenes/example.tsx +2 -2
  6. package/examples/google-cloud-run-parallelized/render-orchestrator/package.json +21 -21
  7. package/examples/google-cloud-run-parallelized/render-worker/package.json +8 -8
  8. package/examples/marketing-templates/marketing-template/package.json +7 -7
  9. package/examples/marketing-templates/multiple-videos-in-one/package.json +7 -7
  10. package/examples/minimal-drag-drop/README.md +27 -0
  11. package/examples/minimal-drag-drop/next/app/api/render/route.ts +22 -0
  12. package/examples/minimal-drag-drop/next/app/globals.css +3 -0
  13. package/examples/minimal-drag-drop/next/app/layout.tsx +25 -0
  14. package/examples/minimal-drag-drop/next/app/page.tsx +277 -0
  15. package/examples/minimal-drag-drop/next/next-env.d.ts +5 -0
  16. package/examples/minimal-drag-drop/next/next.config.mjs +4 -0
  17. package/examples/minimal-drag-drop/next/package-lock.json +5577 -0
  18. package/examples/minimal-drag-drop/next/package.json +35 -0
  19. package/examples/minimal-drag-drop/next/postcss.config.js +6 -0
  20. package/examples/minimal-drag-drop/next/public/favicon.ico +0 -0
  21. package/examples/minimal-drag-drop/next/public/next.svg +1 -0
  22. package/examples/minimal-drag-drop/next/public/vercel.svg +1 -0
  23. package/examples/minimal-drag-drop/next/tailwind.config.ts +30 -0
  24. package/examples/minimal-drag-drop/next/tsconfig.json +26 -0
  25. package/examples/minimal-drag-drop/next/utils/parse.ts +35 -0
  26. package/examples/minimal-drag-drop/revideo/package-lock.json +3771 -0
  27. package/examples/minimal-drag-drop/revideo/package.json +24 -0
  28. package/examples/minimal-drag-drop/revideo/src/global.css +1 -0
  29. package/examples/minimal-drag-drop/revideo/src/project.meta +28 -0
  30. package/examples/minimal-drag-drop/revideo/src/project.ts +9 -0
  31. package/examples/minimal-drag-drop/revideo/src/render.ts +15 -0
  32. package/examples/minimal-drag-drop/revideo/src/revideo.d.ts +1 -0
  33. package/examples/minimal-drag-drop/revideo/src/scenes/example.meta +5 -0
  34. package/examples/minimal-drag-drop/revideo/src/scenes/example.tsx +44 -0
  35. package/examples/minimal-drag-drop/revideo/tsconfig.json +9 -0
  36. package/examples/minimal-drag-drop/revideo/vite.config.ts +6 -0
  37. package/examples/parallelized-aws-lambda/revideo-project/package.json +8 -11
  38. package/examples/parallelized-aws-lambda/revideo-project/src/lambda.ts +15 -2
  39. package/examples/parallelized-aws-lambda/revideo-project/src/render.ts +2 -1
  40. package/examples/parallelized-aws-lambda/revideo-project/src/scenes/example.tsx +1 -0
  41. package/examples/reddit-post-video/package.json +7 -7
  42. package/examples/reddit-post-video/src/project.meta +2 -2
  43. package/examples/rive-explanation-video/package.json +8 -8
  44. package/examples/saas-template/next/package.json +33 -33
  45. package/examples/saas-template/revideo/package.json +23 -23
  46. package/examples/stitching-videos/package.json +6 -6
  47. package/examples/stitching-videos/src/render.ts +2 -1
  48. package/examples/three-js-example/package-lock.json +41 -41
  49. package/examples/three-js-example/package.json +7 -7
  50. package/examples/youtube-shorts/README.md +7 -7
  51. package/examples/youtube-shorts/package-lock.json +332 -365
  52. package/examples/youtube-shorts/package.json +8 -8
  53. package/examples/youtube-shorts/src/get-assets.ts +34 -0
  54. package/examples/youtube-shorts/src/render.ts +4 -35
  55. package/examples/youtube-shorts/src/scenes/example.tsx +25 -12
  56. package/index.js +122 -16
  57. package/package.json +9 -9
  58. package/examples/avatar-with-background/package-lock.json +0 -3223
  59. package/examples/marketing-templates/marketing-template/package-lock.json +0 -3824
  60. package/examples/marketing-templates/multiple-videos-in-one/package-lock.json +0 -3824
  61. package/examples/rive-explanation-video/package-lock.json +0 -3706
  62. 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.4",
13
- "@revideo/core": "^0.5.4",
14
- "@revideo/renderer": "^0.5.4",
15
- "@revideo/ffmpeg": "^0.5.4",
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": "^0.5.4",
20
- "@revideo/vite-plugin": "^0.5.4",
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 two main files you should look at in this project:
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/render.ts`: This is a node.js process which generates assets (script, voiceover, etc.) using AI services and consequently calls `renderVideo()` to export a video that uses the assets it generated as an input.
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. This will not be a problem when exporting the video though - when building a web app, this can also easily be avoided by preloading the assets (see our [docs](https://docs.re.video/preview-with-player/#preloading-assets) for info on this).
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 `npm run render`, which will execute `src/render.ts`.
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