

The container is represented by a file extension. These components would be the video itself, the audio track(or even multiple audio tracks), the subtitles if any, meta-data and so on. Container: A container, (as the word suggests) is something that contains the components of a video together.

Currently, h265 and vp9 are popular video codecs with great support. The codec to be used is decided depending on factors like target file-size and target quality. Decoding is a process that reverses the encoding process for playback. Encoding is the process where the video data is compressed/encrypted for transmission or storage.

FFmpeg can be used to encode videos into difference formats.
