Convert a WebM file to an MP4 that plays on an iPhone, imports into an editor, and passes an upload form. The picture is re-encoded to H.264 and the sound to AAC.
Why WebM needs re-encoding
WebM is the web’s open format: VP9, VP8, or AV1 video with Opus or Vorbis audio. Every current browser plays it, but QuickTime, iOS, and most video editors do not, and changing the container alone does not fix that. MP4 can hold VP9 and Opus, yet those players still refuse the file.
H.264 and AAC in an MP4 is the combination nearly every device and program opens.
Screen recordings
Browser screen recorders and many recording extensions save WebM. Their content, text and flat interface colors, compresses well in H.264, so the MP4 keeps sharp edges at a similar file size. The frame size and frame rate are unchanged.
Timing
A WebM from MediaRecorder often has no duration stored in its header, which is why some players show it as endless or refuse to seek. The converter measures the real duration from the stream, and the MP4 it writes has a correct duration and seeks normally.