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
EncodingProfile self()Returns `this`, for use in `with` statements.EncodingProfileGidBuilder builder()Get builder for [gstpbutils.encoding_profile.EncodingProfile] Returns: New builder objectgst.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.gst.caps.Caps restrictionCaps() @propertyvoid restrictionCaps(gst.caps.Caps propval) @propertygstpbutils.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 selfbool getAllowDynamicOutput()Get whether the format that has been negotiated in at some point can be renegotiated later during the encoding. Returns:string getDescription()string getFileExtension()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()uint getPresence()string getPreset()string getPresetName()bool getSingleSegment()string getTypeNick()bool isEnabled()bool isEqual(gstpbutils.encoding_profile.EncodingProfile b)Checks whether the two #GstEncodingProfile are equalvoid 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 streamvoid 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.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.T restrictionCaps(gst.caps.Caps propval)Fluent builder for [gstpbutils.encoding_profile.EncodingProfile]
Methods