🎥 Make videos programmatically with React
Docs: Troubleshooting article about loading Pexels videos
Jonny Burger45c34427b200
diff --git a/packages/docs/docs/miscellaneous/pexels.mdx b/packages/docs/docs/miscellaneous/pexels.mdxnew file mode 100644index 0000000000..f6ef2fc6c2--- /dev/null+++ b/packages/docs/docs/miscellaneous/pexels.mdx@@ -0,0 +1,29 @@+---+image: /generated/articles-docs-miscellaneous-pexels.png+sidebar_label: Pexels videos+title: Timeouts with Pexels videos+crumb: 'Troubleshooting'+---++When including videos from Pexels, especially when rendering on Remotion Lambda, you may encounter the following error:++```+A delayRender() 'Loading <Video> duration with src="https://videos.pexels.com/video-files/5182920/5182920-hd_720_1280_25fps.mp4"' was called but not cleared after 28000ms.+```++or++```+A delayRender() "Loading <Img> with src=http://localhost:3000/proxy?src=https://videos.pexels.com/video-files/5182920/5182920-hd_720_1280_25fps.mp4" was called but not cleared after 28000ms. See https://remotion.dev/docs/timeout for help+```++## Problem++Pexels throttles (artificially slows down network speed) videos when they are requested often.+Since each of the many Lambda functions spawned loads the video, it leads to a lot of requests in a short amount of time.++These timeouts are not a problem from Remotion's side.++## Solution++Instead of using direct links from services like Pexels, download and re-host the videos on your own servers, or in a S3 bucket.diff --git a/packages/docs/sidebars.js b/packages/docs/sidebars.jsindex 51e5dc7214..beadeb5636 100644--- a/packages/docs/sidebars.js+++ b/packages/docs/sidebars.js@@ -1228,6 +1228,7 @@ module.exports = {'miscellaneous/absolute-paths','miscellaneous/live-streaming','miscellaneous/parse-media-vs-get-video-metadata',+ 'miscellaneous/video-loading-issues','compare/motion-canvas',],},diff --git a/packages/docs/src/data/articles.ts b/packages/docs/src/data/articles.tsindex a3a31314af..1d6edf72f1 100644--- a/packages/docs/src/data/articles.ts+++ b/packages/docs/src/data/articles.ts@@ -3086,6 +3086,15 @@ export const articles = [noAi: false,slug: 'miscellaneous/parse-media-vs-get-video-metadata',},+ {+ id: 'miscellaneous/pexels',+ title: 'Timeouts with Pexels videos',+ relativePath: 'docs/miscellaneous/pexels.mdx',+ compId: 'articles-docs-miscellaneous-pexels',+ crumb: 'Troubleshooting',+ noAi: false,+ slug: 'miscellaneous/pexels',+ },{id: 'miscellaneous/render-in-browser',title: 'Can I render videos in the browser?',diff --git a/packages/docs/static/generated/articles-docs-miscellaneous-pexels.png b/packages/docs/static/generated/articles-docs-miscellaneous-pexels.pngnew file mode 100644index 0000000000..7a8317912aBinary files /dev/null and b/packages/docs/static/generated/articles-docs-miscellaneous-pexels.png differ