AVI to MJPEG Converter

Re-encode an AVI video as Motion JPEG in an AVI wrapper, right in your browser.

or drop files here

AV

AVI Format

Audio Video Interleave

A container whose streams can use various encodings.

  • Video and audio wrapper
  • Codec-dependent contents
  • RIFF-based headers
MJ

MJPEG Format

Motion JPEG

Video coded as a sequence of individually JPEG-encoded pictures.

  • Frame-by-frame compression
  • Can be wrapped in AVI
  • Not a unique container

How to convert AVI to MJPEG

Follow these steps to convert AVI to MJPEG online.

    1

    Choose your AVI file, or several at once.

    2

    Wait while the converter turns each file into MJPEG.

    3

    Download each new MJPEG file. Your original file isn't changed.

Before converting AVI to MJPEG

  • The video is MJPEG inside an AVI wrapper, not a bare stream.
  • The sound is written as 16-bit little-endian PCM.
  • Every frame is a JPEG, so files can be large.

About AVI and MJPEG

What is an AVI file?

An AVI file is a RIFF-based container for timed pictures and sound, introduced with Windows 3.1 in 1992. Its header lists properties like dimensions and frame rate, and FOURCC codes name the codec of each stream. Uncompressed, lossless and lossy video can all sit inside, so a .avi extension says nothing about quality. An AVI with Motion JPEG inside commonly carries the MJPG FourCC.

Programs that open AVI files

  • Windows: mpv shows AVI video and has selectable audio and subtitle tracks.
  • Mac: Premiere from Adobe imports the container when a necessary decoder is present.
  • Linux: FFplay relies on the AVI demuxer of FFmpeg.
  • Mobile: Both VLC mobile apps open local files, and decoding follows whatever the container holds.

AVI and MJPEG compared

Each frame of Motion JPEG is a separate JPEG picture, and the encoding is not a container of its own, so this page stores it in an AVI wrapper. With every frame standing alone, nothing is saved by comparing neighbors, and the file grows with the pictures.

The sound is written as 16-bit PCM. Oversized frames are reduced to fit 1920 px and footage above 30 fps loses frames; anything smaller or slower keeps its size and rate. OpenDML documents an MJPEG profile for the AVI wrapper, and QuickTime is another wrapper used for it. Production workflows may edit MJPEG before delivering in another encoding.

Other ways to convert AVI to MJPEG

  • FFmpeg, AVI output: ffmpeg -i frames.avi -c:v mjpeg -c:a pcm_s16le frames-mjpeg.avi.
  • FFmpeg, bare stream: ffmpeg -i frames.avi -an -c:v mjpeg -f mjpeg frames.mjpeg. FFmpeg documents an mjpeg muxer for Motion JPEG video, so use this only for a receiver that expects a raw stream.

Problems with AVI files

Opening an AVI in an editor doesn't mean the editor has the decoder its contents need. Size limits in the first AVI design were relaxed by OpenDML, which was developed in 1996 and 1997, so large captures need software that supports it. Programs disagree on how to read aspect ratio and scan type, so compare the shape of the result with the original. A damaged AVI can still produce output, though it may be shorter.

Frequently Asked Questions

Everything you need to know about our converter

Is the result a bare MJPEG stream?

What happens to the sound?

Why is the MJPEG file so big?

Can I change the JPEG quality?

Will it keep my size and frame rate?

Can I get a folder of JPEG pictures instead?

Is anything sent to a server?

Can I convert more than one AVI?