Skip to content

🎥 Make videos programmatically with React

timeouts

Jonny Burger4c3a745b45f5
diff --git a/packages/docs/docs/delay-render.md b/packages/docs/docs/delay-render.md
index 3a08b11651..8fbd43ea97 100644
--- a/packages/docs/docs/delay-render.md
+++ b/packages/docs/docs/delay-render.md
@@ -56,6 +56,8 @@ See the [Timeout](/docs/timeout) page to troubleshoot timeouts.
## Adding a label
+_Available from v2.6.13_
+
If you encounter a timeout and don't know where it came from, you can add a label as a parameter:
```tsx twoslash
diff --git a/packages/docs/docs/timeout.md b/packages/docs/docs/timeout.md
index 2e12d41360..b544e7a1c7 100644
--- a/packages/docs/docs/timeout.md
+++ b/packages/docs/docs/timeout.md
@@ -29,6 +29,10 @@ If you rely on network assets such as fonts, images, videos or audio and you don
Chrome has the codecs needed for displaying MP4 videos, but Chromium doesn't. If you try to load an MP4 video or an unsupported audio codec in Chromium, it currently leads to a timeout.
+:::warning
+On Linux, if no version of Chrome is installed, one will be downloaded that does not contain codecs for MP3 or MP4. We will address this in a future version of Remotion.
+:::
+
**Workaround**: Convert videos to WebM or use Chrome instead of Chromium.
### Memory pressure
@@ -63,6 +67,26 @@ You can increase the default timeout from v2.6.3 on:
- Using the `timeoutInMilliseconds` option in [`renderStill()`](/docs/render-still#timeoutinmilliseconds), [`renderFrames()`](/docs/render-frames#timeoutinmilliseconds) and [`getCompositions()`](/docs/get-compositions#timeoutinmilliseconds)
- Using the [`Config.Puppeteer.setTimeoutInMilliseconds()`](/docs/config#settimeoutinmilliseconds) option in the config file
+## Adding a label to help debugging
+
+_Available from v2.6.13_
+
+If you encounter a timeout and don't know where it came from, you can add a label as a parameter:
+
+```tsx twoslash
+import { delayRender } from "remotion";
+
+// ---cut---
+
+delayRender("Fetching data from API...");
+```
+
+If the call times out, the label will be referenced in the error message:
+
+```
+Uncaught Error: A delayRender() "Fetching data from API..." was called but not cleared after 28000ms. See https://remotion.dev/docs/timeout for help. The delayRender was called
+```
+
## See also
- [delayRender()](/docs/delay-render)