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
- Upload a video and export
- Upload another video and export again
- Repeat multiple times
- 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.ts — exportVideo() function, cleanup in finally block
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 withffmpeg.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
Expected Behavior
Temporary files should be deleted from the virtual filesystem after each export, both on success and failure.
File Reference
src/lib/ffmpeg.ts—exportVideo()function, cleanup in finally block