A codec encodes and decodes audio or video data according to a set of rules. Software or hardware components can perform these operations. During export, an encoder transforms the images or sound into a stream represented according to the codec's rules. During playback, a decoder interprets the stream to reconstruct the audio or images. For a business, the choice affects file size, visible quality and which devices or platforms customers can use to play the material.

Codecs and containers describe different things

A container groups media streams and information about them. For example, an MP4 file can contain an H.264 video stream and an AAC audio stream. Two files with the MP4 extension can use different codecs or encoding parameters. Before delivery, check both the container accepted by the platform and the audio and video codecs, along with the settings that matter for playback.

A player can read the container, and it needs a compatible decoder to play each stream. If a problem occurs, the image, sound and subtitles can be affected separately. For example, a file might open on the editor's computer and lose sound in a player that lacks the audio codec. Checking on the audience's device shows how the result behaves, including when a platform performs its own conversions.

Video editor checking a sequence and editing timeline on a monitor
Reviewing footage before a video export.

Compatibility, size and quality

Compression can be lossy or lossless depending on the codec and settings. Lossy compression reduces file size by discarding some information. Lossless compression allows the original data to be recovered from the appropriately encoded stream. For distribution, the choice depends on the quality required and the cost of transferring the file. When preserving source material, also consider whether the team will need to edit it later.

Resolution indicates the number of pixels, while bitrate indicates how much information the stream carries per unit of time. The same resolution can be encoded at different bitrates. Motion, texture and sound affect what viewers notice at a particular setting. Compare short exports with representative scenes, including movement, on-screen text and speech, then watch them under similar playback conditions.

An example of delivering a campaign video

A business creates a presentation video for its website and a social channel. The team retains the project and editing assets, then exports files in configurations accepted by each destination. It checks the upload, text clarity and audio synchronisation after the platform processes the file. For the website it also measures the size of the file delivered and tries the visitor's journey on a mobile device, where startup time can affect video viewing.

If the file needs conversion, start from the best available source. A new lossy encode after several exports can retain earlier flaws and introduce new ones. Moving compatible streams into a different container is sometimes enough if the destination accepts their parameters. The team delivering the video can confirm the final file's format and codecs using the media information provided by its production tool.

Keep an export profile for each destination you use often. Record the container, codecs, accepted resolution and the result of checking a sample. If the platform changes its requirements or the team switches editors, the record shows what needs to be checked again. For recurring projects, this shortens the time between approval of the edit and publication of a video that plays as expected.

Keep the delivery profile separate from the archive file. When a new destination is added, the team can start with the retained material and make an export suited to that destination.