java - Calculate size of 1 minute PCM recording -
i want calculate how 1 minute of recording take. know samplerate, nr of channels , bit depth.
from know, sample rate how many samples given second. bit depth how many bits in 1 sample.
so,
- samplerate = 44100
- bitdepth = 16 (2 bytes per sample)
- channels = 2
- time = 60 sec
my formula is: (44100 * (16 / 8)) * 60
= ~5 mb per minute.
but i'm missing nr of channels, don't know how integrate in formula. know nr of channels when stereo recording, each frame composed 2 samples , when mono recording each frame composed 1 sample.
please show me correct formula compute size of 1 minute recording.
you need multiply number of channels
size per minute (in bytes):
samplerate * (bitdepth / 8) * channelcount * 60
Comments
Post a Comment