Video compression guide

Video compression: quality, bitrate, and file size

Understand the settings that control video file size and choose a practical compression target without guessing.
Updated July 23, 2026 · Yuelu Tools

What controls video file size?

Duration and total bitrate are the main drivers of video file size. A two-minute video encoded at twice the bitrate of another two-minute video will usually be close to twice the size. Resolution, frame rate, codec, and visual complexity matter because they affect the bitrate needed to preserve a given level of quality.

Audio also takes space. A 128 kbps audio stream adds roughly 0.96 MB per minute before container overhead. That is small beside a high-bitrate video stream, but it matters when the target is a strict messaging or email limit.

Bitrate connects duration and file size

Average bitrate is the amount of data used each second. A useful planning formula is:

file size (MB) ≈ total bitrate (kbps) × duration (seconds) ÷ 8192

For a target-size export, rearrange the formula and subtract the audio bitrate. Real output includes a small amount of container data, so choose a target below the platform limit instead of using every available byte.

Quality-based and bitrate-based encoding

Quality-based encoding asks the encoder to preserve a consistent visual quality and lets file size vary. In H.264 workflows this is often expressed as CRF: lower values preserve more detail and create larger files, while higher values create smaller files.

Average-bitrate encoding is more useful when file size must stay near a fixed target. Quality can vary from scene to scene because the encoder has a limited data budget. Two-pass encoding usually allocates that budget more effectively, but it requires more processing time.

GoalPreferTradeoff
Consistent visual qualityCRF or quality modeFinal size is not fixed
Strict upload limitAverage bitrateQuality varies with content
Fast previewFaster presetLess compression efficiency

Resolution and frame rate

Reducing 4K video to 1080p removes three quarters of the pixel count in each frame, which can greatly reduce the bitrate needed for a clean result. Reducing 60 fps footage to 30 fps can also save data, but motion will look different. Do not upscale a smaller source during compression; it creates more pixels without restoring lost detail.

Text, screen recordings, animation, and fast camera movement compress differently. Treat online recommendations as starting points and inspect the actual output at normal viewing size.

A practical compression workflow

  1. Keep the original file as the master copy.
  2. Start with a balanced quality setting and the original frame rate.
  3. Cap unusually large sources at the resolution needed for delivery.
  4. Review fine detail, motion, audio synchronization, and the final size.
  5. Only lower quality further when the current file still exceeds the delivery limit.
Open the video compressor