Skip to content

🎥 Make videos programmatically with React

dark mode for ffmpeg

Jonny Burger0049aae02e80
diff --git a/packages/docs/blog/2022-11-16-remotion-3-3.md b/packages/docs/blog/2022-11-16-remotion-3-3.md
index d2b3e68ef4..23f7af7ea7 100644
--- a/packages/docs/blog/2022-11-16-remotion-3-3.md
+++ b/packages/docs/blog/2022-11-16-remotion-3-3.md
@@ -12,13 +12,14 @@ import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
import {MuxVideo} from '../src/components/MuxVideo';
import {TableOfContents} from '../components/TableOfContents/paths';
+import {FfmpegVideo} from '../components/FFmpegVideo'
## No more FFmpeg installation!
Now, when you are rendering a video and don't have FFmpeg installed, Remotion will download a copy for you.
Previously, installing FFmpeg required 7 steps on Windows and took several minutes when using Homebrew on macOS.
-<video src="/img/ffmpegauto.mp4" autoPlay loop muted playsInline/>
+<FfmpegVideo />
When deploying Remotion on a server, you can now also let Remotion install FFmpeg for you using the [`ensureFfmpeg()`](/docs/renderer/ensure-ffmpeg) API or the [`npx remotion install ffmpeg`](/docs/cli/install) command. Learn more about [FFmpeg auto-install](/docs/ffmpeg) here.
diff --git a/packages/docs/components/FFmpegVideo.tsx b/packages/docs/components/FFmpegVideo.tsx
new file mode 100644
index 0000000000..0a240f7f40
--- /dev/null
+++ b/packages/docs/components/FFmpegVideo.tsx
@@ -0,0 +1,15 @@
+import { useColorMode } from "@docusaurus/theme-common";
+import React from "react";
+
+export const FfmpegVideo: React.FC = () => {
+ const { isDarkTheme } = useColorMode();
+ return (
+ <video
+ src={isDarkTheme ? "/img/ffmpegauto-dark.mp4" : "/img/ffmpegauto.mp4"}
+ autoPlay
+ muted
+ playsInline
+ loop
+ />
+ );
+};
diff --git a/packages/docs/static/img/ffmpegauto-dark.mp4 b/packages/docs/static/img/ffmpegauto-dark.mp4
new file mode 100644
index 0000000000..f4d80421b6
Binary files /dev/null and b/packages/docs/static/img/ffmpegauto-dark.mp4 differ