Obs 20.0.1 for Windows is currently producing the following HEX 13 10 56 E5 98 for 48kHz Audio and HEX 13 90 56 E5 A0 for 44.1Khz Audio.
Basically, the FrequencyIndex is being set to 6 for 48Khz and 7 for 44.1Khz. Index 6 is 24Khz and 7 is 22.050Khz.
The audio frames also seem to be twice as large as usual. They're 46ms (rounded) in duration instead of the expected 23.22ms for 44.1Khz audio. Its okay to produce multiple audio frames per packet; just need to get the FrequencyIndex correct.
On a side note: RTMP is only using a single chunk-channel to transfer stream data which is making your timestamp math much more difficult and error prone. By using more than one channel, you get to use pure deltas for the timestamps.
Basically, the FrequencyIndex is being set to 6 for 48Khz and 7 for 44.1Khz. Index 6 is 24Khz and 7 is 22.050Khz.
The audio frames also seem to be twice as large as usual. They're 46ms (rounded) in duration instead of the expected 23.22ms for 44.1Khz audio. Its okay to produce multiple audio frames per packet; just need to get the FrequencyIndex correct.
On a side note: RTMP is only using a single chunk-channel to transfer stream data which is making your timestamp math much more difficult and error prone. By using more than one channel, you get to use pure deltas for the timestamps.
Last edited: