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.Variantto deserialize into aGstPbutils.DiscovererInfo.- Returns:
A newly-allocated
GstPbutils.DiscovererInfo.- Return type:
Parses a
GLib.Variantas 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.Listof matchingGstPbutils.DiscovererStreamInfo. The caller should free it withGstPbutils.DiscovererStreamInfo.list_free().- Return type:
Finds all the
GstPbutils.DiscovererAudioInfocontained in self
- get_container_streams()[source]¶
- Returns:
A
GLib.Listof matchingGstPbutils.DiscovererStreamInfo. The caller should free it withGstPbutils.DiscovererStreamInfo.list_free().- Return type:
Finds all the
GstPbutils.DiscovererContainerInfocontained 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.Structureafter 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.GTypederived fromGstPbutils.DiscovererStreamInfo- Returns:
A
GLib.Listof matchingGstPbutils.DiscovererStreamInfo. The caller should free it withGstPbutils.DiscovererStreamInfo.list_free().- Return type:
Finds the
GstPbutils.DiscovererStreamInfocontained in self that match the given streamtype.
- get_subtitle_streams()[source]¶
- Returns:
A
GLib.Listof matchingGstPbutils.DiscovererStreamInfo. The caller should free it withGstPbutils.DiscovererStreamInfo.list_free().- Return type:
Finds all the
GstPbutils.DiscovererSubtitleInfocontained 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.TagListorNone
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.Listof matchingGstPbutils.DiscovererStreamInfo. The caller should free it withGstPbutils.DiscovererStreamInfo.list_free().- Return type:
Finds all the
GstPbutils.DiscovererVideoInfocontained in self
- to_variant(flags)[source]¶
- Parameters:
flags (
GstPbutils.DiscovererSerializeFlags) – A combination ofGstPbutils.DiscovererSerializeFlagsto specify what needs to be serialized.- Returns:
A newly-allocated
GLib.Variantrepresenting self.- Return type:
Serializes self to a
GLib.Variantthat 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.