Alexandru Circus
Alexandru Circus

Reputation: 5538

Calculate size of 1 minute PCM recording

I want to calculate how much 1 minute of recording does take. I know sampleRate, nr of channels and bit depth.

From as I know, the sample rate is how many samples are given into a second. Bit depth is how many bits are in 1 sample.

So,

My formula is: (44100 * (16 / 8)) * 60 = ~5 MB per minute.

But I'm missing nr of channels, I don't know how to integrate it in my formula. All I know about nr of channels is that when stereo recording, each frame is composed from 2 samples and when mono recording each frame is composed by 1 sample.

Please show me the correct formula to compute the size of 1 minute recording.

Upvotes: 4

Views: 5471

Answers (1)

Sam Dufel
Sam Dufel

Reputation: 17598

You just need to multiply by the number of channels

Size per minute (in bytes):

sampleRate * (bitDepth / 8) * channelCount * 60

Upvotes: 10

Related Questions