GES.VideoSource

g GES.Extractable GES.Extractable GES.TimelineElement GES.TimelineElement GES.Extractable->GES.TimelineElement GES.MetaContainer GES.MetaContainer GES.MetaContainer->GES.TimelineElement GES.Source GES.Source GES.VideoSource GES.VideoSource GES.Source->GES.VideoSource GES.TrackElement GES.TrackElement GES.TimelineElement->GES.TrackElement GES.TrackElement->GES.Source GObject.GInterface GObject.GInterface GObject.GInterface->GES.Extractable GObject.GInterface->GES.MetaContainer GObject.InitiallyUnowned GObject.InitiallyUnowned GObject.InitiallyUnowned->GES.TimelineElement GObject.Object GObject.Object GObject.Object->GObject.InitiallyUnowned

Subclasses:GES.ImageSource, GES.MultiFileSource, GES.TitleSource, GES.VideoTestSource, GES.VideoUriSource

Fields

Inherited:GES.TrackElement (2), GES.TimelineElement (3), GObject.Object (1), GES.MetaContainer (1)
Name Type Access Description
parent GES.Source r  

Class Details

class GES.VideoSource(**kwargs)
Bases:GES.Source
Abstract:Yes
Structure:GES.VideoSourceClass

Base class for video sources

get_natural_size()[source]
Returns:True if the object has a natural size, False otherwise.
width:The natural width of the underlying source
height:The natural height of the underlying source
Return type:(bool, width: int, height: int)

Retrieves the natural size of the video stream. The natural size, is the size at which it will be displayed if no scaling is being applied.

NOTE: The sources take into account the potential video rotation applied by the #videoflip element that is inside the source, effects applied on the clip which potentially also rotate the element are not taken into account.

New in version 1.18.