@geenee/repacker
Repacker
Section titled “Repacker”Repacker is a blazingly fast and memory-efficient tool, compiled into WASM, designed to enhance the compatibility of video files with various players and media sharing applications.
Key Features
Section titled “Key Features”Remuxing for Compatibility: It remuxes fragmented video containers, a common issue with browser-recorded videos (like fragmented MP4 files from MediaRecorder outputs), into a single, monolithic container. This resolves playback or sharing problems where apps might truncate the video to the first fragment.
Fixing Artifacts: It also corrects common issues and artifacts associated with MediaRecorder outputs.
Performance
Section titled “Performance”Utilizes efficient memory map and zero-copy strategies to remux buffers in place, eliminating redundant deep copies and conversions.
Supported Formats
Section titled “Supported Formats”To maintain a small WASM binary size, Repacker currently supports the most widely used combination: the MP4 container and the H.264/AVC1 video codec. Support for additional containers and codecs may be implemented in the future.