omxaacenc
The omxaacenc GStreamer element is part of the gst-omx plugin. The gst-omx plugin is an adapter for the available OpenMAX IL components and maps the OpenMAX APIs and states to the Gstreamer APIs and states. The omxhaacenc element is an OpenMAX AAC audio encoder that provides h/w accelerated AAC audio encoding using the OpenMAX component on platforms that support it. QTI has added support for its OpenMAX video encode component in the gst-omx plugin for enabling h/w accelerated audio encode on its audio core. The omxaacenc element is based on GstAudioEncoder base class for audio encoders. For more information on the GstAudioEncoder methods and API call flow refer to https://gstreamer.freedesktop.org/documentation/audio/gstaudioencoder.html?gi-language=c
Pad templates
sink (input)
audio/x-raw
rate: [ 1, 2147483647 ]
channels: [ 1, 16 ]
format: { (string)S8, (string)U8, (string)S16LE, (string)S16BE, (string)U16LE, (string)U16BE, (string)S24LE, (string)S24BE, (string)U24LE, (string)U24BE, (string)S32LE, (string)S32BE, (string)U32LE, (string)U32BE }
Presence – always
Direction – sink
source (output)
audio/mpeg
mpegversion: { (int)2, (int)4 }
stream-format: { (string)raw, (string)adts, (string)adif, (string)loas, (string)latm }
Presence – always
Direction – src
Properties
name
The name of the object.
type: String
access: read/write
default: "omxaacenc-omxaacenc0"
parent
The parent of the object.
type: Object of type "GstObject"
access: read/write
perfect-timestamp
Favour perfect timestamps over tracking upstream timestamps.
type: Boolean
access: read/write
default: false
mark-granule
Apply granule semantics to buffer metadata (implies perfect-timestamp).
type: Boolean
access: read
default: false
hard-resync
Perform clipping and sample flushing upon discontinuity.
type: Boolean
access: read/write
default: false
tolerance
Consider discontinuity if timestamp jitter/imperfection exceeds tolerance (ns).
type: Signed Integer (64-bit)
access: read/write
default: 40000000
range: 0 - 9223372036854775807
bitrate
Bitrate for audio stream. This property can be updated only in NULL or READY state
type: Unsigned Integer
access: read/write
default: 128000
range: 0 - 4294967295
aac-tools
Allowed AAC tools. This property can be updated only in NULL or READY state.
type: Flags "GstOMXAACTools"
access: read/write
default: 0x0000001f, "ltp+pns+tns+is+ms"
possible-values:
(0x00000001): ms - Mid/side joint coding
(0x00000002): is - Intensity stereo
(0x00000004): tns - Temporal noise shaping
(0x00000008): pns - Perceptual noise substitution
(0x00000010): ltp - Long term prediction
aac-error-resilience-tools
Allowed AAC error resilience tools. This property can be updated only in NULL or READY state.
type: Flags "GstOMXAACERTools"
access: read/write
default: 0x00000000, "(none)"
possible-values:
(0x00000001): vcb11 - Virtual code books
(0x00000002): rvlc - Reversible variable length coding
(0x00000004): hcr - Huffman codeword reordering