File Sizes

                 The size of a file matters, be it text, graphic, audio, video. The file takes space on the memory/hard disk, and it takes time when you e-mail it or view it, or upload or download it to or from a website.
Various file sizes :

How to calculate size of uncompressed image file ?
Formula : Resolution × Bit depth ) / (8×1024×1024).


How to calculate size of uncompressed audio file ?


Sample rate :The number of bits used to describe each sample.
Bit depth : In digital audio, there has to be a certain value set for describing the resolution of the sound data (samples) that is to be captured and stored in an audio file. This attribute is called bit depth.
Time : Duration of an audio.
Number of channels : Stereo or mono etc.
Formula : (Time × Sample rate × Bit depth × Channels) / (8×1024×1024).

What is bit rate ?
The number of bits transmitted per second (Every second how many bits does the file take up).
Formula : (Sample rate × Bit depth × Channels) / 1000.


How to calculate size of uncompressed video file ?
Formula : Time × Frames per second × Pixel per frame × Bit depth.


Examples :