GES.ClipAsset¶
- Subclasses:
Methods¶
- Inherited:
GES.Asset (13), GObject.Object (37), GES.MetaContainer (40), Gio.AsyncInitable (4), Gio.Initable (2)
- Structs:
|
|
|
Virtual Methods¶
- Inherited:
GES.Asset (5), GObject.Object (7), Gio.AsyncInitable (2), Gio.Initable (1)
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/c |
Formats supported by the file |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class GES.ClipAsset(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
The
GES.UriClipAsset
is a specialGES.Asset
specilized inGES.Clip
. it is mostly used to get information about theGES.TrackType
-s the objects extracted from it can potentialy createGES.TrackElement
for.- get_frame_time(frame_number)[source]¶
- Parameters:
frame_number (
int
) – The frame number we want the internal time coordinate timestamp of- Returns:
The timestamp corresponding to frame_number in the element source, given in internal time coordinates, or
Gst.CLOCK_TIME_NONE
if the clip asset does not have a natural frame rate.- Return type:
Converts the given frame number into a timestamp, using the “natural” frame rate of the asset.
You can use this to reference a specific frame in a media file and use this as, for example, the
in-point
ormax-duration
of aGES.Clip
.New in version 1.18.
- get_natural_framerate()[source]¶
- Returns:
- framerate_n:
The framerate numerator
- framerate_d:
The framerate denominator
- Return type:
Result:
True
if self has a natural framerateFalse
otherwiseNew in version 1.18.
- get_supported_formats()[source]¶
- Returns:
The track types on which self will create TrackElement when added to a layer
- Return type:
Gets track types for which objects extracted from self can create
GES.TrackElement
- set_supported_formats(supportedformats)[source]¶
- Parameters:
supportedformats (
GES.TrackType
) – The track types supported by theGES.ClipAsset
Sets track types for which objects extracted from self can create
GES.TrackElement
Property Details¶
- GES.ClipAsset.props.supported_formats¶
- Name:
supported-formats
- Type:
- Default Value:
- Flags:
The formats supported by the asset.