codecUtilsAacCapsSetLevelAndProfile

Sets the level and profile on caps if it can be determined from audio_config. See gstpbutils.global.codecUtilsAacGetLevel and gstpbutils.global.codecUtilsAacGetProfile for more details on the parameters. caps must be audio/mpeg caps with an "mpegversion" field of either 2 or 4. If mpegversion is 4, the "base-profile" field is also set in caps.

bool
codecUtilsAacCapsSetLevelAndProfile

Parameters

caps gst.caps.Caps

the #GstCaps to which level and profile fields are to be added

audioConfig ubyte[]

a pointer to the AudioSpecificConfig as specified in the Elementary Stream Descriptor (esds) in ISO/IEC 14496-1. (See below for more details)

Return Value

Type: bool

true if the level and profile could be set, false otherwise.