Skip to content

How to aggressively reduce video file size with AWS MediaConvert while keeping acceptable visual quality (similar to FreeConvert.com)?

0

I am using AWS Elemental MediaConvert to compress user-uploaded videos for a mobile app.

My goal is to significantly reduce the final video file size (to save mobile data) while keeping acceptable visual quality — similar to what online tools like FreeConvert.com achieve automatically.

However, with MediaConvert:

  • The output file size is often similar to or larger than the input
  • Default presets do not seem optimized for aggressive compression
  • Even when using H.264 or H.265, the size reduction is not satisfactory

My current requirements:

  • Input videos: user-generated content (mostly 720p / 1080p, variable bitrate)
  • Output: small file size, mobile-friendly playback
  • Target use case: short videos in a Flutter mobile app
  • Streaming format: MP4 or HLS/CMAF (open to recommendations)

Questions:

  1. What MediaConvert settings are recommended to aggressively reduce file size while keeping reasonable quality?
    • Bitrate mode (CBR vs VBR)
    • Target bitrate recommendations
    • QVBR vs standard bitrate
    • Single-pass vs two-pass
  2. Is MediaConvert designed mainly for broadcast-quality transcoding rather than file-size optimization?
  3. Are there AWS-recommended alternatives (e.g., FFmpeg on EC2, Elastic Transcoder, or other services) for strong compression use cases?
  4. Is it realistic to achieve FreeConvert-like compression results using MediaConvert alone?

Any concrete examples or job JSON snippets would be greatly appreciated.

3 Answers
0

Even when using H.264 or H.265, the size reduction is not satisfactory

Have you tried using AV1 or VP9 instead? I believe flutter at least supports AV1, which has higher compression than h264 or h265

AWS

answered 9 months ago

  • it seems that AV1 is not supported in flutter.

0

AWS Elemental MediaConvert can definitely achieve aggressive file size reduction while maintaining acceptable visual quality for your mobile app use case. Here are recommendations based on best practices:

For aggressive file size reduction:

  1. Use Quality-Defined Variable Bitrate (QVBR) mode - This is specifically designed for internet distribution and VOD downloads. QVBR can reduce file sizes by 25-50% compared to other rate control modes while maintaining visual quality. The encoder automatically determines the right number of bits for each part of the video to maintain the quality level you specify.

  2. Consider HEVC (H.265) instead of AVC (H.264) - HEVC typically yields a 30% reduction in file sizes while maintaining the same quality as AVC. This is particularly effective for mobile delivery where device compatibility with HEVC is generally good.

  3. Specific settings recommendations:

  • Rate control mode: QVBR
  • QVBR quality level: 7-8 for acceptable quality (lower values = higher quality)
  • Max bitrate: Set a cap if needed (e.g., 1-2 Mbps for 720p)
  • Use two-pass encoding for better quality at the same bitrate
  • Enable GOP reference B-frames for improved compression efficiency
  • Set Dynamic sub-GOP to Adaptive
  • For GOP settings, allow MediaConvert to automatically select optimal values by leaving settings blank when using AVC or HEVC
  1. For MP4 output, ensure you set the Major Brand field to "isom" in the MPEG-4 container settings to ensure proper compatibility with mobile devices.

MediaConvert is designed for both broadcast-quality transcoding and file-size optimization. While it offers high-quality outputs, it also provides features specifically for reducing file sizes, like QVBR encoding. The tiered pricing model also makes it cost-effective for processing large volumes of content.

For your mobile app use case with user-generated content, MediaConvert should be able to achieve results comparable to online compression tools like FreeConvert.com. The key is using the right combination of settings, particularly QVBR mode and potentially HEVC encoding.

If you're still not achieving the desired results, you could consider post-processing with FFmpeg on EC2, but for most use cases, MediaConvert alone with the recommended settings should provide sufficient compression while maintaining acceptable visual quality.
Sources
Recommended encoding settings for video quality - MediaConvert
Optimize costs with tiered pricing in AWS Elemental MediaConvert | AWS for M&E Blog
When converting to h264 / .mp4 file , the generated file has a "video/x-m4v" mimetype instead of the standard "video/mp4" mimetype | AWS re:Post
Comparison of QVBR with other rate control modes - MediaConvert

answered 9 months ago

0
AWS

answered 9 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.