## Topic: Calculate file size from bitrate and playtime (Read 5622 times)previous topic - next topic

0 Members and 1 Guest are viewing this topic.
Calculate file size from bitrate and playtime
##### 21 February, 2006, 01:39:14 PM
Is this calculation right?
I hope I didn't fucked up with switching bits and bytes

Thanks for the help,

Willem

Code: [Select]
`Bitrate 64 kbpsPlaytime 5 min64 kbps = 64000 bps5 min = 5 x 60 = 300 sec             6400064000 bps = ----- bytes/sec               864000 * 300                    2400000----------- = 2400000 bytes = ----------- = 2.29 MB      8                        1024 * 1024`
netjukebox - the flexible media share
http://www.netjukebox.nl

Calculate file size from bitrate and playtime
##### Reply #1 – 21 February, 2006, 02:51:54 PM
Try this.

Regards,

• hybridfan
Calculate file size from bitrate and playtime
##### Reply #2 – 21 February, 2006, 03:17:57 PM
Quote
Try this.

Regards,
[a href="index.php?act=findpost&pid=366071"][{POST_SNAPBACK}][/a]

Wow that's really neat but does not go up to 320kbps.
:Foobar 2000:
:MPC --standard:
:iRiver H320 Rockboxed:

• Alex B
Calculate file size from bitrate and playtime
##### Reply #3 – 21 February, 2006, 03:25:47 PM
Quote
Is this calculation right?[a href="index.php?act=findpost&pid=366054"][{POST_SNAPBACK}][/a]

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.

Calculate file size from bitrate and playtime
##### Reply #4 – 21 February, 2006, 03:29:16 PM
Thanks for that tool
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

<update>
Hello Alex B,

I think we typed it the same time
</update>
netjukebox - the flexible media share
http://www.netjukebox.nl

• Alex B
Calculate file size from bitrate and playtime
##### Reply #5 – 21 February, 2006, 03:41:41 PM
Quote
Thanks for that tool
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

<update>
Hello Alex B,

I think we typed it the same time
</update>[a href="index.php?act=findpost&pid=366080"][{POST_SNAPBACK}][/a]

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
Calculate file size from bitrate and playtime
##### Reply #6 – 21 February, 2006, 11:54:07 PM
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.
WavPack 4.31 / LAME 3.98 alpha 3 -V9 -vbr-new