Skip to content

[Bug] FFmpeg virtual filesystem accumulates temp files between exports #11

@magic-peach

Description

@magic-peach

Bug Description

Each export writes a temporary file to the FFmpeg WASM virtual filesystem using ffmpeg.writeFile(). However, after export, the temp file is not always deleted with ffmpeg.deleteFile(). This causes the virtual filesystem to accumulate files across multiple exports in the same session, wasting memory and potentially causing issues with file name conflicts.

Steps to Reproduce

  1. Upload a video and export
  2. Upload another video and export again
  3. Repeat multiple times
  4. Browser memory usage increases with each export

Expected Behavior

Temporary files should be deleted from the virtual filesystem after each export, both on success and failure.

File Reference

  • src/lib/ffmpeg.tsexportVideo() function, cleanup in finally block

Metadata

Metadata

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions