fix: cleanup FFmpeg temp files after export#514
Conversation
|
@divyanshi-adhikari is attempting to deploy a commit to the magic-peach1's projects Team on Vercel. A member of the Team first needs to authorize it. |
✅ PR Format Check Passed — @divyanshi-adhikariBasic format checks passed. A maintainer will review your code changes. This does not mean the PR is approved — it just means the format is correct. |
👋 Thanks for your PR, @divyanshi-adhikari!Welcome to Reframe — a browser-based video editor built for everyone 🎬 What happens next
Quick checklist
Useful links
Happy coding! 🎉 |
|
Hey @divyanshi-adhikari! Cleaning up FFmpeg temp files is a great idea, but the implementation has a significant regression. Issues:
What to do:
Thanks for working on this — just needs a more surgical fix! |
|
Hey @divyanshi-adhikari! Thank you for working on FFmpeg temp file cleanup — that's a real issue. However, this PR has significant regressions:
The cleanup intent is valid — if you want to add |
ab9a19c to
7dd6c76
Compare
|
Thanks for the review. I’ve updated the PR as per your feedback and reverted the unintended changes. The multi-format support, session-based filenames, and abort signal handling are all preserved now, and I’ve only added the FFmpeg cleanup logic in the finally block. |
|
Hey @divyanshi-adhikari! The build is now passing on this PR, but it has merge conflicts with git fetch upstream
git rebase upstream/main
# resolve any conflicts
git push --force-with-lease origin <your-branch>Once the conflicts are resolved and CI passes on the updated branch, this will be reviewed for merge. Thanks! |
|
Hey @divyanshi-adhikari! Cleaning up FFmpeg temp files is a good memory management improvement. This PR has merge conflicts with git fetch origin
git rebase origin/main
git push --force-with-lease |
|
Hey @divyanshi-adhikari! This PR needs a rebase on the latest git fetch origin
git rebase origin/main
git push --force-with-leaseOnce CI (build/lint/typecheck) passes, we'll review and merge! |
|
Hey @divyanshi-adhikari! This PR looks interesting (FFmpeg temp file cleanup). The build/lint/typecheck CI hasn't run yet. Please rebase onto the latest git fetch upstream && git rebase upstream/main && git push --force-with-leaseOnce CI passes, we'll review and merge! |
|
Hey @divyanshi-adhikari! 👋 We've added a new requirement for all PRs: a screen recording showing your changes working on your local machine must be attached before a PR can be merged. Please add a recording to this PR that shows:
How to record:
Once you have the recording, drag the file directly into a comment on this PR, or paste a Loom link. This is now a hard requirement — see CONTRIBUTING.md for full details. Thanks for contributing to Reframe! 🎬 |
|
Hi @magic-peach ffmpeg.ts.-.reframe.-.Visual.Studio.Code.2026-05-19.14-32-00.online-video-cutter.com.mp4 |
|
Hi @magic-peach I hope you are doing well. Sorry if I’m bothering you. I just wanted to kindly ask if you could give me a brief idea of when this PR might be merged. I would be really grateful. Thank you. |
|
Can you please add gssoc:approved label to it. |
|
Hey @divyanshi-adhikari! Cleaning up FFmpeg temp files after export is an important fix to prevent OPFS/memory leaks. This PR has merge conflicts with git fetch origin
git rebase origin/main
# resolve any conflicts
git push --force-with-leaseOnce rebased and CI (build/lint/typecheck) passes, this will be reviewed for merging. Thanks! |
|
Hi @magic-peach I have resolved the conflict. And also, can you please add gssoc:approved tag instead of gssoc'26 I be really grateful. Thank you! |
|
@divyanshi-adhikari Cleaning up FFmpeg temp files with a git fetch origin
git rebase origin/main
git push --force-with-leaseRegarding the Once CI (build/lint/typecheck) passes, this will be ready for merge! |
366cc89 to
74ce116
Compare
|
Hi @magic-peach, I hope you are doing great. I have solved the conflicts. Please check |
Fix: Cleanup FFmpeg temporary files after export
Problem
While exporting videos using FFmpeg WASM, temporary input/output files were being created inside the virtual filesystem but were not always properly deleted after the export process.
This caused:
What was changed
finallyblockHow it was tested
Issue reference
Fixes #11