A2: Fragmented MP4 via mp4box.js #2

Closed
opened 2026-05-04 21:18:26 +00:00 by obuvuyoviz26-lab · 0 comments
obuvuyoviz26-lab commented 2026-05-04 21:18:26 +00:00 (Migrated from github.com)

Part of v5 webapp migration — Phase A: Failing formats (priority #1)

Add VideoStrategy using mp4box.js. Rewrites the MP4 box/atom tree without metadata boxes (udta/meta/Xtra). Pure JS, no decoding, no quality loss. Handles fragmented MP4 (moof-based) — the case ExifTool cannot write.

New files: infrastructure/wasm/strategies/video_strategy.ts (~150 lines)
New dep: mp4box
Registers for: .mp4, .mov, .m4v, .m4a

Deliverable: drop the fragmented MP4 that currently fails → cleaned successfully.
Verify: yarn dev → drop failing MP4 → exiftool output.mp4 shows no metadata; play to confirm video intact.

See design doc docs/superpowers/specs/2026-05-05-webapp-migration-design.md §9.1

Part of v5 webapp migration — **Phase A: Failing formats (priority #1)** Add `VideoStrategy` using mp4box.js. Rewrites the MP4 box/atom tree without metadata boxes (`udta`/`meta`/`Xtra`). Pure JS, no decoding, no quality loss. Handles fragmented MP4 (`moof`-based) — the case ExifTool cannot write. **New files**: `infrastructure/wasm/strategies/video_strategy.ts` (~150 lines) **New dep**: `mp4box` **Registers for**: `.mp4`, `.mov`, `.m4v`, `.m4a` **Deliverable**: drop the fragmented MP4 that currently fails → cleaned successfully. **Verify**: `yarn dev` → drop failing MP4 → `exiftool output.mp4` shows no metadata; play to confirm video intact. See design doc `docs/superpowers/specs/2026-05-05-webapp-migration-design.md` §9.1
Sign in to join this conversation.
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: forgejo_admin/exifcleaner-web#2
No description provided.