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.DiscovererStreamInfo
represents 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.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 aGstPbutils.DiscovererContainerInfo
corresponding to the AVI container, which in turn will have aGstPbutils.DiscovererAudioInfo
sub-stream and aGstPbutils.DiscovererVideoInfo
sub-stream for the audio and video streams respectively.- classmethod list_free(infos)[source]¶
- Parameters:
infos ([
GstPbutils.DiscovererStreamInfo
]) – aGLib.List
ofGstPbutils.DiscovererStreamInfo
Decrements the reference count of all contained
GstPbutils.DiscovererStreamInfo
and 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.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_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:
- 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:
- 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.TagList
orNone