.MJPG

MJPG File

Motion JPEG Video File
Ask a question
QUICK ANSWER

An MJPG file is a Motion JPEG video where every frame is stored as a separate JPEG image. It comes most often from IP cameras, dashcams, and USB webcams. VLC media player (free, Windows/Mac/Linux) opens MJPG files directly. To reduce file size, convert to MP4 using HandBrake or FFmpeg.

Developer: N/A (no single owner; independently implemented by many vendors) Category: Video Files MIME: video/x-motion-jpeg
OPENS ON Windows macOS Linux Web
Related: .DAV · .MKV · .MP4 · .H264

On this page

19k+ extensions indexed
Last reviewed Jul 9, 2026

Not sure what your file is?

Drop any file into our identifier - we read just the first bytes to name the format.

Identify a file

What is the MJPG file format?

An .mjpg file contains Motion JPEG (MJPEG) video - a sequence of individual JPEG images played back in rapid succession to create the appearance of motion. Unlike codec-compressed formats such as H.264, there is no inter-frame compression: every frame is a complete, independently decodable JPEG image.

Most .mjpg files use an AVI container (RIFF-based) with the MJPG FourCC in the video stream header. Some cameras output a raw stream of concatenated JPEG frames, each beginning with the standard FF D8 start-of-image marker. QuickTime MOV and RTP streaming (RFC 2435) are also common delivery wrappers.

MJPEG's defining property - every frame is a keyframe - makes it well-suited for frame-accurate editing, minimal decoder latency, and simple hardware implementation. As of 2026 it remains the dominant format for USB webcams (UVC standard), IP and security cameras (ONVIF MJPEG profile), industrial machine-vision cameras, and video capture cards. Frame-by-frame scrubbing in video editors is straightforward because no reference frames must be decoded first.

The trade-off is file size: MJPEG produces significantly larger files than H.264 at equivalent visual quality. Files range from a few megabytes for a brief clip to several gigabytes for hours of security footage. VLC, FFmpeg, and most video editors handle .mjpg files without additional codecs.

Security & safety

RISK: LOW

MJPG files are video data - they do not execute code. Opening them in VLC, HandBrake or FFmpeg is safe. Risks are indirect: 'Motion JPEG player' or 'codec pack' download sites sometimes bundle adware or PUPs - use only official VLC (videolan.org), HandBrake (handbrake.fr), FFmpeg (ffmpeg.org) downloads. Malformed MJPG files could theoretically trigger bugs in parser code (JPEG parsing vulnerabilities) but no known active exploits in major players.

Format details

in a nutshell
FULL NAMEMotion JPEG Video Fileaka MJPEG file, M-JPEG video
DEVELOPERN/A (no single owner; independently implemented by many vendors)since Early 1990s (first used in digital video cameras and capture cards)
CATEGORYVideo Files
MIME TYPEvideo/x-motion-jpeg
TYPEIntraframe-only video; each frame is an independent JPEG image in sequence
This extension is also used by…
  • Wavelet MJPG variant (lossless) - Some professional cameras output a lossless/near-lossless MJPEG variant not compatible with standard MJPG decoders.

Programs that open MJPG files

Windows5 apps
VLC media player Open-source Open the .mjpg file directly in VLC - it decodes MJPEG natively. Also converts via Media > Convert/Save.
Windows Media Player Built-in May play MJPG-in-AVI with appropriate codec; install K-Lite Codec Pack if playback fails.
Freemake Video Converter Freemium Load the .mjpg and convert to MP4 or AVI. Note: Freemake prompts for paid upgrades; VLC/HandBrake are cleaner alternatives.
MediaCoder Freemium Open and transcode .mjpg files. Actively maintained batch converter.
HandBrake Open-source Load the .mjpg and convert to MP4/H.264 - the standard free transcoder for archiving to modern formats.
macOS2 apps
VLC media player Open-source Open .mjpg in VLC on macOS - plays directly. QuickTime may refuse without a codec.
HandBrake Open-source Convert MJPG to MP4/H.264 for playback in QuickTime or on iOS.
Linux3 apps
VLC media player Open-source vlc file.mjpg - native MJPEG decoding.
FFmpeg Open-source ffmpeg -i in.mjpg -c:v libx264 out.mp4 - transcode MJPEG to H.264 MP4.
MJPEG Tools Open-source Command-line tools for MJPEG capture, editing and conversion on Linux. Older project but functional.
Web1 app
Mozilla Firefox Open-source Firefox can display MJPEG streams natively in an <img> tag (multipart/x-mixed-replace), but does not open standalone .mjpg files from the local filesystem.

Technical details

deep spec
ContainerTypically AVI (RIFF-based) with `MJPG` FourCC; also QuickTime MOV, raw JPEG sequence, or RTP (RFC 2435)
Magic bytesAVI: `52 49 46 46` (RIFF) at offset 0, `41 56 49 20` (AVI ) at offset 8; raw stream: `FF D8` per-frame SOI marker
Video codecMotion JPEG - JPEG DCT lossy compression applied independently to each frame
Temporal compressionAbsent - each frame is an independent JPEG with no reference to preceding or following frames (no P-frames or B-frames)
FourCC`MJPG` in AVI stream header; Huffman tables may be omitted from interior frames (standard tables assumed by decoder)
Color depth24-bit, 4:2:0 YCbCr typical for video; 4:2:2 in professional and broadcast variants
Frame independenceEvery frame is a full keyframe; random access and frame-accurate editing require no reference frame decoding
Audio (when present)PCM or compressed audio interleaved in the AVI/MOV container, typically 8-48 kHz sample rate
Resolution range640×480 to 3840×2160 (device-dependent); JPEG format supports up to 65535×65535 per frame
Typical size1 MB - 4 GB (brief webcam clip to hours of security camera footage)
Byte orderLittle-endian (AVI/RIFF container)
RTP/MJPEG standardIETF RFC 2435 defines packetization of MJPEG frames over RTP for live streaming in IP camera protocols
Key use casesUSB webcams (UVC), IP/security cameras (ONVIF), industrial cameras, video capture cards
Superseded byH.264/AVC (MP4) for general use; MJPEG persists where intraframe-only per-frame access is required
ReleasedEarly 1990s (first used in digital video cameras and capture cards)
Latest versionN/A - no formal versioning; format is stable and implementation-defined
Specificationwww.loc.gov

MJPG conversions

Community Q&A

asked by users
Ask a quick question
Get help from people who work with MJPG files. Be specific - include your system and software version.
No account needed · answers usually within a day

No questions yet - be the first to ask about MJPG files.

Frequently asked questions

What is an MJPG file?
An MJPG (Motion JPEG) file is a video where every frame is stored as an independent JPEG image. It is common output from IP cameras, USB webcams, dashcams and industrial cameras.
How do I open an MJPG file?
Use VLC media player (free, Windows/Mac/Linux) - it plays MJPG natively. Windows Media Player may also work with the right codec installed.
How do I convert MJPG to MP4?
Use HandBrake (free GUI) or FFmpeg (command line: 'ffmpeg -i in.mjpg -c:v libx264 out.mp4'). This re-encodes to H.264 and typically reduces file size significantly.
What is the difference between MJPG and MJPEG?
.mjpg and .mjpeg are both extensions for Motion JPEG video files - there is no technical difference. Both typically contain AVI containers with MJPEG-encoded frames.
Why is my MJPG file so large?
MJPEG compresses each frame independently (like a JPEG photo) with no inter-frame compression. Modern codecs like H.264 are 2-5× more efficient. Convert to MP4/H.264 to save space.
Can I extract frames from an MJPG video?
Yes - since each frame is already a JPEG, you can extract them with FFmpeg: 'ffmpeg -i in.mjpg frame%04d.jpg'. VLC's 'Take Snapshot' also grabs individual frames.

References

1Wikipedia - Motion JPEGen.wikipedia.org
2Library of Congress - Motion JPEG format descriptionwww.loc.gov

Keep exploring

across the database

Top extensions this week

1.AQQAQQ Instant Messenger File
2.CRDOWNLOADChrome Partial Download File
3.PARTPartial Download File
4.DATProgram Data File (generic)
5.EXEWindows Executable (Portable Executable)
6.BINCD/DVD Disc Image (BIN/CUE)
7.NOMEDIAAndroid No-Media Marker File
8.MDMarkdown Document
9.TMPTemporary File
10.RPMSGRestricted Permission Message

Related extensions

.DAVDVR365 / Dahua DVR Video File (DHAV stream)
.MKVMatroska Video
.MP4MPEG-4 Part 14 Video File
.H264Raw H.264 / AVC Video Elementary Stream
.VOBDVD Video Object File
.264Raw H.264 / AVC Video Elementary Stream (DVR/CCTV export)

Free file tools

An in-browser file identifier and image converter - everything runs on your device.

Open the toolbox

Browse file extensions A-Z