Need to Further Reduce File Sizes, Especially in Sub-5MB File Size

General questions or discussion about HandBrake, Video and/or audio transcoding, trends etc.
Post Reply
kev5
Posts: 2
Joined: Wed Oct 30, 2019 9:37 pm

Need to Further Reduce File Sizes, Especially in Sub-5MB File Size

Post by kev5 »

Description of problem or question:

Hello, I’m a new Handbrake user.

I’ve made following compressions using the “Very Fast 720p”, “Web-Optimized” preset.

I’ve noticed sub-5MB videos have low reduction rates.

I’m using these videos as backgrounds to fullscreen sections on a website, so file size and website load times are very important.

Any idea on how to scrub off more file size to improve file size without losing notable quality and video length?


These have been the results:


Video 1
https://pastebin.com/k3RjUbkz
Length - 16 seconds
Original – 51.8MB
New – 1.22MB
Reduction – 97%


Video 2
https://pastebin.com/XujqJ3Vp
Length - 11 seconds
Original – 74.3MB
New – 800KB
Reduction – 99%


Video 3
https://pastebin.com/Rzxx8ztV
Length - 15 seconds
Original – 4.5MB
New – 2.1MB
Reduction – 53%

Video 4
https://pastebin.com/jih9NuhC
Length - 10 seconds
Original – 4.37MB
New – 1.32MB
Reduction – 69%


Video 5
https://pastebin.com/YknfcrF4
Length - 10 seconds
Original – 4.50MB
New – 1.43MB
Reduction – 68%


Video 6
https://pastebin.com/92uCTZwB
Length - 11 seconds
Original – 38.6MB
New – 1.06MB
Reduction – 97%


Steps to reproduce the problem (If Applicable):

n/a


HandBrake version (e.g., 1.0.0):

1.2.2


Operating system and version (e.g., Ubuntu 16.04 LTS, macOS 10.13 High Sierra, Windows 10 Creators Update):


Windows 10 Home

HandBrake Activity Log ***required*** (see How-to get an activity log)

Code: Select all

https://pastebin.com/k3RjUbkz
https://pastebin.com/XujqJ3Vp
https://pastebin.com/Rzxx8ztV
https://pastebin.com/jih9NuhC
https://pastebin.com/92uCTZwB
Deleted User 11865

Re: Need to Further Reduce File Sizes, Especially in Sub-5MB File Size

Post by Deleted User 11865 »

At ultra-low bitrates, you should be using slower presets to squeeze out as much compression efficiency as possible, and you should probably be using HEVC (via libx265) as well.
kev5
Posts: 2
Joined: Wed Oct 30, 2019 9:37 pm

Re: Need to Further Reduce File Sizes, Especially in Sub-5MB File Size

Post by kev5 »

Thanks for the reply Rodeo.

Not sure if I understood your recommendation correctly, but I tried to use it and played around with the General Presets (ie. Fast, Very Fast, etc.) and Video Codec (H.265 (x265) - didn't see any reference to "lib").

I read thru this: https://handbrake.fr/docs/en/latest/tec ... mance.html and got excited reading about the H.265/HEVC option (maybe that's what you referring to).

Unfortunately the file size came back about the same or larger in various General Preset variations.
mduell
Veteran User
Posts: 8198
Joined: Sat Apr 21, 2007 8:54 pm

Re: Need to Further Reduce File Sizes, Especially in Sub-5MB File Size

Post by mduell »

Yea, very fast is not... very efficient.

Pick a slower preset, x265 encoder, and a higher RF target by a few (5?) points to get a smaller file with the best shot at quality.
User avatar
BradleyS
Moderator
Posts: 1860
Joined: Thu Aug 09, 2007 12:16 pm

Re: Need to Further Reduce File Sizes, Especially in Sub-5MB File Size

Post by BradleyS »

The NLMeans denoiser can help reduce complexity and bit rate.

Reduce your audio from stereo 160 kbps to mono 48 kbps, or remove it if audio is not necessary.

Assuming you're serving your videos via the HTML5 video element, you can create more than one version to serve higher efficiency codecs like H.265 and VP9-in-webm at ultra-low bit rates where possible and fall back to H.264 at higher bit rates for compatibility.

The nightly build (and soon HandBrake 1.3.0) has some new presets for Discord that are high compression, similar to the Gmail presets. With the x264 encoder (only!) they employ some additional encoder options you can try (again, x264 only!):

Code: Select all

aq-mode=2:aq-strength=0.8:direct=auto:analyse=all:deblock=3,2
AQ Mode 2 allows the encoder's adaptive quality algorithm to distribute bits across the whole video instead of per-frame, and AQ Strength adjusts the bias of the algorithm toward flat blocks. The other options increase the amount of analysis performed during encoding, and the Deblock option tells the decoder to more strongly smooth hard edges of macroblocks to avoid the appearance of artifacts from low bit rate encodes. With these settings you can reduce the quality (raise the RF value) to maybe 28 or more and still have a reasonable looking picture.
Post Reply