Memory usage grows indefinitely when rendering large video segments loaded from OPFS
We're running into a severe out-of-memory (OOM) error when using Remotion. The issue occurs after segmenting a video stored in the OPFS (Origin Private File System) on the Remotion timeline and then refreshing the page.
It appears that Remotion attempts to load data from the localStorage itrack after reload, which I suspect leads to duplicate video copies being loaded into memory, ultimately exhausting the browser's resources.
Thanks for reporting this!
I'm unsure what the issue relates to - we do not store any media in localStorage, we do store thumbnails for the timeline in the Remotion Studio in IndexedDB though.
Are you referring to this? Have you had any concrete findings where IndexedDB becomes full? Does showInTimeline={false} for the videos solve the issue?