gstpbutils.encoding_target
Module for [EncodingTarget] class
Types 3
Collection of #GstEncodingProfile for a specific target or use-case.
When being stored/loaded, targets come from a specific category, like #GST_ENCODING_CATEGORY_DEVICE.
Methods
EncodingTarget self()Returns `this`, for use in `with` statements.EncodingTargetGidBuilder builder()Get builder for [gstpbutils.encoding_target.EncodingTarget] Returns: New builder objectgstpbutils.encoding_target.EncodingTarget load(string name, string category = null)Searches for the #GstEncodingTarget with the given name, loads it and returns it.gstpbutils.encoding_target.EncodingTarget loadFromFile(string filepath)Opens the provided file and returns the contained #GstEncodingTarget.bool addProfile(gstpbutils.encoding_profile.EncodingProfile profile)Adds the given profile to the target. Each added profile must have a unique name within the profile.string getCategory()string getDescription()string getName()string getPath()gstpbutils.encoding_profile.EncodingProfile getProfile(string name)bool save()Saves the target to a default user-local directory. Returns: true if the target was correctly saved, else false. Throws: [ErrorWrap]bool saveToFile(string filepath)Saves the target to the provided file location.Constructors
this(string name, string category, string description, gstpbutils.encoding_profile.EncodingProfile[] profiles)Creates a new #GstEncodingTarget.Fluent builder for [gstpbutils.encoding_target.EncodingTarget]
Methods