Caps.serialize

Converts caps to a string representation. This string representation can be converted back to a #GstCaps by gst.caps.Caps.fromString.

This prints the caps in human readable form.

This version of the caps serialization function introduces support for nested structures and caps but the resulting strings won't be parsable with GStreamer prior to 1.20 unless #GST_SERIALIZE_FLAG_BACKWARD_COMPAT is passed as flag.

class Caps
string
serialize

Parameters

flags gst.types.SerializeFlags

a #GstSerializeFlags

Return Value

Type: string

a newly allocated string representing caps.