# Base MPEG-TS descriptors

These are the base descriptor types and methods.

For more details, refer to the ITU H.222.0 or ISO/IEC 13818-1 specifications and other specifications mentioned in the documentation.

## GstMpegtsDescriptor

Mpeg-TS descriptor (ISO/IEC 13818-1).

### Members

`tag` (guint8) –

the type of descriptor

`tag_extension` (guint8) –

the extended type (if descriptor_tag is 0x7f)

`length` (guint8) –

the length of the descriptor content (excluding tag/length field)

`data` (guint8 *) –

the full descriptor data (including tag, extension, length). The first two bytes are the tag and length.

## GstMpegtsDescriptor

Mpeg-TS descriptor (ISO/IEC 13818-1).

### Members

`tag` (Number) –

the type of descriptor

`tag_extension` (Number) –

the extended type (if descriptor_tag is 0x7f)

`length` (Number) –

the length of the descriptor content (excluding tag/length field)

`data` (Number) –

the full descriptor data (including tag, extension, length). The first two bytes are the tag and length.

## GstMpegtsDescriptor

Mpeg-TS descriptor (ISO/IEC 13818-1).

### Members

`tag` (int) –

the type of descriptor

`tag_extension` (int) –

the extended type (if descriptor_tag is 0x7f)

`length` (int) –

the length of the descriptor content (excluding tag/length field)

`data` (int) –

the full descriptor data (including tag, extension, length). The first two bytes are the tag and length.

### Methods

#### gst_mpegts_descriptor_free

    gst_mpegts_descriptor_free (GstMpegtsDescriptor * desc)

Frees desc

Parameters:

`desc` –

The descriptor to free

#### GstMpegts.Descriptor.prototype.free

    function GstMpegts.Descriptor.prototype.free(): {
        // javascript wrapper for 'gst_mpegts_descriptor_free'
    }

Frees desc

Parameters:

`desc` ( GstMpegts.Descriptor ) –

The descriptor to free

#### GstMpegts.Descriptor.free

    def GstMpegts.Descriptor.free (self):
        #python wrapper for 'gst_mpegts_descriptor_free'

Frees desc

Parameters:

`desc` ( GstMpegts.Descriptor ) –

The descriptor to free

#### gst_mpegts_descriptor_parse_ca

    gboolean
    gst_mpegts_descriptor_parse_ca (GstMpegtsDescriptor * descriptor,
                                    guint16 * ca_system_id,
                                    guint16 * ca_pid,
                                    const guint8 ** private_data,
                                    gsize * private_data_size)

Extracts the Conditional Access information from descriptor.

Parameters:

`descriptor` –

a GST_MTS_DESC_CA GstMpegtsDescriptor

`ca_system_id` ( [out] ) –

the type of CA system used

`ca_pid` ( [out] ) –

The PID containing ECM or EMM data

`private_data` ( [out] [allow-none] [array length=private_data_size] ) –

The private data

`private_data_size` ( [out] [allow-none] ) –

The size of private_data in bytes

Returns –

TRUE if parsing succeeded, else FALSE.

#### GstMpegts.Descriptor.prototype.parse_ca

    function GstMpegts.Descriptor.prototype.parse_ca(): {
        // javascript wrapper for 'gst_mpegts_descriptor_parse_ca'
    }

Extracts the Conditional Access information from descriptor.

Parameters:

`descriptor` ( GstMpegts.Descriptor ) –

a GstMpegts.DescriptorType.CA GstMpegts.Descriptor

Returns a tuple made of:

( Number ) –

true if parsing succeeded, else false.

`ca_system_id` ( Number ) –

true if parsing succeeded, else false.

`ca_pid` ( Number ) –

true if parsing succeeded, else false.

`private_data` ( [ Number ] ) –

true if parsing succeeded, else false.

`private_data_size` ( Number ) –

true if parsing succeeded, else false.

#### GstMpegts.Descriptor.parse_ca

    def GstMpegts.Descriptor.parse_ca (self):
        #python wrapper for 'gst_mpegts_descriptor_parse_ca'

Extracts the Conditional Access information from descriptor.

Parameters:

`descriptor` ( GstMpegts.Descriptor ) –

a GstMpegts.DescriptorType.CA GstMpegts.Descriptor

Returns a tuple made of:

( bool ) –

True if parsing succeeded, else False.

`ca_system_id` ( int ) –

True if parsing succeeded, else False.

`ca_pid` ( int ) –

True if parsing succeeded, else False.

`private_data` ( [ int ] ) –

True if parsing succeeded, else False.

`private_data_size` ( int ) –

True if parsing succeeded, else False.

#### gst_mpegts_descriptor_parse_iso_639_language

    gboolean
    gst_mpegts_descriptor_parse_iso_639_language (const GstMpegtsDescriptor * descriptor,
                                                  GstMpegtsISO639LanguageDescriptor ** res)

Extracts the iso 639-2 language information from descriptor.

Note: Use gst_tag_get_language_code if you want to get the the ISO 639-1 language code from the returned ISO 639-2 one.

Parameters:

`descriptor` –

a GST_MTS_DESC_ISO_639_LANGUAGE GstMpegtsDescriptor

`res` ( [out] [transfer: full] ) –

the GstMpegtsISO639LanguageDescriptor to fill

Returns –

TRUE if parsing succeeded, else FALSE.

#### GstMpegts.Descriptor.prototype.parse_iso_639_language

    function GstMpegts.Descriptor.prototype.parse_iso_639_language(): {
        // javascript wrapper for 'gst_mpegts_descriptor_parse_iso_639_language'
    }

Extracts the iso 639-2 language information from descriptor.

Note: Use gst_tag_get_language_code (not introspectable) if you want to get the the ISO 639-1 language code from the returned ISO 639-2 one.

Parameters:

`descriptor` ( GstMpegts.Descriptor ) –

a GstMpegts.DescriptorType.ISO_639_LANGUAGE GstMpegts.Descriptor

Returns a tuple made of:

( Number ) –

true if parsing succeeded, else false.

`res` ( GstMpegts.ISO639LanguageDescriptor ) –

true if parsing succeeded, else false.

#### GstMpegts.Descriptor.parse_iso_639_language

    def GstMpegts.Descriptor.parse_iso_639_language (self):
        #python wrapper for 'gst_mpegts_descriptor_parse_iso_639_language'

Extracts the iso 639-2 language information from descriptor.

Note: Use gst_tag_get_language_code (not introspectable) if you want to get the the ISO 639-1 language code from the returned ISO 639-2 one.

Parameters:

`descriptor` ( GstMpegts.Descriptor ) –

a GstMpegts.DescriptorType.ISO_639_LANGUAGE GstMpegts.Descriptor

Returns a tuple made of:

( bool ) –

True if parsing succeeded, else False.

`res` ( GstMpegts.ISO639LanguageDescriptor ) –

True if parsing succeeded, else False.

#### gst_mpegts_descriptor_parse_iso_639_language_idx

    gboolean
    gst_mpegts_descriptor_parse_iso_639_language_idx (const GstMpegtsDescriptor * descriptor,
                                                      guint idx,
                                                      gchar ** lang,
                                                      GstMpegtsIso639AudioType * audio_type)

Extracts the iso 639-2 language information from specific table id in descriptor.

Note: Use gst_tag_get_language_code if you want to get the the ISO 639-1 language code from the returned ISO 639-2 one.

Parameters:

`descriptor` –

a GST_MTS_DESC_ISO_639_LANGUAGE GstMpegtsDescriptor

`idx` –

Table id of the language to parse

`lang` ( [out] [transfer: full] ) –

4-byte gchar array to hold the language code

`audio_type` ( [out] [transfer: none] [allow-none] ) –

the GstMpegtsIso639AudioType to set

Returns –

TRUE if parsing succeeded, else FALSE.

#### GstMpegts.Descriptor.prototype.parse_iso_639_language_idx

    function GstMpegts.Descriptor.prototype.parse_iso_639_language_idx(idx: Number): {
        // javascript wrapper for 'gst_mpegts_descriptor_parse_iso_639_language_idx'
    }

Extracts the iso 639-2 language information from specific table id in descriptor.

Note: Use gst_tag_get_language_code (not introspectable) if you want to get the the ISO 639-1 language code from the returned ISO 639-2 one.

Parameters:

`descriptor` ( GstMpegts.Descriptor ) –

a GstMpegts.DescriptorType.ISO_639_LANGUAGE GstMpegts.Descriptor

`idx` ( Number ) –

Table id of the language to parse

Returns a tuple made of:

( Number ) –

true if parsing succeeded, else false.

`lang` ( String ) –

true if parsing succeeded, else false.

`audio_type` ( GstMpegts.Iso639AudioType ) –

true if parsing succeeded, else false.

#### GstMpegts.Descriptor.parse_iso_639_language_idx

    def GstMpegts.Descriptor.parse_iso_639_language_idx (self, idx):
        #python wrapper for 'gst_mpegts_descriptor_parse_iso_639_language_idx'

Extracts the iso 639-2 language information from specific table id in descriptor.

Note: Use gst_tag_get_language_code (not introspectable) if you want to get the the ISO 639-1 language code from the returned ISO 639-2 one.

Parameters:

`descriptor` ( GstMpegts.Descriptor ) –

a GstMpegts.DescriptorType.ISO_639_LANGUAGE GstMpegts.Descriptor

`idx` ( int ) –

Table id of the language to parse

Returns a tuple made of:

( bool ) –

True if parsing succeeded, else False.

`lang` ( str ) –

True if parsing succeeded, else False.

`audio_type` ( GstMpegts.Iso639AudioType ) –

True if parsing succeeded, else False.

#### gst_mpegts_descriptor_parse_iso_639_language_nb

    guint
    gst_mpegts_descriptor_parse_iso_639_language_nb (const GstMpegtsDescriptor * descriptor)

Parameters:

`descriptor` –

a GST_MTS_DESC_ISO_639_LANGUAGE GstMpegtsDescriptor

Returns –

The number of languages in descriptor

#### GstMpegts.Descriptor.prototype.parse_iso_639_language_nb

    function GstMpegts.Descriptor.prototype.parse_iso_639_language_nb(): {
        // javascript wrapper for 'gst_mpegts_descriptor_parse_iso_639_language_nb'
    }

Parameters:

`descriptor` ( GstMpegts.Descriptor ) –

a GstMpegts.DescriptorType.ISO_639_LANGUAGE GstMpegts.Descriptor

Returns ( Number ) –

The number of languages in descriptor

#### GstMpegts.Descriptor.parse_iso_639_language_nb

    def GstMpegts.Descriptor.parse_iso_639_language_nb (self):
        #python wrapper for 'gst_mpegts_descriptor_parse_iso_639_language_nb'

Parameters:

`descriptor` ( GstMpegts.Descriptor ) –

a GstMpegts.DescriptorType.ISO_639_LANGUAGE GstMpegts.Descriptor

Returns ( int ) –

The number of languages in descriptor

#### gst_mpegts_descriptor_parse_logical_channel

    gboolean
    gst_mpegts_descriptor_parse_logical_channel (const GstMpegtsDescriptor * descriptor,
                                                 GstMpegtsLogicalChannelDescriptor * res)

Extracts the logical channels from descriptor.

Parameters:

`descriptor` –

a GST_MTS_DESC_DTG_LOGICAL_CHANNEL GstMpegtsDescriptor

`res` ( [out] [transfer: none] ) –

the GstMpegtsLogicalChannelDescriptor to fill

Returns –

TRUE if parsing succeeded, else FALSE.

#### GstMpegts.Descriptor.prototype.parse_logical_channel

    function GstMpegts.Descriptor.prototype.parse_logical_channel(): {
        // javascript wrapper for 'gst_mpegts_descriptor_parse_logical_channel'
    }

Extracts the logical channels from descriptor.

Parameters:

`descriptor` ( GstMpegts.Descriptor ) –

a GstMpegts.MiscDescriptorType.DTG_LOGICAL_CHANNEL GstMpegts.Descriptor

Returns a tuple made of:

( Number ) –

true if parsing succeeded, else false.

`res` ( GstMpegts.LogicalChannelDescriptor ) –

true if parsing succeeded, else false.

#### GstMpegts.Descriptor.parse_logical_channel

    def GstMpegts.Descriptor.parse_logical_channel (self):
        #python wrapper for 'gst_mpegts_descriptor_parse_logical_channel'

Extracts the logical channels from descriptor.

Parameters:

`descriptor` ( GstMpegts.Descriptor ) –

a GstMpegts.MiscDescriptorType.DTG_LOGICAL_CHANNEL GstMpegts.Descriptor

Returns a tuple made of:

( bool ) –

True if parsing succeeded, else False.

`res` ( GstMpegts.LogicalChannelDescriptor ) –

True if parsing succeeded, else False.

### Functions

#### gst_mpegts_descriptor_from_custom

    GstMpegtsDescriptor *
    gst_mpegts_descriptor_from_custom (guint8 tag,
                                       const guint8 * data,
                                       gsize length)

Creates a GstMpegtsDescriptor with custom tag and data

Parameters:

`tag` –

descriptor tag

`data` ( [transfer: none] [array length=length] ) –

descriptor data (after tag and length field)

`length` –

length of data

Returns –

GstMpegtsDescriptor

#### GstMpegts.Descriptor.prototype.from_custom

    function GstMpegts.Descriptor.prototype.from_custom(tag: Number, data: [ Number ], length: Number): {
        // javascript wrapper for 'gst_mpegts_descriptor_from_custom'
    }

Creates a GstMpegts.Descriptor with custom tag and data

Parameters:

`tag` ( Number ) –

descriptor tag

`data` ( [ Number ] ) –

descriptor data (after tag and length field)

`length` ( Number ) –

length of data

Returns ( GstMpegts.Descriptor ) –

GstMpegts.Descriptor

#### GstMpegts.Descriptor.from_custom

    def GstMpegts.Descriptor.from_custom (tag, data, length):
        #python wrapper for 'gst_mpegts_descriptor_from_custom'

Creates a GstMpegts.Descriptor with custom tag and data

Parameters:

`tag` ( int ) –

descriptor tag

`data` ( [ int ] ) –

descriptor data (after tag and length field)

`length` ( int ) –

length of data

Returns ( GstMpegts.Descriptor ) –

GstMpegts.Descriptor

#### gst_mpegts_descriptor_from_custom_with_extension

    GstMpegtsDescriptor *
    gst_mpegts_descriptor_from_custom_with_extension (guint8 tag,
                                                      guint8 tag_extension,
                                                      const guint8 * data,
                                                      gsize length)

Creates a GstMpegtsDescriptor with custom tag, tag_extension and data

Parameters:

`tag` –

descriptor tag

`tag_extension` –

descriptor tag extension

`data` ( [transfer: none] [array length=length] ) –

descriptor data (after tag and length field)

`length` –

length of data

Returns –

GstMpegtsDescriptor

#### GstMpegts.Descriptor.prototype.from_custom_with_extension

    function GstMpegts.Descriptor.prototype.from_custom_with_extension(tag: Number, tag_extension: Number, data: [ Number ], length: Number): {
        // javascript wrapper for 'gst_mpegts_descriptor_from_custom_with_extension'
    }

Creates a GstMpegts.Descriptor with custom tag, tag_extension and data

Parameters:

`tag` ( Number ) –

descriptor tag

`tag_extension` ( Number ) –

descriptor tag extension

`data` ( [ Number ] ) –

descriptor data (after tag and length field)

`length` ( Number ) –

length of data

Returns ( GstMpegts.Descriptor ) –

GstMpegts.Descriptor

#### GstMpegts.Descriptor.from_custom_with_extension

    def GstMpegts.Descriptor.from_custom_with_extension (tag, tag_extension, data, length):
        #python wrapper for 'gst_mpegts_descriptor_from_custom_with_extension'

Creates a GstMpegts.Descriptor with custom tag, tag_extension and data

Parameters:

`tag` ( int ) –

descriptor tag

`tag_extension` ( int ) –

descriptor tag extension

`data` ( [ int ] ) –

descriptor data (after tag and length field)

`length` ( int ) –

length of data

Returns ( GstMpegts.Descriptor ) –

GstMpegts.Descriptor

#### gst_mpegts_descriptor_from_iso_639_language

    GstMpegtsDescriptor *
    gst_mpegts_descriptor_from_iso_639_language (const gchar * language)

Creates a GST_MTS_DESC_ISO_639_LANGUAGE GstMpegtsDescriptor with a single language

Return: GstMpegtsDescriptor, NULL on failure

Parameters:

`language` ( [transfer: none] ) –

ISO-639-2 language 3-char code

Returns –
No description available

#### GstMpegts.Descriptor.prototype.from_iso_639_language

    function GstMpegts.Descriptor.prototype.from_iso_639_language(language: String): {
        // javascript wrapper for 'gst_mpegts_descriptor_from_iso_639_language'
    }

Creates a GstMpegts.DescriptorType.ISO_639_LANGUAGE GstMpegts.Descriptor with a single language

Return: GstMpegts.Descriptor, null on failure

Parameters:

`language` ( String ) –

ISO-639-2 language 3-char code

Returns ( GstMpegts.Descriptor ) –
No description available

#### GstMpegts.Descriptor.from_iso_639_language

    def GstMpegts.Descriptor.from_iso_639_language (language):
        #python wrapper for 'gst_mpegts_descriptor_from_iso_639_language'

Creates a GstMpegts.DescriptorType.ISO_639_LANGUAGE GstMpegts.Descriptor with a single language

Return: GstMpegts.Descriptor, None on failure

Parameters:

`language` ( str ) –

ISO-639-2 language 3-char code

Returns ( GstMpegts.Descriptor ) –
No description available

#### gst_mpegts_descriptor_from_registration

    GstMpegtsDescriptor *
    gst_mpegts_descriptor_from_registration (const gchar * format_identifier,
                                             guint8 * additional_info,
                                             gsize additional_info_length)

Creates a GST_MTS_DESC_REGISTRATION GstMpegtsDescriptor

Return: GstMpegtsDescriptor, NULL on failure

Parameters:

`format_identifier` ( [transfer: none] ) –

a 4 character format identifier string

`additional_info` ( [transfer: none] [allow-none] [array length=additional_info_length] ) –

pointer to optional additional info

`additional_info_length` –

length of the optional additional_info

Returns –
No description available

#### GstMpegts.Descriptor.prototype.from_registration

    function GstMpegts.Descriptor.prototype.from_registration(format_identifier: String, additional_info: [ Number ], additional_info_length: Number): {
        // javascript wrapper for 'gst_mpegts_descriptor_from_registration'
    }

Creates a GstMpegts.DescriptorType.REGISTRATION GstMpegts.Descriptor

Return: GstMpegts.Descriptor, null on failure

Parameters:

`format_identifier` ( String ) –

a 4 character format identifier string

`additional_info` ( [ Number ] ) –

pointer to optional additional info

`additional_info_length` ( Number ) –

length of the optional additional_info

Returns ( GstMpegts.Descriptor ) –
No description available

#### GstMpegts.Descriptor.from_registration

    def GstMpegts.Descriptor.from_registration (format_identifier, additional_info, additional_info_length):
        #python wrapper for 'gst_mpegts_descriptor_from_registration'

Creates a GstMpegts.DescriptorType.REGISTRATION GstMpegts.Descriptor

Return: GstMpegts.Descriptor, None on failure

Parameters:

`format_identifier` ( str ) –

a 4 character format identifier string

`additional_info` ( [ int ] ) –

pointer to optional additional info

`additional_info_length` ( int ) –

length of the optional additional_info

Returns ( GstMpegts.Descriptor ) –
No description available

## GstMpegtsISO639LanguageDescriptor

### Members

`nb_language` (guint) –
No description available
`language` (utf8*) –
No description available
`audio_type` (GstMpegtsIso639AudioType *) –
No description available

## GstMpegtsISO639LanguageDescriptor

### Members

`nb_language` (Number) –
No description available
`language` ([ String ]) –
No description available
`audio_type` ([ GstMpegtsIso639AudioType ]) –
No description available

## GstMpegtsISO639LanguageDescriptor

### Members

`nb_language` (int) –
No description available
`language` ([ str ]) –
No description available
`audio_type` ([ GstMpegtsIso639AudioType ]) –
No description available

### Methods

#### gst_mpegts_iso_639_language_descriptor_free

    gst_mpegts_iso_639_language_descriptor_free (GstMpegtsISO639LanguageDescriptor * desc)

Parameters:

`desc` –
No description available

#### GstMpegts.ISO639LanguageDescriptor.prototype.descriptor_free

    function GstMpegts.ISO639LanguageDescriptor.prototype.descriptor_free(): {
        // javascript wrapper for 'gst_mpegts_iso_639_language_descriptor_free'
    }

Parameters:

`desc` ( GstMpegts.ISO639LanguageDescriptor ) –
No description available

#### GstMpegts.ISO639LanguageDescriptor.descriptor_free

    def GstMpegts.ISO639LanguageDescriptor.descriptor_free (self):
        #python wrapper for 'gst_mpegts_iso_639_language_descriptor_free'

Parameters:

`desc` ( GstMpegts.ISO639LanguageDescriptor ) –
No description available

## GstMpegtsLogicalChannel

### Members

`service_id` (guint16) –
No description available
`visible_service` (gboolean) –
No description available
`logical_channel_number` (guint16) –
No description available

## GstMpegts.LogicalChannel

### Members

`service_id` (Number) –
No description available
`visible_service` (Number) –
No description available
`logical_channel_number` (Number) –
No description available

## GstMpegts.LogicalChannel

### Members

`service_id` (int) –
No description available
`visible_service` (bool) –
No description available
`logical_channel_number` (int) –
No description available

## GstMpegtsLogicalChannelDescriptor

### Members

`nb_channels` (guint) –
No description available
`channels` (GstMpegtsLogicalChannel *) –
No description available

## GstMpegts.LogicalChannelDescriptor

### Members

`nb_channels` (Number) –
No description available
`channels` ([ GstMpegts.LogicalChannel ]) –
No description available

## GstMpegts.LogicalChannelDescriptor

### Members

`nb_channels` (int) –
No description available
`channels` ([ GstMpegts.LogicalChannel ]) –
No description available

## Functions

### gst_mpegts_find_descriptor

    const GstMpegtsDescriptor *
    gst_mpegts_find_descriptor (GPtrArray * descriptors,
                                guint8 tag)

Finds the first descriptor of type tag in the array.

Note: To look for descriptors that can be present more than once in an array of descriptors, iterate the GArray manually.

Parameters:

`descriptors` ( [element-type GstMpegtsDescriptor] [transfer: none] ) –

an array of GstMpegtsDescriptor

`tag` –

the tag to look for

Returns ( [transfer: none] ) –

the first descriptor matching tag, else NULL.

### GstMpegts.prototype.find_descriptor

    function GstMpegts.prototype.find_descriptor(descriptors: [ GstMpegts.Descriptor ], tag: Number): {
        // javascript wrapper for 'gst_mpegts_find_descriptor'
    }

Finds the first descriptor of type tag in the array.

Note: To look for descriptors that can be present more than once in an array of descriptors, iterate the GLib.Array manually.

Parameters:

`descriptors` ( [ GstMpegts.Descriptor ] ) –

an array of GstMpegts.Descriptor

`tag` ( Number ) –

the tag to look for

Returns ( GstMpegts.Descriptor ) –

the first descriptor matching tag, else null.

### GstMpegts.find_descriptor

    def GstMpegts.find_descriptor (descriptors, tag):
        #python wrapper for 'gst_mpegts_find_descriptor'

Finds the first descriptor of type tag in the array.

Note: To look for descriptors that can be present more than once in an array of descriptors, iterate the GLib.Array manually.

Parameters:

`descriptors` ( [ GstMpegts.Descriptor ] ) –

an array of GstMpegts.Descriptor

`tag` ( int ) –

the tag to look for

Returns ( GstMpegts.Descriptor ) –

the first descriptor matching tag, else None.

### gst_mpegts_parse_descriptors

    GPtrArray *
    gst_mpegts_parse_descriptors (guint8 * buffer,
                                  gsize buf_len)

Parses the descriptors present in buffer and returns them as an array.

Note: The data provided in buffer will not be copied.

Parameters:

`buffer` ( [transfer: none] ) –

descriptors to parse

`buf_len` –

Size of buffer

Returns ( [transfer: full] [element-type GstMpegtsDescriptor] ) –

an array of the parsed descriptors or NULL if there was an error. Release with g_array_unref when done with it.

### GstMpegts.prototype.parse_descriptors

    function GstMpegts.prototype.parse_descriptors(buffer: Number, buf_len: Number): {
        // javascript wrapper for 'gst_mpegts_parse_descriptors'
    }

Parses the descriptors present in buffer and returns them as an array.

Note: The data provided in buffer will not be copied.

Parameters:

`buffer` ( Number ) –

descriptors to parse

`buf_len` ( Number ) –

Size of buffer

Returns ( [ GstMpegts.Descriptor ] ) –

an array of the parsed descriptors or null if there was an error. Release with g_array_unref (not introspectable) when done with it.

### GstMpegts.parse_descriptors

    def GstMpegts.parse_descriptors (buffer, buf_len):
        #python wrapper for 'gst_mpegts_parse_descriptors'

Parses the descriptors present in buffer and returns them as an array.

Note: The data provided in buffer will not be copied.

Parameters:

`buffer` ( int ) –

descriptors to parse

`buf_len` ( int ) –

Size of buffer

Returns ( [ GstMpegts.Descriptor ] ) –

an array of the parsed descriptors or None if there was an error. Release with g_array_unref (not introspectable) when done with it.

## Enumerations

### GstMpegtsDescriptorType

The type of GstMpegtsDescriptor

These values correspond to the registered descriptor type from the base MPEG-TS specifications (ITU H.222.0 | ISO/IEC 13818-1).

Consult the relevant specifications for more details.

##### Members

`GST_MTS_DESC_RESERVED_00` (0) –
No description available
`GST_MTS_DESC_RESERVED_01` (1) –
No description available
`GST_MTS_DESC_VIDEO_STREAM` (2) –
No description available
`GST_MTS_DESC_AUDIO_STREAM` (3) –
No description available
`GST_MTS_DESC_HIERARCHY` (4) –
No description available
`GST_MTS_DESC_REGISTRATION` (5) –
No description available
`GST_MTS_DESC_DATA_STREAM_ALIGNMENT` (6) –
No description available
`GST_MTS_DESC_TARGET_BACKGROUND_GRID` (7) –
No description available
`GST_MTS_DESC_VIDEO_WINDOW` (8) –
No description available
`GST_MTS_DESC_CA` (9) –
No description available
`GST_MTS_DESC_ISO_639_LANGUAGE` (10) –
No description available
`GST_MTS_DESC_SYSTEM_CLOCK` (11) –
No description available
`GST_MTS_DESC_MULTIPLEX_BUFFER_UTILISATION` (12) –
No description available
`GST_MTS_DESC_COPYRIGHT` (13) –
No description available
`GST_MTS_DESC_MAXIMUM_BITRATE` (14) –
No description available
`GST_MTS_DESC_PRIVATE_DATA_INDICATOR` (15) –
No description available
`GST_MTS_DESC_SMOOTHING_BUFFER` (16) –
No description available
`GST_MTS_DESC_STD` (17) –
No description available
`GST_MTS_DESC_IBP` (18) –
No description available
`GST_MTS_DESC_DSMCC_CAROUSEL_IDENTIFIER` (19) –
No description available
`GST_MTS_DESC_DSMCC_ASSOCIATION_TAG` (20) –
No description available
`GST_MTS_DESC_DSMCC_DEFERRED_ASSOCIATION_TAG` (21) –
No description available
`GST_MTS_DESC_DSMCC_NPT_REFERENCE` (23) –
No description available
`GST_MTS_DESC_DSMCC_NPT_ENDPOINT` (24) –
No description available
`GST_MTS_DESC_DSMCC_STREAM_MODE` (25) –
No description available
`GST_MTS_DESC_DSMCC_STREAM_EVENT` (26) –
No description available
`GST_MTS_DESC_MPEG4_VIDEO` (27) –
No description available
`GST_MTS_DESC_MPEG4_AUDIO` (28) –
No description available
`GST_MTS_DESC_IOD` (29) –
No description available
`GST_MTS_DESC_SL` (30) –
No description available
`GST_MTS_DESC_FMC` (31) –
No description available
`GST_MTS_DESC_EXTERNAL_ES_ID` (32) –
No description available
`GST_MTS_DESC_MUX_CODE` (33) –
No description available
`GST_MTS_DESC_FMX_BUFFER_SIZE` (34) –
No description available
`GST_MTS_DESC_MULTIPLEX_BUFFER` (35) –
No description available
`GST_MTS_DESC_CONTENT_LABELING` (36) –
No description available
`GST_MTS_DESC_METADATA_POINTER` (37) –
No description available
`GST_MTS_DESC_METADATA` (38) –
No description available
`GST_MTS_DESC_METADATA_STD` (39) –
No description available
`GST_MTS_DESC_AVC_VIDEO` (40) –
No description available
`GST_MTS_DESC_IPMP` (41) –
No description available
`GST_MTS_DESC_AVC_TIMING_AND_HRD` (42) –
No description available
`GST_MTS_DESC_MPEG2_AAC_AUDIO` (43) –
No description available
`GST_MTS_DESC_FLEX_MUX_TIMING` (44) –
No description available
`GST_MTS_DESC_MPEG4_TEXT` (45) –
No description available
`GST_MTS_DESC_MPEG4_AUDIO_EXTENSION` (46) –
No description available
`GST_MTS_DESC_AUXILIARY_VIDEO_STREAM` (47) –
No description available
`GST_MTS_DESC_SVC_EXTENSION` (48) –
No description available
`GST_MTS_DESC_MVC_EXTENSION` (49) –
No description available
`GST_MTS_DESC_J2K_VIDEO` (50) –
No description available
`GST_MTS_DESC_MVC_OPERATION_POINT` (51) –
No description available
`GST_MTS_DESC_MPEG2_STEREOSCOPIC_VIDEO_FORMAT` (52) –
No description available
`GST_MTS_DESC_STEREOSCOPIC_PROGRAM_INFO` (53) –
No description available
`GST_MTS_DESC_STEREOSCOPIC_VIDEO_INFO` (54) –
No description available

### GstMpegts.DescriptorType

The type of GstMpegts.Descriptor

These values correspond to the registered descriptor type from the base MPEG-TS specifications (ITU H.222.0 | ISO/IEC 13818-1).

Consult the relevant specifications for more details.

##### Members

`GstMpegts.DescriptorType.RESERVED_00` (0) –
No description available
`GstMpegts.DescriptorType.RESERVED_01` (1) –
No description available
`GstMpegts.DescriptorType.VIDEO_STREAM` (2) –
No description available
`GstMpegts.DescriptorType.AUDIO_STREAM` (3) –
No description available
`GstMpegts.DescriptorType.HIERARCHY` (4) –
No description available
`GstMpegts.DescriptorType.REGISTRATION` (5) –
No description available
`GstMpegts.DescriptorType.DATA_STREAM_ALIGNMENT` (6) –
No description available
`GstMpegts.DescriptorType.TARGET_BACKGROUND_GRID` (7) –
No description available
`GstMpegts.DescriptorType.VIDEO_WINDOW` (8) –
No description available
`GstMpegts.DescriptorType.CA` (9) –
No description available
`GstMpegts.DescriptorType.ISO_639_LANGUAGE` (10) –
No description available
`GstMpegts.DescriptorType.SYSTEM_CLOCK` (11) –
No description available
`GstMpegts.DescriptorType.MULTIPLEX_BUFFER_UTILISATION` (12) –
No description available
`GstMpegts.DescriptorType.COPYRIGHT` (13) –
No description available
`GstMpegts.DescriptorType.MAXIMUM_BITRATE` (14) –
No description available
`GstMpegts.DescriptorType.PRIVATE_DATA_INDICATOR` (15) –
No description available
`GstMpegts.DescriptorType.SMOOTHING_BUFFER` (16) –
No description available
`GstMpegts.DescriptorType.STD` (17) –
No description available
`GstMpegts.DescriptorType.IBP` (18) –
No description available
`GstMpegts.DescriptorType.DSMCC_CAROUSEL_IDENTIFIER` (19) –
No description available
`GstMpegts.DescriptorType.DSMCC_ASSOCIATION_TAG` (20) –
No description available
`GstMpegts.DescriptorType.DSMCC_DEFERRED_ASSOCIATION_TAG` (21) –
No description available
`GstMpegts.DescriptorType.DSMCC_NPT_REFERENCE` (23) –
No description available
`GstMpegts.DescriptorType.DSMCC_NPT_ENDPOINT` (24) –
No description available
`GstMpegts.DescriptorType.DSMCC_STREAM_MODE` (25) –
No description available
`GstMpegts.DescriptorType.DSMCC_STREAM_EVENT` (26) –
No description available
`GstMpegts.DescriptorType.MPEG4_VIDEO` (27) –
No description available
`GstMpegts.DescriptorType.MPEG4_AUDIO` (28) –
No description available
`GstMpegts.DescriptorType.IOD` (29) –
No description available
`GstMpegts.DescriptorType.SL` (30) –
No description available
`GstMpegts.DescriptorType.FMC` (31) –
No description available
`GstMpegts.DescriptorType.EXTERNAL_ES_ID` (32) –
No description available
`GstMpegts.DescriptorType.MUX_CODE` (33) –
No description available
`GstMpegts.DescriptorType.FMX_BUFFER_SIZE` (34) –
No description available
`GstMpegts.DescriptorType.MULTIPLEX_BUFFER` (35) –
No description available
`GstMpegts.DescriptorType.CONTENT_LABELING` (36) –
No description available
`GstMpegts.DescriptorType.METADATA_POINTER` (37) –
No description available
`GstMpegts.DescriptorType.METADATA` (38) –
No description available
`GstMpegts.DescriptorType.METADATA_STD` (39) –
No description available
`GstMpegts.DescriptorType.AVC_VIDEO` (40) –
No description available
`GstMpegts.DescriptorType.IPMP` (41) –
No description available
`GstMpegts.DescriptorType.AVC_TIMING_AND_HRD` (42) –
No description available
`GstMpegts.DescriptorType.MPEG2_AAC_AUDIO` (43) –
No description available
`GstMpegts.DescriptorType.FLEX_MUX_TIMING` (44) –
No description available
`GstMpegts.DescriptorType.MPEG4_TEXT` (45) –
No description available
`GstMpegts.DescriptorType.MPEG4_AUDIO_EXTENSION` (46) –
No description available
`GstMpegts.DescriptorType.AUXILIARY_VIDEO_STREAM` (47) –
No description available
`GstMpegts.DescriptorType.SVC_EXTENSION` (48) –
No description available
`GstMpegts.DescriptorType.MVC_EXTENSION` (49) –
No description available
`GstMpegts.DescriptorType.J2K_VIDEO` (50) –
No description available
`GstMpegts.DescriptorType.MVC_OPERATION_POINT` (51) –
No description available
`GstMpegts.DescriptorType.MPEG2_STEREOSCOPIC_VIDEO_FORMAT` (52) –
No description available
`GstMpegts.DescriptorType.STEREOSCOPIC_PROGRAM_INFO` (53) –
No description available
`GstMpegts.DescriptorType.STEREOSCOPIC_VIDEO_INFO` (54) –
No description available

### GstMpegts.DescriptorType

The type of GstMpegts.Descriptor

These values correspond to the registered descriptor type from the base MPEG-TS specifications (ITU H.222.0 | ISO/IEC 13818-1).

Consult the relevant specifications for more details.

##### Members

`GstMpegts.DescriptorType.RESERVED_00` (0) –
No description available
`GstMpegts.DescriptorType.RESERVED_01` (1) –
No description available
`GstMpegts.DescriptorType.VIDEO_STREAM` (2) –
No description available
`GstMpegts.DescriptorType.AUDIO_STREAM` (3) –
No description available
`GstMpegts.DescriptorType.HIERARCHY` (4) –
No description available
`GstMpegts.DescriptorType.REGISTRATION` (5) –
No description available
`GstMpegts.DescriptorType.DATA_STREAM_ALIGNMENT` (6) –
No description available
`GstMpegts.DescriptorType.TARGET_BACKGROUND_GRID` (7) –
No description available
`GstMpegts.DescriptorType.VIDEO_WINDOW` (8) –
No description available
`GstMpegts.DescriptorType.CA` (9) –
No description available
`GstMpegts.DescriptorType.ISO_639_LANGUAGE` (10) –
No description available
`GstMpegts.DescriptorType.SYSTEM_CLOCK` (11) –
No description available
`GstMpegts.DescriptorType.MULTIPLEX_BUFFER_UTILISATION` (12) –
No description available
`GstMpegts.DescriptorType.COPYRIGHT` (13) –
No description available
`GstMpegts.DescriptorType.MAXIMUM_BITRATE` (14) –
No description available
`GstMpegts.DescriptorType.PRIVATE_DATA_INDICATOR` (15) –
No description available
`GstMpegts.DescriptorType.SMOOTHING_BUFFER` (16) –
No description available
`GstMpegts.DescriptorType.STD` (17) –
No description available
`GstMpegts.DescriptorType.IBP` (18) –
No description available
`GstMpegts.DescriptorType.DSMCC_CAROUSEL_IDENTIFIER` (19) –
No description available
`GstMpegts.DescriptorType.DSMCC_ASSOCIATION_TAG` (20) –
No description available
`GstMpegts.DescriptorType.DSMCC_DEFERRED_ASSOCIATION_TAG` (21) –
No description available
`GstMpegts.DescriptorType.DSMCC_NPT_REFERENCE` (23) –
No description available
`GstMpegts.DescriptorType.DSMCC_NPT_ENDPOINT` (24) –
No description available
`GstMpegts.DescriptorType.DSMCC_STREAM_MODE` (25) –
No description available
`GstMpegts.DescriptorType.DSMCC_STREAM_EVENT` (26) –
No description available
`GstMpegts.DescriptorType.MPEG4_VIDEO` (27) –
No description available
`GstMpegts.DescriptorType.MPEG4_AUDIO` (28) –
No description available
`GstMpegts.DescriptorType.IOD` (29) –
No description available
`GstMpegts.DescriptorType.SL` (30) –
No description available
`GstMpegts.DescriptorType.FMC` (31) –
No description available
`GstMpegts.DescriptorType.EXTERNAL_ES_ID` (32) –
No description available
`GstMpegts.DescriptorType.MUX_CODE` (33) –
No description available
`GstMpegts.DescriptorType.FMX_BUFFER_SIZE` (34) –
No description available
`GstMpegts.DescriptorType.MULTIPLEX_BUFFER` (35) –
No description available
`GstMpegts.DescriptorType.CONTENT_LABELING` (36) –
No description available
`GstMpegts.DescriptorType.METADATA_POINTER` (37) –
No description available
`GstMpegts.DescriptorType.METADATA` (38) –
No description available
`GstMpegts.DescriptorType.METADATA_STD` (39) –
No description available
`GstMpegts.DescriptorType.AVC_VIDEO` (40) –
No description available
`GstMpegts.DescriptorType.IPMP` (41) –
No description available
`GstMpegts.DescriptorType.AVC_TIMING_AND_HRD` (42) –
No description available
`GstMpegts.DescriptorType.MPEG2_AAC_AUDIO` (43) –
No description available
`GstMpegts.DescriptorType.FLEX_MUX_TIMING` (44) –
No description available
`GstMpegts.DescriptorType.MPEG4_TEXT` (45) –
No description available
`GstMpegts.DescriptorType.MPEG4_AUDIO_EXTENSION` (46) –
No description available
`GstMpegts.DescriptorType.AUXILIARY_VIDEO_STREAM` (47) –
No description available
`GstMpegts.DescriptorType.SVC_EXTENSION` (48) –
No description available
`GstMpegts.DescriptorType.MVC_EXTENSION` (49) –
No description available
`GstMpegts.DescriptorType.J2K_VIDEO` (50) –
No description available
`GstMpegts.DescriptorType.MVC_OPERATION_POINT` (51) –
No description available
`GstMpegts.DescriptorType.MPEG2_STEREOSCOPIC_VIDEO_FORMAT` (52) –
No description available
`GstMpegts.DescriptorType.STEREOSCOPIC_PROGRAM_INFO` (53) –
No description available
`GstMpegts.DescriptorType.STEREOSCOPIC_VIDEO_INFO` (54) –
No description available

### GstMpegtsIso639AudioType

##### Members

`GST_MPEGTS_AUDIO_TYPE_UNDEFINED` (0) –
No description available
`GST_MPEGTS_AUDIO_TYPE_CLEAN_EFFECTS` (1) –
No description available
`GST_MPEGTS_AUDIO_TYPE_HEARING_IMPAIRED` (2) –
No description available
`GST_MPEGTS_AUDIO_TYPE_VISUAL_IMPAIRED_COMMENTARY` (3) –
No description available

### GstMpegts.Iso639AudioType

##### Members

`GstMpegts.Iso639AudioType.UNDEFINED` (0) –
No description available
`GstMpegts.Iso639AudioType.CLEAN_EFFECTS` (1) –
No description available
`GstMpegts.Iso639AudioType.HEARING_IMPAIRED` (2) –
No description available
`GstMpegts.Iso639AudioType.VISUAL_IMPAIRED_COMMENTARY` (3) –
No description available

### GstMpegts.Iso639AudioType

##### Members

`GstMpegts.Iso639AudioType.UNDEFINED` (0) –
No description available
`GstMpegts.Iso639AudioType.CLEAN_EFFECTS` (1) –
No description available
`GstMpegts.Iso639AudioType.HEARING_IMPAIRED` (2) –
No description available
`GstMpegts.Iso639AudioType.VISUAL_IMPAIRED_COMMENTARY` (3) –
No description available

### GstMpegtsMiscDescriptorType

The type of GstMpegtsDescriptor

These values correspond to miscellaneous descriptor types that are not yet identified from known specifications.

##### Members

`GST_MTS_DESC_AC3_AUDIO_STREAM` (129) –
No description available
`GST_MTS_DESC_DTG_LOGICAL_CHANNEL` (131) –
No description available

### GstMpegts.MiscDescriptorType

The type of GstMpegts.Descriptor

These values correspond to miscellaneous descriptor types that are not yet identified from known specifications.

##### Members

`GstMpegts.MiscDescriptorType.AC3_AUDIO_STREAM` (129) –
No description available
`GstMpegts.MiscDescriptorType.DTG_LOGICAL_CHANNEL` (131) –
No description available

### GstMpegts.MiscDescriptorType

The type of GstMpegts.Descriptor

These values correspond to miscellaneous descriptor types that are not yet identified from known specifications.

##### Members

`GstMpegts.MiscDescriptorType.AC3_AUDIO_STREAM` (129) –
No description available
`GstMpegts.MiscDescriptorType.DTG_LOGICAL_CHANNEL` (131) –
No description available

## Constants

### GST_TYPE_MPEGTS_DESCRIPTOR

    #define GST_TYPE_MPEGTS_DESCRIPTOR (gst_mpegts_descriptor_get_type())

### GST_TYPE_MPEGTS_ISO_639_LANGUAGE

    #define GST_TYPE_MPEGTS_ISO_639_LANGUAGE (gst_mpegts_iso_639_language_get_type ())

### GST_TYPE_MPEGTS_LOGICAL_CHANNEL

    #define GST_TYPE_MPEGTS_LOGICAL_CHANNEL (gst_mpegts_logical_channel_get_type())

### GST_TYPE_MPEGTS_LOGICAL_CHANNEL_DESCRIPTOR

    #define GST_TYPE_MPEGTS_LOGICAL_CHANNEL_DESCRIPTOR (gst_mpegts_logical_channel_descriptor_get_type())

The results of the search are