MJPEG to ASF Converter

Convert MJPEG files to ASF format online. Free, fast, no watermarks.

Initializing... drag & drop files here

Supports: MJPEG

OptionsAdvanced Options - Our defaults are optimized for the best results. We recommend you keeping the defaults unless you have a specific need.
Show All Options
File Compression
Preset
Video resolution
Trim

MJPEG to ASF: What This Tutorial Covers

A .mjpeg file is a raw Motion JPEG elementary stream — a run of complete JPEG images end to end, with no container wrapped around them. ASF is Microsoft's Advanced Systems Format, the wrapper behind Windows Media. Converting one to the other is a full re-encode, and the interesting part is not the container: it is that a raw MJPEG stream carries no frame rate, no duration and no timestamps at all, which changes how long your output turns out and makes one control on this page unusable. This tutorial covers all of that, plus which codec to pick depending on what has to play the file.

How to Convert MJPEG to ASF

  1. Upload Your MJPEG File: Drag the .mjpeg onto the page or click "+ Add Files". Several streams can be queued and each is converted with the same settings.
  2. Confirm the Video Codec and Audio Codec: Video Codec opens on H.264 and lists twenty options, from modern choices such as AV1, VP9, VP8 and H.264 through to the legacy set — MPEG-1, MPEG-2, MPEG-4, MS MPEG-4, Xvid, DivX, FLV, Flash Video, HuffYUV, H.261, H.263, H.263+, MJPEG, Theora, and WMV 1 and WMV 2. Audio Codec opens on WMA v2, though on this source it usually has nothing to do — see the questions below.
  3. Set File Compression and Video resolution: File Compression opens on Quality Preset at Very High (Recommended), with Specific file size, Constant Bitrate, Variable Bitrate, Constant Quality and Constraint Quality alongside it. Video resolution opens on Keep original.
  4. Convert and Download: Click Convert and save the .asf. Files upload over an encrypted connection, are processed on our servers, and are deleted automatically after a few hours — no sign-up, no watermark, never shared or made public.

Walk-through: The Timeline a Raw .mjpeg Does Not Have

Every normal video file records how fast its frames should play. A raw MJPEG stream records nothing: it is a concatenation of JPEG images with no header, no index and no timing information whatsoever. Probing one returns N/A for duration, N/A for bitrate and N/A for frame count. A decoder therefore has to assume a frame rate, and the assumption is 25 frames per second.

We measured what that costs. We encoded four seconds of footage shot at 10 fps — forty frames — into a raw MJPEG stream, then converted it back to a normal container without touching any settings. The result was a 1.6-second clip at 25 fps: the same forty frames, played two and a half times too fast. Nothing was lost and nothing was corrupted; the frames simply have no timestamps telling anyone how far apart they were meant to be.

Two consequences follow, and neither has a workaround on this page:

  • Your output's duration is frame count divided by 25. If the source was captured at 5, 10 or 15 fps — typical of surveillance and machine-vision recorders — the ASF will be shorter and faster than the footage really was. There is no frame-rate control on this page to correct it.
  • Trim's Start time does not work on this source. The trim is applied as a seek into the input, and the demuxer that reads a raw JPEG stream cannot seek. We converted the same stream with a one-second start offset and got back a 672-byte file containing zero frames. Leave Trim on Unchanged. A Duration with the Start time left at zero is fine — that trims from the beginning and works normally.

If you need a specific section of a raw MJPEG stream, the reliable route is to convert the whole thing first and cut the result, using Video Cutter on the finished file.

Codec Choice: H.264 by Default, WMV If Windows Media Has to Play It

H.264 (the default) WMV 2 MJPEG
Compression efficiency Best of the three by a wide margin Middling Poor — every frame stored whole
Plays in Windows Media Player from an .asf Not dependably; the container permits it but the player may not decode it Yes, this is what ASF was built for Rarely
Quality control you get A CRF box running 16 to 51 A quantiser box running 1 to 31, opening at 5 Quantiser-based
Sensible use The file is going to a modern player, an editor, or storage The destination is genuinely a Windows Media pipeline You need every frame independently decodable

That third row is worth spelling out, because it changes the page under you. Choosing WMV 1 or WMV 2 re-ranges the quality controls. With H.264 selected, Constant Quality and Constraint Quality show a CRF slider from 16 to 51 where higher means smaller. Switch to WMV and the same two controls become a 1-to-31 quantiser scale opening at 5, where lower means better. The numbers are not comparable between the two, so do not carry a value across.

Microsoft's own documentation notes that an ASF file's "streams can be in any compressed or uncompressed format", which is why H.264 inside ASF is legal — but legality and playback are different questions. If the file has to open in Windows Media Player or feed an old Windows Media server, choose WMV 2. If it just has to play, MJPEG to MP4 will serve you far better than any ASF.

ASF at a Glance

Property Value
Full name Advanced Systems Format, originally Advanced Streaming Format
Owner Microsoft — see the ASF format overview
Related extensions .wmv and .wma are the same container, named for the codecs inside
Structure A required Header object and Data object, plus an optional Index object, each identified by a GUID
Designed for Streaming from media servers and local playback of synchronised media
Codec restrictions None in the container itself; compatibility is decided by the player
Status today Legacy — supported by VLC and Windows, but not by browsers

Common Errors and How to Fix Them

  • "The clip plays too fast / is shorter than it should be" — the raw stream has no frame rate and 25 fps is assumed. Expected behaviour on this source, and not correctable here.
  • "My trimmed conversion produced an unplayable file" — Trim's Start time cannot seek into a raw MJPEG stream. Set it back to Unchanged and cut the finished file instead.
  • "There is no sound" — a raw .mjpeg holds only JPEG images. There is no audio in the source to carry over.
  • "Windows Media Player will not play the ASF" — you are probably on the default H.264 codec. Re-convert with WMV 2 selected.
  • "The file got bigger than the MJPEG" — unlikely, but if it happens, the quality preset is targeting more bitrate than the source needed. Switch File Compression to Constant Bitrate and set a rate you choose.

Frequently Asked Questions

Why is my converted clip shorter than the original footage?

Because a raw MJPEG stream contains no timing information, so a fixed 25 frames per second is assumed. We tested it directly: forty frames captured over four real seconds at 10 fps came back as a 1.6-second, 25 fps clip. Every frame is present and undamaged — they are simply being played faster than they were shot. If the true rate matters, the fix has to happen upstream, by recording or exporting to a container that stores a frame rate.

Can I trim the clip during conversion?

Only from the beginning. The Trim control applies its Start time as a seek into the input file, and the demuxer that reads a raw JPEG stream cannot seek — we ran a one-second start offset and got a 672-byte file with zero frames in it. Leaving Start at zero and setting only a Duration works normally. To take a section out of the middle, convert the whole stream first and then cut the result with Video Cutter.

Why does the Audio Codec dropdown do nothing?

Because there is no audio to encode. A .mjpeg file is a sequence of JPEG images and nothing else — there is no container around them able to hold a soundtrack. The Audio Codec group renders because it is shared across every video target on the site, but with no audio stream in the input, no audio stream is created in the output. A video-only source produces a video-only ASF rather than one with a track of silence.

Which video codec should I actually pick?

It depends entirely on what has to open the file. If you are converting to ASF because a Windows Media server, an old enterprise system or Windows Media Player itself demands .asf, choose WMV 2 — that is the pairing ASF was designed around and the one most likely to just work. If you are converting for storage or for a modern player, the default H.264 gives far better quality per megabyte, but be aware that H.264 inside an ASF wrapper is unusual and some Windows Media software will refuse it.

Why did the quality slider change when I picked WMV?

Because the two codec families use different quality scales and the page follows the codec. On H.264 the Constant Quality and Constraint Quality controls show a CRF value from 16 to 51 where a bigger number means more compression. Selecting WMV 1 or WMV 2 switches them to a quantiser from 1 to 31, opening at 5, where a smaller number means better quality. A value that made sense on one scale is meaningless on the other.

Is the conversion lossless since MJPEG is already JPEG frames?

No. The server always re-encodes rather than copying the existing frames across, so your already-lossy JPEG frames are decoded and compressed again by whichever codec you chose. That second generation of loss is unavoidable in any container change of this kind. Keeping Video resolution on Keep original and the quality preset high is how you minimise it. The one codec choice that avoids re-compressing across frames is MJPEG itself, but it still re-encodes each frame.

What is a raw .mjpeg file, and where do they come from?

Motion JPEG stores video as a run of complete, independent JPEG images with no interframe compression at all. A .mjpeg file is that run with no container wrapped around it. They come mostly from IP cameras, surveillance recorders, machine-vision systems, microscopes and scientific capture hardware, where per-frame independence and simple decoding matter more than file size. The trade is efficiency: MJPEG files are several times larger than the equivalent H.264 for the same picture.

Can I get an ASF that plays in a browser?

No — no browser plays ASF, at any version, and none is likely to start. ASF is a Windows Media container designed for Windows Media Player and Windows Media Services. If your goal is playback on a phone, a browser or a smart TV, convert to MP4 instead with MJPEG to MP4, or to MKV with MJPEG to MKV if you want a modern archive container.

What happens to my file after the conversion?

It is uploaded over an encrypted connection, decoded and re-encoded on our servers, and both the upload and the finished .asf are deleted automatically after a few hours. Files are never shared or made public, there is no sign-up and no watermark, and your original .mjpeg is left untouched — the ASF is written as a new file.

Rate MJPEG to ASF Converter Tool

Rating: 4.8 / 5 - 48 reviews