GstPbutils.DiscovererInfo¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class GstPbutils.DiscovererInfo(**kwargs)¶
- Bases:
- Abstract:
No
Structure containing the information of a URI analyzed by
GstPbutils.Discoverer
.- classmethod from_variant(variant)[source]¶
- Parameters:
variant (
GLib.Variant
) – AGLib.Variant
to deserialize into aGstPbutils.DiscovererInfo
.- Returns:
A newly-allocated
GstPbutils.DiscovererInfo
.- Return type:
Parses a
GLib.Variant
as produced byGstPbutils.DiscovererInfo.to_variant
() back to aGstPbutils.DiscovererInfo
.New in version 1.6.
- copy()[source]¶
- Returns:
A copy of the
GstPbutils.DiscovererInfo
- Return type:
- get_audio_streams()[source]¶
- Returns:
A
GLib.List
of matchingGstPbutils.DiscovererStreamInfo
. The caller should free it withGstPbutils.DiscovererStreamInfo.list_free
().- Return type:
Finds all the
GstPbutils.DiscovererAudioInfo
contained in self
- get_container_streams()[source]¶
- Returns:
A
GLib.List
of matchingGstPbutils.DiscovererStreamInfo
. The caller should free it withGstPbutils.DiscovererStreamInfo.list_free
().- Return type:
Finds all the
GstPbutils.DiscovererContainerInfo
contained in self
- get_duration()[source]¶
- Returns:
the duration of the URI in #GstClockTime (nanoseconds).
- Return type:
- get_misc()[source]¶
- Returns:
Miscellaneous information stored as a
Gst.Structure
(for example: information about missing plugins). If you wish to use theGst.Structure
after the life-time of self, you will need to copy it.- Return type:
Deprecated since version ???: This functions is deprecated since version 1.4, use
GstPbutils.DiscovererInfo.get_missing_elements_installer_details
- get_missing_elements_installer_details()[source]¶
- 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()[source]¶
- Returns:
the result of the discovery as a
GstPbutils.DiscovererResult
.- Return type:
- get_stream_info()[source]¶
- 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:
- get_stream_list()[source]¶
- Returns:
the list of all streams contained in the #info. Free after usage with
GstPbutils.DiscovererStreamInfo.list_free
().- Return type:
- get_streams(streamtype)[source]¶
- Parameters:
streamtype (
GObject.GType
) – aGObject.GType
derived fromGstPbutils.DiscovererStreamInfo
- Returns:
A
GLib.List
of matchingGstPbutils.DiscovererStreamInfo
. The caller should free it withGstPbutils.DiscovererStreamInfo.list_free
().- Return type:
Finds the
GstPbutils.DiscovererStreamInfo
contained in self that match the given streamtype.
- get_subtitle_streams()[source]¶
- Returns:
A
GLib.List
of matchingGstPbutils.DiscovererStreamInfo
. The caller should free it withGstPbutils.DiscovererStreamInfo.list_free
().- Return type:
Finds all the
GstPbutils.DiscovererSubtitleInfo
contained in self
- get_tags()[source]¶
- 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
orNone
Deprecated since version 1.20: Use gst_discoverer_{container,stream}_info_get_tags() instead.
- get_uri()[source]¶
- 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:
- get_video_streams()[source]¶
- Returns:
A
GLib.List
of matchingGstPbutils.DiscovererStreamInfo
. The caller should free it withGstPbutils.DiscovererStreamInfo.list_free
().- Return type:
Finds all the
GstPbutils.DiscovererVideoInfo
contained in self
- to_variant(flags)[source]¶
- Parameters:
flags (
GstPbutils.DiscovererSerializeFlags
) – A combination ofGstPbutils.DiscovererSerializeFlags
to specify what needs to be serialized.- Returns:
A newly-allocated
GLib.Variant
representing self.- Return type:
Serializes self to a
GLib.Variant
that can be parsed again throughGstPbutils.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.