Top |
Properties
Object Hierarchy
GObject ╰── GInitiallyUnowned ╰── GstObject ╰── GstElement ╰── GstVideoEncoder ╰── GstVPXEnc ╰── GstVP8Enc
Description
This element encodes raw video into a VP8 stream.
VP8 is a royalty-freevideo codec maintained by Google . It's the successor of On2 VP3, which was the base of the Theora video codec.
To control the quality of the encoding, the “target-bitrate”, “min-quantizer”, “max-quantizer” or “cq-level” properties can be used. Which one is used depends on the mode selected by the “end-usage” property. See Encoder Parameters for explanation, examples for useful encoding parameters and more details on the encoding parameters.
Example pipeline
1 |
gst-launch-1.0 -v videotestsrc num-buffers=1000 ! vp8enc ! webmmux ! filesink location=videotestsrc.webm |
Synopsis
Element Information
plugin |
vpx |
author |
David Schleef <ds@entropywave.com>, Sebastian Dröge <sebastian.droege@collabora.co.uk> |
class |
Codec/Encoder/Video |
Property Details
The “arnr-maxframes”
property
“arnr-maxframes” gint
AltRef maximum number of frames.
Flags: Read / Write
Allowed values: [0,15]
Default value: 0
The “arnr-strength”
property
“arnr-strength” gint
AltRef strength.
Flags: Read / Write
Allowed values: [0,6]
Default value: 3
The “arnr-type”
property
“arnr-type” gint
AltRef type.
Flags: Read / Write
Allowed values: [1,3]
Default value: 3
The “auto-alt-ref”
property
“auto-alt-ref” gboolean
Automatically generate AltRef frames.
Flags: Read / Write
Default value: FALSE
The “buffer-initial-size”
property
“buffer-initial-size” gint
Initial client buffer size (ms).
Flags: Read / Write
Allowed values: >= 0
Default value: 4000
The “buffer-optimal-size”
property
“buffer-optimal-size” gint
Optimal client buffer size (ms).
Flags: Read / Write
Allowed values: >= 0
Default value: 5000
The “buffer-size”
property
“buffer-size” gint
Client buffer size (ms).
Flags: Read / Write
Allowed values: >= 0
Default value: 6000
The “cpu-used”
property
“cpu-used” gint
CPU used.
Flags: Read / Write
Allowed values: [-16,16]
Default value: 0
The “cq-level”
property
“cq-level” gint
Constrained quality level.
Flags: Read / Write
Allowed values: [0,63]
Default value: 10
The “deadline”
property
“deadline” gint64
Deadline per frame (usec, 0=disabled).
Flags: Read / Write
Allowed values: >= 0
Default value: 0
The “dropframe-threshold”
property
“dropframe-threshold” gint
Temporal resampling threshold (buf %).
Flags: Read / Write
Allowed values: [0,100]
Default value: 0
The “end-usage”
property
“end-usage” GstVP8EncEndUsage
Rate control mode.
Flags: Read / Write
Default value: Variable Bit Rate (VBR) mode
The “error-resilient”
property
“error-resilient” GstVP8EncErFlags
Error resilience flags.
Flags: Read / Write
The “lag-in-frames”
property
“lag-in-frames” gint
Maximum number of frames to lag.
Flags: Read / Write
Allowed values: [0,25]
Default value: 0
The “max-quantizer”
property
“max-quantizer” gint
Maximum Quantizer (worst).
Flags: Read / Write
Allowed values: [0,63]
Default value: 63
The “min-quantizer”
property
“min-quantizer” gint
Minimum Quantizer (best).
Flags: Read / Write
Allowed values: [0,63]
Default value: 4
The “multipass-cache-file”
property
“multipass-cache-file” gchar *
Multipass cache file. If stream caps reinited, multiple files will be created: file, file.1, file.2, ... and so on.
Flags: Read / Write
Default value: "multipass.cache"
The “multipass-mode”
property
“multipass-mode” GstVP8EncMultipassMode
Multipass encode mode.
Flags: Read / Write
Default value: One pass encoding (default)
The “noise-sensitivity”
property
“noise-sensitivity” gint
Noise sensisivity (frames to blur).
Flags: Read / Write
Allowed values: [0,6]
Default value: 0
The “resize-allowed”
property
“resize-allowed” gboolean
Allow spatial resampling.
Flags: Read / Write
Default value: FALSE
The “resize-down-threshold”
property
“resize-down-threshold” gint
Downscale threshold (buf %).
Flags: Read / Write
Allowed values: [0,100]
Default value: 60
The “resize-up-threshold”
property
“resize-up-threshold” gint
Upscale threshold (buf %).
Flags: Read / Write
Allowed values: [0,100]
Default value: 30
The “sharpness”
property
“sharpness” gint
Filter sharpness.
Flags: Read / Write
Allowed values: [0,7]
Default value: 0
The “static-threshold”
property
“static-threshold” gint
Motion detection threshold.
Flags: Read / Write
Allowed values: >= 0
Default value: 0
The “target-bitrate”
property
“target-bitrate” gint
Target bitrate (in bits/sec).
Flags: Read / Write
Allowed values: >= 0
Default value: 256000
The “threads”
property
“threads” gint
Number of threads to use.
Flags: Read / Write
Allowed values: [0,64]
Default value: 0
The “token-partitions”
property
“token-partitions” GstVP8EncTokenPartitions
Number of token partitions.
Flags: Read / Write
Default value: One token partition
The “tuning”
property
“tuning” GstVP8EncTuning
Tuning.
Flags: Read / Write
Default value: Tune for PSNR
The “horizontal-scaling-mode”
property
“horizontal-scaling-mode” GstVP8EncScalingMode
Horizontal scaling mode.
Flags: Read / Write
Default value: Normal
The “keyframe-max-dist”
property
“keyframe-max-dist” gint
Maximum distance between keyframes (number of frames).
Flags: Read / Write
Allowed values: >= 0
Default value: 128
The “keyframe-mode”
property
“keyframe-mode” GstVP8EncKfMode
Keyframe placement.
Flags: Read / Write
Default value: Determine optimal placement automatically
The “max-intra-bitrate”
property
“max-intra-bitrate” gint
Maximum Intra frame bitrate.
Flags: Read / Write
Allowed values: >= 0
Default value: 0
The “overshoot”
property
“overshoot” gint
Datarate overshoot (max) target (%).
Flags: Read / Write
Allowed values: [0,1000]
Default value: 100
The “temporal-scalability-layer-id”
property
“temporal-scalability-layer-id” GValueArray *
Sequence defining coding layer membership.
Flags: Read / Write
The “temporal-scalability-number-layers”
property
“temporal-scalability-number-layers” gint
Number of coding layers to use.
Flags: Read / Write
Allowed values: [1,5]
Default value: 1
The “temporal-scalability-periodicity”
property
“temporal-scalability-periodicity” gint
Length of sequence that defines layer membership periodicity.
Flags: Read / Write
Allowed values: [0,16]
Default value: 0
The “temporal-scalability-rate-decimator”
property
“temporal-scalability-rate-decimator” GValueArray *
Rate decimation factors for each layer.
Flags: Read / Write
The “temporal-scalability-target-bitrate”
property
“temporal-scalability-target-bitrate” GValueArray *
Target bitrates for coding layers (one per layer, decreasing).
Flags: Read / Write
The “twopass-vbr-bias”
property
“twopass-vbr-bias” gint
CBR/VBR bias (0=CBR, 100=VBR).
Flags: Read / Write
Allowed values: [0,100]
Default value: 50
The “twopass-vbr-maxsection”
property
“twopass-vbr-maxsection” gint
GOP maximum bitrate (% target).
Flags: Read / Write
Allowed values: >= 0
Default value: 0
The “twopass-vbr-minsection”
property
“twopass-vbr-minsection” gint
GOP minimum bitrate (% target).
Flags: Read / Write
Allowed values: >= 0
Default value: 0
The “undershoot”
property
“undershoot” gint
Datarate undershoot (min) target (%).
Flags: Read / Write
Allowed values: [0,1000]
Default value: 100
The “vertical-scaling-mode”
property
“vertical-scaling-mode” GstVP8EncScalingMode
Vertical scaling mode.
Flags: Read / Write
Default value: Normal