MJPEG
From Wikipedia, the free encyclopedia
Motion JPEG (M-JPEG) is an informal name for multimedia formats where each video frame or interlaced field of a digital video sequence is separately compressed as a JPEG image. Unlike the video formats specified in international standards such as MPEG-2 and the format specified in the JPEG still-picture coding standard, there is no document that defines a single exact format that is universally recognized as a complete specification of "Motion JPEG" for use in all contexts.
Motion JPEG uses intraframe coding technology that is very similar in technology to the I-frame part of video coding standards such as MPEG-1 and MPEG-2, but does not use interframe prediction. The lack of use of interframe prediction results in a loss of compression capability, but eases video editing, since simple edits can be performed at any frame when all frames are I-frames. Video coding formats such as MPEG-2 can also be used in such an I-frame only fashion to provide similar compression capability and similar ease of editing features.
Using only intraframe coding technology also makes the degree of compression capability independent of the amount of motion in the scene, since temporal prediction is not being used. (Using temporal prediction can ordinarily substantially improve video compression capability, but makes the compression performance dependent on how well the motion compensation performs for the scene content.)
M-JPEG is frequently used in non-linear video editing systems. Reproduction of this format at full speed requires fast JPEG decoding capability.
M-JPEG is also commonly used by IP based video cameras via HTTP streams by using the multipart/x-mixed-replace content type. This separates each image into individual HTTP replies on a specified marker. Mozilla based browsers like Netscape and Firefox have native support for viewing these streams whereas Internet Explorer does not.
The PlayStation game console has integrated M-JPEG decompression hardware in order to play in-game FMV sequences. The SanDisk Sansa digital audio player plays short M-JPEG videos.
The bitrate falls between uncompressed formats (like RGB, compression 1:1, and YCbCr, compression 1:1.5 to 1:2.5) and MPEG (1:100) Data rates in the range of 29 Mbit/s are very high quality, but also result in comparatively large file sizes.
Prior to the recent rise in MPEG-4 encoding in consumer devices, a progressive scan form of MJPEG also saw widespread use in e.g. the "movie" modes of Digital Still Cameras, allowing video encoding and playback through the integrated JPEG compression hardware with only a software modification. Again, the resultant quality is markedly reduced compared to MPEG compression at a similar bitrate, particularly as sound (when included) was often uncompressed PCM or low-compression (and low processor-demand) ADPCM. To compensate and keep file sizes / transfer rates under control, frame sizes and rates, along with sound sampling rates, were kept relatively low, with very high levels of compression for each individual frame; e.g. 160x120 or 320x240 common sizes, typically at 10, 12 or 15 frames/second, with picture quality equivalent to a JPEG setting of "50" (harsher compression than used commercially in typical digital stills) and 8khz mono ADPCM sound. This resulted in a very basic, but still servicable video output at a similar storage cost to MPEG (~120kbyte/sec video rate, ~8kbyte/sec audio - or approx 1mbit/sec at "high" 320x240 resolution), but with minimal processing overheads. This user generated content was typically stored in the popular Windows AVI or Apple Quicktime MOV container files, generally viewable natively (or after installation of a simple CODEC driver) in most versions of the applicable operating system.
Since the development of the original JPEG standard in the early 1990s, technology improvements have made improvements in intraframe compression possible. The JPEG organization itself has developed a new design called JPEG 2000, and other types of such technology improvements can be found in the designs of H.263v2 Annex I and MPEG-4 Part 2, which use frequency-domain prediction of transform coefficient values, and in H.264/MPEG-4 AVC, which uses spatial prediction and adaptive transform block size techniques and more sophisticated entropy coding than what was practical when the first JPEG design was developed.
[edit] See also
[edit] External links
Multimedia compression formats | |
---|---|
Video compression formats | ISO/IEC: MPEG-1 | MPEG-2 | MPEG-4 | MPEG-4/AVC | ITU-T: H.261 | H.262 | H.263 | H.264 | SMPTE: VC-1 Others: AVS | Dirac | Indeo | MJPEG | RealVideo | Theora | VP7 | WMV |
Audio compression formats | ISO/IEC MPEG: MPEG-1 Layer III (known as MP3) | MPEG-1 Layer II | AAC | HE-AAC ITU-T: G.711 | G.722 | G.722.1 | G.722.2 | G.723 | G.723.1 | G.726 | G.728 | G.729 | G.729a Others: AC3 | ATRAC | FLAC | iLBC | Monkey's Audio | Musepack | RealAudio | SHN | Speex | Vorbis | WavPack | WMA |
Image compression formats | ISO/IEC/ITU-T: JPEG | JPEG 2000 | JPEG-LS | JBIG | JBIG2 Others: BMP | GIF | ILBM | PCX | PNG | TGA | TIFF | WMP |
Media container formats | 3GP | ASF | AVI | FLV | Matroska | MP4 | MXF | NUT | Ogg | Ogg Media | QuickTime | RealMedia Audio only: AIFF | AU | WAV |