-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Platform
Windows 11
Browser
Chrome 137
Current Behavior
The project currently lists the following dependencies in package.json:
https://github.com/OpenCut-app/OpenCut/blob/main/apps/web/package.json#L17-L19
These appear to be unnecessary for the current codebase and introduce extra bundle size, install time, and (potentially) licensing / security surface. We already have (or can adopt) a better alternative that does not require shipping the full WebAssembly-based FFmpeg packages.
Why This Is a Bug
- Adds large transitive downloads (WASM binaries) that are never invoked in the code paths I inspected.
- Increases cold start / build time.
- Potentially bloats client bundle (if any part is bundled) or node_modules size.
- Creates confusion for contributors who may assume FFmpeg-based media processing is required.
Expected Behavior
The project should not include heavyweight media-processing dependencies if they are not required. Media functionality (if any) should rely on the chosen alternative approach.
Recurrence Probability
Always
Steps To Reproduce
- Clone the repo and install dependencies (pnpm install / npm install / yarn install).
- Observe that @ffmpeg/core, @ffmpeg/ffmpeg, and @ffmpeg/util are installed.
- Search the codebase for imports:
- grep -R "@ffmpeg/ffmpeg" src/ (or equivalent) returns no meaningful usage (only maybe leftover comments or none at all).
- Run the application / build; functionality works without actually invoking these packages.
Anything else?
@mazeincoding should be able to provide a better alternative.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working