Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save sandman/83bc66cf33bd67ec5476d823d37381df to your computer and use it in GitHub Desktop.
Save sandman/83bc66cf33bd67ec5476d823d37381df to your computer and use it in GitHub Desktop.
name : The name of the object
flags: readable, writable
String. Default: "nvv4l2h265enc0"
parent : The parent of the object
flags: readable, writable
Object of type "GstObject"
qos : Handle Quality-of-Service events from downstream
flags: readable, writable
Boolean. Default: false
device : Device location
flags: readable
String. Default: "/dev/nvhost-msenc"
device-name : Name of the device
flags: Opening in BLOCKING MODE
readable
String. Default: ""
device-fd : File descriptor of the device
flags: readable
Integer. Range: -1 - 2147483647 Default: -1
output-io-mode : Output side I/O mode (matches sink pad)
flags: readable, writable
Enum "GstNvV4l2EncOutputIOMode" Default: 0, "auto"
(0): auto - GST_V4L2_IO_AUTO
(2): mmap - GST_V4L2_IO_MMAP
(5): dmabuf-import - GST_V4L2_IO_DMABUF_IMPORT
capture-io-mode : Capture I/O mode (matches src pad)
flags: readable, writable
Enum "GstNvV4l2EncCaptureIOMode" Default: 0, "auto"
(0): auto - GST_V4L2_IO_AUTO
(2): mmap - GST_V4L2_IO_MMAP
extra-controls : Extra v4l2 controls (CIDs) for the device
flags: readable, writable
Boxed pointer of type "GstStructure"
bitrate : Set bitrate for v4l2 encode
flags: readable, writable, changeable only in NULL or READY state
Unsigned Integer. Range: 0 - 4294967295 Default: 4000000
control-rate : Set control rate for v4l2 encode
flags: readable, writable, changeable only in NULL or READY state
Enum "GstV4l2VideoEncRateControlType" Default: 1, "constant_bitrate"
(0): variable_bitrate - GST_V4L2_VIDENC_VARIABLE_BITRATE
(1): constant_bitrate - GST_V4L2_VIDENC_CONSTANT_BITRATE
iframeinterval : Encoding Intra Frame occurance frequency
flags: readable, writable, changeable only in NULL or READY state
Unsigned Integer. Range: 0 - 4294967295 Default: 30
bufapi-version : Set to use new buf API
flags: readable, writable
Boolean. Default: false
peak-bitrate : Peak bitrate in variable control-rate
The value must be >= bitrate
(1.2*bitrate) is set by default(Default: 0)
flags: readable, writable, changeable in NULL, READY, PAUSED or PLAYING state
Unsigned Integer. Range: 0 - 4294967295 Default: 0
quant-i-frames : Quantization parameter for I-frames (0xffffffff=component default),
use with ratecontrol-enable = 0
and preset-level = 0
flags: readable, writable, changeable only in NULL or READY state
Unsigned Integer. Range: 0 - 4294967295 Default: 4294967295
quant-p-frames : Quantization parameter for P-frames (0xffffffff=component default),
use with ratecontrol-enable = 0
and preset-level = 0
flags: readable, writable, changeable only in NULL or READY state
Unsigned Integer. Range: 0 - 4294967295 Default: 4294967295
quant-b-frames : Quantization parameter for B-frames (0xffffffff=component default),
use with ratecontrol-enable = 0
and preset-level = 0
flags: readable, writable, changeable only in NULL or READY state
Unsigned Integer. Range: 0 - 4294967295 Default: 4294967295
preset-level : HW preset level for encoder
flags: readable, writable, changeable only in NULL or READY state
Enum "GstV4L2VideoEncHwPreset" Default: 1, "UltraFastPreset"
(0): DisablePreset - Disable HW-Preset
(1): UltraFastPreset - UltraFastPreset for high perf
(2): FastPreset - FastPreset
(3): MediumPreset - MediumPreset
(4): SlowPreset - SlowPreset
qp-range : Qunatization range for P, I and B frame,
Use string with values of Qunatization Range
in MinQpP-MaxQpP:MinQpI-MaxQpI:MinQpB-MaxQpB order, to set the property.
flags: readable, writable
String. Default: null
vbv-size : virtual buffer size
flags: readable, writable, changeable only in NULL or READY state
Unsigned Integer. Range: 0 - 4294967295 Default: 4000000
MeasureEncoderLatency: Enable Measure Encoder latency Per Frame
flags: readable, writable, changeable only in NULL or READY state
Boolean. Default: false
ratecontrol-enable : Enable or Disable rate control mode
flags: readable, writable, changeable only in NULL or READY state
Boolean. Default: true
maxperf-enable : Enable or Disable Max Performance mode
flags: readable, writable, changeable only in NULL or READY state
Boolean. Default: false
idrinterval : Encoding IDR Frame occurance frequency
flags: readable, writable, changeable only in NULL or READY state
Unsigned Integer. Range: 0 - 4294967295 Default: 256
insert-sps-pps : Insert H.265 SPS, PPS at every IDR frame
flags: readable, writable
Boolean. Default: false
profile : Set profile for v4l2 encode
flags: readable, writable, changeable only in NULL or READY state
Enum "GstV4L2VideoEncProfileType" Default: 0, "Main"
(0): Main - GST_V4L2_H265_VIDENC_MAIN_PROFILE
(1): Main10 - GST_V4L2_H265_VIDENC_MAIN10_PROFILE
insert-vui : Insert H.265 VUI(Video Usability Information) in SPS
flags: readable, writable
Boolean. Default: false
insert-aud : Insert H.265 Access Unit Delimiter(AUD)
flags: readable, writable
Boolean. Default: false
bit-packetization : Whether or not Packet size is based upon Number Of bits
flags: readable, writable, changeable only in NULL or READY state
Boolean. Default: false
slice-header-spacing: Slice Header Spacing number of macroblocks/bits in one packet
flags: readable, writable, changeable only in NULL or READY state
Unsigned Integer64. Range: 0 - 18446744073709551615 Default: 0
SliceIntraRefreshInterval: Set SliceIntraRefreshInterval
flags: readable, writable, changeable only in NULL or READY state
Unsigned Integer. Range: 0 - 4294967295 Default: 0
EnableTwopassCBR : Enable two pass CBR while encoding
flags: readable, writable, changeable only in NULL or READY state
Boolean. Default: false
EnableMVBufferMeta : Enable Motion Vector Meta data for encoding
flags: readable, writable, changeable only in NULL or READY state
Boolean. Default: false
num-B-Frames : Number of B Frames between two reference frames (not recommended)(Supported only on Xavier)
flags: readable, writable, changeable only in NULL or READY state
Unsigned Integer. Range: 0 - 2 Default: 0
num-Ref-Frames : Number of Reference Frames for encoder
flags: readable, writable, changeable only in NULL or READY state
Unsigned Integer. Range: 0 - 8 Default: 1
enable-lossless : Enable lossless encoding for YUV444
flags: readable, writable, changeable only in NULL or READY state
Boolean. Default: false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment