Skip to content

🎥 Make videos programmatically with React

Docs: Recommend `@remotion/media` in more places (#9014)

Jonny Burgerc0fc2ebe744b
diff --git a/packages/docs/docs/miscellaneous/absolute-paths.mdx b/packages/docs/docs/miscellaneous/absolute-paths.mdx
index ac3cdf7179..cb601558de 100644
--- a/packages/docs/docs/miscellaneous/absolute-paths.mdx
+++ b/packages/docs/docs/miscellaneous/absolute-paths.mdx
@@ -75,7 +75,7 @@ npx serve --cors C://Users/Joe/Documents
```
You will get a URL that you can use to access the folder via HTTP.
-Pass URLs of assets to `<Img>`, `<Video>`, `<OffthreadVideo>`, `<Audio>`, `<Gif>`, `<Html5Video>`, `<Html5Audio>` tags to use them in Remotion.
+Pass URLs of assets to [`<Video>`](/docs/media/video), [`<Audio>`](/docs/media/audio), `<Img>`, `<Gif>`, `<OffthreadVideo>`, `<Html5Video>`, `<Html5Audio>` tags to use them in Remotion.
If you need to spawn a server programmatically, use [`serve-handler`](https://www.npmjs.com/package/serve-handler).
diff --git a/packages/docs/docs/multiple-fps.mdx b/packages/docs/docs/multiple-fps.mdx
index 34779aa1b7..c59a61e186 100644
--- a/packages/docs/docs/multiple-fps.mdx
+++ b/packages/docs/docs/multiple-fps.mdx
@@ -106,7 +106,7 @@ export const Root: React.FC = () => {
## FPS Convert is discouraged
Previously, this page showed a FPS converter snippet.
-It's usage is not recommended because it does not work with media tags (`<Html5Video>`, `<Audio>`, `<OffthreadVideo>`, etc.).
+It's usage is not recommended because it does not work with media tags ([`<Video>`](/docs/media/video), [`<Audio>`](/docs/media/audio), `<OffthreadVideo>`, `<Html5Video>`, etc.).
## See also
diff --git a/packages/docs/docs/non-seekable-media.mdx b/packages/docs/docs/non-seekable-media.mdx
index 117f6ba9ae..83b542497b 100644
--- a/packages/docs/docs/non-seekable-media.mdx
+++ b/packages/docs/docs/non-seekable-media.mdx
@@ -80,7 +80,7 @@ Consider one of these solutions:
- Serve the media from a webhost that supports the `Range` header and returns a `Content-Length` and `Content-Range` header.
- Download the media and import it locally using an `import` or `require()` statement.
-- Use the [`<OffthreadVideo>`](/docs/offthreadvideo) component which will render the video fine. You may still see problems during playback in the Remotion Studio or the [`<Player>`](/docs/player).
+- Use the [`<Video>`](/docs/media/video) component from `@remotion/media`, which will render the video fine. You may still see problems during playback in the Remotion Studio or the [`<Player>`](/docs/player).
## See also
diff --git a/packages/docs/docs/performance.mdx b/packages/docs/docs/performance.mdx
index 5ff4e63daf..d3e055006d 100644
--- a/packages/docs/docs/performance.mdx
+++ b/packages/docs/docs/performance.mdx
@@ -10,6 +10,14 @@ Video rendering is one of the most heavy workloads a computer can take on. Remot
Your experience is also dependent on your code and the hardware you run it on. Review the following performance insights to find opportunities for speeding up your render.
+## Videos
+
+Use [`<Video>`](/docs/media/video) from `@remotion/media` for the best video rendering performance.
+
+Both [`<Html5Video>`](/docs/html5-video) (formerly just called `<Video>`, from the `remotion` package) and [`<OffthreadVideo>`](/docs/offthreadvideo) are not optimized. Consider migrating if you are still using one of the old video tags.
+
+See: [Comparison of video tags](/docs/video-tags)
+
## Concurrency
The `--concurrency` flag you set can influence the rendering speed both positively and negatively. A concurrency too high and a concurrency too low can both be coutnerproductive. Use the [`npx remotion benchmark`](/docs/cli/benchmark) command to find the optimal concurrency.
@@ -28,14 +36,6 @@ Consider replacing those effects with a precomputed image for the best performan
Read the [considerations about using the GPU](/docs/gpu).
-## Videos
-
-Both [`<Html5Video>`](/docs/html5-video) (formerly just called `<Video>`, from the `remotion` package) and [`<OffthreadVideo>`](/docs/offthreadvideo) are not optimized.
-
-We made a new [`<Video>`](/docs/media/video) tag that has the optimal performance. Consider using it if you are still using one of the old video tags.
-
-See: [Comparison of video tags](/docs/video-tags)
-
## Slow JavaScript code
Remotion can also suffer from JavaScript bottlenecks that are introduced in your code. [Debug your render and log timing information](/docs/troubleshooting/debug-failed-render) to find slow parts of your code.
diff --git a/packages/docs/sidebars.ts b/packages/docs/sidebars.ts
index 9c9db7ce96..3aa228c1d4 100644
--- a/packages/docs/sidebars.ts
+++ b/packages/docs/sidebars.ts
@@ -635,7 +635,6 @@ const sidebars: SidebarsConfig = {
'renderer/make-cancel-signal',
'renderer/ensure-ffmpeg',
'renderer/ensure-ffprobe',
- 'renderer/get-can-extract-frames-fast',
'renderer/get-video-metadata',
'renderer/get-silent-parts',
'renderer/combine-chunks',