Skip to main content

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

0 Members and 1 Guest are viewing this topic.
Calculate file size from bitrate and playtime
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 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
netjukebox - the flexible media share
http://www.netjukebox.nl

  • Madrigal
  • [*][*][*][*]
Calculate file size from bitrate and playtime
Reply #1
Try this.

Regards,
Madrigal

  • hybridfan
  • [*][*][*]
Calculate file size from bitrate and playtime
Reply #2
Quote
Try this.

Regards,
Madrigal
[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
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
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>
  • Last Edit: 21 February, 2006, 03:31:39 PM by WaldoMonster
netjukebox - the flexible media share
http://www.netjukebox.nl

  • Alex B
  • [*][*][*][*][*]
Calculate file size from bitrate and playtime
Reply #5
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
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