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 ╰──GstMFVideoEnc ╰──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:
format: { NV12, BGRA }
width: [ 64, 8192 ]
height: [ 64, 8192 ]
src
video/x-h264:
stream-format: byte-stream
alignment: au
profile: { (string)high, (string)main, (string)baseline }
width: [ 64, 8192 ]
height: [ 64, 8192 ]
Properties
bframes
“bframes” guint
The maximum number of consecutive B frames
Flags : Read / Write
Default value : 0
gop-size
“gop-size” guint
The number of pictures from one GOP header to the next, (0 = MFT default)
Flags : Read / Write
Default value : 0
low-latency
“low-latency” gboolean
Enable low latency encoding
Flags : Read / Write
Default value : false
max-bitrate
“max-bitrate” guint
The maximum bitrate applied when rc-mode is "pcvbr" in kbit/sec
Flags : Read / Write
Default value : 0
quality-vs-speed
“quality-vs-speed” guint
Quality and speed tradeoff, [0, 33]: Low complexity, [34, 66]: Medium complexity, [67, 100]: High complexity
Flags : Read / Write
Default value : 50
rc-mode
“rc-mode” Mfh264enc-rcmode *
Rate Control Mode
Flags : Read / Write
Default value : uvbr (2)
vbv-buffer-size
“vbv-buffer-size” guint
VBV(HRD) Buffer Size in bytes (0 = MFT default)
Flags : Read / Write
Default value : 0
Named constants
Mfh264enc-rcmode
Members
cbr
(0) – Constant bitrate
pcvbr
(1) – Peak Constrained variable bitrate
uvbr
(2) – Unconstrained variable bitrate
qvbr
(3) – Quality-based variable bitrate
The results of the search are