GES.AudioTrack

g GES.AudioTrack GES.AudioTrack GES.MetaContainer GES.MetaContainer GES.Track GES.Track GES.MetaContainer->GES.Track GES.Track->GES.AudioTrack GObject.GInterface GObject.GInterface GObject.GInterface->GES.MetaContainer Gst.ChildProxy Gst.ChildProxy GObject.GInterface->Gst.ChildProxy GObject.InitiallyUnowned GObject.InitiallyUnowned Gst.Object Gst.Object GObject.InitiallyUnowned->Gst.Object GObject.Object GObject.Object GObject.Object->GObject.InitiallyUnowned Gst.Bin Gst.Bin Gst.Bin->GES.Track Gst.ChildProxy->Gst.Bin Gst.Element Gst.Element Gst.Element->Gst.Bin Gst.Object->Gst.Element

Subclasses

None

Methods

Inherited

GES.Track (15), Gst.Bin (18), Gst.Element (81), Gst.Object (27), GObject.Object (37), Gst.ChildProxy (9), GES.MetaContainer (40)

Structs

Gst.ElementClass (10), GObject.ObjectClass (5)

class

new ()

Virtual Methods

Inherited

Gst.Bin (8), Gst.Element (16), Gst.Object (1), GObject.Object (7), Gst.ChildProxy (5)

Properties

Inherited

GES.Track (6), Gst.Bin (2), Gst.Object (2)

Signals

Inherited

GES.Track (3), Gst.Bin (5), Gst.Element (3), Gst.Object (1), GObject.Object (1), Gst.ChildProxy (2), GES.MetaContainer (1)

Fields

Inherited

GES.Track (3), Gst.Bin (5), Gst.Element (3), Gst.Object (1), GObject.Object (1), Gst.ChildProxy (2), GES.MetaContainer (1)

Name

Type

Access

Description

parent_instance

GES.Track

r

Class Details

class GES.AudioTrack(**kwargs)
Bases

GES.Track

Abstract

No

Structure

GES.AudioTrackClass

A GES.AudioTrack is a default audio GES.Track, with a GES.TrackType.AUDIO GES.Track :track-type and “audio/x-raw(ANY)” GES.Track :caps.

By default, an audio track will have its GES.Track :restriction-caps set to “audio/x-raw” with the following properties:

  • format: “S32LE”

  • channels: 2

  • rate: 44100

  • layout: “interleaved”

These fields are needed for negotiation purposes, but you can change their values if you wish. It is advised that you do so using GES.Track.update_restriction_caps() with new values for the fields you wish to change, and any additional fields you may want to add. Unlike using GES.Track.set_restriction_caps(), this will ensure that these default fields will at least have some value set.

classmethod new()[source]
Returns

The newly created audio track.

Return type

GES.AudioTrack

Creates a new audio track, with a GES.TrackType.AUDIO GES.Track :track-type, “audio/x-raw(ANY)” GES.Track :caps, and “audio/x-raw” GES.Track :restriction-caps with the properties:

  • format: “S32LE”

  • channels: 2

  • rate: 44100

  • layout: “interleaved”

You should use GES.Track.update_restriction_caps() if you wish to modify these fields, or add additional ones.