GstPbutils.DiscovererInfo

g GObject.Object GObject.Object GstPbutils.DiscovererInfo GstPbutils.DiscovererInfo GObject.Object->GstPbutils.DiscovererInfo

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

from_variant (variant)

copy ()

get_audio_streams ()

get_container_streams ()

get_duration ()

get_live ()

get_misc ()

get_missing_elements_installer_details ()

get_result ()

get_seekable ()

get_stream_info ()

get_stream_list ()

get_streams (streamtype)

get_subtitle_streams ()

get_tags ()

get_toc ()

get_uri ()

get_video_streams ()

to_variant (flags)

Virtual Methods

Inherited:

GObject.Object (7)

Properties

None

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class GstPbutils.DiscovererInfo(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure containing the information of a URI analyzed by GstPbutils.Discoverer.

classmethod from_variant(variant)
Parameters:

variant (GLib.Variant) – A GLib.Variant to deserialize into a GstPbutils.DiscovererInfo.

Returns:

A newly-allocated GstPbutils.DiscovererInfo.

Return type:

GstPbutils.DiscovererInfo

Parses a GLib.Variant as produced by GstPbutils.DiscovererInfo.to_variant() back to a GstPbutils.DiscovererInfo.

New in version 1.6.

copy()
Returns:

A copy of the GstPbutils.DiscovererInfo

Return type:

GstPbutils.DiscovererInfo

get_audio_streams()
Returns:

A GLib.List of matching GstPbutils.DiscovererStreamInfo. The caller should free it with GstPbutils.DiscovererStreamInfo.list_free().

Return type:

[GstPbutils.DiscovererAudioInfo]

Finds all the GstPbutils.DiscovererAudioInfo contained in self

get_container_streams()
Returns:

A GLib.List of matching GstPbutils.DiscovererStreamInfo. The caller should free it with GstPbutils.DiscovererStreamInfo.list_free().

Return type:

[GstPbutils.DiscovererContainerInfo]

Finds all the GstPbutils.DiscovererContainerInfo contained in self

get_duration()
Returns:

the duration of the URI in #GstClockTime (nanoseconds).

Return type:

int

get_live()
Returns:

whether the URI is live.

Return type:

bool

New in version 1.14.

get_misc()
Returns:

Miscellaneous information stored as a Gst.Structure (for example: information about missing plugins). 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_missing_elements_installer_details()
Returns:

An array of strings containing information about how to install the various missing elements for self to be usable. If you wish to use the strings after the life-time of self, you will need to copy them.

Return type:

[str]

Get the installer details for missing elements

New in version 1.4.

get_result()
Returns:

the result of the discovery as a GstPbutils.DiscovererResult.

Return type:

GstPbutils.DiscovererResult

get_seekable()
Returns:

the whether the URI is seekable.

Return type:

bool

get_stream_info()
Returns:

the structure (or topology) of the URI as a GstPbutils.DiscovererStreamInfo. This structure can be traversed to see the original hierarchy. Unref with gst_discoverer_stream_info_unref() after usage.

Return type:

GstPbutils.DiscovererStreamInfo or None

get_stream_list()
Returns:

the list of all streams contained in the #info. Free after usage with GstPbutils.DiscovererStreamInfo.list_free().

Return type:

[GstPbutils.DiscovererStreamInfo]

get_streams(streamtype)
Parameters:

streamtype (GObject.GType) – a GObject.GType derived from GstPbutils.DiscovererStreamInfo

Returns:

A GLib.List of matching GstPbutils.DiscovererStreamInfo. The caller should free it with GstPbutils.DiscovererStreamInfo.list_free().

Return type:

[GstPbutils.DiscovererStreamInfo]

Finds the GstPbutils.DiscovererStreamInfo contained in self that match the given streamtype.

get_subtitle_streams()
Returns:

A GLib.List of matching GstPbutils.DiscovererStreamInfo. The caller should free it with GstPbutils.DiscovererStreamInfo.list_free().

Return type:

[GstPbutils.DiscovererSubtitleInfo]

Finds all the GstPbutils.DiscovererSubtitleInfo contained in self

get_tags()
Returns:

all tags contained in the URI. 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

Deprecated since version 1.20: Use gst_discoverer_{container,stream}_info_get_tags() instead.

get_toc()
Returns:

TOC contained in the URI. 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

get_uri()
Returns:

the URI to which this information corresponds to. Copy it if you wish to use it after the life-time of self.

Return type:

str

get_video_streams()
Returns:

A GLib.List of matching GstPbutils.DiscovererStreamInfo. The caller should free it with GstPbutils.DiscovererStreamInfo.list_free().

Return type:

[GstPbutils.DiscovererVideoInfo]

Finds all the GstPbutils.DiscovererVideoInfo contained in self

to_variant(flags)
Parameters:

flags (GstPbutils.DiscovererSerializeFlags) – A combination of GstPbutils.DiscovererSerializeFlags to specify what needs to be serialized.

Returns:

A newly-allocated GLib.Variant representing self.

Return type:

GLib.Variant

Serializes self to a GLib.Variant that can be parsed again through GstPbutils.DiscovererInfo.from_variant().

Note that any Gst.Toc (s) that might have been discovered will not be serialized for now.

New in version 1.6.