EncodingProfile.setRestriction

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 apply to #GstEncodingContainerProfile.

class EncodingProfile
void
setRestriction

Parameters

restriction gst.caps.Caps

the restriction to apply