GES.Formatter¶
- Subclasses:
GES.BaseXmlFormatter
,GES.CommandLineFormatter
,GES.PitiviFormatter
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
class |
|
class |
|
|
|
|
Virtual Methods¶
- Inherited:
|
|
|
|
|
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
||
project |
r |
||
timeline |
r |
Class Details¶
- class GES.Formatter(**kwargs)¶
- Bases:
- Abstract:
Yes
- Structure:
Base class for timeline data serialization and deserialization.
- classmethod can_load_uri(uri)[source]¶
- Parameters:
- Raises:
- Returns:
True
if there is aGES.Formatter
that can support the given uri orFalse
if not.- Return type:
Checks if there is a
GES.Formatter
available which can load aGES.Timeline
from the given URI.
- classmethod can_save_uri(uri)[source]¶
- Parameters:
- Raises:
- Returns:
- Return type:
Returns
True
if there is aGES.Formatter
available which can save aGES.Timeline
to the given URI.
- classmethod get_default()[source]¶
-
Get the default
GES.Asset
to use as formatter. It will return the asset for theGES.Formatter
that has the highest rank
- classmethod register_metas(name, description, extensions, caps, version, rank)¶
- Parameters:
name (
str
) – The name of the formatterdescription (
str
) – The formatter descriptionextensions (
str
) – A list of coma separated file extensions handled by the formatter. The order of the extensions should match the list of the structures inside capscaps (
str
) – The caps the formatter handled, they should match what gstreamer typefind mechanism will report for the files the formatter handles.version (
float
) – The version of the formatterrank (
Gst.Rank
) – The rank of the formatter
- load_from_uri(timeline, uri)[source]¶
- Parameters:
timeline (
GES.Timeline
) – aGES.Timeline
- Raises:
- Returns:
True
if the timeline data was successfully loaded from the URI, elseFalse
.- Return type:
Load data from the given URI into timeline.
Deprecated since version 1.18: Use ges_timeline_load_from_uri
- save_to_uri(timeline, uri, overwrite)[source]¶
- Parameters:
timeline (
GES.Timeline
) – aGES.Timeline
- Raises:
- Returns:
True
if the timeline data was successfully saved to the URI elseFalse
.- Return type:
Save data from timeline to the given URI.
Deprecated since version 1.18: Use ges_timeline_save_to_uri
- do_can_load_uri(uri) virtual¶
-
Whether the URI can be loaded
- do_load_from_uri(timeline, uri) virtual¶
- Parameters:
timeline (
GES.Timeline
) – aGES.Timeline
- Returns:
True
if the timeline data was successfully loaded from the URI, elseFalse
.- Return type:
Load data from the given URI into timeline.
Deprecated since version 1.18: Use ges_timeline_load_from_uri
- do_save_to_uri(timeline, uri, overwrite) virtual¶
- Parameters:
timeline (
GES.Timeline
) – aGES.Timeline
- Returns:
True
if the timeline data was successfully saved to the URI elseFalse
.- Return type:
Save data from timeline to the given URI.
Deprecated since version 1.18: Use ges_timeline_save_to_uri