omxh264enc

The omxh264enc 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 omxh264enc element is an OpenMAX H264 video encoder that provides h/w accelerated H264 video 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 video encode on its video core. The omxh264enc element is based on GstVideoEncoder base class for video encoders. For more information on the GstVideoEncoder methods and API call flow refer to https://gstreamer.freedesktop.org/documentation/video/gstvideoencoder.html?gi-language=c.

Pad templates

sink (input)

video/x-raw
           width: [ 1, 2147483647 ]
           height: [ 1, 2147483647 ]
      framerate: [ 0/1, 2147483647/1 ]

Presencealways

Directionsink

source (output)

video/x-h264
           width: [ 16, 4096 ]
           height: [ 16, 4096 ]

Presencealways

Directionsrc

name

The name of the object

type: String
access: read/write
default: "omxh264enc-omxh264enc0"

qos

Handle Quality-of-Service events from downstream.

type: Boolean
access: read/write
default: false

control-rate

Bitrate control method. This property can be updated only in NULL or READY state.

type: Enum "GstOMXVideoEncControlRate"
access: read/write
default: -1, "default"
possible values:
(0): disable          - Disable
(1): variable      - Variable
(2): constant      - Constant
(3): variable-skip-frames - Variable Skip Frames
(4): constant-skip-frames - Constant Skip Frames
(-1): default          - Component Default

target-bitrate

Target bitrate in bits per second. This property can be updated in all states.

type: Unsigned Integer
access: read/write
default: 4294967295
range: 0 - 4294967295

quant-i-frames

Quantization parameter for I-frames. This property can be updated only in NULL or READY state.

type: Unsigned Integer
access: read/write
default: 4294967295
range: 0 - 4294967295

quant-p-frames

Quantization parameter for P-frames. This property can be updated only in NULL or READY state.

type: Unsigned Integer
access: read/write
default: 4294967295
range: 0 - 4294967295

quant-b-frames

Quantization parameter for B-frames. This property can be updated only in NULL or READY state.

type: Unsigned Integer
access: read/write
default: 4294967295
range: 0 - 4294967295

periodicity-idr

Periodicity of IDR frames. This property can be updated only in NULL or READY state.

type: Unsigned Integer
access: read/write
default: 4294967295
range: 0 - 4294967295

interval-intraframes

Interval of coding Intra frames. This property can be updated only in NULL or READY state.

type: Unsigned Integer
access: read/write
default: 4294967295
range: 0 - 4294967295

b-frames

Number of B-frames between two consecutive I-frames. This property can be updated only in NULL or READY state.

type: Unsigned Integer
access: read/write
default: 4294967295
range: 0 - 4294967295

entropy-mode

Entropy mode for encoding process. This property can be updated only in NULL or READY state.

type: Enum "GstOMXH264EncEntropyMode"
access: read/write
default: -1, "default"
possible values:
(0): CAVLC           - CAVLC entropy mode
(1): CABAC           - CABAC entropy mode
(-1): default          - Component Default

constrained-intra-prediction

If enabled, prediction only uses residual data and decoded samples from neighboring coding blocks coded using intra prediction modes. This property can be updated only in NULL or READY state.

type: Boolean
access: read/write
default: false

loop-filter-mode

Enable or disable the deblocking filter . This property can be updated only in NULL or READY state.

type: Enum "GstOMXH264EncLoopFilter"
access: read/write
default: -1, "default"
possible values:
(0): enable           - Enable deblocking filter
(1): disable          - Disable deblocking filter
(2): disable-slice-boundary - Disables deblocking filter on slice boundary
(-1): default          - Component Default