You are here

Understanding Digital Video Architecture

MPEG-2, DivX, AVCHD: These are just a few of the confusing acronyms of digital video. Let's clear the air a bit

MPEG-2, DivX, AVCHD: These are just a few of the confusing acronyms of digital video. Let's clear the air a bit

To understand Digital Video Architecture, you need to start at the beginning. The beginning in this case is known as Video Compression. That is the start of this article; after that, we will get into the most common formats in use today.

In order to make digital video's use widespread, there had to be a way to reduce the amounts of data that needed to be stored and transmitted. This reduction in the amount of storage is a direct result of the advances made possible by video compression. The advances in video compression have single-handedly led to the widespread use of video to the desktop and to hundreds of channels in your home. To boil it down to its most simplistic level, compression is performed when an inputted video is analyzed and the information that is indiscernible to the viewer is dropped. Each event is given a code - the most commonly occurring events are given fewer bits and the rarer events will have more bits. These steps are usually known as signal analysis, quantization and variable length encoding.

There are 4 major ways to compress video. Discrete cosine transform (DCT), vector quantization (VQ), fractal compression (FC) and discrete wavelet transform (DWT).

DCT is not a very good compression algorithm. It samples images at regular intervals, analyzes the frequency components present in the sample, and discards those frequencies that do not affect the image as the human eye perceives it. DCT is the standard used for JPEG and MPEG.

Vector quantization is also a bad compression algorithm that looks at an array of data instead of individual values. It will then generalize what it sees, compressing the found redundant data, and at the same time keeping the desired object.

Fractal compression is a form of vector quantization, and this also is a bad compression algorithm. This type of compression is performed by finding self-similar sections of a particular image, then using a fractal algorithm to create the sections.

Discrete Wavelet Transform mathematically transforms an image into frequency components. This process is performed on the entire image. Obviously, this differs greatly from the other methods that work only on smaller sections of the desired data. The end result is a very effective hierarchical representation of an image, where every layer represents a frequency band.

The Result of Compressing Video

MPEG stands for Moving Picture Experts Group. MPEG was established in 1988 to develop standards for digital audio and video formats. There are 4 MPEG standards being used right now. Each compression standard was designed with a specific application and bit rate in mind.

MPEG-1 is designated for 1.5Mbit/sec standard for the compression of moving pictures and audio. This was based on CD-ROM video applications and is a popular standard for video on the Internet transmitted as an .mpg file. Level 3 of MPEG-1 is the most popular standard for digital compression of audio - known as MP3. VideoCD uses MPEG-1 as its standard compression method. It is not very complicated to create and will yield okay results.

MPEG-2 is designed for 1.5 to 15Mbit/sec standard on which digital TV set top boxes and DVD compression are based. It is based on MPEG-1 but designed for the compression and transmission of digital broadcast television. The most significant improvement over MPEG-1 is its ability to efficiently compress interlaced video.

MPEG-4 is the standard of multimedia and Web compression. MPEG-4 is based on object-based compression, similar to Virtual Reality Modeling Language. Individual objects within a scene are tracked separately and compressed together to create an MPEG-4 file. The end result is a very good and efficient compression that is very scalable, from low bit rates to very high ones. This format is the one most used today.

It offers excellent video and audio quality. It is the most popular MPEG standard used right now.

JPEG stands for Joint photographic Experts Group. JPEG is not a very good compression technique for full-color or grayscale images, as it exploits the fact that the human eye will not notice small color changes in an image.

Extensions to Keep an Eye On

.AVI It stands for Audio Video Interleaved. This type of file is a sound and motion picture file that conforms to the standards set by Microsoft Windows Resource Interchange File Format (RIFF). You will be able to recognize this type of file by its extension .avi. This is a common file format. The video quality is good at smaller resolutions; the only major drawback is that the files tend to be large. The most commonly used video codecs that use .avi are MJPEG and DivX. To play an .avi, you could use Windows Media Player, RealPlayer, or the DivX player.

.MOV This file extension identifies an Apple QuickTime movie; .mov is an Apple QuickTime motion video file format. Developed by Apple Computer for viewing moving images, .mov is a method of storing sound, graphics and movie files. Originally QuickTime was developed for the Macintosh; it is now available for Windows as well. Such .mov files are created and played back on the Apple QuickTime player.

MJPEG is short for Motion JPEG. It is a video codec where each video field is separately compressed into a JPEG image. It best suited for broadcast resolution interlaced video, such as NTSC or PAL. MJPEG is not good for movies that are smaller than TV resolutions. MJPEG is ill suited for progressive scan computer monitors. It is lso used for short files such as the short movies that can be made by a digital camera.

DivX is a software application that uses MPEG-4 standard to compress digital video. The DivXNetworks and the open source community are developing DivX jointly. The DivX player is a powerful and stable player.

Video Formats

HDV is a consumer high-definition video format that was developed by a consortium of manufacturers: JVC, Sony, Canon and Sharp. make up this consortium. These companies proposed the basic format specification in July of 2003. HDV is a 19-megabit-per-second MPED-2 transport stream that records to existing standard DV format digital video cassettes. The transport stream interface conforms to IEEE 1394, better known as FireWire. Essentially, HDV is the recording and playback of high-definition video on a DV cassette tape.

DV is a high-resolution digital video format used with video cameras and camcorders. The standard uses DCT to compress the pixel data and is an okay form of compression. The resulting video is transferred from the recording device via a FireWire cable (IEEE 1394). FireWire is a high-speed serial bus capable of transferring data up to 50 MB/sec.

AVCHD Short for Advance Video Codec High Definition, this format was introduced by Sony and Panasonic. It uses MPEG-4 H.264 encoding. AVCHD is still in its infancy, with video editing software applications slowly adding AVCHD compatibility. Blu-ray players will eventually be capable of playing back AVCHD discs.

All of these formats have their strengths and weaknesses. The question of which one is better or which one to use will vary depending upon your need. For example, if you are looking to archive some home movies, then what you may want to think about is compressing the video using MPEG-1, which will be a nice way of placing it on a VideoCD. Making it into a VideoCD will ensure that it will last a lot longer than your tapes. The problem is: what was the source format? Was it VHS or 8mm or Hi8, etc. The better the source format, the easier it is to use MPEG-1, as the quality will not degrade too much. If the source format is something like VHS that already has some years, you may want to consider using a better format to compress your video with. On the other hand, if you are making a student film, for example, you should be using a digital medium to begin with. This will ensure the least amount of degradation of the video. Being able to transfer your video using a FireWire cable is the best way to transfer from camcorder to computer. If you plan on making a small video that you can email to someone else or place on your Web site, I would definitely consider using DivX or QuickTime, as I have found these to offer the best quality.

The most popular thing to do nowadays is to burn home movies and student films or any kind of video to DVD format. The biggest problem is compatibility; I have found that some DVDs I have burned work on some DVD players, while on others they do not. If it is not a professional production and you want to share what you shot, you can always choose a format such as .avi, QuickTime, or DivX and burn it to a CD that way. Those who receive your CD can then save it or play it directly from the CD, as long as they have a compatible player (such as DivX, RealPlayer or Windows Media Player) on their machines. Finally, all of this is subjective; it will come down to many factors that go beyond the scope of this article, and in the end, trial and error will often yield the best results.

John Devcic is a freelance writer and videographer.

Tags:  April 2007
John
Devcic
Sun, 04/01/2007 - 12:00am