Skip to content

🎥 Make videos programmatically with React

add flickering video to docs

Jonny Burgerf22d9baaad88
diff --git a/packages/docs/components/YouTube.tsx b/packages/docs/components/YouTube.tsx
index 60628f306b..2ebd2d784f 100644
--- a/packages/docs/components/YouTube.tsx
+++ b/packages/docs/components/YouTube.tsx
@@ -2,6 +2,7 @@ import React from "react";
const link: React.CSSProperties = {
color: "inherit",
+ textDecoration: "none",
};
const container: React.CSSProperties = {
diff --git a/packages/docs/docs/deploy-remotion-studio.md b/packages/docs/docs/deploy-remotion-studio.md
index 059c76a53a..f01b161351 100644
--- a/packages/docs/docs/deploy-remotion-studio.md
+++ b/packages/docs/docs/deploy-remotion-studio.md
@@ -6,8 +6,6 @@ sidebar_label: Deploy Remotion Studio
crumb: "Building video apps"
---
-import { YouTube } from "../components/YouTube";
-
<YouTube
minutes={3}
href="https://www.youtube.com/watch?v=430B9xSs06U"
diff --git a/packages/docs/docs/flickering.md b/packages/docs/docs/flickering.md
index 5540b8e1ad..bcf53a4620 100644
--- a/packages/docs/docs/flickering.md
+++ b/packages/docs/docs/flickering.md
@@ -5,6 +5,13 @@ title: Flickering
crumb: "How to avoid"
---
+<YouTube
+ minutes={2}
+ href="https://www.youtube.com/watch?v=M7BOPECeqV8"
+ thumb="https://i.ytimg.com/vi/M7BOPECeqV8/hq720.jpg"
+ title="Avoid this common mistake in Remotion"
+/>
+
If your video flickers or suffers from choppiness during rendering, it is an indication that you have a **multi-threading issue**.
The rendering process of Remotion works as follows:
diff --git a/packages/docs/docs/interpolate.md b/packages/docs/docs/interpolate.md
index 951820a2cf..6c61c45173 100644
--- a/packages/docs/docs/interpolate.md
+++ b/packages/docs/docs/interpolate.md
@@ -5,8 +5,6 @@ id: interpolate
crumb: "API"
---
-import { YouTube } from "../components/YouTube";
-
<YouTube
minutes={6}
href="https://www.youtube.com/watch?v=sff_CdWw_-c"
@@ -48,7 +46,7 @@ const opacity = interpolate(
frame,
[0, 20, durationInFrames - 20, durationInFrames],
// v--v---v----------------------v
- [0, 1, 1, 0]
+ [0, 1, 1, 0],
);
```
diff --git a/packages/docs/docs/lambda.md b/packages/docs/docs/lambda.md
index 3551531ae5..43ef216bfd 100644
--- a/packages/docs/docs/lambda.md
+++ b/packages/docs/docs/lambda.md
@@ -5,8 +5,6 @@ sidebar_label: Overview
title: "@remotion/lambda"
---
-import { YouTube } from "../components/YouTube";
-
<YouTube
minutes={11}
href="https://youtu.be/dQyPUasZY7I"
diff --git a/packages/docs/docs/lambda/setup.md b/packages/docs/docs/lambda/setup.md
index 33abbfe147..ce27823f88 100644
--- a/packages/docs/docs/lambda/setup.md
+++ b/packages/docs/docs/lambda/setup.md
@@ -8,7 +8,6 @@ crumb: "Lambda"
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
-import { YouTube } from "../../components/YouTube";
<YouTube
minutes={18}
diff --git a/packages/docs/docs/lambda/troubleshooting/debug.md b/packages/docs/docs/lambda/troubleshooting/debug.md
index 93d758f60f..9de4cce844 100644
--- a/packages/docs/docs/lambda/troubleshooting/debug.md
+++ b/packages/docs/docs/lambda/troubleshooting/debug.md
@@ -6,8 +6,6 @@ title: Debugging failed Lambda renders
crumb: "Lambda"
---
-import { YouTube } from "../../../components/YouTube";
-
<YouTube
minutes={11}
href="https://youtu.be/pwVEzTQ6VYE"
diff --git a/packages/docs/docs/renderer/get-silent-parts.md b/packages/docs/docs/renderer/get-silent-parts.md
index 01f34f8f74..22221c1556 100644
--- a/packages/docs/docs/renderer/get-silent-parts.md
+++ b/packages/docs/docs/renderer/get-silent-parts.md
@@ -5,8 +5,6 @@ title: getSilentParts()
crumb: "@remotion/renderer"
---
-import { YouTube } from "../../components/YouTube";
-
<YouTube
minutes={2}
href="https://www.youtube.com/watch?v=OHrvTMgiXWc"
diff --git a/packages/docs/docs/visual-editing.md b/packages/docs/docs/visual-editing.md
index 13a0da4d82..be498d8802 100644
--- a/packages/docs/docs/visual-editing.md
+++ b/packages/docs/docs/visual-editing.md
@@ -6,8 +6,6 @@ sidebar_label: Visual editing
crumb: "How To"
---
-import { YouTube } from "../components/YouTube";
-
<YouTube
minutes={6}
href="https://www.youtube.com/watch?v=NX9YTOsLGpQ"
diff --git a/packages/docs/src/theme/MDXComponents.js b/packages/docs/src/theme/MDXComponents.js
index 767c2017e3..abff9f7756 100644
--- a/packages/docs/src/theme/MDXComponents.js
+++ b/packages/docs/src/theme/MDXComponents.js
@@ -3,9 +3,11 @@ import MDXComponents from "@theme-original/MDXComponents";
import { Demo } from "../../components/demos";
import { ExperimentalBadge } from "../../components/Experimental";
import { InlineStep, Step } from "../../components/InlineStep";
+import { YouTube } from "../../components/YouTube";
import { AvailableFrom } from "../components/AvailableFrom";
import { Credits } from "../components/Credits";
import { Options } from "../components/Options";
+
export default {
...MDXComponents,
InlineStep,
@@ -15,4 +17,5 @@ export default {
AvailableFrom,
Options,
Credits,
+ YouTube,
};