What's The Difference Between A Codec, Container And Video Format?
Do you know that video codecs, video containers and video formats are three different things? If not, then this guide might be for you. I'm trying to keep it as simple as possible, which means that this will not be as detailed as it could be. Afterwards you will be able to distinguish between codecs, containers and video formats.
Lets start with the video format. A format consists basically of a set of rules and parameters that define the video. This is the native resolution, color depth, the frames per second among other parameters. Video format examples are the DVD video format, the 3GP video format or 1080p and 1080i formats.
A video codec acts as a interpreter for the video format or formats it supports. Devices and software use codecs to compress and decompress video.
It is used by video players to determine how the video needs to be played correctly on the system. Many video players on a computer system come with their own set of binary codecs that only they can use. Codec packs on the other hand install codecs system wide so that applications like Windows Media Player can make use of them to play specific video formats.
A container more or less bundles multiple files. For videos, this is usually the video and audio track. More advanced container formats can include other data types as well like menus for example. Popular container formats are avi, mkv or mov.
One advantage of using a container for a video is that programs can use different codecs for the tracks of the video. It is therefor possible to use one codec for the video and one for the audio, which is often preferable to using a single codec.
To paraphrase: The video format sets the rules, the codec interprets them and a container format is a meta format that bundles multiple files into one container.Advertisement