Skip to content

Instantly share code, notes, and snippets.

@ValdikSS
Created June 18, 2015 12:14
Show Gist options
  • Save ValdikSS/3326bb37cc4f0e641950 to your computer and use it in GitHub Desktop.
Save ValdikSS/3326bb37cc4f0e641950 to your computer and use it in GitHub Desktop.
Factory Details:
Rank primary (256)
Long-name VA-API H.264 encoder
Klass Codec/Encoder/Video
Description A VA-API based H.264 video encoder
Author Wind Yuan <feng.yuan@intel.com>
Plugin Details:
Name vaapi
Description VA-API based elements
Filename /usr/lib/gstreamer-1.0/libgstvaapi.so
Version 0.5.10
License LGPL
Source module gstreamer-vaapi
Binary package gstreamer-vaapi
Origin URL gwenole.beauchesne@intel.com
GObject
+----GInitiallyUnowned
+----GstObject
+----GstElement
+----GstVideoEncoder
+----GstVaapiEncode
+----GstVaapiEncodeH264
Implemented Interfaces:
GstPreset
Pad Templates:
SINK template: 'sink'
Availability: Always
Capabilities:
video/x-raw(memory:VASurface)
format: { ENCODED, NV12, I420, YV12 }
width: [ 1, 2147483647 ]
height: [ 1, 2147483647 ]
framerate: [ 0/1, 2147483647/1 ]
interlace-mode: progressive
video/x-raw
format: { I420, YV12, YUY2, UYVY, AYUV, RGBx, BGRx, xRGB, xBGR, RGBA, BGRA, ARGB, ABGR, RGB, BGR, Y41B, Y42B, YVYU, Y444, v210, v216, NV12, NV21, NV16, NV24, GRAY8, GRAY16_BE, GRAY16_LE, v308, RGB16, BGR16, RGB15, BGR15, UYVP, A420, RGB8P, YUV9, YVU9, IYU1, ARGB64, AYUV64, r210, I420_10LE, I420_10BE, I422_10LE, I422_10BE, Y444_10LE, Y444_10BE, GBR, GBR_10LE, GBR_10BE, NV12_64Z32 }
width: [ 1, 2147483647 ]
height: [ 1, 2147483647 ]
framerate: [ 0/1, 2147483647/1 ]
interlace-mode: progressive
SRC template: 'src'
Availability: Always
Capabilities:
video/x-h264
stream-format: { avc, byte-stream }
alignment: au
profile: { constrained-baseline, baseline, main, high, multiview-high, stereo-high }
Element Flags:
no flags set
Element Implementation:
Has change_state() function: gst_vaapiencode_change_state
Element has no clocking capabilities.
Element has no URI handling capabilities.
Pads:
SINK: 'sink'
Implementation:
Has chainfunc(): gst_video_encoder_chain
Has custom eventfunc(): gst_video_encoder_sink_event
Has custom queryfunc(): gst_vaapiencode_query
Has custom iterintlinkfunc(): gst_pad_iterate_internal_links_default
Pad Template: 'sink'
SRC: 'src'
Implementation:
Has custom eventfunc(): gst_video_encoder_src_event
Has custom queryfunc(): gst_vaapiencode_query
Has custom iterintlinkfunc(): gst_pad_iterate_internal_links_default
Pad Template: 'src'
Element Properties:
name : The name of the object
flags: readable, writable
String. Default: "vaapiencodeh264-0"
parent : The parent of the object
flags: readable, writable
Object of type "GstObject"
rate-control : Rate control mode
flags: readable, writable
Enum "GstVaapiRateControlH264" Default: 1, "cqp"
(1): cqp - Constant QP
(2): cbr - Constant bitrate
(4): vbr - Variable bitrate
(5): vbr_constrained - Variable bitrate - Constrained
bitrate : The desired bitrate expressed in kbps (0: auto-calculate)
flags: readable, writable
Unsigned Integer. Range: 0 - 102400 Default: 0
keyframe-period : Maximal distance between two keyframes (0: auto-calculate)
flags: readable, writable
Unsigned Integer. Range: 1 - 300 Default: 30
tune : Encoder tuning option
flags: readable, writable
Enum "GstVaapiEncoderTuneH264" Default: 0, "none"
(0): none - None
(1): high-compression - High compression
max-bframes : Number of B-frames between I and P
flags: readable, writable
Unsigned Integer. Range: 0 - 10 Default: 0
init-qp : Initial quantizer value
flags: readable, writable
Unsigned Integer. Range: 1 - 51 Default: 26
min-qp : Minimum quantizer value
flags: readable, writable
Unsigned Integer. Range: 1 - 51 Default: 1
num-slices : Number of slices per frame
flags: readable, writable
Unsigned Integer. Range: 1 - 200 Default: 1
cabac : Enable CABAC entropy coding mode
flags: readable, writable
Boolean. Default: false
dct8x8 : Enable adaptive use of 8x8 transforms in I-frames
flags: readable, writable
Boolean. Default: false
cpb-length : Length of the CPB buffer in milliseconds
flags: readable, writable
Unsigned Integer. Range: 1 - 10000 Default: 1500
num-views : Number of Views for MVC encoding
flags: readable, writable
Unsigned Integer. Range: 1 - 2 Default: 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment