A primer on inter- vs. intra-frame video compression
The Elemental blog seems to attract an inordinate amount of spam, but it also gets the occasional reasonable questions from folks. One of the more confusing aspects of video compression seems to be inter- vs. intraframe compression. Here's a brief lesson on both. Video in it's simplest sense can be thought of as a series of still images (hence the early days of film were called "moving pictures" until some marketing genius compressed the words and came up with "movies"). When these still images are flipped past the human eye fast enough, the eye interprets the frames as motion instead of unique still images. From a compression perspective, however, they are still just a series of images displayed in a specified order. Video compression then focuses on how to take these contiguous frames of video and minimize the amount of information needed to code the picture. The natural first step is to compress each individual image. This is known as intraframe compression, and uses only information contained in the current frame to minimize the image size. As an example, JPEG (the standard file format used for images on the Internet) uses the discrete cosine transform to rid images of high-frequency components, which are generally not perceptible by the human psychovisual system; by throwing this information away, a still image can be coded with much less data. This idea has been refined over generations, with early still-image standards like GIF and JPEG laying the foundation for more complex video standards like Motion JPEG and DV, the standard widely used in MiniDV videocameras. As demand for better picture quality at lower bit rates increased, however, the compression achievable by intra-only encoding became insufficient. Temporal compression or interframe encoding was introduced in the MPEG-1 standard, and has since been refined in the MPEG-2, VC-1 and H.264 codecs. These codecs include intraframe (I-frame) coded images as described in the preceding paragraph, but they also contain predictive-coded frames (P-frames) and bidirectionally-predictive-coded frames (B-frames). P-frames rely on images that were transmitted earlier in the sequence, and use data in these frames -- with minor changes -- create the current frame. B-frames are similar, but can use data from images earlier and later in video sequence. There can be many P- and B-frames between each I-frame, and since most video sequences have similar images for long periods of time dramatically higher compression can be achieved. The consecutive number of interframe images is referred to as Group of Picture (GOP) length. The benefits of intraframe-only compression are that it is generally less computationally expensive to process, since it doesn't require multiple frames to be stored in memory and accessed concurrently. There is also less latency in the encoding process, so compressed images are created much quicker. Hence, historically digital videocameras have captured intraframe-only formats (DV, DV50, DVCPRO HD, AVC-Intra). However, new generations of consumer camcorders with limited storage capacity are relying on interframe-encoded formats like HDV (a long-GOP version of MPEG-2) and AVCHD (a long-GOP version of H.264). These formats allow high-definition video to be stored on the same MiniDV tapes that previously could only capture standard-definition video. Editing these long-GOP formats is incredibly computationally intensive, as for each image displayed, many temporally adjacent frames need to be decoded first. Hence the need for GPU-accelerating decoding and Elemental's RapiHD™ software!
- ‹ previous
- 70 of 72
- next ›

Comments
Video compression
I believe in inter-frame more than intra-frame video compression.
It is more stable, efficient & also very compatible with most of the supporting systems.
Till know, it has never let me down, I totally recommend it.
CNA Certification Programs
Travel
צימרים בצפון Accommodation in the north, who then put the flag factories and uncompromising reliability and prestige.
Video on website
Thanks for the information you have provided, having a video to illustrate what your website gives a great impression & really enhances the sales.
I have seen a website for Dubai Hotels where all the hotels are presented with videos as well as photos.
It really gives a a good picture about what you are about to book.
Hotel website
I think this will be very helpful in my next Hotel Online Booking Engine, I can add video which will provide more interaction with surfers.
The Hotel website should be attractive & informative, which is an easy reachable target by adding video to it.
Thanks for the information.
Inter-Intraframe
Actually I didn't know anything about interframe & intraframe.
You have given all the information in an easy & illustrative way.
As you said, The Elemental blog seems to attract an inordinate amount of spam, but it also gets the occasional reasonable questions from folks.
Thanks for the information.
anonymous surfing
Video compression refers to
Video compression refers to reducing the quantity of data used to represent digital video images, and is a combination of spatial image compression and temporal motion compensation.
camera shops sydney
Thanks, Thanks, for the
Thanks,
Thanks, for the great resource! Have you wirtten anything else about compression?
I hope someone knows who this guys is, and can give me his name, I could user more information about books he wrote, and all.
God Bless You,
Grae Cullen
pd...my understanding (at
pd...my understanding (at least for HDV) is that every 15th frame is an I-frame. So, the camera starts by recording one full frame, and the next 14 frames are interpretations from the first frame, then another full frame (I-frame) is recorded, etc. Also, a quick wikipedia search revealed to me that H.264 and AVC codec are the same, just different terms.
Having a long GOP simply
Having a long GOP simply means the distance between a keyframe (or I-Frame) is very large. For example, with a GOP of 250 (fairly long) you have 1 I-Frame, followed by 249 P or B Frames. Also, H.264 is a standard, whereas AVCHD is an implementation of that standard.
Very useful and informative read for people who don't know the differences!
does that mean that long GOP
does that mean that long GOP would have a single I-frame and all the other frames would be either P or B frames?....it's still not clear to me what is the difference between h.264 and AVCHD...would h.264 decoder not decode AVCHD as well?
Hey, that was a great
Hey, that was a great high-level overview, thanks!