Skip to main content

在位置未找到帧的错误消息

如果你遇到错误:

🌐 If you get an error:

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)

这意味着用于为 <OffthreadVideo> 提供帧的缓存未能为给定位置提供帧。

🌐 It means that the cache which is kept for serving frames for <OffthreadVideo> has failed to serve a frame for the given position.

可用内存很少

🌐 To little memory available

最可能的原因是用于 OffthreadVideo 缓存的可用内存太小,正在提取的任何帧都会立即从缓存中被清除。

🌐 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.

考虑增加你机器的可用内存,或者通过将 offthreadVideoCacheSizeInBytes 属性设置为更高的值来允许 OffthreadVideo 缓存变大。仅将其设置为低于实际可用内存的值,否则系统可能会终止该进程。

🌐 Consider increasing the memory available of your machine, or allowing the OffthreadVideo cache to be bigger by setting the 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 目前在处理这类视频时存在困难,因为最接近的帧与请求的时间偏差太大。

🌐 OffthreadVideo currently struggles with these types of videos as the closest frame has too much of a deviation from the requested time.

在这种情况下,我们建议通过在 GitHub 上提交问题并提交 视频 来咨询 Remotion 团队。

🌐 In this case, we recommend to consult with the Remotion team by filing an issue on GitHub and submitting the video.