🎥 Make videos programmatically with React
new remotion recorder docs
Jonny Burger2bd7461f8330
diff --git a/packages/docs/docs/contributing/ineligible.mdx b/packages/docs/docs/contributing/ineligible.mdxindex 3fd5885de2..eb5de4cc8b 100644--- a/packages/docs/docs/contributing/ineligible.mdx+++ b/packages/docs/docs/contributing/ineligible.mdx@@ -1,6 +1,6 @@---image: /generated/articles-docs-contributing-ineligible.png-title: Ineligibile for bounties+title: Ineligible for bountiescrumb: Contributing---diff --git a/packages/docs/docs/recorder/captions.mdx b/packages/docs/docs/recorder/captions.mdxindex 59eaefe6a8..3e874b772c 100644--- a/packages/docs/docs/recorder/captions.mdx+++ b/packages/docs/docs/recorder/captions.mdx@@ -7,7 +7,7 @@ crumb: RecorderTo generate captions, the Remotion Recorder uses [Whisper.cpp](https://github.com/ggerganov/whisper.cpp) for fast and accurate transcriptions.Each time you record a clip with the Remotion Recorder, captions are automatically generated and persisted to same folder as your recordings.-## First transcription+## Installing Whisper.cppThe very first time you finish recording a clip, Whisper.cpp and a 1.5GB model will be installed on your computer. This may take a few minutes.Once installed, captions for the `webcam` clip will be generated.@@ -22,7 +22,7 @@ If the AI has made a mistake, no problem, there are various ways to correct the## Generate captions via CLI-If you want to generate captions for a clip that has not been recorded with the Remotion Recorder, put the files you want to transcribe in the `public` folder and run:+For [external recordings](/docs/recorder/external-recordings), you can also generate captions via the CLI.```bun sub.tsdiff --git a/packages/docs/docs/recorder/create.mdx b/packages/docs/docs/recorder/create.mdxindex 6f7ffaf6ff..00b0f411f8 100644--- a/packages/docs/docs/recorder/create.mdx+++ b/packages/docs/docs/recorder/create.mdx@@ -14,7 +14,7 @@ Remotion calls each output video a "Composition". There are two ways to generate## 1. Visual way-Open `http://localhost:3000` and in the left sidebar, right-click on the "empty" composition. Select "Duplicate" and give your composition an ID. Confirm.+Open [`http://localhost:3000`](https://localhost:3000) and in the left sidebar, right-click on the "empty" composition. Select "Duplicate" and give your composition an ID. Confirm.## 2. Manual way@@ -30,7 +30,7 @@ Open the project in a code editor. You will see an empty [`<Composition>`](/docscanvasLayout: "square" as const,scenes: [],scenesAndMetadata: [],- platform: "x" as const,+ platform: "x" as const,}}calculateMetadata={calcMetadata}/>@@ -65,4 +65,4 @@ Copy and paste the [`<Composition />`](/docs/composition) component to duplicate/>```-Save, and you should see the new composition when you look at the Remotion Studio on `http://localhost:3000`.\ No newline at end of file+Save, and you should see the new composition when you look at the Remotion Studio on [`http://localhost:3000`](https://localhost:3000).diff --git a/packages/docs/docs/recorder/editing/editing.mdx b/packages/docs/docs/recorder/editing/editing.mdxindex 94f905cad7..2bb99f957b 100644--- a/packages/docs/docs/recorder/editing/editing.mdx+++ b/packages/docs/docs/recorder/editing/editing.mdx@@ -1,11 +1,9 @@---image: /generated/articles-docs-recorder-editing-editing.png-title: Editing+title: Start editingcrumb: Recorder----# Start editing-To start the editing environment, run```@@ -13,3 +11,5 @@ bun start```This will start the development server and open a Remotion Studio instance in a new window. From there, you can start editing your videos by manipulating the different entries in the props editor in the right sidebar.++// TODO: explain you have to add the + buttondiff --git a/packages/docs/docs/recorder/editing/silence-removal.mdx b/packages/docs/docs/recorder/editing/silence-removal.mdxnew file mode 100644index 0000000000..fcb0618242--- /dev/null+++ b/packages/docs/docs/recorder/editing/silence-removal.mdx@@ -0,0 +1,32 @@+---+image: /generated/articles-docs-recorder-editing-silence-removal.png+title: Silence removal+crumb: Recorder+---++When captions are generated, the Whisper.cpp timestamps are taken to determine the start and end of the transcription.++Therefore, you should make sure captions are generated before you manually trim the video.++## Edit the transcript to fix mistakes++The easiest way to fix mistakes is to [click on a caption](/docs/recorder/editing/captions) and edit the transcript.+The first non-empty token determines the start trim.+The last non-empty token determines the end trim.++## Apply an offset++In the right hand side default props editor, apply a `startOffset` to the scene.+The offset is in frames.++A negative offset will start the video earlier, a positive offset will start the video later.++To change the end trim, apply a `endOffset` to the scene. It follows the same logic as the start offset.++## Customizing the logic++The logic for determining the start and end timestamp is in [`remotion/calculate-metadata/add-metadata-to-scene.ts`](https://github.com/remotion-dev/recorder/blob/main/remotion/calculate-metadata/add-metadata-to-scene.ts#L56).++The default start padding is a 0.25 seconds and the default end padding is a 0.5 seconds.++These values are defined in [`remotion/calculate-metadata/get-start-end-frame.ts`](https://github.com/remotion-dev/recorder/blob/main/remotion/calculate-metadata/get-start-end-frame.ts#L8)diff --git a/packages/docs/docs/recorder/vlogging.mdx b/packages/docs/docs/recorder/external-recordings.mdxsimilarity index 95%rename from packages/docs/docs/recorder/vlogging.mdxrename to packages/docs/docs/recorder/external-recordings.mdxindex 91f90a92ee..d218397132 100644--- a/packages/docs/docs/recorder/vlogging.mdx+++ b/packages/docs/docs/recorder/external-recordings.mdx@@ -1,6 +1,6 @@----image: /generated/articles-docs-recorder-vlogging.png-title: Vlogging+image: /generated/articles-docs-recorder-external-recordings.png+title: External recordingscrumb: Recorder---diff --git a/packages/docs/docs/recorder/index.mdx b/packages/docs/docs/recorder/index.mdxindex 95e2b75a3d..2fb133cec8 100644--- a/packages/docs/docs/recorder/index.mdx+++ b/packages/docs/docs/recorder/index.mdx@@ -193,7 +193,7 @@ Your viewer watched the entire video! Now don't make them forget about you.The endcard is written with React and CSS, so can be easily customized.-## Custom styling+## CustomizationHaving access to the entire source code, you can use CSS to customize the look of the Recorder.@@ -218,6 +218,9 @@ Having access to the entire source code, you can use CSS to customize the look o</table></div>+The Recorder is built with TypeScript and React, and you can fully customize it's behavior.+It's a hackable video editor.+## RecordingRecord your facecam and screen in sync but independently, so you can change the layout later.@@ -242,7 +245,7 @@ Enable clean transitions between scenes - no matter if you change the layout dur## Chapters-Mark a scene as the beginning of a new chapter and automatically generated animated chapters.+Mark a scene as the beginning of a new chapter and automatically generate animated chapters.## B-Roll@@ -263,4 +266,4 @@ You can customize it to your liking if you have TypeScript and React knowledge.<sup id="youtube-captions">1)</sup> YouTube videos currently have their subtitlesburned in, but we plan to add support for exporting a .srt file.<br />-<sup id="tiktok-format">2)</sup> 9:16 format is not yet supported.+<sup id="tiktok-format">2)</sup> 9:16 format is not yet implemented.diff --git a/packages/docs/docs/recorder/record.mdx b/packages/docs/docs/recorder/record.mdxindex ea19a406c6..6f3f657570 100644--- a/packages/docs/docs/recorder/record.mdx+++ b/packages/docs/docs/recorder/record.mdx@@ -15,7 +15,7 @@ If you haven't done so, start the Remotion Recorder:bun start```-A Vite app will listen on `http://localhost:4000`.+A Vite app will listen on [`http://localhost:4000`](http://localhost:4000).Open this URL in the browser.Give the page access to the webcam and microphone.@@ -120,9 +120,7 @@ If you want to not use a take, just make another recording. The `copy.ts` script## Manually adding recordingsYou 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`.--// TOOD: Which ones exactly?+Simply name the file `webcam` followed by any number, like `10`, followed by one of the supported file extensions: `.mp4`, `.webm`, `.mkv` or `.mov`.The order your recordings appear in your video is based on the number suffix. Here is a way you could structure your recordings:diff --git a/packages/docs/sidebars.js b/packages/docs/sidebars.jsindex 3be230930d..ce9b6e9606 100644--- a/packages/docs/sidebars.js+++ b/packages/docs/sidebars.js@@ -962,6 +962,7 @@ module.exports = {collapsed: false,items: ["recorder/editing/editing",+ "recorder/editing/silence-removal","recorder/editing/captions","recorder/editing/layout","recorder/editing/scenes",@@ -975,7 +976,7 @@ module.exports = {"recorder/exporting","recorder/lambda-rendering","recorder/source-control",- "recorder/vlogging",+ "recorder/external-recordings","recorder/upgrading","recorder/roadmap","recorder/gear",diff --git a/packages/docs/src/data/articles.ts b/packages/docs/src/data/articles.tsindex f9388bb092..2fd5a9ac7c 100644--- a/packages/docs/src/data/articles.ts+++ b/packages/docs/src/data/articles.ts@@ -603,7 +603,7 @@ export const articles = [},{id: "contributing/ineligible",- title: "Ineligibile for bounties",+ title: "Ineligible for bounties",relativePath: "docs/contributing/ineligible.mdx",compId: "articles-docs-contributing-ineligible",crumb: "Contributing",@@ -2320,7 +2320,7 @@ export const articles = [},{id: "recorder/editing/editing",- title: "Editing",+ title: "Start editing",relativePath: "docs/recorder/editing/editing.mdx",compId: "articles-docs-recorder-editing-editing",crumb: "Recorder",@@ -2353,6 +2353,13 @@ export const articles = [compId: "articles-docs-recorder-editing-scenes",crumb: "Recorder",},+ {+ id: "recorder/editing/silence-removal",+ title: "Silence removal",+ relativePath: "docs/recorder/editing/silence-removal.mdx",+ compId: "articles-docs-recorder-editing-silence-removal",+ crumb: "Recorder",+ },{id: "recorder/editing/transitions",title: "Transitions",@@ -2367,6 +2374,13 @@ export const articles = [compId: "articles-docs-recorder-exporting",crumb: "Recorder",},+ {+ id: "recorder/external-recordings",+ title: "External recordings",+ relativePath: "docs/recorder/external-recordings.mdx",+ compId: "articles-docs-recorder-external-recordings",+ crumb: "Recorder",+ },{id: "recorder/gear",title: "Our Gear",@@ -2437,13 +2451,6 @@ export const articles = [compId: "articles-docs-recorder-upgrading",crumb: "Recorder",},- {- id: "recorder/vlogging",- title: "Vlogging",- relativePath: "docs/recorder/vlogging.mdx",- compId: "articles-docs-recorder-vlogging",- crumb: "Recorder",- },{id: "register-root",title: "registerRoot()",diff --git a/packages/docs/static/generated/articles-docs-contributing-ineligible.png b/packages/docs/static/generated/articles-docs-contributing-ineligible.pngindex 0b5ffe189d..c34bc9592f 100644Binary files a/packages/docs/static/generated/articles-docs-contributing-ineligible.png and b/packages/docs/static/generated/articles-docs-contributing-ineligible.png differdiff --git a/packages/docs/static/generated/articles-docs-recorder-editing-silence-removal.png b/packages/docs/static/generated/articles-docs-recorder-editing-silence-removal.pngnew file mode 100644index 0000000000..e5c0116ef5Binary files /dev/null and b/packages/docs/static/generated/articles-docs-recorder-editing-silence-removal.png differdiff --git a/packages/docs/static/generated/articles-docs-recorder-external-recordings.png b/packages/docs/static/generated/articles-docs-recorder-external-recordings.pngnew file mode 100644index 0000000000..a1602a7824Binary files /dev/null and b/packages/docs/static/generated/articles-docs-recorder-external-recordings.png differdiff --git a/packages/docs/static/generated/articles-docs-recorder-vlogging.png b/packages/docs/static/generated/articles-docs-recorder-vlogging.pngdeleted file mode 100644index fb7b2869f6..0000000000Binary files a/packages/docs/static/generated/articles-docs-recorder-vlogging.png and /dev/null differ