amfh264enc
amfh264enc element encodes raw video stream into compressed H.264 bitstream via AMD AMF API.
Example launch line
gst-launch-1.0 videotestsrc num-buffers=100 ! amfh264enc ! h264parse ! mp4mux ! filesink location=encoded.mp4
Hierarchy
GObject ╰──GInitiallyUnowned ╰──GstObject ╰──GstElement ╰──GstVideoEncoder ╰──GstAmfEncoder ╰──amfh264enc
Implemented interfaces
Factory details
Authors: – Seungha Yang
Classification: – Codec/Encoder/Video/Hardware
Rank – primary
Plugin – amfcodec
Package – GStreamer Bad Plug-ins
Pad Templates
sink
video/x-raw(memory:D3D11Memory):
format: NV12
width: [ 128, 4096 ]
height: [ 128, 4096 ]
video/x-raw:
format: NV12
width: [ 128, 4096 ]
height: [ 128, 4096 ]
src
video/x-h264:
width: [ 128, 4096 ]
height: [ 128, 4096 ]
profile: { (string)main, (string)high, (string)constrained-baseline, (string)baseline }
stream-format: { (string)avc, (string)byte-stream }
alignment: au
Properties
adapter-luid
“adapter-luid” gint64
DXGI Adapter LUID (Locally Unique Identifier) of associated GPU
Flags : Read
Default value : 0
adaptive-mini-gop
“adaptive-mini-gop” gboolean
Enable Adaptive MiniGOP
Flags : Read / Write
Default value : false
Since : 1.24
b-frames
“b-frames” gint
Number of consecutive B pictures in a GOP
Flags : Read / Write
Default value : 0
Since : 1.24
b-reference
“b-reference” gboolean
Enable using B-pictures as references
Flags : Read / Write
Default value : true
Since : 1.24
bitrate
“bitrate” guint
Target bitrate in kbit/sec (0: USAGE default)
Flags : Read / Write
Default value : 0
gop-size
“gop-size” gint
Number of pictures within a GOP (-1: USAGE default)
Flags : Read / Write
Default value : -1
max-b-frames
“max-b-frames” guint
Maximum number of consecutive B pictures
Flags : Read / Write
Default value : 0
Since : 1.24
max-bitrate
“max-bitrate” guint
Maximum bitrate in kbit/sec (0: USAGE default)
Flags : Read / Write
Default value : 0
max-qp
“max-qp” gint
Maximum allowed QP value (-1: USAGE default)
Flags : Read / Write
Default value : -1
min-qp
“min-qp” gint
Minimum allowed QP value (-1: USAGE default)
Flags : Read / Write
Default value : -1
pa-activity-type
“pa-activity-type” GstAmfEncPAActivityType *
Set the type of activity analysis for pre-analysis
Flags : Read / Write
Default value : y (0)
Since : 1.24
pa-caq-strength
“pa-caq-strength” GstAmfEncPACAQStrength *
Content Adaptive Quantization strength for pre-analysis
Flags : Read / Write
Default value : medium (1)
Since : 1.24
pa-frame-sad
“pa-frame-sad” gboolean
Enable Frame SAD algorithm
Flags : Read / Write
Default value : true
Since : 1.24
pa-hqmb-mode
“pa-hqmb-mode” GstAmfEncPAHQMBMode *
Set the PA high motion quality boost mode
Flags : Read / Write
Default value : none (0)
Since : 1.24
pa-initial-qp
“pa-initial-qp” guint
Pre-analysis initial QP
Flags : Read / Write
Default value : 0
Since : 1.24
pa-lookahead-buffer-depth
“pa-lookahead-buffer-depth” guint
Pre-analysis lookahead buffer depth
Flags : Read / Write
Default value : 0
Since : 1.24
pa-ltr
“pa-ltr” gboolean
Enable long term reference frame management
Flags : Read / Write
Default value : false
Since : 1.24
pa-max-qp
“pa-max-qp” guint
Pre-analysis max QP
Flags : Read / Write
Default value : 35
Since : 1.24
pa-paq-mode
“pa-paq-mode” GstAmfEncPAPAQMode *
Set the perceptual adaptive quantization mode
Flags : Read / Write
Default value : none (0)
Since : 1.24
pa-scene-change-detection
“pa-scene-change-detection” gboolean
Enable scene change detection for pre-analysis
Flags : Read / Write
Default value : true
Since : 1.24
pa-scene-change-detection-sensitivity
“pa-scene-change-detection-sensitivity” GstAmfEncPASceneChangeDetectionSensitivity *
Pre-analysis scene change detection sensitivity
Flags : Read / Write
Default value : medium (1)
Since : 1.24
pa-static-scene-detection
“pa-static-scene-detection” gboolean
Enable static scene detection for pre-analysis
Flags : Read / Write
Default value : false
Since : 1.24
pa-static-scene-detection-sensitivity
“pa-static-scene-detection-sensitivity” GstAmfEncPAStaticSceneDetectionSensitivity *
Pre-analysis static scene detection sensitivity
Flags : Read / Write
Default value : high (2)
Since : 1.24
pa-taq-mode
“pa-taq-mode” GstAmfEncPATAQMode *
Set the temporal adaptive quantization mode
Flags : Read / Write
Default value : none (0)
Since : 1.24
pre-analysis
“pre-analysis” gboolean
Enable the pre-analysis module
Flags : Read / Write
Default value : false
Since : 1.24
pre-encode
“pre-encode” gboolean
Enable pre-encode assisted rate control
Flags : Read / Write
Default value : false
Since : 1.24
rate-control
“rate-control” Amf-h264enc-rate-control *
Rate Control Method
Flags : Read / Write
Default value : default (-1)
smart-access-video
“smart-access-video” gboolean
Enable AMF SmartAccess Video feature
Flags : Read / Write
Default value : false
Since : 1.24
Named constants
Amf-h264enc-preset
Encoding quality presets
Members
default
(-1) – Default, depends on USAGE
balanced
(0) – Balanced
speed
(1) – Speed
quality
(2) – Quality
Since : 1.22
Amf-h264enc-rate-control
Rate control methods
Members
default
(-1) – Default, depends on Usage
cqp
(0) – Constant QP
cbr
(1) – Constant Bitrate
vbr
(2) – Peak Constrained VBR
lcvbr
(3) – Latency Constrained VBR
Since : 1.22
Amf-h264enc-usage
Encoder usages
Members
transcoding
(0) – Transcoding
ultra-low-latency
(1) – Ultra Low Latency
low-latency
(2) – Low Latency
webcam
(3) – Webcam
Since : 1.22
The results of the search are