Convert M4V to WebM

Converting M4V to WebM replaces Apple’s H.264 and AAC with VP9 and Opus, the royalty-free pair WebM was built around. It is the slowest conversion this M4V file can go through, so the first thing to settle is whether your destination genuinely requires an open format or would have taken an MP4.

  • Where it runs In your browser. The file is never uploaded.
  • Lossy Some detail is traded for size. WebM cannot hold everything an M4V can.
  • File size limit Up to 100 MB per file, free, without an account.
  • Worth knowing Video is re-encoded rather than copied, so some detail is lost even at the highest setting. Subtitle tracks and chapters are not carried over. Where the soundtrack is a format the browser cannot decode — AC-3, E-AC-3, DTS and TrueHD, common on disc and streaming rips — the picture converts and the result is silent.

Up to 100 files at once. Mixed formats are fine.

Nothing inside the M4V crosses into the WebM

Every other conversion in this set carries something over. The MP4 and MOV targets keep the same H.264 and AAC the M4V already held; the audio targets keep the sample rate. This one keeps nothing. WebM is written with VP9 video and Opus audio, and the M4V holds H.264 or HEVC with AAC, so both streams are decoded to raw and built again from scratch by different codecs.

That is the point rather than a side effect. The reason a destination asks for WebM is almost always that H.264 and AAC are patent-encumbered and VP9 and Opus are not. A conversion that preserved anything of the original codecs would not have solved the problem the reader actually has.

An MP4 already plays in every browser, so be sure you need this

The most common reason people look for a WebM is "I am putting a video on a web page", and for that purpose the MP4 route is better. H.264 in an MP4 is decoded natively by every current browser, it encodes in a fraction of the time, and it is the file you would need anyway as a fallback. If nothing has told you that H.264 is unacceptable, take the MP4 and move on.

What makes WebM worth the wait is a rule you did not write. Some projects will not host patent-encumbered video at all. Some organisations avoid H.264 for licensing reasons that have nothing to do with quality. And if you are already serving two sources from one `<video>` element, listing the VP9 file first lets browsers that can take it download fewer bytes for the same picture.

Where an M4V is refused and a WebM is accepted

Open-content platforms are the clearest case. Wikimedia Commons and a number of open archives accept WebM and Ogg and decline formats that carry patent licences, which means an Apple-produced lecture or demonstration cannot be contributed as it stands. The conversion is the price of admission rather than an improvement.

Documentation systems, static-site pipelines and a few upload forms behave the same way for their own reasons, usually a policy inherited from an open-source project. What these destinations share is that the requirement is written down somewhere. Nobody’s television asks for VP9, which is precisely why this page has a different reader from the MP4 and MKV pages.

VP9 encoding is the slowest work on this site

H.264 encoders are in essentially every phone, laptop and graphics chip made in the last fifteen years. VP9 encoders are far less common in hardware, so the work more often falls to software running in the tab. The same clip that becomes an MP4 in one unit of time can take several to become a WebM, and the gap grows with resolution rather than with file size.

Plan around it. Convert the clip you need rather than the whole recording, drop the resolution if the destination is a page rather than a screening, and leave the tab open — closing it cancels the work instead of queueing it. If the browser has no VP9 encoder available at all, the conversion says so before it takes the file rather than failing partway through.

Resolution is the lever that pays for itself here

VP9 describes the same picture in fewer bytes than H.264 does, which is one of the arguments for it, but the far larger saving on a web page is not choosing a better codec — it is not shipping pixels the layout never displays. A 4K lecture recording embedded in a column 800 pixels wide is spending most of its bytes on detail the browser immediately throws away.

The control offers 2160p down to 360p with the width following automatically so nothing is stretched, and asking for more than the source has is ignored on purpose. Reducing before encoding also shortens the encode itself, which on this target is the difference between a wait and an afternoon.

The soundtrack is the one part that genuinely improves

The AAC in the M4V becomes Opus, published by the IETF in 2012 as RFC 6716 and written at Xiph.Org and Skype. Opus is a stronger codec than AAC at the bitrates web video uses, particularly on speech, and every browser decodes it because WebRTC made support mandatory. On a recorded talk or a narrated demonstration that is a real gain rather than a sideways move.

It is still a second generation of lossy compression, and no encoder can put back what the AAC pass removed. What the better codec buys is that the second pass costs less than it would have with a weaker one — which is why the balanced band is usually enough here even on material where it would not be enough elsewhere.

A protected M4V and an open format are opposite ideas

An M4V bought from the iTunes Store is encrypted with FairPlay. There is no key in the browser, so the tracks cannot be decoded, and the conversion reports that nothing in the file could be converted. No tool on this site removes protection and no site that claims to should be handed the file.

The collision is not only technical. The destinations that want WebM are open-content projects, and material bought from a store is not yours to publish there in any format. Unprotected M4V files — QuickTime, iMovie, Final Cut and Compressor exports, camera output, course downloads — convert normally and are usually the ones somebody has the right to post.

Serving the WebM after it exists

In a `<video>` element, list the WebM as the first `<source>` and an MP4 as the second. Browsers pick the first they understand, so the ones with a VP9 decoder take the smaller file and everything else falls back without any JavaScript involved. Serving WebM alone is a decision to lose whoever cannot decode it, which is a smaller group than it once was and not an empty one.

Add a poster image while you are there. A still taken from the video itself gives the reader something to look at before playback starts, and the frame-extraction pages on this site produce one from the same M4V — take it a few seconds in rather than at zero, where most recordings are still a black frame.

The M4V is not uploaded to be re-encoded

Decoding, encoding and muxing happen inside the tab on your own processor, using the codecs the machine already ships. Nothing carrying the video is sent anywhere and there is no account. The free tier accepts files up to 100 MB, which on this pair is rarely the binding constraint, since the material being published to the web is usually a clip rather than a feature.

Batches work the same way: up to a hundred files at once, each with its own progress, downloadable together as a ZIP. Given how much processor time VP9 asks for, a large batch is worth starting when you do not need the machine — the cost is your own hardware rather than somebody’s queue, which is also why there is no daily limit on it.

How to encode an M4V as a WebM file

  1. Check whether your destination actually requires a royalty-free format — if not, the MP4 route is faster and plays everywhere.
  2. Drop the M4V here, choose WebM, and reduce the resolution to what the page will display.
  3. Download the VP9 file and serve it as the first source in a `<video>` element with an MP4 behind it.

M4V and WebM: licensed codecs against royalty-free ones

M4V compared with WebM
M4VWebM
Full nameiTunes VideoWebM Video
File extension.m4v.webm
Media typevideo/x-m4vvideo/webm
CompressionLossy — file size is bought with qualityLossy — file size is bought with quality
First published20052010
Published byAppleGoogle
LicensingPublished, not standardisedOpen standard
Standing todayCurrentCurrent
Opens in a browserSome browsersEvery browser
Considered insteadMP4, MOVMP4, MKV

Opening the result

WebM opens in every current browser. M4V has narrower browser support than that. If the file is going onto a web page or into a form, that is usually the whole reason for the conversion.

WebM is a container rather than a single format. What actually plays is the codec inside it — usually VP8, VP9 and AV1 — which is why two files with the same extension can behave differently on the same device.

VLC reads both M4V and WebM, so there is a way to check the result against the original without a second tool.

What each format is for

The two are aimed at different work: M4V at handing a finished file over and phones, WebM at the web and streaming. That is worth weighing before converting, because the reason one exists is usually the reason the other is awkward.

WebM comes from Google and dates from 2010. VLC and FFmpeg all read it.

M4V to WebM: VP9, encoding time and open platforms

Are my M4V files uploaded anywhere?

No. This conversion runs entirely inside your browser, so the file never leaves your device. You can confirm it yourself: open the network tab of your browser's developer tools and convert something. You will see the page load, plus the analytics and advertising the site is paid for with — and nothing carrying your file. The engine behind this particular pair is mediabunny, a wrapper around WebCodecs, which borrows your device's own hardware decoders; your browser fetches it once and caches it.

Do I actually need a WebM if I already have the video working?

Usually not. H.264 in an MP4 plays in every current browser, so for an ordinary web page the MP4 route is simpler and encodes far faster. WebM earns its place when a platform requires royalty-free codecs, when you are serving two sources and want the smaller one first, or when a policy forbids H.264 outright.

Why is this so much slower than converting to MP4?

VP9 is harder to encode than H.264 and hardware encoders for it are much less common, so the work more often falls to software. Expect a WebM conversion to take noticeably longer than the same clip to MP4 on the same machine, and expect the gap to widen with resolution.

What is inside the WebM when it is finished?

VP9 video and Opus audio. Those are the codecs WebM was designed around and both are royalty-free, which is the entire reason the format exists. Nothing of the M4V’s original H.264, HEVC or AAC comes across — every frame and every sample is decoded and encoded again.

Can I get transparency in the WebM?

Not from an M4V. VP9 can carry an alpha channel and that is one of the good reasons to use WebM, but an M4V holds H.264 or HEVC and neither carries transparency in Apple’s delivery pipeline. There is nothing in the source for the conversion to preserve.

My browser says it cannot create WebM video.

Some installations have no VP9 encoder available. The conversion checks before it starts and says so rather than failing halfway through. Chrome and Edge are the safest choices for this target; there is no software fallback, because a VP9 encoder in WebAssembly would be a large download and much slower than the one the machine already has.

Will an iTunes Store film convert?

No. Store purchases are encrypted and the browser cannot decode them, so the conversion reports that nothing in the file could be converted. That is worth knowing before you plan a publication around a file you cannot open.

More about these formats