Caps.serialize

string serialize(gst.types.SerializeFlags flags)

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.

Parameters

flagsa #GstSerializeFlags

Returns

a newly allocated string representing caps.