The word "codec" is a portmanteau of "coder/decoder". Every video file you have ever played went through a codec — raw uncompressed video would be ~1.5 GB per second at 1080p, which is unworkable for storage and streaming alike.
Compression efficiency varies dramatically. H.264, the codec that powers most of the modern internet, ships a 1080p movie at around 3-5 Mbps. H.265 (HEVC) and AV1 do the same job at 1.5-2.5 Mbps with no visible quality drop. The cost is encoder time: AV1 takes 10-50× longer to encode than H.264.
Container files (.mp4, .mkv, .webm) hold codec output. The same H.264 video can sit inside an .mp4 or an .mkv container — the bytes are bitwise identical, only the wrapper differs.
YouTube serves multiple codec versions of every popular video. The web player picks based on browser support; older browsers get H.264 (universally compatible), newer ones get VP9 or AV1 (better compression). When you download via VidPickr you can pick the codec via the resolution that matches it.
Common questions
Which codec should I pick for a downloaded YouTube video?
What is the difference between codec and format?
Why does YouTube use multiple codecs?
Related terms
Container (file format)
A container is the file format that wraps one or more audio and video streams into a single file.
H.264 (AVC)
H.
H.265 (HEVC)
H.
AV1
AV1 is a royalty-free, open-source video codec from the Alliance for Open Media.
VP9
VP9 is a royalty-free video codec developed by Google, used widely on YouTube and in WebM files.
VidPickr is a free, browser-based YouTube downloader. Every term in this glossary either describes how YouTube delivers video or why your downloads behave the way they do. Try the downloader →