Converting MOV to MP4 entirely in the browser — no server, no uploads, no ffmpeg
Every converter website works the same way: you upload your video to somebody's server farm, wait for the transfer, wait for the conversion, download the result — and trust that your footage wasn't kept. For an 800 MB home video, that's a lot of trust. I kept wondering: the file is already on my machine, the output has to end up on my machine… why is anything leaving it? So I built movconverter ,…
A developer named <person_name> created a TypeScript library called movconverter that converts MOV video files to MP4 format entirely within the browser. This library enables users to convert a video file without uploading it to a server, without any size limitations, and without using a separate server or uploading data. The conversion process is done locally in the user's browser tab, making it a convenient and secure alternative to traditional file conversion websites.
The library works by reading the QuickTime File Format (QTFF) and MP4 specifications, which are based on the same file structure. Both QTFF and MP4 are essentially trees of boxes that contain information about video, audio, and other metadata. The conversion process focuses on rewriting the index tables, as the actual encoded video and audio data remain unchanged.
This approach only requires a few hundred kilobytes of data to be read and rewritten, making it much faster and more efficient than re-encoding the entire video file.
MOV files often contain timecode tracks and other metadata that MP4 players may not support. The library detects these tracks and either drops them or re-tags them to ensure compatibility with MP4 players. For example, iPhone and Mac screen recordings typically contain H.264/HEVC video and AAC audio, which are natively supported by MP4. In such cases, the conversion process involves only a metadata rewrite, leaving the media bytes untouched and resulting in a bit-identical output.
movconverter provides a simple API for developers to integrate the conversion process into their projects. By importing the convertMovToMp4 function and the canConvert function, developers can determine if a file can be converted losslessly and then proceed with the conversion. The library also includes a progress callback to monitor the conversion process and handle any potential errors.
Overall, the movconverter library offers a simple, efficient, and secure solution for converting MOV to MP4 files entirely within the browser, without the need for uploads, server-side processing, or external dependencies.
Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.