Get AAC sampleRate/channels setting from H.245 terminalCapabilitySet


I’m new to H323, so if there something went wrong, please let me know it. I’ll be very apprieciated.

The information in H.245 terminalCapabilitySet is really sucked. As a newbie, I have no idea what it is whatever represented in the collapsing & nonCollapsing.

After double checked with some documents & code, I finally got the meanings:
Get AAC sampleRate from H.245 terminalCapabilitySet
Look into the picture1(AAC format of this picture is AAC LC):

Item 0 –> nonCollapsing item –> parameterIdentifier: standard = 0
this means AAC ProfileAndLevel

Item 1 –> nonCollapsing item –> parameterIdentifier: standard = 1
this means AAC Format

Item 2 –> nonCollapsing item –> parameterIdentifier: standard = 3
this means AAC AudioObjectType

Item 3 –> nonCollapsing item –> parameterIdentifier: standard = 4
this means AAC Sample rate

And the sample rate byte value stored in a two bytes array which are: 0x12, 0x88

Explain it in a suedo-code will be:

If the audio codec format is AAC LC then

If the audio codec format is AAC LD then

 

As you know AAC format in this example stand as AAC LC, so we’ll use formula 1:

then check it with the mapping listed bellow, you will get the sample rate of the terminal capability set is emFs24000, which means this terminal supports 24000KHz AAC LC audio.

 

Leave a comment

Your email address will not be published. Required fields are marked *