Clapper.AudioStream

g Clapper.AudioStream Clapper.AudioStream Clapper.Stream Clapper.Stream Clapper.Stream->Clapper.AudioStream GObject.InitiallyUnowned GObject.InitiallyUnowned Gst.Object Gst.Object GObject.InitiallyUnowned->Gst.Object GObject.Object GObject.Object GObject.Object->GObject.InitiallyUnowned Gst.Object->Clapper.Stream

Subclasses:

None

Methods

Inherited:

Clapper.Stream (2), Gst.Object (27), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

get_bitrate ()

get_channels ()

get_codec ()

get_lang_code ()

get_lang_name ()

get_sample_format ()

get_sample_rate ()

Virtual Methods

Inherited:

Clapper.Stream (1), Gst.Object (1), GObject.Object (7)

Properties

Inherited:

Clapper.Stream (2), Gst.Object (2)

Name

Type

Flags

Short Description

bitrate

int

r/en

channels

int

r/en

codec

str

r/en

lang-code

str

r/en

lang-name

str

r/en

sample-format

str

r/en

sample-rate

int

r/en

Signals

Inherited:

Gst.Object (1), GObject.Object (1)

Fields

Inherited:

Gst.Object (1), GObject.Object (1)

Class Details

class Clapper.AudioStream(**kwargs)
Bases:

Clapper.Stream

Abstract:

No

Structure:

Clapper.AudioStreamClass

Represents an audio stream within media.

get_bitrate()
Returns:

the bitrate of audio stream.

Return type:

int

Get bitrate of audio self.

get_channels()
Returns:

the number of audio channels.

Return type:

int

Get number of audio channels in self.

get_codec()
Returns:

the audio codec of stream or None if undetermined.

Return type:

str or None

Get codec used to encode self.

get_lang_code()
Returns:

the language code of audio stream.

Return type:

str or None

Get an ISO-639 language code of the self.

get_lang_name()
Returns:

the language name of audio stream.

Return type:

str or None

Get language name of the self.

This function will try to return a translated string into current locale if possible, with a fallback to a name extracted from tags.

get_sample_format()
Returns:

the sample format of stream or None if undetermined.

Return type:

str or None

Get sample format of audio self.

get_sample_rate()
Returns:

the sample rate of audio stream.

Return type:

int

Get sample rate of audio self (in Hz).

Property Details

Clapper.AudioStream.props.bitrate
Name:

bitrate

Type:

int

Default Value:

0

Flags:

READABLE, EXPLICIT_NOTIFY

Stream bitrate.

Clapper.AudioStream.props.channels
Name:

channels

Type:

int

Default Value:

0

Flags:

READABLE, EXPLICIT_NOTIFY

Stream number of audio channels.

Clapper.AudioStream.props.codec
Name:

codec

Type:

str

Default Value:

None

Flags:

READABLE, EXPLICIT_NOTIFY

Stream codec.

Clapper.AudioStream.props.lang_code
Name:

lang-code

Type:

str

Default Value:

None

Flags:

READABLE, EXPLICIT_NOTIFY

Stream language code in ISO-639 format.

Clapper.AudioStream.props.lang_name
Name:

lang-name

Type:

str

Default Value:

None

Flags:

READABLE, EXPLICIT_NOTIFY

Stream language name.

Clapper.AudioStream.props.sample_format
Name:

sample-format

Type:

str

Default Value:

None

Flags:

READABLE, EXPLICIT_NOTIFY

Stream sample format.

Clapper.AudioStream.props.sample_rate
Name:

sample-rate

Type:

int

Default Value:

0

Flags:

READABLE, EXPLICIT_NOTIFY

Stream sample rate (in Hz).