GstPbutils.DiscovererStreamInfo¶
- Subclasses:
GstPbutils.DiscovererAudioInfo,GstPbutils.DiscovererContainerInfo,GstPbutils.DiscovererSubtitleInfo,GstPbutils.DiscovererVideoInfo
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class GstPbutils.DiscovererStreamInfo(**kwargs)¶
- Bases:
- 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, andGstPbutils.DiscovererContainerInfo.The
GstPbutils.DiscovererStreamInforepresents the topology of the stream. Siblings can be iterated over withGstPbutils.DiscovererStreamInfo.get_next() andGstPbutils.DiscovererStreamInfo.get_previous(). Children (sub-streams) of a stream can be accessed using theGstPbutils.DiscovererContainerInfoAPI.As a simple example, if you run
GstPbutils.Discovereron an AVI file with one audio and one video stream, you will get aGstPbutils.DiscovererContainerInfocorresponding to the AVI container, which in turn will have aGstPbutils.DiscovererAudioInfosub-stream and aGstPbutils.DiscovererVideoInfosub-stream for the audio and video streams respectively.- classmethod list_free(infos)[source]¶
- Parameters:
infos ([
GstPbutils.DiscovererStreamInfo]) – aGLib.ListofGstPbutils.DiscovererStreamInfo
Decrements the reference count of all contained
GstPbutils.DiscovererStreamInfoand fress theGLib.List.
- get_misc()[source]¶
- Returns:
additional information regarding the stream (for example codec version, profile, etc..). If you wish to use the
Gst.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_next()[source]¶
- Returns:
the next
GstPbutils.DiscovererStreamInfoin a chain.Nonefor final streams. Unref with #gst_discoverer_stream_info_unref after usage.- Return type:
- get_previous()[source]¶
- Returns:
the previous
GstPbutils.DiscovererStreamInfoin a chain.Nonefor starting points. Unref with #gst_discoverer_stream_info_unref after usage.- Return type:
- 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:
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:
- 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.TagListorNone