Skip to content

πŸŽ₯ Make videos programmatically with React

Update record.mdx

Jonny Burger9527bc3f9237
diff --git a/packages/docs/docs/recorder/record.mdx b/packages/docs/docs/recorder/record.mdx
index cf3e1955a1..e1d683490a 100644
--- a/packages/docs/docs/recorder/record.mdx
+++ b/packages/docs/docs/recorder/record.mdx
@@ -9,34 +9,46 @@ 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:
+If you haven't done so, start the Remotion Recorder:
```tsx
-bun run dev
+bun start
```
-A Vite app will start. Open the URL in the browser.
+A Vite app will listen on `http://localhost:4000`.
+Open this 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 the composition
+
+Recordings need to be stored in a subfolder of `public` with the name of the composition ID.
+For example, if you want to record for the composition `my-video`, recordings will be stored under `public/my-video`.
+
+In the top right corner, use the dropdown to "Create a new folder".
+Give it the same name as the ID of the composition your want to record for.
+The folder will be created and your subsequent recordings will be saved in this folder.
## 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.
+In the top left panel, select your webcam and microphone.
+In the top right panel, optionally 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.
+You can record more sources, but out of the box, the Remotion Recorder does not do anything with them.
## 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.
+Say "Test One Two Three" and ensure the volume meter is not going into the red zone.
+
+Make sure you are centered in the video. You can enable the crop target overlay to see how the video will crop when miniaturized.
-There is no countdown, the recording will start immediately, but the silence at the beginning will be automatically removed later.
+Prefer making short recordings. You're less likely to make a mistake and it's easy to stitch them together.
+
+There is no countdown – The recording will start immediately.
+However, the Recorder will later automatically trim away the silence in the beginning.
+
+You're ready to record!
## Start the recording
@@ -67,33 +79,63 @@ There is no countdown, the recording will start immediately, but the silence at
<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
+After you have recorded a scene and you are happy with your take, click "Use this take".
+
+The server will then do the following:
+
+- Convert the videos from WebM to MP4
+- Put them into your project under `public/[composition-id]`.
+- Caption the files with Whisper.cpp
+
+## Discard a take
+
+If you have taken a recording that you don't want to use, click "Discard and retake" to clear the existing recording from memory.
+
+## record.remotion.dev
+
+You can also use the hosted version of the recoding interface at [record.remotion.dev](https://record.remotion.dev).
+
+It will not allow you to select a save destination, but instead download the recordings to your `Downloads` folder.
+
+They will have names like `webcam171234567890.webm` and `display171234567890.webm`.
+
+To copy the recordings to your Remotion project and also convert them to MP4, first open `copy.ts` in your code editor. Set the `prefix` at the top of your file to the ID of the composition that you gave when you first created a new video.
+
+```ts title="copy.ts"
+const prefix = "<id-of-your-composition>";
+```
+
+Then run the `copy.ts` script whenever you want to save a take and immediately generate captions:
```bash
bun copy.ts
+bun sub.ts
```
-to copy the file from your `Downloads` folder into your project.
+If you want to not use a take, just make another recording. The `copy.ts` script will only take the recordings with the biggest timestamp.
-The script will do the following:
+## Manually adding recordings
-- 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]`.
+You can also add recordings from other sources, like your phone.
+Simply name the file `webcam` followed by any number, like `10`, followed by one of the supported file extensions: `.mp4`, `.webm` or `.mov`.
-## Discard a take
+// TOOD: Which ones exactly?
+
+The order your recordings appear in your video is based on the number suffix. Here is a way you could structure your recordings:
+
+```txt
+webcam10.mp4
+display10.mp4
+webcam20.mp4
+webcam30.mp4
+```
+
+If there is only a `webcam` recording with said number, the webcam will be fullscreen.
-If you have taken a recording, you don't want to use, you don't need to do anything.
-Just give it another try.
+A `display` recording will only get picked up if there is also a `webcam` recording.
+The webcam will be miniaturized in this case.
-You may delete the files from your Downloads folder to save space.
+If you only have recorded a display, give it a `webcam` prefix nonetheless for it to get picked up.
\ No newline at end of file