🎥 Make videos programmatically with React
b roll constraints
Jonny Burgera403835a9f70
diff --git a/packages/docs/docs/recorder/captions.mdx b/packages/docs/docs/recorder/captions.mdxindex 195a89953c..59eaefe6a8 100644--- a/packages/docs/docs/recorder/captions.mdx+++ b/packages/docs/docs/recorder/captions.mdx@@ -12,7 +12,7 @@ Each time you record a clip with the Remotion Recorder, captions are automaticalThe 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.-:::info+:::noteCaptions are only generated for files with the `webcam` prefix.:::@@ -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:+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:```bun sub.tsdiff --git a/packages/docs/docs/recorder/editing/b-roll.mdx b/packages/docs/docs/recorder/editing/b-roll.mdxindex 97128f4ef7..7c15e4d870 100644--- a/packages/docs/docs/recorder/editing/b-roll.mdx+++ b/packages/docs/docs/recorder/editing/b-roll.mdx@@ -4,11 +4,18 @@ title: B-Rollcrumb: Recorder----# B-roll+You can overlay your recorded scenes with additional video or photo footage by adding `bRoll` elements in the right sidebar.-You can overlay your recorded scenes with additional video or photo footage by adding b-roll elements in the right sidebar.--Add the footage you want to use to the public folder and select it from the b-roll drop-down menu for the scene you want to overlay.+Add the footage you want to use to the `public` folder and select it from the `bRoll` drop-down menu for the scene you want to overlay.Configure when and for how long to play an asset by adjusting the `from` and `durationInFrames` values.-The `from` value is relative to the scene to which you are adding the b-roll and defines the frame from which the asset is to be displayed.+The `from` value is relative to the scene to which you are adding the B-roll and defines the frame from which the asset is to be displayed.++## Constraints++The data that you add in bRoll is postprocessed to enforce the following rules:++1. If a second B-Roll overlays the first B-Roll, the first B-Roll may not disappear before the second B-Roll disappears.+2. A B-Roll must have disappeared before the transition to the next scene begins.++These constraints are defined in [`remotion/scenes/BRoll/apply-b-roll-rules.ts`](https://github.com/remotion-dev/recorder/tree/main/remotion/scenes/BRoll/apply-b-roll-rules.ts).