Skip to content
Four glowing data cubes of different sizes containing the same animation, representing codec file-size differences
Back to blogtips

Best Codec for Motion Graphics: H.264 vs ProRes vs WebM

ANFX 2026-07-05 11 min read

H.264 for delivery, ProRes for editing, ProRes 4444 or PNG for alpha, WebM for transparent web video. Decision table, real file sizes, ffmpeg commands.

Advertisement

Use H.264 (in an MP4) for anything that’s finished: uploads, client review copies, downloads. Use ProRes (or Avid’s DNxHR) for anything that will be edited, graded or passed between applications. Use ProRes 4444 or a PNG sequence when you need transparency in an editor, and WebM (VP9) when you need transparency in a web browser. Nearly every codec question about motion graphics comes down to one thing: what happens to this file next?

Here’s the decision table, then the reasoning behind it.

The Decision Table

What happens next Use Why
Upload to YouTube / TikTok / Instagram H.264 MP4 Universal ingest, and the platforms re-encode anyway
Cut and grade it heavily in an editor ProRes 422 (or DNxHR) Smooth scrubbing, survives re-encoding
Composite with transparency in an editor ProRes 4444 (or PNG sequence) Real alpha channel that editors read natively
Embed transparent video on a website WebM (VP9 with alpha) The alpha format browsers play most widely (how it works)
Archive a finished master ProRes 422 HQ or PNG sequence No generation loss when you come back to it
Send to a client to review H.264 MP4 Plays on anything they own
Overlay effect for CapCut / mobile editors H.264 MP4 (black or green matte) WebM alpha is unreliable outside browsers

Delivery Codecs vs. Editing Codecs

The first thing to understand is that codecs are built for one of two jobs, and they’re bad at the other one.

Delivery codecs (H.264, and its successors H.265/HEVC and AV1) squeeze files as small as possible for streaming and downloading. They do it with inter-frame compression. Only occasional keyframes are stored whole, and the frames in between are stored as differences from their neighbours, grouped into a “GOP” (group of pictures). Phones and most consumer cameras record this way, and YouTube streams this way.

Editing codecs (Apple ProRes, Avid DNxHD/DNxHR) use intra-frame compression. Every frame is stored independently, with lighter compression.

That difference is why editing directly on H.264 can feel sluggish. To show you one frame in the middle of a GOP, the editor has to decode the keyframe and every frame between it and the one you asked for. Scrubbing, reverse playback and stacked effects all multiply that work. With ProRes, any frame is one decode away. Modern GPUs with hardware H.264/HEVC decoding have narrowed the gap a lot, so many people edit camera files directly without trouble. When they can’t, because the timeline stutters or the machine is older, the standard fix is to transcode to ProRes or DNxHR, or to generate proxies.

The second difference is generation loss. Each H.264 encode is a fresh, lossy compression pass. One generation is invisible. After several rounds of export, re-import and re-export, gradients band and grain turns to mush. ProRes is still lossy, but it’s designed to survive repeated encoding with very little visible change.

The rule that follows: edit in an editing codec, deliver in a delivery codec, and compress to H.264 once, at the very end.

Each Codec in 60 Seconds

H.264 / MP4: the delivery standard

What it’s for: the last step. H.264 in an MP4 container plays on effectively every device, editor and platform made in the past fifteen years.

Alpha? No. This comes up constantly in motion graphics. H.264 overlays ship on black backgrounds (composite with the Screen blend mode) or green backgrounds (chroma key) instead. See Screen vs. Add vs. Overlay for the blend modes.

Size: small, but strongly content-dependent (see the real file sizes below).

The catch: it’s a delivery codec being used as an editing codec. Fine for one export, with visible degradation after two or three generations.

H.265/HEVC is the same idea, commonly cited as reaching similar quality at up to about half the bitrate, but heavier to decode and less universally supported in older software. Use it for delivery when file size matters and you know the destination plays it.

ProRes: the editing workhorse

What it’s for: anything that gets edited again. Timelines scrub instantly, and re-exports lose almost nothing.

Alpha? Yes, in ProRes 4444 (and 4444 XQ) specifically. ProRes 422, 422 HQ and 422 LT do not carry alpha. This is the most common ProRes mistake.

Size: large, by design. Apple’s published target data rates for 1920 × 1080 at 29.97 fps are about 147 Mbps for ProRes 422, 220 Mbps for 422 HQ and 330 Mbps for 4444 (before alpha, which adds more depending on content).

The catch: it lives in MOV containers and pro software. It plays fine in editors and on Macs, but it isn’t a web or consumer delivery format. DNxHR is Avid’s equivalent, with the same intra-frame idea and similar sizes, and it’s common on Windows and Avid workflows.

WebM / VP9: transparency on the web

What it’s for: transparent video in a browser, such as product demos, animated UI elements and overlay effects on landing pages. VP9 in WebM is the widely supported way to play alpha-channel video on a web page.

Alpha? Yes, and efficiently. VP9 alpha files are a small fraction of ProRes 4444 size.

Size: comparable to or smaller than H.264 at the same quality.

The catch: editor support. Premiere, Final Cut and CapCut range from “grudging” to “won’t import” with WebM, especially with alpha. WebM is for browsers, not timelines. When an asset only exists as WebM and the timeline won’t take it, a browser-side WebM to MP4 conversion gets it in, at the cost of the alpha channel. Prefer a MOV or green-screen version of the same effect when one exists.

PNG sequence: lossless brute force

What it’s for: perfect-quality alpha with universal compatibility. A folder of numbered PNGs imports into every serious compositing and editing tool, carries full 8- or 16-bit alpha, and never shows a compression artefact.

Alpha? Yes, losslessly.

Size: usually the biggest of all, and thousands of files for longer clips.

The catch: unwieldy. No audio, no single-file portability, slow to copy around. It’s the format of last resort that always works.

JPEG 2000 MOV: alpha in a smaller file

Some alpha overlays, including the ANFX snow overlays, ship as QuickTime MOVs encoded with JPEG 2000. It’s an intra-frame codec that carries alpha at a much smaller size than ProRes 4444. The trade-off is that it’s demanding to decode, and not every editor handles it. If one doesn’t import cleanly or plays back slowly, convert it once to ProRes 4444 (command below).

MOV vs. MP4: Containers, Not Codecs

MOV and MP4 are containers: wrappers that hold video, audio and metadata. The codec inside decides quality, size and whether there’s alpha. A MOV can hold ProRes, H.264, JPEG 2000 or many others. An MP4 almost always holds H.264, H.265 or AV1.

So “MOV is higher quality than MP4” isn’t true in itself. An H.264 MOV and an H.264 MP4 are the same pictures in different boxes. The container decides compatibility: MP4 plays nearly everywhere, while MOV is native to Apple and Adobe workflows and is the usual home for ProRes and alpha codecs. The full container comparison is in MP4 vs WebM vs MOV.

Chroma Subsampling: 4:2:0, 4:2:2, 4:4:4

The numbers after a codec name, as in “ProRes 422” or “H.264 4:2:0”, describe how much colour detail is stored. Brightness is kept for every pixel. Colour is shared between neighbouring pixels to save space:

  • 4:2:0: colour is stored at a quarter of the resolution. This is standard for H.264 delivery, phones and most consumer cameras, and invisible on finished video.
  • 4:2:2: colour at half the horizontal resolution. This is ProRes 422, DNxHR HQ and professional cameras.
  • 4:4:4: full colour resolution. This is ProRes 4444 and PNG.

Subsampling matters most for green screen keying and for sharp coloured edges in graphics like red text on blue. The keyer works from colour, so blocky 4:2:0 colour edges become jagged matte edges. That’s why serious green screen work is shot in 4:2:2 or better, and why rendered graphics with fine coloured detail are best kept in 4:4:4 until the final export. If you’re stuck with 4:2:0 green screen footage, this repair workflow helps.

Real File Sizes

Editing codecs, from Apple’s target data rates

For 10 seconds of 1920 × 1080 at 29.97 fps, Apple’s published target rates work out to roughly:

Format Target data rate 10 seconds
ProRes 422 ~147 Mbps ~185 MB
ProRes 422 HQ ~220 Mbps ~275 MB
ProRes 4444 (excluding alpha) ~330 Mbps ~410 MB
H.264 at YouTube’s recommended 1080p upload bitrate 8 Mbps ~10 MB

ProRes rates are targets and vary with content. H.264 is set by whatever bitrate or quality you choose. The point is the ratio: an editing codec typically runs 10–40 times the size of a delivery encode of the same clip, depending on the H.264 bitrate you compare against.

Delivery codecs: how much content matters

H.264 sizes depend heavily on what’s in the frame. These are actual 4K H.264 files from the ANFX catalogue, with sizes as listed on their asset pages and average bitrates calculated from size and length:

File (4K H.264) Length Size Average bitrate
Old Film Overlay (dust and scratches) 1:57 53 MB ~3.6 Mbps
Glitches (bursts on green) 0:45 ~40 MB ~7 Mbps
Blank VHS Tape with Play Overlay (fine noise) 2:00 143 MB ~9.5 Mbps
Subtle VHS Overlay 2:00 224 MB ~15 Mbps
VHS Rewind (full-frame distortion) 1:15 237 MB ~25 Mbps

Same resolution and codec, with a roughly sevenfold spread in bitrate. Noise, grain and full-frame motion are expensive to encode. Large flat areas are cheap. This is also why noisy overlays and particle effects need a higher export bitrate than talking-head footage to look clean after upload.

What ANFX Ships and Why

Catalogue assets ship as MP4 (and MOV where alpha matters) because they have to import cleanly into whatever editor you use, including mobile CapCut, where format support is the narrowest. Overlays follow the black-matte or green-screen convention, so H.264’s lack of alpha costs nothing in practice: the Screen blend mode or a chroma key gives you the same composite.

The trade-off is honest: an MP4 overlay re-encoded inside your project loses a little more than a ProRes original would. For overlay effects like grain, static and particles over footage, that generation loss is invisible. For a hero graphic you’ll grade heavily, convert it to ProRes first.

Practical Recommendations

  • Most creators: edit whatever your camera records. If the timeline lags, transcode to ProRes 422 or DNxHR (or turn on proxies), and export H.264 for delivery.
  • Motion designers: render intermediates that will be composited later as ProRes 4444 (with alpha) or PNG sequences. Pass files between After Effects and your editor in ProRes, not H.264, and compress to H.264 only as the last step.
  • Web designers: export transparent animations as WebM (VP9 with alpha) for the page, and keep a ProRes 4444 master for future edits.
  • Archiving: keep the ProRes 422 HQ (or PNG) master, not just the upload file. Your H.264 upload is a copy, not a master.

Converting Between Formats for Free

ffmpeg does everything the paid converters do:

# MP4 → ProRes 422 HQ (for heavy editing)
ffmpeg -i input.mp4 -c:v prores_ks -profile:v 3 output.mov

# Alpha MOV (e.g. JPEG 2000) → ProRes 4444, keeping transparency
ffmpeg -i input.mov -c:v prores_ks -profile:v 4444 -pix_fmt yuva444p10le output.mov

# WebM with alpha → ProRes 4444 (keep transparency, editor-friendly)
ffmpeg -c:v libvpx-vp9 -i input.webm -c:v prores_ks -profile:v 4444 -pix_fmt yuva444p10le output.mov

# PNG sequence → WebM with alpha (for the web)
ffmpeg -framerate 30 -i frame_%04d.png -c:v libvpx-vp9 -pix_fmt yuva420p -b:v 2M output.webm

# Anything → H.264 MP4 (for delivery)
ffmpeg -i input.mov -c:v libx264 -crf 18 -pix_fmt yuv420p -movflags +faststart output.mp4

The -c:v libvpx-vp9 before -i in the WebM command makes ffmpeg use the decoder that reads VP9 alpha. Without it, the transparency is silently dropped. The -crf 18 in the last command is the quality dial: lower is better and bigger, and 18 looks visually lossless for most motion graphics. The -pix_fmt yuv420p keeps the file playable in browsers and on phones.

FAQ

What’s the difference between H.264 and ProRes?

H.264 is a delivery codec. It compresses heavily by storing most frames as differences from their neighbours, which makes files small but slower to edit and lossy every time you re-export. ProRes is an editing codec. It stores every frame independently with light compression, so files are roughly 10–40 times larger but scrub smoothly and survive repeated exports. Edit in ProRes, deliver in H.264.

Does H.264 lose quality every time I export?

Yes. Every encode is a fresh lossy compression pass. One generation is invisible, three are not, especially on gradients and grain. If a file will be edited and re-exported more than once, go through ProRes in the middle and save H.264 for the final step.

Why is ProRes so big?

Because every frame is stored independently at high fidelity instead of being predicted from its neighbours. That’s exactly what makes it scrub smoothly and survive re-encoding. The size is the feature.

Is MOV better quality than MP4?

No. MOV and MP4 are containers, and quality comes from the codec inside. An H.264 MOV and an H.264 MP4 look identical. MOV matters because it can hold ProRes and alpha codecs that MP4 normally doesn’t.

Which codecs support an alpha channel?

ProRes 4444 and 4444 XQ, PNG sequences, VP9 in WebM, and some others like JPEG 2000 and QuickTime Animation. H.264, ordinary H.265 and ProRes 422 do not. If you need transparency in an editor, ProRes 4444 is the safe choice.

Which codec for Instagram and TikTok?

H.264 MP4, 1080p (vertical for Reels and TikTok). Both platforms re-encode aggressively on upload, so unusual upload formats buy nothing. Give them a clean, high-bitrate H.264.

Is WebM smaller than MP4 at the same quality?

Usually somewhat, yes. VP9 is a newer, more efficient codec than H.264. But the difference is modest at motion-graphics bitrates, and MP4’s universal compatibility outweighs it everywhere except transparent video in the browser, where WebM is the format to use.

Advertisement

Enjoy this article?

Share it with your creative community and help others discover great content.