How GIF to video (MP4) works
Convert an animated GIF into a compact MP4 video with ffmpeg WebAssembly. It re-encodes the GIF frames into H.264, which typically produces a file five to twenty times smaller than the original GIF while looking sharper, because MP4 is not limited to 256 colours.
Speed depends on frame count and your hardware, but most GIFs finish in a few seconds. The resulting MP4 plays natively in every modern browser and social platform, though looping then depends on the player rather than being baked into the file.