Convert and repair

Prepare a WebM recording for social upload

Updated Commands run November 21, 2026VP9 and Opus test filesffmpeg 6.1.1

A video player panel with an arrow pointing to a second panel with a play symbol, above a loudspeaker.

Short answer

A WebM file from a browser recorder or a screen-capture tool will upload to YouTube as it is, and to few other places. Instagram's published specs list MP4 and MOV only, Pinterest and X list no WebM, and LinkedIn takes it on some devices. Convert it to MP4 with H.264 video and AAC audio and it is accepted everywhere on that list. The same conversion repaired two common recording faults in our tests: a file with no duration in its header, and a file with uneven frame timing.

WebM to MP4 converter

Key takeaways

  • One command turns VP9 and Opus in WebM into H.264 and AAC in MP4. An 8 second 720p test file took about 6 seconds.
  • A recording with no stored duration (ffprobe shows N/A) came out of the conversion with a correct 8.0 second duration.
  • Adding -r 30 -fps_mode cfr turned frame gaps of 0.033 and 0.067 seconds into a steady 0.033.
  • Copying the streams into an MP4 without converting works technically, and leaves VP9 and Opus inside, which is the part platforms object to.
  • YouTube lists WebM as supported, so for YouTube alone you can skip all of this.

Does your platform take WebM?

WebM uploads by platform
PlatformStatus on our format page
YouTube and ShortsYes: WebM is on YouTube's list of supported formats
TikTokPartly: listed for the Content Posting API; other upload routes may differ
LinkedInPartly: listed for desktop and Android; LinkedIn's two help pages disagree about iOS
Instagram Reels and feedNot in Instagram's published specs, which list MOV and MP4
PinterestNo: not in the accepted list on the app or the web
XNo: not listed for Media Studio uploads
Facebook ReelsNot re-verified

These are the records on the Koldflux format pages, each with its platform source and review date. Read each row as what the platform documents. It is not a promise about what an uploader will or will not swallow from you on a given day, on a given device, through the app or the website or a scheduling tool that sits in between.

Free tools:Does Instagram Reels support WebM?Does LinkedIn support WebM?

Convert to MP4

The picture and the sound are both re-encoded, because neither VP9 nor Opus is what the stricter platforms name. Quality setting 20 is high; raise the number for a smaller file.

ffmpeg -i rec.webm -c:v libx264 -crf 20 -pix_fmt yuv420p -c:a aac -b:a 160k -movflags +faststart rec.mp4
VP9 to H.264, Opus to AAC. Exit 0; 1280 x 720, 8.0 seconds in and out.

Our output was slightly larger than the input, 4.5 MB against 4.2 MB. That is specific to a test pattern at these settings and says nothing general about the two formats. No command line? The Koldflux WebM to MP4 converter does the conversion in your browser.

Free tool:WebM to MP4 converter

A recording that shows no length

Recorders that write a file as they go often never return to the start to fill in the total duration. The video plays, but a player cannot show its length or let you jump around, and an uploader may refuse it. We made such a file on purpose: the same picture and sound, written as a live stream. The probe tool reported its duration as N/A.

Running it through the conversion above fixed it. The MP4 reported 8.0 seconds, the same as the output from the normal file. Nothing special is needed. Rewriting your file is the repair.

Free tool:Inspect a video file: duration and codecs

What about stutter and drifting sound?

A busy computer drops frames while recording. The file then has uneven gaps between frames, which is called a variable frame rate. Many editors assume even spacing, and the sound slowly slides out of step with the picture. Force a constant rate during the conversion:

ffmpeg -i rec.webm -c:v libx264 -crf 20 -pix_fmt yuv420p -r 30 -fps_mode cfr -c:a aac -b:a 160k -movflags +faststart rec-cfr.mp4
The same conversion with a constant 30 frames per second. Exit 0.

We tested it on a file with every third frame removed, so its gaps were 0.033 and 0.067 seconds. After the command every gap was 0.033 seconds. The missing frames are filled by repeating the frame before, so the motion still hitches where frames were dropped; what you gain is timing that editors and platforms handle correctly. Use the rate you recorded at, 30 or 60.

Can you skip the re-encode?

Tempting, because copying is instant. We tried it: ffmpeg copied the VP9 and Opus streams into an .mp4 file without complaint, exit code 0. But the file still contains VP9 and Opus. The name changed and the contents did not, and the contents are what a platform checks. A copy is only useful when you know the target accepts those codecs in that container, and if you knew that, you could have uploaded the original WebM in the first place and saved yourself the step.

After the conversion

  • Screen recording headed for Shorts or Reels: crop it to vertical so the text stays readable.
  • Too big to upload: compress it for the platform.
  • Recorded with a webcam as a second file: combine the two in one vertical frame.

Free tools:Compress a videoCrop a fixed box out of a video

Limits of these tests

The files are test patterns encoded by ffmpeg, built to imitate two recorder faults; a real browser recording can have others. Platform statuses come from our format pages with their own review dates, and nothing was uploaded. Timings are from one busy server.

Do it in your browser

Free Koldflux tools, no account needed.

WebM to MP4 converterInspect a video file: duration and codecs

Questions people ask

How do I convert WebM to MP4 for Instagram?

Re-encode the video to H.264 and the audio to AAC in an MP4 file. The one-line ffmpeg command is on this page, and the Koldflux WebM to MP4 converter does it in the browser.

Why can't I seek in my WebM recording?

The recorder never stored the total duration. Converting the file writes a proper one.

Can I just rename .webm to .mp4?

No. Renaming changes nothing inside, and even a proper copy into MP4 keeps the VP9 and Opus streams that many platforms do not list.

What frame rate should I force?

The one you recorded at, usually 30 or 60. Forcing a constant rate evens out the timing; it cannot bring back dropped frames.

Does YouTube accept WebM?

Yes. WebM is on YouTube's own list of supported upload formats.

Related

More guides on this topic

Sources and how we checked

  1. commands.log: the conversion on normal, no-duration and dropped-frame files, with exit codes and frame gaps (our run, November 21, 2026) (checked 2026-11-21)
  2. make-tests.sh: builds the three WebM files and runs the commands (Koldflux, shell) (checked 2026-11-21)
  3. YouTube Help: supported upload file formats (WebM listed) (checked 2026-11-21)
  4. Koldflux format pages: WebM status per platform with each platform source (checked 2026-11-21)
  5. FFmpeg documentation: -r, -fps_mode and stream copy (checked 2026-11-21)

On November 21, 2026 we made a normal VP9 and Opus WebM, a copy with no duration in its header and a copy with every third frame removed, converted each with ffmpeg 6.1.1 and compared durations and frame gaps before and after. Platform statuses were read from the Koldflux format pages.