GstRtp.RTPPayloadInfo

Fields

Name

Type

Access

Description

bitrate

int

r/w

the bitrate of the media. 0 = unknown/variable.

clock_rate

int

r/w

default clock rate, 0 = unknown/variable

encoding_name

str

r/w

the encoding name of pt

encoding_parameters

str

r/w

encoding parameters. For audio this is the number of channels. None = not applicable.

media

str

r/w

the media type(s), usually “audio”, “video”, “application”, “text”, “message”.

payload_type

int

r/w

payload type, -1 means dynamic

Methods

class

for_name (media, encoding_name)

class

for_pt (payload_type)

Details

class GstRtp.RTPPayloadInfo

Structure holding default payload type information.

classmethod for_name(media, encoding_name)
Parameters:
  • media (str) – the media to find

  • encoding_name (str) – the encoding name to find

Returns:

a GstRtp.RTPPayloadInfo or None when no info could be found.

Return type:

GstRtp.RTPPayloadInfo or None

Get the GstRtp.RTPPayloadInfo for media and encoding_name. This function is mostly used to get the default clock-rate and bandwidth for dynamic payload types specified with media and encoding name.

The search for encoding_name will be performed in a case insensitive way.

classmethod for_pt(payload_type)
Parameters:

payload_type (int) – the payload_type to find

Returns:

a GstRtp.RTPPayloadInfo or None when no info could be found.

Return type:

GstRtp.RTPPayloadInfo or None

Get the GstRtp.RTPPayloadInfo for payload_type. This function is mostly used to get the default clock-rate and bandwidth for static payload types specified with payload_type.