Barbarella
New Member
Hi there! I need to know if OBS uses 16 or 24 Bit for audio?? I want to match all of my other devices. Thanks!
I think you meant 2^32 = 4,294,967,296 (32 bit)@koala @Barbella I know this is an old post, but I would like to share some things.
16bit offers you 96db of dynamic range. DBFS scale would go from -96db to 0db. The reason for this is really simple, 16bit can represent 65,536 different values. If you want to hear the quietest sound in a room with 25 db (DB SPL) of noise floor, the loudest sound will blast your ears at 120db (DB SPL), being really painful. So lets say, this is plenty of dynamic range. So trust me when I say, -96db is as dark of a noise floor at any humanly tolerated listening levels.
If you apply the same for 24bit (16,777,216) and 32bit(16,777,216), you will end up with 144db of dynamic range (-144 to 0db DBFS) and 192db (-192 to 0db DBFS) respectively. If the previous one is painful, this will knock you out, your ears will be bleeding and most likely you will be deaf. Those are stun grenade levels of sound pressure.
24bit and 32bit PCM and 32bit float point audio (this one has a stupid dynamic range of 1528db, from -758db to 770db in the DBFS scale, and yes, it goes below 0), is used mainly for mastering audio, so you can play with gain and different effects without audio clipping. I hope this makes sense.
@koala @Barbella I know this is an old post, but I would like to share some things.
OBS captures audio at 32 bit. I know this for a fact as the api will spit audio data in floating point (32bit). This is done because your output audio of your DAC can be configured to something "stupid" like 192Khz/32bits PCM. If you play some file in that format with that sample rate/ bit rate, obs will resample it to 44.1/48khz and 16bit. The reason for this is simple, you don't need more range for broadcasting/listening.
44.1Khz and 48Khz offers enough granularity of frequencies, being 22050Hz and 24000Hz, well beyond human hearing. Going beyond that would only improve ultrasonic harmonics that "might" affect audible frequencies if you have golden trained ears but, for the average joe, including myself, I can't hear a difference, As well, for those harmonics to be even present, you will need a really good pair of headphones that display ultrasounds... so there is that.
Now talking about bit depth. Obs will output 16bit, and to be honest, 16bit is more than enough, and here is why.
For any bit depth in a fixed point scale (PCM), you can apply the following formula:
20*log10(1/MAX_BIT_VALUE)
16bit offers you 96db of dynamic range. DBFS scale would go from -96db to 0db. The reason for this is really simple, 16bit can represent 65,536 different values. If you want to hear the quietest sound in a room with 25 db (DB SPL) of noise floor, the loudest sound will blast your ears at 120db (DB SPL), being really painful. So lets say, this is plenty of dynamic range. So trust me when I say, -96db is as dark of a noise floor at any humanly tolerated listening levels.
If you apply the same for 24bit (16,777,216) and 32bit(16,777,216), you will end up with 144db of dynamic range (-144 to 0db DBFS) and 192db (-192 to 0db DBFS) respectively. If the previous one is painful, this will knock you out, your ears will be bleeding and most likely you will be deaf. Those are stun grenade levels of sound pressure.
24bit and 32bit PCM and 32bit float point audio (this one has a stupid dynamic range of 1528db, from -758db to 770db in the DBFS scale, and yes, it goes below 0), is used mainly for mastering audio, so you can play with gain and different effects without audio clipping. I hope this makes sense.