WikiWebcam
Menu

When you buy through our links, we may earn a commission. Learn more ›

Webcam Video Formats: MJPEG vs H.264 vs YUV

Short answer: Webcams output video in three main formats: MJPEG, H.264, and uncompressed YUV. MJPEG compresses each frame independently, H.264 compresses across frames for efficiency, and YUV sends raw pixels. H.264 uses more CPU but saves bandwidth, while YUV needs high USB bandwidth but less processing. Choose based on your CPU and USB port.

Why webcam video formats matter

Webcam video formats define how image data from the sensor is packaged before it travels over USB. The USB Video Class (UVC) standard used by most webcams supports both compressed and uncompressed formats. According to Microsoft's UVC driver documentation, compressed formats include MJPEG and DV, while uncompressed formats include YUY2 and NV12. Windows 8 added support for the H.264 codec, expanding the options for higher efficiency. The format you choose directly affects CPU load, image quality, and the bandwidth required on your USB port.

This guide breaks down the three most common webcam video formats, how they differ in CPU usage and image quality, and what you should pick for your specific setup.

MJPEG: frame-by-frame compression

MJPEG, short for Motion JPEG, compresses each video frame independently as a JPEG still. Because every frame is self-contained, decoding is straightforward and places a light load on your CPU. The downside is that each frame carries full detail, so file sizes and bandwidth usage are higher than with more efficient codecs. Many webcams, including the Elgato Facecam Pro, offer MJPEG output, making it a widely compatible choice across applications and operating systems.

Since MJPEG does not use temporal compression, it avoids motion artifacts that can appear in interframe codecs. It remains a reliable default for video calls and casual streaming. If you are shopping for a budget-friendly option, check the best 720p webcams for models that list MJPEG support.

H.264: efficient interframe compression

H.264 is an open standard that uses interframe compression to reduce the data required for video. It compares frames and stores only the differences, resulting in a much lower bit rate for the same quality compared to MJPEG. According to Microsoft, H.264 support was introduced with Windows 8 and is part of the UVC 1.5 specification. This makes H.264 a modern option for bandwidth-conscious users.

The tradeoff is increased processor usage. Encoding and decoding H.264 is more intensive than MJPEG, though most CPUs from the past decade handle it with hardware acceleration. The Elgato Facecam Pro, for example, can output either H.264 or MJPEG in real time, letting you choose based on your needs. For 4K resolution and high frame rates, H.264 is often the preferred format. Explore the best 4K webcams and best 1080p 60fps webcams to see which models support it.

YUV: uncompressed raw video

Uncompressed YUV video, such as YUY2 and NV12, sends raw pixel data from the sensor without any compression. This preserves every bit of color and luminance information, which is ideal for video editing, green screen work, or any task where image fidelity is critical. The cost is very high bandwidth usage and a requirement for a fast USB connection.

Because there is no compression, your CPU does not need to spend cycles decoding a compressed stream, which can actually be easier on the processor. The Razer Kiyo Pro Ultra can output uncompressed 4K video at 24 fps, and the OBSBOT Tiny 2 uses USB 3.0 to transmit uncompressed 1080p video. However, not all webcams offer this option, and it may not be worth it if you just need to join video calls. If you are considering this format, review the USB 3 vs 2 and bandwidth and upload speed guides first.

Comparing CPU load and bandwidth

When selecting a video format, you are balancing CPU usage against bandwidth. MJPEG uses modest compression, so it requires lower CPU than H.264 but more bandwidth than H.264. H.264 is the most bandwidth-efficient but can tax an older CPU. Uncompressed YUV eliminates compression entirely, putting the burden on your USB bandwidth rather than the processor.

The right choice depends on your hardware. If you have a modern CPU, H.264 is usually the best all-around format. If you are using an older machine, MJPEG may be smoother. Uncompressed YUV is for those who prioritize absolute image quality and have a USB 3.0 port to support it.

USB bandwidth and video formats

The USB version on your computer dictates how much data can flow from the webcam. USB 3.0 offers roughly ten times the bandwidth of USB 2.0, which is enough for uncompressed 1080p at 60 fps. The OBSBOT Tiny 2 highlights this capability, noting that USB 3.0's speed allows 1080p transmission without any compression.

If your system only has USB 2.0 ports, you will be limited to compressed formats at higher resolutions. In that case, MJPEG or H.264 keep the data rate manageable. Check the USB version on your device before investing in a webcam that relies on uncompressed output. The webcam USB cable length and types guide can also help you choose the right cable for your setup.

How to choose the right format

Start by looking at the specifications of the webcam you are considering. Most webcams list supported formats, often MJPEG and sometimes H.264. If you do not see YUV listed, assume the camera does not output uncompressed video. For typical video calls, H.264 and MJPEG both work well; the main difference is CPU load and bandwidth usage.

For 4K or high frame rate streaming, H.264 is usually the recommended format because it saves bandwidth while maintaining quality. If you are on an older PC, MJPEG may give you more consistent performance. And if you are a content creator who needs pristine quality, look for a webcam with uncompressed output and a USB 3.0 port. The guides under "What to pick" below match format choices to common use cases.

What to pick for your use

If youPickBuying guide
You have an older or low-power CPUMJPEGBest 30 FPS Webcams in 2026: 15 Picks Compared on Specs
You have a modern CPU and want efficient streamingH.264Best 1080p 60fps Webcams in 2026: 9 Picks Compared on Specs
You need uncompressed video for editing or green screenYUV (uncompressed)Best 4K Webcams in 2026: 15 Picks Compared on Specs
You are limited to USB 2.0 portsMJPEG or H.264Best 720p Webcams in 2026: 5 Picks Compared on Specs
You are buying a webcam for 4K meetingsH.264Best 4K Webcams with Microphone in 2026: 15 Picks Compared on Specs
You are streaming at 60 fpsH.264 or MJPEGBest 60 FPS Webcams in 2026: 15 Picks Compared

Questions

What is MJPEG?

MJPEG (Motion JPEG) encodes each video frame as a standalone JPEG image. It is simple and widely supported, but produces larger files than H.264.

Is H.264 better than MJPEG?

H.264 provides better compression for the same quality, reducing bandwidth and storage needs. It requires more processing power, but modern CPUs handle it easily.

Does H.264 require a lot of CPU?

Yes, H.264 encoding and decoding are more intensive than MJPEG. Hardware acceleration in GPUs and CPUs helps reduce the load.

What does YUV stand for?

YUV is a color space, but in webcam contexts it refers to uncompressed formats like YUY2 or NV12 that send raw pixel data.

Can all webcams output uncompressed YUV?

No, only webcams that explicitly support uncompressed modes can do so. Many budget webcams only offer MJPEG or H.264.

How does USB version affect video format choice?

USB 3.0 has much higher bandwidth, allowing uncompressed video. USB 2.0 may not handle high-resolution uncompressed streams, so compressed formats are safer.

Recent updates

  • : First published.

Sources

Related buying guides