Skip to content

🎥 Make videos programmatically with React

delayRender() proxy docs

Jonny Burger12d5edfaa5b6
diff --git a/packages/docs/docs/troubleshooting/delay-render-proxy.md b/packages/docs/docs/troubleshooting/delay-render-proxy.mdx
similarity index 53%
rename from packages/docs/docs/troubleshooting/delay-render-proxy.md
rename to packages/docs/docs/troubleshooting/delay-render-proxy.mdx
index b023d63d8f..7e1983bf70 100644
--- a/packages/docs/docs/troubleshooting/delay-render-proxy.md
+++ b/packages/docs/docs/troubleshooting/delay-render-proxy.mdx
@@ -19,8 +19,51 @@ To be able to extract a frame, `<OffthreadVideo>` needs to:
- Open the file and seek to the correct position
- Decode the frame and convert it into an image
-Especially for large files which take some time to download, this error may occur. In order to resolve it, consider increasing the timeout.
+Especially for large files which take some time to download, this error may occur.
+
+## Increase the timeout
+
+Consider increasing the timeout using the [`delayRenderTimeoutInMilliseconds`](/docs/offthreadvideo/#delayrendertimeoutinmilliseconds) prop.
+
+## Debug using verbose logging
You can also [enable verbose logging](/docs/troubleshooting/debug-failed-render) to see the progress of the work that `<OffthreadVideo>` is doing. In the usual case, you can understand from the timings why the timeout occurred.
+## Chunk the video
+
+Currently, `<OffthreadVideo>` needs to download the entire video in order to extract a frame (we work on eliminating this need in the future).
+
+If you are loading a large video, consider chunking it into smaller parts and only load part of the video at a time.
+
+For example, create a `<Series>` of `<OffthreadVideo>` components, each with a different `src` prop.
+
+```tsx twoslash
+import { Series, useVideoConfig, OffthreadVideo, staticFile } from "remotion";
+
+const parts = ["part1.mp4", "part2.mp4", "part3.mp4"];
+
+const SeriesTesting: React.FC = () => {
+ const { fps } = useVideoConfig();
+
+ return (
+ <Series>
+ {parts.map((part) => {
+ return (
+ <Series.Sequence durationInFrames={30 * 60}>
+ <OffthreadVideo src={staticFile(part)} />
+ </Series.Sequence>
+ );
+ })}
+ </Series>
+ );
+};
+```
+
+## Use a faster CDN
+
+Ensure using a place to host your video that has enough egress bandwidth capacity.
+Place the video onto a server that is close to your render geographically.
+
+---
+
If you believe this error was triggered by a bug in Remotion, please [open an issue](/docs/get-help).