Video Compression Guide: How to Reduce Size While Maintaining Quality

Video has the largest file size among all file types. A 1-minute 4K video can exceed 400MB, and a 1080p screen recording can also be over 100MB. Whether sending via email, uploading to the web, or archiving for backup, video compression is an essential skill for reducing storage and transmission costs.

This guide systematically explains the core methods of video compression from three dimensions—codec selection, bitrate control, and resolution and frame rate—and provides specific parameter recommendations for email, web, storage, and mobile device scenarios. If you need to understand the overall framework of file compression, start with the Complete File Compression Guide.

1. Video Codec Comparison

The codec (Codec) determines compression efficiency and compatibility, making it the most critical step in video compression.

CodecCompression EfficiencyCompatibilityEncoding SpeedBest Use Case
H.264 (AVC)BaselineExcellent (nearly all devices)FastGeneral use, email, mobile devices
H.265 (HEVC)40-50% smaller than H.264Good (some older devices unsupported)MediumStorage archiving, HD video
VP9Close to H.265Good (primarily web platforms)MediumWeb video, YouTube
AV120-30% smaller than H.265Developing (hardware support growing)SlowFuture standard, streaming platforms

The core tradeoff in codec selection is compression efficiency vs. compatibility. H.264 has the best compatibility and can be played on virtually all devices, making it the reliable choice for general scenarios. H.265 produces files about half the size of H.264 at equivalent quality, making it suitable for scenarios with limited storage or the need to transfer large files. AV1 has the highest compression efficiency, but slower encoding and not yet universal hardware decoding make it more suitable for forward-looking streaming platforms.

2. Bitrate Control: CRF / CBR / VBR

2.1 CRF (Constant Rate Factor)

CRF mode targets constant quality, with the bitrate automatically adjusting to scene complexity—low bitrate for static scenes and high bitrate for motion scenes. The CRF value typically ranges from 18-28, with lower values meaning better quality and larger file size.

  • CRF 18-22: Visually lossless, suitable for high-quality archiving
  • CRF 23-26: High quality, the optimal balance between size and quality, recommended range
  • CRF 27-30: Medium quality, smaller size, suitable for web video

CRF is the most recommended mode for video compression because it ensures consistent quality throughout the video, preventing issues where some segments are blurry while others are clear.

2.2 CBR (Constant Bitrate)

CBR mode keeps the bitrate constant throughout, allocating the same number of bits regardless of whether the scene is complex or simple. The advantage is that file size can be precisely predicted, making it suitable for live streaming and other real-time media with strict bandwidth requirements. The disadvantage is that simple scenes waste bitrate while complex scenes don't get enough, resulting in lower overall efficiency.

2.3 VBR (Variable Bitrate)

VBR mode dynamically adjusts within a specified bitrate range, balancing size and quality. Two-pass mode first analyzes the entire video before encoding, producing better quality but doubling the time. VBR is suitable for web video and disc production where precise target size control is needed.

3. Resolution and Frame Rate Adjustment

Beyond codec and bitrate, resolution and frame rate are also important factors affecting video file size.

Resolution Adjustment

Resolution determines the frame size. 4K (3840×2160) has over 8 million pixels, 1080p (1920×1080) has only 2 million, and 720p has even fewer. Reducing 4K to 1080p can reduce file size by approximately 60-70%.

Resolution adjustment should match the playback device: phone screens typically only need 720p, computer monitors are fine with 1080p, and only 4K TVs or projectors require 4K resolution. Blindly retaining high resolution when the playback device cannot display it is a waste of space.

Frame Rate Adjustment

Frame rate (fps) determines video smoothness. Common frame rates include 24fps (cinema standard), 30fps (standard video), and 60fps (sports/gaming). Reducing frame rate from 60fps to 30fps can reduce file size by approximately 30-40%.

For non-motion video, 30fps is sufficiently smooth; only sports events, game recording, and other high-speed motion scenarios need 60fps. Reducing unnecessarily high frame rates is an effective way to reduce file size.

4. Scenario-Specific Parameter Recommendations

4.1 Email Sending

Email attachments are typically limited to 25MB or less, requiring more aggressive video compression. Recommended parameters: H.264 codec + 720p resolution + 30fps + CRF 28. A 1-minute video can typically be kept within 5-10MB, allowing it to be sent via email while maintaining watchable quality.

4.2 Web Publishing

Web video needs to balance quality and loading speed. Recommended parameters: H.264 or H.265 codec + 1080p resolution + 30fps + CRF 26. If the audience is primarily mobile users, resolution can be reduced to 720p. For modern platforms that support AV1, using AV1 encoding can further reduce size. For optimizing image resources on web pages, see the Image Compression Guide.

4.3 Storage Archiving

Storage archiving prioritizes high quality and long-term preservation. Recommended parameters: H.265 codec + retain original resolution + original frame rate + CRF 20-22. H.265's high compression efficiency allows you to reduce file size to 30-50% of the original while maintaining near-original quality.

4.4 Mobile Device Playback

Mobile devices have small screens and limited storage, so video compression can be more aggressive. Recommended parameters: H.264 codec + 720p resolution + 30fps + CRF 26. H.264 ensures smooth playback on all phones, and 720p looks virtually identical to 1080p on a phone screen but is only half the size.

5. Common Video Compression Misconceptions

  • Misconception 1: Higher bitrate always means better quality. Once bitrate exceeds a certain threshold, quality improvement is negligible while file size increases dramatically. Using CRF mode to let the encoder automatically allocate bitrate is more efficient.
  • Misconception 2: Multiple rounds of compression don't affect quality. Lossy video compression is cumulative—each re-encoding further loses information. You should compress from the original file to the target parameters in a single pass whenever possible.
  • Misconception 3: Only look at resolution, not bitrate. A 720p video with high bitrate may look better than a 1080p video with low bitrate. Resolution determines the upper limit of the picture, while bitrate determines whether that limit can be reached.
  • Misconception 4: Container format equals codec format. MP4 and MKV are container formats that can encapsulate different codecs. The same .mp4 file might contain H.264 or H.265 internally, with completely different compression efficiency.

6. Frequently Asked Questions (FAQ)

How to fix blurry video after compression?

Blurriness is usually caused by too low a bitrate or too much resolution reduction. We recommend lowering the CRF value to 23-26 and keeping resolution at 720p or above. Using H.265 encoding, the file size is 40-50% smaller than H.264 at equivalent quality, allowing you to reduce size while maintaining clarity.

What is the best codec for MP4 compression?

MP4 is a container format, and the internal video codec can be H.264 or H.265. For compatibility, choose H.264, which can be played on virtually all devices. For smaller size when the target device supports it, H.265 can save approximately 50% in size at equivalent quality.

What is the difference between CRF, CBR, and VBR?

CRF keeps quality constant, with bitrate automatically adjusting to scene complexity, suitable for archival storage. CBR keeps the bitrate constant, suitable for live streaming and other real-time media. VBR dynamically adjusts within a specified bitrate range, balancing size and quality, suitable for web video.

How much can video compression reduce file size?

It depends on the original video's codec and parameters. If the original video has an excessively high bitrate, re-encoding with H.265 + CRF 26 + 1080p can typically reduce size by 50-70% with minimal perceptible quality difference. However, further compression of already highly compressed videos yields limited results.

Conclusion

The key to video compression is choosing the right codec, controlling the bitrate, and adjusting resolution and frame rate correctly. Use H.264 for general scenarios and H.265 for smaller size; CRF mode is the preferred bitrate control, with values of 23-26; match resolution and frame rate to the playback device without blindly pursuing high specs. Avoid repeated transcoding—compressing from the original file to the target parameters in a single pass is the best practice for maintaining quality.

For users who are not familiar with encoding parameters and want one-click compression, try SmartSlim—with built-in intelligent compression strategies that automatically select the optimal codec and bitrate parameters, with all processing done locally and no uploading required.

Related Reading: