View Full Version : mp3 size formula
wheelbit
5th December 2005, 23:41
Hi,
could anyone post the formula for computing the size of an mp3 (including overhead)?
Thanks.
bond
5th December 2005, 23:50
bitrate/sec*time(in sec)=filesize ;)
tebasuna51
6th December 2005, 00:34
bitrate in Kbits/sec
time in sec
filesize in KBytes
filesize = bitrate*time/8
wheelbit
6th December 2005, 00:39
Those formulas are not even close to the actual file size.
tebasuna51
6th December 2005, 00:55
A mp3 can have ID3v2 Tag with any size. Delete the tags and see the new filesize.
Or you have a corrupt mp3.
CWR03
6th December 2005, 07:47
A constant bitrate MP3 at 128 kb/s is almost exactly 1 MB/minute. Hopefully you can do the inverse math from that if your file differs in bitrate.
stephanV
6th December 2005, 09:08
Hi,
could anyone post the formula for computing the size of an mp3 (including overhead)?
Overhead of what?
[bitrate in kbps]*[length in sec]*(1.024/8) = [size in kilobyte]
This is the filesize without tagging or private headers.
bond
6th December 2005, 12:24
maybe he mixes up mp3 with mp4 :rolleyes:
raquete
6th December 2005, 18:15
in doubt i ask to experts: the formula work for VBR?
Daijoubu
6th December 2005, 18:53
You're guys are really confused eh...
Bitrate (kpbs) / 8 * lenght (secs)
(Which means 128kbps = 16KB/s)
That's it...
And yes it applies to VBR...if your player show the average bitrate ;)
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.