Codecs, Containers and Bitrate
Understand codecs, containers and bitrate, why some files edit smoothly while others stutter, and how to estimate file sizes and storage needs.
Welcome back!
Step 1 of 12Learn
Why a file plays fine but edits badly
Mia films her sister's graduation on a phone. The clips play perfectly on the phone, but on her laptop the editing software stutters, the timeline lags and scrubbing feels like dragging through mud. The footage isn't broken. It is just compressed in a way that is great for watching and hard for editing.
Raw video is enormous. A single minute of uncompressed 4K at 30 fps would be tens of gigabytes. So cameras compress it with a codec (short for coder-decoder): a method of squeezing video data and later unpacking it.
The compressed video then sits inside a container, the file format you see in the file name, such as .mp4, .mov or .mxf. The container bundles the video stream, audio streams, timecode and metadata together. One container can hold different codecs: two .mov files might hold H.264 and ProRes, and behave completely differently in your editor.
That is why "it's an MP4" doesn't tell you much. When editing problems appear, ask which codec is inside, at what bitrate and bit depth.
Step 2 of 12Practice · Fill in the blanks
Fill in the blanks
The file extension, such as .mp4 or .mov, names the , while the method used to compress the video inside it is the .
Step 3 of 12Learn
Long-GOP versus intra-frame codecs
Most cameras and phones record long-GOP codecs such as H.264 (AVC) and H.265 (HEVC). GOP stands for group of pictures. Only some frames, called I-frames or keyframes, are stored completely. The frames in between store only what changed from neighboring frames. That saves huge amounts of space, but to show any single frame, the computer may have to rebuild it from several others. Scrubbing back and forth on a timeline forces constant rebuilding, which is why editing feels sluggish. H.265 compresses even more efficiently, roughly half the bitrate of H.264 for similar quality, but it is even heavier to decode.
Intra-frame codecs, also called editing or intermediate codecs, compress every frame on its own. Examples: Apple ProRes, Avid DNxHD/DNxHR and the GoPro CineForm codec. Files are much larger, often five to ten times the size, but every frame is ready to show instantly, so editing is smooth.
You have three ways to deal with heavy long-GOP footage:
- Use a computer with hardware decoding for that codec (many recent machines decode H.264/H.265 quickly).
- Transcode to an intermediate codec before editing.
- Create proxies: small, light copies used while editing, swapped for the originals at export. You will set these up in the next module.
Step 4 of 12Compare
Delivery codecs vs editing codecs
| Aspect | Long-GOP (H.264, H.265) | Intra-frame (ProRes, DNxHR) |
|---|---|---|
| How frames are stored | A few full frames; the rest store only changes | Every frame stored on its own |
| File size | Small | Large (often 5–10×) |
| Editing performance | Can stutter, needs strong hardware decoding | Smooth scrubbing and playback |
| Typical use | Camera recording, streaming, final delivery | Editing, color work, high-quality masters |
| Quality after re-encoding | Loses more each generation | Holds up well through several generations |
Step 5 of 12Practice · Choose one
Why does long-GOP footage often stutter when you scrub through a timeline?
Step 6 of 12Diagram
Inside a long-GOP stream
Only the I-frames are complete pictures. To show a B-frame, the computer first rebuilds the frames it depends on.
Tap a shape with to see more.
- I-frame: full picture
- B: changes only
- B: changes only
- P: changes since last
Predicted from the previous I- or P-frame.
- B: changes only
Built from frames both before and after it.
- Next I-frame
Often 1–2 seconds later. Intra-frame codecs like ProRes make every frame an I-frame.
Step 7 of 12Learn
Bitrate and file size
Bitrate is how much data the video uses per second, usually in megabits per second (Mbps). More bitrate means more detail is kept, especially in complex scenes like leaves in wind, water or confetti. Too little bitrate shows as blocky artifacts and smeared detail.
You can estimate file size from bitrate with simple arithmetic. Bitrate is in bits; file sizes are in bytes, and 1 byte = 8 bits. So:
File size (MB) = bitrate (Mbps) × duration (seconds) ÷ 8
Example: a camera records at 100 Mbps. Ten minutes is 600 seconds. 100 × 600 ÷ 8 = 7,500 MB, or about 7.5 GB. An hour at that rate is about 45 GB. A day of shooting can easily fill hundreds of gigabytes, so storage planning matters.
The same formula works in reverse for delivery: if a platform limits uploads, or you want a 3-minute video under 200 MB, the maximum bitrate is 200 × 8 ÷ 180 ≈ 8.9 Mbps for video and audio together.
Bit depth is a separate idea. 8-bit video stores 256 levels per color channel; 10-bit stores 1,024. 10-bit footage handles color grading and smooth skies far better, which matters when you shoot in a flat log profile meant for grading.
Step 8 of 12Try the calculator
File size calculator
Estimate storage needs or delivery size from bitrate and duration. Remember: Mbps means megabits, and file sizes are in bytes.
- File size
- 7,500 MB
- File size
- 7.5 GB
- Hours per 1 TB drive
- 22.2 h
Step 9 of 12Practice · Work it out
A clip is recorded at 50 Mbps and lasts 4 minutes. About how large is the file in megabytes?
Step 10 of 12Note
Step 11 of 12Note
Step 12 of 12Practice · Sort into groups
Sort each codec or file type by its main role.
Tap an item, then tap its group (or drag it there).
Lesson complete!