How to calculate file size ?

Posted on 2012-08-19
Last Modified: 2016-09-29
Hi, i need to calculate estimated file size (the more accurate, the better) by the following information i have:

File Format  X = (MP4, WebM, FLV, 3GP).

1 second of compression X is Y MB/KB of data

how can i do this ? thanks...

the information i need is what is the amount of MB/KB "stored" in 1 second of the movie length, thanks.

if you have some other similar solution, it's acceptable.
Question by:rotem156
    1 Comment
    LVL 5

    Accepted Solution

    Take a look at this Video Space Calculator which supports a lot of formats.

    AND if you use bitrate based encoding the file size is simply:

    file size = bitrate * running time

    Where bitrate is the sum of audio and video bitrates. Keep in mind you need to adjust for bits/byte and watch your units.

    For example 1 hour with a total bitrate of 8000 kbps; 1 hour is 3600 seconds so:

    file size = 8000 kbps * 3600 seconds
    file size = 28,800,000 k bits

    there are 8 bits per byte so:

    file size = 28,800,000 k bits / 8
    file size = 3,600,000 k Bytes
    file size = 3.52 GB

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Security Threats Are You Missing?

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Article by: Nadia
    Suppose you use Uber application as a rider and you request a ride to go from one place to another. Your driver just arrived at the parking lot of your place. The only thing you know about the ride is the license plate number. How do you find your U…
    Prime numbers are natural numbers greater than 1 that have only two divisors (the number itself and 1). By “divisible” we mean dividend % divisor = 0 (% indicates MODULAR. It gives the reminder of a division operation). We’ll follow multiple approac…
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    12 Experts available now in Live!

    Get 1:1 Help Now