gstpbutils.encoding_profile

Module for [EncodingProfile] class

Types 3

The opaque base class object for all encoding profiles. This contains generic information like name, description, format and preset.

Methods
GType _gType() @property
EncodingProfile self()Returns `this`, for use in `with` statements.
EncodingProfileGidBuilder builder()Get builder for [gstpbutils.encoding_profile.EncodingProfile] Returns: New builder object
gst.structure.Structure elementProperties() @propertyGet `elementProperties` property. Returns: A #GstStructure defining the properties to be set to the element the profile represents.
void elementProperties(gst.structure.Structure propval) @propertySet `elementProperties` property. Params: propval = A #GstStructure defining the properties to be set to the element the profile represents.
void restrictionCaps(gst.caps.Caps propval) @property
gstpbutils.encoding_profile.EncodingProfile find(string targetname, string profilename = null, string category = null)Find the #GstEncodingProfile with the specified name and category.
gstpbutils.encoding_profile.EncodingProfile fromDiscoverer(gstpbutils.discoverer_info.DiscovererInfo info)Creates a #GstEncodingProfile matching the formats from the given #GstDiscovererInfo. Streams other than audio or video (eg, subtitles), are currently ignored.
gstpbutils.encoding_profile.EncodingProfile copy()Makes a deep copy of self Returns: The copy of self
bool getAllowDynamicOutput()Get whether the format that has been negotiated in at some point can be renegotiated later during the encoding. Returns:
gst.caps.Caps getInputCaps()Computes the full output caps that this profile will be able to consume. Returns: The full caps the given profile can consume. Call gstcapsunref() when you are done with the caps.
string getName()
string getPreset()
string getPresetName()
string getTypeNick()
bool isEnabled()
bool isEqual(gstpbutils.encoding_profile.EncodingProfile b)Checks whether the two #GstEncodingProfile are equal
void setAllowDynamicOutput(bool allowDynamicOutput)Sets whether the format that has been negotiated in at some point can be renegotiated later during the encoding.
void setDescription(string description = null)Set description as the given description for the profile. A copy of description will be made internally.
void setElementProperties(gst.structure.Structure elementProperties)This allows setting the muxing/encoding element properties.
void setEnabled(bool enabled)Set whether the profile should be used or not.
void setFormat(gst.caps.Caps format)Sets the media format used in the profile.
void setName(string name = null)Set name as the given name for the profile. A copy of name will be made internally.
void setPresence(uint presence)Set the number of time the profile is used in its parent container profile. If 0, it is not a mandatory stream
void setPreset(string preset = null)Sets the name of the #GstElement that implements the #GstPreset interface to use for the profile. This is the name that has been set when saving the preset.
void setPresetName(string presetName = null)Sets the name of the #GstPreset's factory to be used in the profile.
void setRestriction(gst.caps.Caps restriction = null)Set the restriction #GstCaps to apply before the encoder that will be used in the profile. See [gstpbutils.encoding_profile.EncodingProfile.getRestriction] for more about restrictions. Does not app...
void setSingleSegment(bool singleSegment)If using a single segment, buffers will be retimestamped and segments will be eat so as to appear as one segment.
Constructors
this(void * ptr, Flag!"Take" take)
Methods
T elementProperties(gst.structure.Structure propval)Set `elementProperties` property. Params: propval = A #GstStructure defining the properties to be set to the element the profile represents.

Fluent builder for [gstpbutils.encoding_profile.EncodingProfile]