GstPbutils.DiscovererStreamInfo

g GObject.Object GObject.Object GstPbutils.DiscovererStreamInfo GstPbutils.DiscovererStreamInfo GObject.Object->GstPbutils.DiscovererStreamInfo

Subclasses:

GstPbutils.DiscovererAudioInfo, GstPbutils.DiscovererContainerInfo, GstPbutils.DiscovererSubtitleInfo, GstPbutils.DiscovererVideoInfo

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

list_free (infos)

get_caps ()

get_misc ()

get_next ()

get_previous ()

get_stream_id ()

get_stream_number ()

get_stream_type_nick ()

get_tags ()

get_toc ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

None

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class GstPbutils.DiscovererStreamInfo(**kwargs)
Bases:

GObject.Object

Abstract:

No

Base structure for information concerning a media stream. Depending on the stream type, one can find more media-specific information in GstPbutils.DiscovererAudioInfo, GstPbutils.DiscovererVideoInfo, and GstPbutils.DiscovererContainerInfo.

The GstPbutils.DiscovererStreamInfo represents the topology of the stream. Siblings can be iterated over with GstPbutils.DiscovererStreamInfo.get_next() and GstPbutils.DiscovererStreamInfo.get_previous(). Children (sub-streams) of a stream can be accessed using the GstPbutils.DiscovererContainerInfo API.

As a simple example, if you run GstPbutils.Discoverer on an AVI file with one audio and one video stream, you will get a GstPbutils.DiscovererContainerInfo corresponding to the AVI container, which in turn will have a GstPbutils.DiscovererAudioInfo sub-stream and a GstPbutils.DiscovererVideoInfo sub-stream for the audio and video streams respectively.

classmethod list_free(infos)[source]
Parameters:

infos ([GstPbutils.DiscovererStreamInfo]) – a GLib.List of GstPbutils.DiscovererStreamInfo

Decrements the reference count of all contained GstPbutils.DiscovererStreamInfo and fress the GLib.List.

get_caps()[source]
Returns:

the Gst.Caps of the stream. Unref with #gst_caps_unref after usage.

Return type:

Gst.Caps or None

get_misc()[source]
Returns:

additional information regarding the stream (for example codec version, profile, etc..). If you wish to use the Gst.Structure after the life-time of self you will need to copy it.

Return type:

Gst.Structure or None

Deprecated since version ???: This functions is deprecated since version 1.4, use GstPbutils.DiscovererInfo.get_missing_elements_installer_details

get_next()[source]
Returns:

the next GstPbutils.DiscovererStreamInfo in a chain. None for final streams. Unref with #gst_discoverer_stream_info_unref after usage.

Return type:

GstPbutils.DiscovererStreamInfo or None

get_previous()[source]
Returns:

the previous GstPbutils.DiscovererStreamInfo in a chain. None for starting points. Unref with #gst_discoverer_stream_info_unref after usage.

Return type:

GstPbutils.DiscovererStreamInfo or None

get_stream_id()[source]
Returns:

the stream ID of this stream. If you wish to use the stream ID after the life-time of self you will need to copy it.

Return type:

str or None

get_stream_number()[source]
Returns:

the stream number, -1 if no index could be determined. This property acts as a unique identifier as a ‘int’ for the stream.

Return type:

int

New in version 1.20.

get_stream_type_nick()[source]
Returns:

a human readable name for the stream type of the given self (ex : “audio”, “container”,…).

Return type:

str

get_tags()[source]
Returns:

the tags contained in this stream. If you wish to use the tags after the life-time of self you will need to copy them.

Return type:

Gst.TagList or None

get_toc()[source]
Returns:

the TOC contained in this stream. If you wish to use the TOC after the life-time of self you will need to copy it.

Return type:

Gst.Toc or None