Skip to content

🎥 Make videos programmatically with React

Docs: Troubleshooting guide for "No frame found at position"

Jonny Burgere8c559abacf6
diff --git a/packages/compositor/rust/opened_stream.rs b/packages/compositor/rust/opened_stream.rs
index 30fe96d3c5..cdd8ba17d8 100644
--- a/packages/compositor/rust/opened_stream.rs
+++ b/packages/compositor/rust/opened_stream.rs
@@ -428,7 +428,7 @@ impl OpenedStream {
return Err(std::io::Error::new(
ErrorKind::Other,
format!(
- "No frame found at position {} for source {} (original source = {}). If you think this should work, file an issue at https://remotion.dev/report or post it in https://remotion.dev/discord. Post the problematic video and the output of `npx remotion versions`.",
+ "No frame found at position {} for source {} (original source = {}). See https://remotion.dev/docs/troubleshooting/no-frame-found-at-position for troubleshooting help.",
target_position, self.src, self.original_src
),
))?;
diff --git a/packages/docs/docs/troubleshooting/no-frame-found-at-position.mdx b/packages/docs/docs/troubleshooting/no-frame-found-at-position.mdx
new file mode 100644
index 0000000000..6df194664b
--- /dev/null
+++ b/packages/docs/docs/troubleshooting/no-frame-found-at-position.mdx
@@ -0,0 +1,30 @@
+---
+image: /generated/articles-docs-troubleshooting-no-frame-found-at-position.png
+id: no-frame-found-at-position
+sidebar_label: No frame found at position
+title: No frame found at position error message
+crumb: 'Troubleshooting'
+---
+
+If you get an error:
+
+```sh
+Compositor error: No frame found at position 64512 for source /tmp/remotion-assetsynpc3sc0cn/remotion-assets-dir/9569510174915195.mp4 (original source = https://remotion.dev). If you think this should work, file an issue at https://remotion.dev/report or post it in https://remotion.dev/discord. Post the problematic video and the output of `npx remotion versions`.\n 0: <remotion::errors::ErrorWithBacktrace as core::convert::From<std::io::error::Error>>::from\n 1: remotion::ffmpeg::extract_frame\n 2: remotion::thread::WorkerThread::run_on_thread\n 3: std::sys::backtrace::__rust_begin_short_backtrace\n 4: core::ops::function::FnOnce::call_once{{vtable.shim}}\n 5: std::sys::pal::unix::thread::Thread::new::thread_start\n 6: start_thread\n 7: thread_start\n\n at onMessage (/var/task/index.js:106757:41)\n at processInput (/var/task/index.js:63575:9)\n at Socket.onData (/var/task/index.js:63597:9)\n at Socket.emit (node:events:518:28)\n at addChunk (node:internal/streams/readable:559:12)\n at readableAddChunkPushByteMode (node:internal/streams/readable:510:3)\n at Readable.push (node:internal/streams/readable:390:5)\n at Pipe.onStreamRead (node:internal/stream_base_commons:190:23)\n at onMessage (/var/task/index.js:106757:41)\n at processInput (/var/task/index.js:63575:9)\n at Socket.onData (/var/task/index.js:63597:9)\n at Socket.emit (node:events:518:28)\n at addChunk (node:internal/streams/readable:559:12)\n at readableAddChunkPushByteMode (node:internal/streams/readable:510:3)\n at Readable.push (node:internal/streams/readable:390:5)\n at Pipe.onStreamRead (node:internal/stream_base_commons:190:23)
+```
+
+It means that the cache which is kept for serving frames for [`<OffthreadVideo>`](/docs/offthreadvideo) has failed to serve a frame for the given position.
+
+## To little memory available
+
+The most likely cause is that the memory available for the OffthreadVideo cache is too small and any frames that are being extracted are being evicted from the cache immediately.
+
+Consider increasing the memory available of your machine, or allowing the OffthreadVideo cache to be bigger by setting the [`offthreadVideoCacheSizeInBytes`](/docs/renderer/render-media#offthreadvideocachesizeinbytes) prop to a higher value. Only set this to a value that is lower than the memory actually available, otherwise the system might kill the process.
+
+## Video has a gap
+
+Another reason might be that the video has a gap in the frames that are being extracted.
+For example, a screen recording that does not have any movement for a few seconds usually keeps a gap in the video file where there are no frames.
+
+OffthreadVideo currently struggles with these types of videos as the closest frame has too much of a deviation from the requested time.
+
+In this case, we recommend to consult with the Remotion team by filing an issue on [GitHub](https://remotion.dev/issue) and submitting the [video](https://remotion.dev/report).
diff --git a/packages/docs/sidebars.js b/packages/docs/sidebars.js
index 6146168d91..9a15a13a44 100644
--- a/packages/docs/sidebars.js
+++ b/packages/docs/sidebars.js
@@ -1117,6 +1117,7 @@ module.exports = {
'troubleshooting/subpixel-rendering',
'troubleshooting/could-not-find-executable-to-run',
'troubleshooting/stuck-render',
+ 'troubleshooting/no-frame-found-at-position',
],
},
{
diff --git a/packages/docs/src/data/articles.ts b/packages/docs/src/data/articles.ts
index 1d6edf72f1..379e31a0af 100644
--- a/packages/docs/src/data/articles.ts
+++ b/packages/docs/src/data/articles.ts
@@ -5523,6 +5523,15 @@ export const articles = [
noAi: false,
slug: 'troubleshooting/nextjs-image',
},
+ {
+ id: 'no-frame-found-at-position',
+ title: 'No frame found at position error message',
+ relativePath: 'docs/troubleshooting/no-frame-found-at-position.mdx',
+ compId: 'articles-docs-troubleshooting-no-frame-found-at-position',
+ crumb: 'Troubleshooting',
+ noAi: false,
+ slug: 'troubleshooting/no-frame-found-at-position',
+ },
{
id: 'stuck-render',
title: 'Debugging stuck renders',
diff --git a/packages/docs/static/generated/articles-docs-troubleshooting-no-frame-found-at-position.png b/packages/docs/static/generated/articles-docs-troubleshooting-no-frame-found-at-position.png
new file mode 100644
index 0000000000..63cf204322
Binary files /dev/null and b/packages/docs/static/generated/articles-docs-troubleshooting-no-frame-found-at-position.png differ