Back to Glossary

MJPEG (Motion JPEG)

MJPEG (Motion JPEG) is a video compression format that compresses each video frame as a separate JPEG image. While it was once widely used in video surveillance and early digital video applications, it has largely been replaced by more efficient codecs like H.264 and H.265 in modern systems.

Historical Context and Current Status

MJPEG was developed in the early days of digital video when processing power was limited. It gained popularity in video surveillance systems due to its simplicity and the ability to capture individual frames without complex encoding. However, as processor capabilities improved, more efficient codecs became practical:

  • High Bitrate Requirements: MJPEG typically requires 10 times more bandwidth than H.264 for similar quality
  • Limited Compression Efficiency: Each frame is compressed independently, missing opportunities for temporal compression
  • Modern Alternatives: H.264 and H.265 offer superior compression while maintaining quality
  • Current Usage: Primarily found in legacy systems and specific professional applications

Technical Overview

MJPEG works by applying JPEG compression to each individual frame of a video sequence:

  1. Frame Capture: Each video frame is captured as a complete image
  2. JPEG Compression: Each frame is compressed using the JPEG algorithm
  3. Frame Storage: Compressed frames are stored or transmitted sequentially
  4. Decompression: Each frame is decompressed independently during playback

Professional Applications

While MJPEG is largely obsolete in consumer applications, it still has niche uses in professional settings:

  • High-End Video Production: Used in some professional video equipment
  • Medical Imaging: Certain medical video applications
  • Scientific Imaging: High-precision video capture systems
  • JPEG-XS/JPEG-2000: Modern successors used in professional content creation

Modern Alternatives

Today's video compression landscape offers several superior alternatives:

  • H.264/AVC: The most widely used codec, offering excellent compression
  • H.265/HEVC: Provides even better compression efficiency
  • AV1: Open-source codec with royalty-free licensing
  • JPEG-XS: Professional-grade low-latency compression
  • JPEG-2000: Used in high-end professional applications

SMPTE-2110 and JPEG Compression

In professional video production, JPEG compression finds new life in the SMPTE-2110 standard, which uses JPEG-XS for compressing individual video frames in IP-based video production workflows. This modern implementation offers:

  • Ultra-low latency compression
  • High-quality video preservation
  • Professional-grade performance
  • IP-based video transport
  • Broadcast-quality standards

Technical Specifications

MJPEG's technical characteristics include:

  • Compression: JPEG-based frame compression
  • Bitrate: Significantly higher than modern codecs
  • Latency: Low due to frame-by-frame processing
  • Quality: Depends on JPEG compression settings
  • Color Space: Typically YUV 4:2:0 or 4:2:2
  • Resolution Support: Varies by implementation

Advantages and Limitations

Advantages

  • Simple implementation
  • Frame-accurate editing
  • Low processing requirements
  • No inter-frame dependencies

Limitations

  • High bandwidth requirements
  • Limited compression efficiency
  • Large file sizes
  • Outdated technology
  • Limited modern support

Future of Frame-Based Compression

While MJPEG itself is largely obsolete, its concept of frame-based compression lives on in modern professional applications:

  • JPEG-XS: Used in SMPTE-2110 for professional video
  • JPEG-2000: High-end professional video applications
  • ProRes: Apple's professional video codec
  • DNxHD: Avid's professional video codec

These modern implementations offer the benefits of frame-based compression while addressing MJPEG's limitations.

Flussonic Media Server supports modern video codecs and compression technologies, providing efficient and reliable video delivery solutions for both live streaming and video-on-demand content.