Seeing what file size will be

HandBrake for Windows support
Forum rules
An Activity Log is required for support requests. Please read How-to get an activity log? for details on how and why this should be provided.
Post Reply
garygiles63
Posts: 4
Joined: Mon Sep 21, 2020 6:52 am

Seeing what file size will be

Post by garygiles63 »

HI

Is there a way to see what the the file size will be when the file has been converted.

Gary
Woodstock
Veteran User
Posts: 3790
Joined: Tue Aug 27, 2013 6:39 am

Re: Seeing what file size will be

Post by Woodstock »

Yes, by doing the encode. Anything else is a guess, and can be wildly incorrect.

The same settings used for an anime and an action film can result in 90% compression on the anime, and 30% compression on the action film.
garygiles63
Posts: 4
Joined: Mon Sep 21, 2020 6:52 am

Re: Seeing what file size will be

Post by garygiles63 »

Woodstock,

Thanks for the reply.

I see of course that makes sense, so a black screen with white text, would be a lot smaller file size than say a movie with lots of action, for the same amount of time.

Have I got that right?

G.
Woodstock
Veteran User
Posts: 3790
Joined: Tue Aug 27, 2013 6:39 am

Re: Seeing what file size will be

Post by Woodstock »

Pretty much. I have my own preset I use for all HD content, unless something specific bothers me. More movement, variety of color, or more detail/noise makes for a larger output. Something with a lot of "noise" (like film grain or static) gets MUCH larger, as the encoder tries to faithfully render the noise.
Rorchach91
Posts: 17
Joined: Fri Aug 14, 2020 4:13 am

Re: Seeing what file size will be

Post by Rorchach91 »

Sure, and its also about the question "How does this video been encoded". Different codecs "weave" pictures in different ways, some more effective and save spaces, some less effective and waste more space to "store the pictures"(if we imagine that a video is made with million pictures)
alex 64
Posts: 7
Joined: Thu Sep 10, 2020 1:33 pm

Re: Seeing what file size will be

Post by alex 64 »

here is my method to estimate the size of the encoded video
I run the encoding and I stop it at 5% and I multiply the size by 20.
garygiles63
Posts: 4
Joined: Mon Sep 21, 2020 6:52 am

Re: Seeing what file size will be

Post by garygiles63 »

Alex, thank you, will def, use that.

Many thaanks
garygiles63
Posts: 4
Joined: Mon Sep 21, 2020 6:52 am

Re: Seeing what file size will be

Post by garygiles63 »

Alex, thank you, will def, use that.

Many thaanks
rollin_eng
Veteran User
Posts: 3558
Joined: Wed May 04, 2011 11:06 pm

Re: Seeing what file size will be

Post by rollin_eng »

If you are encoding blu rays then my testing here says you would need to encode about 20-25% before you can make a decent estimate.

viewtopic.php?f=14&t=34831
musicvid
Veteran User
Posts: 3717
Joined: Sat Jun 27, 2009 1:19 am

Re: Seeing what file size will be

Post by musicvid »

Most of the action is often in the last 20 minutes of a movie, making the suggested method not accurate. If you want to estimate file size, use ABR, and do the math.
Bitrate (Mbps) x Time (Sec) x .125 = File Size (MB)
rollin_eng
Veteran User
Posts: 3558
Joined: Wed May 04, 2011 11:06 pm

Re: Seeing what file size will be

Post by rollin_eng »

musicvid wrote: Sat Sep 26, 2020 10:47 pm Most of the action is often in the last 20 minutes of a movie, making the suggested method not accurate.
If you look at my test results you will see that this is not the case. Do you have an example of a blu ray where this occurs?
alex 64
Posts: 7
Joined: Thu Sep 10, 2020 1:33 pm

Re: Seeing what file size will be

Post by alex 64 »

Some numbers with source file : MP4 1h30 (encoding : preset very fast 480p)

total size
size coef estimated coef. ideal
5% 54 mo 20 108 18.24
10% 107 mo 10 1070 9.12
20% 214 mo 5 1070 4.56
30% 309 mo 3.33 1030 3.04
40% 430 mo 2.5 1075 2.28
50% 544 mo 2 1088 1.82
60% 663 mo 1.66 1105 1.52
70% 763 mo 1.43 1090 1.3
80% 845 mo 1.25 1056 1.14
90% 920 mo 1.11 1022 1.01
100% 974 mo 1 974 true

WARNING: when you encode an MKV in MP4 or in MKV and that HB shows 5% of progress, you must read 10% etc ,,,

Go further.

Considering the following data:
size coef ideal
X Y
54 18.24
10 9.12 and after a regression analysis (statistical)
214 4.56 it follows that a Power function is the most precise (correlation coefficient: 0.99995)
309 3.04
430 2.28 Y = EXP(a) * ( X^b )
544 1.82
674 1.52 b = -1.001696275
763 1.30 EXP(a) = 985.6393003
845 1.14 X = size
920 1.01
974 1.00

humor "calculations made using FUGAKU calculator : power of 415.5 petaflops and 415 x 1015 operations per second"
alex 64
Posts: 7
Joined: Thu Sep 10, 2020 1:33 pm

Re: Seeing what file size will be

Post by alex 64 »

Last edited by Rodeo on Tue Sep 29, 2020 7:34 pm, edited 1 time in total.
Reason: External image hosts not supported on this forum
User avatar
Rodeo
HandBrake Team
Posts: 12604
Joined: Tue Mar 03, 2009 8:55 pm

Re: Seeing what file size will be

Post by Rodeo »

alex 64 wrote: Tue Sep 29, 2020 12:15 pm clearer

https://drive.google.com/file/d/1RHGN_M ... sp=sharing
Since you're seemingly using a fixed-width font, why not just use code blocks instead?

Code: Select all

Preformatted text goes here
alex 64
Posts: 7
Joined: Thu Sep 10, 2020 1:33 pm

Re: Seeing what file size will be

Post by alex 64 »

Code: Select all

Some numbers with source file : MP4 1h30 (encoding : preset very fast 480p)

                           total size
         size    coef      estimated     coef. ideal
5%       54 mo     20         1080          18.24
10%     107 mo    10         1070           9.12
20%     214 mo    5          1070           4.56
30%     309 mo    3.33       1030           3.04
40%     430 mo    2.5        1075           2.28
50%     544 mo    2          1088           1.82
60%     663 mo    1.66       1105           1.52
70%     763 mo    1.43       1090           1.3
80%     845 mo    1.25       1056           1.14
90%     920 mo    1.11       1022           1.01
100%    974 mo    1          974 true								

WARNING: when you encode an MKV in MP4 or in MKV and that HB shows 5% of progress, you must read 10% etc ,,,

Go further.

Considering the following data:

size  coef ideal 
 X       Y      final result
54     18.24      979
10      9.12      978              and after a regression analysis (statistical)
214     4.56      977              it follows that a Power function is the most precise (correlation coefficient: 0.99995)
309     3.04      976 
430     2.28      975.5               Y = EXP(a) * ( X^b ) * size
544     1.82      975
674     1.52      974.5                    b =  -1.001696275
763     1.30      974.6               EXP(a) = 985.6393003
845     1.14      974.4                    X = size
920     1.01      974.3
974     1.00      974.2

humor "calculations made using FUGAKU calculator : power of 415.5 petaflops and 415 x 1015 operations per second"

thanks RODEO
Post Reply