Help - Search - Members - Calendar
Full Version: Calculate file size from bitrate and playtime
Hydrogenaudio Forums > Hydrogenaudio Forum > General Audio
WaldoMonster
Is this calculation right?
I hope I didn't fucked up with switching bits and bytes wink.gif

Thanks for the help,

Willem


CODE
Bitrate 64 kbps
Playtime 5 min

64 kbps = 64000 bps

5 min = 5 x 60 = 300 sec

            64000
64000 bps = ----- bytes/sec
              8

64000 * 300                    2400000
----------- = 2400000 bytes = ----------- = 2.29 MB
     8                        1024 * 1024
Madrigal
Try this.

Regards,
Madrigal
hybridfan
QUOTE (Madrigal @ Feb 21 2006, 11:51 AM)
Try this.

Regards,
Madrigal
*


Wow that's really neat but does not go up to 320kbps.
Alex B
QUOTE (WaldoMonster @ Feb 21 2006, 08:39 PM)
Is this calculation right?
*

It's correct.

Normally and usually a kilobit = 1,000 bits (e.g. when data transfers speeds are showed), but a kilobyte = 1,024 bytes (e.g. when file sizes are showed).

Only HD manufacturers have a bit different math. They think that 1 GB = 1,000,000,000 bytes and so on. I guess a bigger GB amount looks better. tongue.gif
WaldoMonster
Thanks for that tool smile.gif
This calculation is right for Bytes.

Mabe the tool is wrong regarding Bytes to KBytes, MBytes, etc...
It uses a factor 1000 I thought for storage they used a factor 1024,
exept for Hard Disk's because it looks better that way tongue.gif

<update>
Hello Alex B,

I think we typed it the same time wink.gif
</update>
Alex B
QUOTE (WaldoMonster @ Feb 21 2006, 10:29 PM)
Thanks for that tool  smile.gif
This calculation is right for Bytes.

Mabe the tool is wrong regarding Bytes to KBytes, MBytes, etc...
It uses a factor 1000 I thought for storage they used a factor 1024,
exept for Hard Disk's because it looks better that way tongue.gif

<update>
Hello Alex B,

I think we typed it the same time  wink.gif
</update>
*

Yeah, and that tool indeed shows incorrect KB, MB and GB values.

Also, the real 128 kbps 2min 30s files I have are almost exactly 2.3 MB. (I don't have 64 kbps files.)
kindofblue
Very interesting. Thanks for this. I have a lot of 64kbps files (LAME -V9 -vbr-new), and I've been wondering about how to calculate filesizes as well. According to your formula, a -V9 encoded file (~64kbps) would take up 0.46MB per 1 minute of music, so an hour's worth would be 27.47MB. I'm trying to find out the maximum number of songs I can fit in a 1GB flash player with V9, V8 and V7.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.