GstPbutils.DiscovererAudioInfo

g GObject.Object GObject.Object GstPbutils.DiscovererStreamInfo GstPbutils.DiscovererStreamInfo GObject.Object->GstPbutils.DiscovererStreamInfo GstPbutils.DiscovererAudioInfo GstPbutils.DiscovererAudioInfo GstPbutils.DiscovererStreamInfo->GstPbutils.DiscovererAudioInfo

Subclasses:

None

Methods

Inherited:

GstPbutils.DiscovererStreamInfo (10), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

get_bitrate ()

get_channel_mask ()

get_channels ()

get_depth ()

get_language ()

get_max_bitrate ()

get_sample_rate ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

None

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class GstPbutils.DiscovererAudioInfo(**kwargs)
Bases:

GstPbutils.DiscovererStreamInfo

Abstract:

No

GstPbutils.DiscovererStreamInfo specific to audio streams.

get_bitrate()
Returns:

the average or nominal bitrate of the stream in bits/second.

Return type:

int

get_channel_mask()
Returns:

the channel-mask of the stream, refer to GstAudio.audio_channel_positions_from_mask() for more information.

Return type:

int

New in version 1.14.

get_channels()
Returns:

the number of channels in the stream.

Return type:

int

get_depth()
Returns:

the number of bits used per sample in each channel.

Return type:

int

get_language()
Returns:

the language of the stream, or None if unknown.

Return type:

str or None

get_max_bitrate()
Returns:

the maximum bitrate of the stream in bits/second.

Return type:

int

get_sample_rate()
Returns:

the sample rate of the stream in Hertz.

Return type:

int