Skip to content

🎥 Make videos programmatically with React

more docs

Jonny Burger9e353e4ba5e1
diff --git a/packages/docs/docs/recorder/before-you-buy.mdx b/packages/docs/docs/recorder/before-you-buy.mdx
new file mode 100644
index 0000000000..9cd179e758
--- /dev/null
+++ b/packages/docs/docs/recorder/before-you-buy.mdx
@@ -0,0 +1,34 @@
+---
+title: Before you buy
+crumb: Recorder
+---
+
+The Remotion Recorder is a first-of-its-kind JavaScript-based video creation tool where you are in control of the source code.
+
+## What skills do I need?
+
+You must be able to:
+
+- Clone a Git repository
+- Execute commands in the command line
+- Setup a TypeScript project.
+
+To create videos with our default style.
+
+## Do I need to know how to code?
+
+For creating a video in the default style, you do not need to code.
+However, we think that the Recorder is mostly appealing to developers, because of the sheer customization that is possible by modifying the code.
+
+## Who is this for?
+
+The Recorder is for people who appreciate videos being generated with code, and for people who want to fully own their workflow.
+
+It works best for creators who film their face and their screen to create technical content.
+
+The Recorder does not have a comparable feature set to traditional video editors.
+
+## No Windows support yet
+
+This project uses [Bun](https://bun.sh) for its scripts.
+Bun is not yet available for Windows and therefore the Recorder does not work on Windows yet either.
diff --git a/packages/docs/docs/recorder/buy.mdx b/packages/docs/docs/recorder/buy.mdx
index c76f6b4467..3c7d6dafa8 100644
--- a/packages/docs/docs/recorder/buy.mdx
+++ b/packages/docs/docs/recorder/buy.mdx
@@ -1,4 +1,4 @@
# Buy
-The Remotion Recorder will be available for purchase in 2024 on [remotion.pro](https://remotion.pro).
-You may register your interest [here](https://remotion.pro/recorder)!
+The Remotion Recorder will soon be available for purchase in on [remotion.pro](https://remotion.pro).
+You may register your interest [here](https://remotion.pro/recorder) to get access first.
diff --git a/packages/docs/docs/recorder/captions.mdx b/packages/docs/docs/recorder/captions.mdx
index 6eb5ef13f6..6ecc34d1a3 100644
--- a/packages/docs/docs/recorder/captions.mdx
+++ b/packages/docs/docs/recorder/captions.mdx
@@ -1,50 +1,24 @@
-# Captions
+---
+title: Generate captions
+crumb: Recorder
+---
-To generate captions, the Remotion Recorder uses [Whisper.cpp](https://github.com/ggerganov/whisper.cpp.
+To generate captions, the Remotion Recorder uses [Whisper.cpp](https://github.com/ggerganov/whisper.cpp) for fast and accurate transcriptions.
+
+## Setup
+
+The first time you will run the command below, Whisper.cpp will be installed and a 1.5GB model will be installed on your computer. This may take a few minutes.
## Generate
-To generate captions for your recording, run
+To generate captions for all of your recordings, run:
```
bun sub.ts
```
-After the generation process, the captions JSON file will be saved under `public/<your-composition-id>`. <br/>
-When executing this command for the first time, [Whisper.cpp](https://github.com/ggerganov/whisper.cpp) will be automatically installed for you.
-
-## Correct
-
-If the AI has made a mistake in the caption, inside the Remotion Studio you can correct it by clicking on the faulty subtitle in the video. This opens a text editor containing the subtitles, from where you can directly edit them.
-Once you are done with your corrections, click on "Done" in the right bottom corner of the editor. This will save the changes you made into the JSON file containing your subtitles.
-Alternativel, you can directly edit your JSON files located at `public/<your-composition-id>` in your project with an editor of your choice.
-
-## Highlight Words
+JSON files will be generated and saved under `public/<id>/sub[timestamp].json`.
-To highlight specific words, click on the desired word within the subtitles. In the opening editor, choose the `monospace` option to apply a monospaced font and default blue color to the selected word.
-If you wish to change the highlighting color, modify the `WORD_HIGHLIGHT_COLOR` constant in the `colors.ts` file.
-
-## Language Model
-
-Per default, whisper's english base model (base.en) is used to generate the captions. If you want to use a different language model,
-you change it by specifying the model by changing the value of the `SELECTED_WHISPER_MODEL` constant in the `sub.ts` file.
-
-```javascript
-const SELECTED_WHISPER_MODEL = "base.en";
-```
+## Make corrections
-Valid models are:
-
-- tiny
-- tiny.en
-- base
-- base.en
-- small
-- small.en
-- medium
-- medium.en
-- large-v1
-- large-v2
-- large-v3
-
-For more information on the models, see the README file on whisper's [GitHub](https://github.com/openai/whisper?tab=readme-ov-file#available-models-and-languages) page.
+If the AI has made a mistake, no problem, there are various ways to correct the transcriptions manually. [See here how to do this](/docs/recorder/editing/captions).
diff --git a/packages/docs/docs/recorder/create.mdx b/packages/docs/docs/recorder/create.mdx
new file mode 100644
index 0000000000..88740033d0
--- /dev/null
+++ b/packages/docs/docs/recorder/create.mdx
@@ -0,0 +1,58 @@
+---
+title: Create a new video
+crumb: Recorder
+---
+
+In your repo, you will an empty [`<Composition>`](/docs/terminology/composition) under `remotion/Root.tsx`:
+
+```tsx
+<Composition
+ component={Main}
+ id="empty"
+ schema={videoConf}
+ defaultProps={{
+ theme: "light" as const,
+ canvasLayout: "square" as const,
+ scenes: [],
+ scenesAndMetadata: [],
+ }}
+ calculateMetadata={calcMetadata}
+/>
+```
+
+Copy and paste the [`<Composition />`](/docs/composition) component to duplicate it and give it an [`id`](/docs/terminology/composition-id) that is different than `"empty"`. For example:
+
+```tsx title="remotion/Root.tsx"
+<Composition
+ component={Main}
+ id="empty"
+ schema={videoConf}
+ defaultProps={{
+ theme: "light" as const,
+ canvasLayout: "square" as const,
+ scenes: [],
+ scenesAndMetadata: [],
+ }}
+ calculateMetadata={calcMetadata}
+/>
+<Composition
+ component={Main}
+ id="my-video"
+ schema={videoConf}
+ defaultProps={{
+ theme: "light" as const,
+ canvasLayout: "square" as const,
+ scenes: [],
+ scenesAndMetadata: [],
+ }}
+ calculateMetadata={calcMetadata}
+/>
+```
+
+Then, edit `copy-from-downloads.mjs`, and set the `prefix` to the [ID](/docs/terminology/composition-id) of the `<Composition>` you just cloned.
+
+```js filename="copy-from-downloads.tss"
+const prefix = "<your-composition-id>";
+```
+
+This ensures that when copying recordings into your project, they get added to the video you are currently working on.
diff --git a/packages/docs/docs/recorder/editing/captions.mdx b/packages/docs/docs/recorder/editing/captions.mdx
new file mode 100644
index 0000000000..17d5e65c35
--- /dev/null
+++ b/packages/docs/docs/recorder/editing/captions.mdx
@@ -0,0 +1,16 @@
+---
+title: Edit captions
+sidebar_label: Captions
+crumb: Recorder
+---
+
+## Correct
+
+If the AI has made a mistake in the caption, inside the Remotion Studio you can correct it by clicking on the faulty subtitle in the video. This opens a text editor containing the subtitles, from where you can directly edit them.
+Once you are done with your corrections, click on "Done" in the right bottom corner of the editor. This will save the changes you made into the JSON file containing your subtitles.
+Alternativel, you can directly edit your JSON files located at `public/<your-composition-id>` in your project with an editor of your choice.
+
+## Highlight Words
+
+To highlight specific words, click on the desired word within the subtitles. In the opening editor, choose the `monospace` option to apply a monospaced font and default blue color to the selected word.
+If you wish to change the highlighting color, modify the `WORD_HIGHLIGHT_COLOR` constant in the `colors.ts` file.
diff --git a/packages/docs/docs/recorder/record.mdx b/packages/docs/docs/recorder/record.mdx
new file mode 100644
index 0000000000..33d075ea75
--- /dev/null
+++ b/packages/docs/docs/recorder/record.mdx
@@ -0,0 +1,98 @@
+---
+title: Record a scene
+crumb: Recorder
+---
+
+import { RecordingButton } from "../../components/recorder/RecordButton";
+
+The Recorder ships with its own recording interface.
+From it, you can record a video and add it as a scene to your project.
+
+## Setup
+
+To start the recording interface, run:
+
+```tsx
+bun run dev
+```
+
+A Vite app will start. Open the URL in the browser.
+Give the page access to the webcam and microphone.
+
+Alternatively, you can also use the hosted version at [record.remotion.dev](https://record.remotion.dev).
+
+## Select sources
+
+In the top left panel, select the right webcam and microphone.
+In the top right panel, select the screen you want to record.
+
+The two panels at the bottom should be left empty.
+They are not being used by default, unless you develop your own workflow that requires more sources being recorded at once.
+
+## Before starting
+
+Take a deep breath and think of what you are about to say and show.
+
+Prefer making short recordings, because if you mess up a take, you need to discard it entirely.
+
+There is no countdown, the recording will start immediately, but the silence at the beginning will be automatically removed later.
+
+## Start the recording
+
+<div
+ style={{
+ display: "flex",
+ flexDirection: "row",
+ alignItems: "center",
+ flexWrap: "wrap",
+ }}
+>
+ <div>
+ To start recording, press <kbd>R</kbd> or click{" "}
+ </div>
+ <RecordingButton type="start" />
+ <div>in the top left corner.</div>
+</div>
+<br />
+<div
+ style={{
+ display: "flex",
+ flexDirection: "row",
+ alignItems: "center",
+ flexWrap: "wrap",
+ }}
+>
+ <div>Once you are done with the scene, click</div>
+ <RecordingButton type="stop" />
+ <div>.</div>
+</div>
+<br />
+<div>
+ <div>
+ The recordings will automatically be downloaded to your Downloads
+ folder.{" "}
+ </div>
+</div>
+
+## Selecting a take
+
+After you have recorded a scene and you are happy with your take, run
+
+```bash
+bun copy-from-downloads.mjs
+```
+
+to copy the file from your `Downloads` folder into your project.
+
+The script will do the following:
+
+- Remove the silence from the start and end of the videos.
+- Convert the videos from WebM to MP4
+- Put them into your project under `public/[id]`.
+
+## Discard a take
+
+If you have taken a recording, you don't want to use, you don't need to do anything.
+Just give it another try.
+
+You may delete the files from your Downloads folder to save space.
diff --git a/packages/docs/docs/recorder/recording.mdx b/packages/docs/docs/recorder/recording.mdx
deleted file mode 100644
index a74d303b24..0000000000
--- a/packages/docs/docs/recorder/recording.mdx
+++ /dev/null
@@ -1,56 +0,0 @@
-import { RecordingButton } from "../../components/recorder/RecordButton";
-
-# Recording a scene
-
-To record a scene, run:
-
-```tsx
-bun run dev
-```
-
-A Vite app will start. Open the URL in the browser.
-
-Give access to the webcam and microphone.
-
-In the top left panel, select the right webcam and microphone.
-In the top right panel, select the screen you want to record.
-
-<div
- style={{
- display: "flex",
- flexDirection: "row",
- alignItems: "center",
- flexWrap: "wrap",
- }}
->
- <div>To start recording, press `R` or click </div>
- <RecordingButton type="start" />
- <div>in the top left corner.</div>
-</div>
-<br />
-<div
- style={{
- display: "flex",
- flexDirection: "row",
- alignItems: "center",
- flexWrap: "wrap",
- }}
->
- <div>Once you are done with the scene, click</div>
- <RecordingButton type="stop" />
- <br />
- <div>
- The files will automatically be downloaded to your Downloads folder.{" "}
- </div>
-</div>
-
-## Selecting a take
-
-After you have recorded a scene and you are happy with your take, run
-
-```bash
-node copy-from-downloads.mjs
-```
-
-from the terminal to copy the file from your Downloads folder into your project.
-There, the recordings are located under `public/your-composition-id`.
diff --git a/packages/docs/docs/recorder/setup.mdx b/packages/docs/docs/recorder/setup.mdx
index bba7d83bbc..b5f9e0dc0e 100644
--- a/packages/docs/docs/recorder/setup.mdx
+++ b/packages/docs/docs/recorder/setup.mdx
@@ -1,12 +1,18 @@
# Setup
-After you got access to the repo, [create a fork](https://github.com/remotion-dev/recorder/fork) of it.
+First, [purchase](/docs/recorder/buy) the Recorder to [get access to the repo](https://github.com/remotion-dev/recorder).
-ℹ️ You need to make your fork **private** to not leak the source code of the Remotion Recorder.
+## 1. Fork and clone
-Clone your fork and install dependencies using:
+[Create a fork](https://github.com/remotion-dev/recorder/fork) of the `remotion-dev/recorder` repository.
-## Install Bun
+:::note
+You need to make your fork **private** to not leak the source code of the Remotion Recorder.
+:::
+
+Then, clone your fork to get the project locally.
+
+## 2. Install Bun
The Remotion Recorder requires [bun](https://bun.sh/). To install it, run
@@ -14,7 +20,7 @@ The Remotion Recorder requires [bun](https://bun.sh/). To install it, run
curl -fsSL https://bun.sh/install | bash
```
-## Install dependencies
+## 3. Install dependencies
Once bun is installed, run
@@ -23,16 +29,3 @@ bun i
```
to install all the neccessary dependencies.
-
-## Create a new video
-
-In `src/Root.tsx` you have an empty `<Composition>`.
-Duplicate the composition component and give it a different ID.
-
-In `copy-from-downloads.mjs`, set the prefix to the ID of the `<Composition>` you just cloned.
-
-```js filename="copy-from-downloads.tss"
-const prefix = "<your-composition-id>";
-```
-
-This ensures the recorded files to be correctly copied to the right folder after recording them.
diff --git a/packages/docs/sidebars.js b/packages/docs/sidebars.js
index 9a33e3add7..23cdabcfaf 100644
--- a/packages/docs/sidebars.js
+++ b/packages/docs/sidebars.js
@@ -887,21 +887,25 @@ module.exports = {
label: "Recorder",
items: [
"recorder/index",
+ "recorder/before-you-buy",
"recorder/buy",
"recorder/setup",
- "recorder/recording",
+ "recorder/create",
+ "recorder/record",
"recorder/captions",
{
type: "category",
label: "Editing",
+ collapsed: false,
items: [
"recorder/editing/editing",
- "recorder/editing/scenes",
- "recorder/editing/chapters",
+ "recorder/editing/captions",
"recorder/editing/layout",
- "recorder/editing/music",
+ "recorder/editing/scenes",
"recorder/editing/endcard",
"recorder/editing/transitions",
+ "recorder/editing/chapters",
+ "recorder/editing/music",
],
},
"recorder/exporting",