Initializing... drag & drop files here
Supports: XVID
Xvid is an MPEG-4 Part 2 Advanced Simple Profile codec (last stable 1.3.7, December 2019) built around inter-frame prediction — every frame except the I-frames is a delta against neighbors. MJPEG is the opposite design: each frame is an independent JPEG image, no temporal prediction at all. Converting Xvid to MJPEG trades file size for per-frame independence, which is exactly the trade you want for a handful of specific workflows:
ffmpeg -ss... -vframes 1) get a true keyframe every time, with no seek-back to the prior I-frame.| Property | Xvid (MPEG-4 ASP) | MJPEG (Motion JPEG) |
|---|---|---|
| Compression family | Inter-frame, long-GOP | Intra-frame only (each frame an independent JPEG) |
| Typical compression ratio | ~1:50 or better | ~1:20 or lower |
| Typical 1080p bitrate | 1-4 Mbps | 25-100 Mbps (10-20× larger) |
| Random frame access | Slow — must decode from prior keyframe | Instant — every frame is a keyframe |
| Encode/decode CPU | Higher (motion estimation, B-frames) | Lower — pure JPEG per frame |
| Packet-loss behavior | One loss can ruin a whole GOP | One loss = one bad frame |
| Standard year | MPEG-4 Part 2 (1999), Xvid project 2001 | JPEG since 1992; no single MJPEG spec — defined per container |
| Common containers | AVI, MP4, MKV | AVI (Microsoft), MOV (Apple), RTP (RFC 2435) |
| Browser playback | Limited (needs DivX/Xvid plug-in) | Native in Safari, Chrome, Edge, Firefox |
| Best at | Distribution, archival, small-disk storage | Surveillance, machine vision, frame-accurate edit, science |
MJPEG quality in FFmpeg-based encoders (which xconvert uses under the hood) is controlled by the JPEG qscale parameter, range 2-31. Lower = higher quality and bigger file.
| qscale | Visual result | When to use | Approx. 1080p30 bitrate |
|---|---|---|---|
| 2 | Visually lossless, JPEG quality ~95 | Master files, scientific capture, color-grading source | 80-120 Mbps |
| 3-5 | Excellent, indistinguishable on most footage | IP-camera evidence, machine-vision, edit master | 40-80 Mbps |
| 6-10 | Good, visible blocking only on detailed textures | General MJPEG delivery, surveillance retention | 20-40 Mbps |
| 11-20 | Noticeable JPEG artifacts on motion and detail | Long-retention surveillance where storage dominates | 8-20 Mbps |
| 21-31 | Heavy macroblocking | Avoid unless you need a tiny preview | <8 Mbps |
Need a different output codec for distribution instead of intra-only editing? See Convert Xvid to MP4 (H.264 in MP4 container) or Convert Xvid to AVI. To go the other direction (MJPEG into a smaller modern format), Convert MJPEG to MP4 re-encodes to H.264. To shrink an existing MJPEG without changing codec, use Compress MJPEG.
That's the price of intra-only coding. Xvid (MPEG-4 ASP) reuses pixels across frames via motion compensation and B-frames, so it can hit 1-4 Mbps for 1080p. MJPEG stores each frame as a complete JPEG, so a 1080p30 clip lands at 25-100 Mbps depending on qscale. The Wikipedia MJPEG article puts modern inter-frame codecs at "1:50 or better" compression and MJPEG at "1:20 or lower" — that ratio explains the size jump precisely. If size matters more than per-frame independence, MJPEG is the wrong target format.
Quality Preset is the simple path: Very High maps to a low qscale (visually lossless) and Lowest maps to a high qscale (heavy artifacts). Use Constant Quality (qscale) when you need a specific number to match a camera's setting, a lab protocol, or an existing MJPEG archive. For most surveillance and edit-master use, qscale 3-5 (Quality Preset "Very High" or "High") is the sweet spot — visually clean without ballooning past 80 Mbps.
AVI. Microsoft's AVI container is the most widely supported home for an MJPEG video stream — it's documented by Microsoft, accepted by virtually every NVR, supported by VLC, MPC-HC, and the Windows shell, and Wikipedia notes Safari, Chrome, Edge, and Firefox all decode MJPEG natively. Apple's MOV is the other option but is less common for MJPEG outside of QuickTime workflows.
Most ONVIF-compliant NVRs and security DVRs accept MJPEG-in-AVI for offline review and evidence preservation. The catch is resolution and frame rate — many older NVRs cap MJPEG ingest at 720p or 1080p and 30 fps. Match your camera's native resolution if the clip is intended to slot back into a recording timeline; use 640×480 or 1280×720 with the resolution preset if you're targeting an older system.
Yes — that's one of MJPEG's main appeals. Because each frame is already a JPEG, tools like FFmpeg can extract any frame in O(1) (ffmpeg -i input.avi -vf "select=eq(n\,123)" -vframes 1 frame123.jpg) without seeking back to a keyframe and decoding forward. That's why machine-vision and microscopy capture pipelines pick MJPEG when they expect to pull stills out of long recordings.
The MJPEG video stream itself is silent, but the AVI container holds an audio track alongside it. xconvert preserves the audio from your Xvid AVI by default (typically MP3 or AC-3 inside the AVI). If your downstream tool expects video-only MJPEG (some machine-vision and microscopy capture pipelines do), strip audio before re-import.
Three reasons documented across embedded-vision references (TechNexion, e-con Systems): (1) lower encode/decode CPU on systems without hardware H.264, which matters for battery-powered cameras and small SoCs; (2) per-frame independence — a packet loss costs one frame, not a whole GOP, which is why surveillance and live machine-vision still favor it; (3) frame-accurate seek and extract for analysis. H.264 wins on bitrate, MJPEG wins on simplicity and frame independence.
Both decode the same MPEG-4 Part 2 ASP bitstream — DivX is the proprietary cousin, Xvid the GPL fork from the OpenDivX project (per Wikipedia). xconvert accepts the .xvid and .avi extensions for either; the converter will recognize MPEG-4 ASP whether the file was encoded by DivX or Xvid and produce the same MJPEG output. To shrink the Xvid source itself before converting, see Compress Xvid.
Yes. Upload as many Xvid AVIs as your browser session can hold; xconvert applies the same Quality Preset, resolution, and trim to all of them. Files process locally on our servers — useful when surveillance footage is sensitive and you'd rather not push it to a third-party server.