GES.VideoTrack

g GES.MetaContainer GES.MetaContainer GES.Track GES.Track GES.MetaContainer->GES.Track GES.VideoTrack GES.VideoTrack GES.Track->GES.VideoTrack 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 (82), 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.VideoTrack(**kwargs)
Bases:

GES.Track

Abstract:

No

Structure:

GES.VideoTrackClass

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

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

  • width: 1280

  • height: 720

  • framerate: 30/1

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 video track.

Return type:

GES.VideoTrack

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

  • width: 1280

  • height: 720

  • framerate: 30/1

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