Convert MJPEG to AVI

Turn MJPEG videos into AVI. MPEG-4 Part 2 video in an AVI file at 25 frames per second, since a raw MJPEG stream carries no timing.

Converted in an isolated sandbox on our serversDeleted after 24 hours

Drop MJPEG files on the dialor turn it to pick what to do

An AVI file from a Motion JPEG stream.The video is written as MPEG-4 Part 2 at 25 frames per second.

  1. What you get

    One AVI file with MPEG-4 Part 2 video. A raw MJPEG stream carries no timing, so the conversion sets 25 frames per second.

    Set Frame rate (fps) to use a different rate. Fewer frames make a smaller file and choppier motion. 24 to 30 looks natural.

  2. Shaping the video

    Set Max width or Max height to shrink large frames. The shape is kept, and frames that are already smaller stay as they are, so nothing is enlarged.

    Set Rotate to turn the result by 90, 180 or 270 degrees clockwise. Set Speed to play faster or slower, where 2 is twice as fast and 0.5 is half as fast.

    Set Start at to cut seconds from the beginning. Set Stop at to end at a second of the original. It counts from the start of the original, so it must be later than Start at.

  3. When it fails

    A file that cannot be parsed stops with input_corrupted. The conversion needs a readable MJPEG stream to work from.

    To go the other way, use AVI to MJPEG.

MJPEG and AVI.What each format is, and the options this conversion takes.

  1. 01 · max_height

    Max height (px)

    Shrinks anything taller than this, keeping its shape. Anything shorter stays as it is, so nothing is ever enlarged.

    16 to 20000
  2. 02 · max_width

    Max width (px)

    Shrinks anything wider than this, keeping its shape. Anything narrower stays as it is, so nothing is ever enlarged.

    16 to 20000
  3. 03 · rotate

    Rotate

    Turns the result clockwise by a quarter, a half or three quarters.

    90 · 180 · 270
  4. 04 · speed

    Speed

    Plays faster or slower. 2 is twice as fast and 0.5 half as fast. Voices keep their pitch.

    0.25 to 4
  5. 05 · trim_end

    Stop at (s)

    Stops at this second of the original. It counts from the start of the original, not from where trimming starts, so it must be later than Start at.

    0 to 86400
  6. 06 · trim_start

    Start at (s)

    Cuts this many seconds from the beginning. Decimals such as 1.5 work.

    0 to 86400
  7. 07 · video.fps

    Frame rate (fps)

    Frames per second. Fewer frames make a smaller file and choppier motion. 24 to 30 looks natural, and 10 to 15 is common for animated pictures.

    1 to 120

The formats

From · MJPEG

Motion JPEG

A stream of JPEG frames, what many webcams and IP cameras send.

Extensions
.mjpeg .mjpg
MIME type
video/x-motion-jpeg
Kind
Video
To · AVI

AVI Video

Microsoft's original video container. Old, large and still around.

Extensions
.avi .divx .xvid
MIME type
video/x-msvideo
Kind
Video

In your code.The same MJPEG to AVI conversion through the API, for your app or your agent.

terminal
$ cv convert clip.mjpeg clip.avi
$ cv convert clip.mjpeg clip.avi

Questions.What people ask about MJPEG to AVI.

01OF 04

It has 25 frames per second. A raw MJPEG stream carries no timing, so that rate is set for you. Set Frame rate (fps) to change it.

Yes. Set Max width or Max height to shrink frames, and nothing is ever enlarged. A lower Frame rate (fps) also makes a smaller file.

Yes. Set Start at to skip the beginning and Stop at to end at a given second of the original.

The file could not be parsed. The conversion stops with input_corrupted in that case.

More conversions.Other ways in and out of MJPEG and AVI.