mfh264enc
This element encodes raw video into H264 compressed data.
Example pipelines
gst-launch-1.0 -v videotestsrc ! mfh264enc ! h264parse ! qtmux ! filesink location=videotestsrc.mp4
This example pipeline will encode a test video source to H264 using Media Foundation encoder, and muxes it in a mp4 container.
Hierarchy
GObject ╰──GInitiallyUnowned ╰──GstObject ╰──GstElement ╰──GstVideoEncoder ╰──GstMFVideoEncoder ╰──mfh264enc
Implemented interfaces
Factory details
Authors: – Seungha Yang
Classification: – Codec/Encoder/Video/Hardware
Rank – secondary
Plugin – mediafoundation
Package – GStreamer Bad Plug-ins
Pad Templates
sink
video/x-raw(memory:D3D11Memory):
format: NV12
width: [ 64, 8192 ]
height: [ 64, 8192 ]
video/x-raw:
format: NV12
width: [ 64, 8192 ]
height: [ 64, 8192 ]
src
video/x-h264:
width: [ 64, 8192 ]
height: [ 64, 8192 ]
stream-format: byte-stream
alignment: au
profile: { (string)high, (string)main, (string)constrained-baseline, (string)baseline }
Properties
adapter-luid
“adapter-luid” gint64
DXGI Adapter LUID for this elemenet
Flags : Read
Default value : 0
Since : 1.20
adaptive-mode
“adaptive-mode” Mfh264enc-adaptive-mode *
Flags : Read / Write
Default value : none (0)
Since : 1.18
d3d11-aware
“d3d11-aware” gboolean
Whether element supports Direct3D11 texture as an input or not
Flags : Read
Default value : true
Since : 1.20
Named constants
Mfh264enc-adaptive-mode
Members
none
(0) – None
framerate
(1) – Adaptively change the frame rate
Since : 1.18
Mfh264enc-rcmode
Members
cbr
(0) – Constant bitrate
pcvbr
(1) – Peak Constrained variable bitrate
uvbr
(2) – Unconstrained variable bitrate
qvbr
(3) – Quality-based variable bitrate
Since : 1.18
The results of the search are