codecUtilsCapsGetMimeCodec

Converts caps to a RFC 6381 compatible codec string if possible.

Useful for providing the 'codecs' field inside the 'Content-Type' HTTP header for containerized formats, such as mp4 or matroska.

Registered codecs can be found at http://mp4ra.org/#/codecs

string
codecUtilsCapsGetMimeCodec

Parameters

caps gst.caps.Caps

A #GstCaps to convert to mime codec

Return Value

Type: string

a RFC 6381 compatible codec string or null