22 KiB
GES action types
edit-container
edit-container,
[playback-time=(double,string)],
container-name=(string),
position=(double or string),
[edit-mode=(string)],
[edge=(string)],
[new-layer-priority=(int)];
Allows to edit a container (like a GESClip), for more details, have a look at: ges_container_edit documentation, Note that the timeline will be commited, and flushed so that the edition is taken into account
- Implementer namespace: ges
Parameters
Parameters:
-
playback-time
:(optional): The playback time at which the action will be executedPossible variables:
-
position
: The current position in the stream -
duration
: The duration of the stream
Possible types:
double,string
Default: 0.0
-
-
on-message
:(optional): Specify on what message type the action will be executed. If both 'playback-time' and 'on-message' is specified, the action will be executed on whatever happens first.Possible types:
string
Default: (null)
-
container-name
:(mandatory): The name of the GESContainer to editPossible types:
string
-
position
:(mandatory): The new position of the GESContainerPossible variables:
-
position: The current position in the stream
-
duration: The duration of the stream
Possible types:
double or string
-
-
edit-mode
:(optional): The GESEditMode to use to edit @container-namePossible types:
string
Default: normal
-
edge
:(optional): The GESEdge to use to edit @container-name should be in [ edge_start, edge_end, edge_none ]Possible types:
string
Default: edge_none
-
new-layer-priority
:(optional): The priority of the layer @container should land in. If the layer you're trying to move the container to doesn't exist, it will be created automatically. -1 means no move.Possible types:
int
Default: -1
add-asset
add-asset,
[playback-time=(double,string)],
id,
type;
Allows to add an asset to the current project
- Implementer namespace: ges
Parameters
Parameters:
-
playback-time
:(optional): The playback time at which the action will be executedPossible variables:
-
position
: The current position in the stream -
duration
: The duration of the stream
Possible types:
double,string
Default: 0.0
-
-
on-message
:(optional): Specify on what message type the action will be executed. If both 'playback-time' and 'on-message' is specified, the action will be executed on whatever happens first.Possible types:
string
Default: (null)
-
id
:(mandatory): Adds an asset to a project. -
type
:(mandatory): The type of asset to add
remove-asset
remove-asset,
[playback-time=(double,string)],
id,
type;
Allows to remove an asset from the current project
- Implementer namespace: ges
Parameters
Parameters:
-
playback-time
:(optional): The playback time at which the action will be executedPossible variables:
-
position
: The current position in the stream -
duration
: The duration of the stream
Possible types:
double,string
Default: 0.0
-
-
on-message
:(optional): Specify on what message type the action will be executed. If both 'playback-time' and 'on-message' is specified, the action will be executed on whatever happens first.Possible types:
string
Default: (null)
-
id
:(mandatory): The ID of the clip to remove -
type
:(mandatory): The type of asset to remove
add-layer
add-layer,
[playback-time=(double,string)],
[priority];
Allows to add a layer to the current timeline
- Implementer namespace: ges
Parameters
Parameters:
-
playback-time
:(optional): The playback time at which the action will be executedPossible variables:
-
position
: The current position in the stream -
duration
: The duration of the stream
Possible types:
double,string
Default: 0.0
-
-
on-message
:(optional): Specify on what message type the action will be executed. If both 'playback-time' and 'on-message' is specified, the action will be executed on whatever happens first.Possible types:
string
Default: (null)
-
priority
:(optional): The priority of the new layer to add,if not specified, the new layer will be appended to the timelineDefault: (null)
remove-layer
remove-layer,
[playback-time=(double,string)],
priority,
[auto-transition=(boolean)];
Allows to remove a layer from the current timeline
- Implementer namespace: ges
Parameters
Parameters:
-
playback-time
:(optional): The playback time at which the action will be executedPossible variables:
-
position
: The current position in the stream -
duration
: The duration of the stream
Possible types:
double,string
Default: 0.0
-
-
on-message
:(optional): Specify on what message type the action will be executed. If both 'playback-time' and 'on-message' is specified, the action will be executed on whatever happens first.Possible types:
string
Default: (null)
-
priority
:(mandatory): The priority of the layer to remove -
auto-transition
:(optional): Wheter auto-transition is activated on the new layer.Possible types:
boolean
Default: False
add-clip
add-clip,
[playback-time=(double,string)],
name=(string),
layer-priority=(int),
asset-id=(string),
type=(string),
[start=(double or string)],
[inpoint=(double or string)],
[duration=(double or string)];
Allows to add a clip to a given layer
- Implementer namespace: ges
Parameters
Parameters:
-
playback-time
:(optional): The playback time at which the action will be executedPossible variables:
-
position
: The current position in the stream -
duration
: The duration of the stream
Possible types:
double,string
Default: 0.0
-
-
on-message
:(optional): Specify on what message type the action will be executed. If both 'playback-time' and 'on-message' is specified, the action will be executed on whatever happens first.Possible types:
string
Default: (null)
-
name
:(mandatory): The name of the clip to addPossible types:
string
-
layer-priority
:(mandatory): The priority of the clip to addPossible types:
int
-
asset-id
:(mandatory): The id of the asset from which to extract the clipPossible types:
string
-
type
:(mandatory): The type of the clip to createPossible types:
string
-
start
:(optional): The start value to set on the new GESClip.Possible types:
double or string
Default: (null)
-
inpoint
:(optional): The inpoint value to set on the new GESClipPossible types:
double or string
Default: (null)
-
duration
:(optional): The duration value to set on the new GESClipPossible types:
double or string
Default: (null)
remove-clip
remove-clip,
[playback-time=(double,string)],
name=(string);
Allows to remove a clip from a given layer
- Implementer namespace: ges
Parameters
Parameters:
-
playback-time
:(optional): The playback time at which the action will be executedPossible variables:
-
position
: The current position in the stream -
duration
: The duration of the stream
Possible types:
double,string
Default: 0.0
-
-
on-message
:(optional): Specify on what message type the action will be executed. If both 'playback-time' and 'on-message' is specified, the action will be executed on whatever happens first.Possible types:
string
Default: (null)
-
name
:(mandatory): The name of the clip to removePossible types:
string
serialize-project
serialize-project,
[playback-time=(double,string)],
uri=(string);
serializes a project
- Implementer namespace: ges
Parameters
Parameters:
-
playback-time
:(optional): The playback time at which the action will be executedPossible variables:
-
position
: The current position in the stream -
duration
: The duration of the stream
Possible types:
double,string
Default: 0.0
-
-
on-message
:(optional): Specify on what message type the action will be executed. If both 'playback-time' and 'on-message' is specified, the action will be executed on whatever happens first.Possible types:
string
Default: (null)
-
uri
:(mandatory): The uri where to store the serialized projectPossible types:
string
set-child-property
set-child-property,
[playback-time=(double,string)],
element-name=(string),
property=(string),
value=(gvalue);
Allows to change child property of an object
- Implementer namespace: ges
Parameters
Parameters:
-
playback-time
:(optional): The playback time at which the action will be executedPossible variables:
-
position
: The current position in the stream -
duration
: The duration of the stream
Possible types:
double,string
Default: 0.0
-
-
on-message
:(optional): Specify on what message type the action will be executed. If both 'playback-time' and 'on-message' is specified, the action will be executed on whatever happens first.Possible types:
string
Default: (null)
-
element-name
:(mandatory): The name of the element on which to modify the propertyPossible types:
string
-
property
:(mandatory): The name of the property to modifyPossible types:
string
-
value
:(mandatory): The value of the propertyPossible types:
gvalue
split-clip
split-clip,
[playback-time=(double,string)],
clip-name=(string),
position=(double or string);
Split a clip at a specified position.
- Implementer namespace: ges
Parameters
Parameters:
-
playback-time
:(optional): The playback time at which the action will be executedPossible variables:
-
position
: The current position in the stream -
duration
: The duration of the stream
Possible types:
double,string
Default: 0.0
-
-
on-message
:(optional): Specify on what message type the action will be executed. If both 'playback-time' and 'on-message' is specified, the action will be executed on whatever happens first.Possible types:
string
Default: (null)
-
clip-name
:(mandatory): The name of the clip to splitPossible types:
string
-
position
:(mandatory): The position at which to split the clipPossible types:
double or string
set-track-restriction-caps
set-track-restriction-caps,
[playback-time=(double,string)],
track-type=(string),
caps=(string);
Sets restriction caps on tracks of a specific type.
- Implementer namespace: ges
Parameters
Parameters:
-
playback-time
:(optional): The playback time at which the action will be executedPossible variables:
-
position
: The current position in the stream -
duration
: The duration of the stream
Possible types:
double,string
Default: 0.0
-
-
on-message
:(optional): Specify on what message type the action will be executed. If both 'playback-time' and 'on-message' is specified, the action will be executed on whatever happens first.Possible types:
string
Default: (null)
-
track-type
:(mandatory): The type of track to set restriction caps onPossible types:
string
-
caps
:(mandatory): The caps to set on the trackPossible types:
string
element-set-asset
element-set-asset,
[playback-time=(double,string)],
element-name=(string),
asset-id=(string);
Sets restriction caps on tracks of a specific type.
- Implementer namespace: ges
Parameters
Parameters:
-
playback-time
:(optional): The playback time at which the action will be executedPossible variables:
-
position
: The current position in the stream -
duration
: The duration of the stream
Possible types:
double,string
Default: 0.0
-
-
on-message
:(optional): Specify on what message type the action will be executed. If both 'playback-time' and 'on-message' is specified, the action will be executed on whatever happens first.Possible types:
string
Default: (null)
-
element-name
:(mandatory): The name of the TimelineElement to set an asset onPossible types:
string
-
asset-id
:(mandatory): The id of the asset from which to extract the clipPossible types:
string
container-add-child
container-add-child,
[playback-time=(double,string)],
container-name=(string),
[child-name=(string)],
asset-id=(string),
[child-type=(string)];
Add a child to @container-name. If asset-id and child-type are specified, the child will be created and added. Otherwize @child-name has to be specified and will be added to the container.
- Implementer namespace: ges
Parameters
Parameters:
-
playback-time
:(optional): The playback time at which the action will be executedPossible variables:
-
position
: The current position in the stream -
duration
: The duration of the stream
Possible types:
double,string
Default: 0.0
-
-
on-message
:(optional): Specify on what message type the action will be executed. If both 'playback-time' and 'on-message' is specified, the action will be executed on whatever happens first.Possible types:
string
Default: (null)
-
container-name
:(mandatory): The name of the GESContainer to add a child toPossible types:
string
-
child-name
:(optional): The name of the child to add to @container-namePossible types:
string
Default: NULL
-
asset-id
:(mandatory): The id of the asset from which to extract the childPossible types:
string
-
child-type
:(optional): The type of the child to createPossible types:
string
Default: NULL
container-remove-child
container-remove-child,
[playback-time=(double,string)],
container-name=(string),
child-name=(string);
Remove a child from @container-name.
- Implementer namespace: ges
Parameters
Parameters:
-
playback-time
:(optional): The playback time at which the action will be executedPossible variables:
-
position
: The current position in the stream -
duration
: The duration of the stream
Possible types:
double,string
Default: 0.0
-
-
on-message
:(optional): Specify on what message type the action will be executed. If both 'playback-time' and 'on-message' is specified, the action will be executed on whatever happens first.Possible types:
string
Default: (null)
-
container-name
:(mandatory): The name of the GESContainer to remove a child fromPossible types:
string
-
child-name
:(mandatory): The name of the child to reomve from @container-namePossible types:
string
ungroup-container
ungroup-container,
[playback-time=(double,string)],
container-name=(string),
[recursive=(boolean)];
Ungroup children of @container-name.
- Implementer namespace: ges
Parameters
Parameters:
-
playback-time
:(optional): The playback time at which the action will be executedPossible variables:
-
position
: The current position in the stream -
duration
: The duration of the stream
Possible types:
double,string
Default: 0.0
-
-
on-message
:(optional): Specify on what message type the action will be executed. If both 'playback-time' and 'on-message' is specified, the action will be executed on whatever happens first.Possible types:
string
Default: (null)
-
container-name
:(mandatory): The name of the GESContainer to ungroup children fromPossible types:
string
-
recursive
:(optional): Wether to recurse ungrouping or not.Possible types:
boolean
Default: (null)
set-control-source
set-control-source,
[playback-time=(double,string)],
element-name=(string),
property-name=(string),
[binding-type=(string)],
[source-type=(string)],
[interpolation-mode=(string)];
Adds a GstControlSource on @element-name::@property-name allowing you to then add keyframes on that property.
- Implementer namespace: ges
Parameters
Parameters:
-
playback-time
:(optional): The playback time at which the action will be executedPossible variables:
-
position
: The current position in the stream -
duration
: The duration of the stream
Possible types:
double,string
Default: 0.0
-
-
on-message
:(optional): Specify on what message type the action will be executed. If both 'playback-time' and 'on-message' is specified, the action will be executed on whatever happens first.Possible types:
string
Default: (null)
-
element-name
:(mandatory): The name of the GESTrackElement to set the control source onPossible types:
string
-
property-name
:(mandatory): The name of the property for which to set a control sourcePossible types:
string
-
binding-type
:(optional): The name of the type of binding to usePossible types:
string
Default: direct
-
source-type
:(optional): The name of the type of ControlSource to usePossible types:
string
Default: interpolation
-
interpolation-mode
:(optional): The name of the GstInterpolationMode to on the sourcePossible types:
string
Default: linear
add-keyframe
add-keyframe,
[playback-time=(double,string)],
element-name=(string),
property-name=(string),
timestamp=(string or float),
value=(float);
Remove a child from @container-name.
- Implementer namespace: ges
Parameters
Parameters:
-
playback-time
:(optional): The playback time at which the action will be executedPossible variables:
-
position
: The current position in the stream -
duration
: The duration of the stream
Possible types:
double,string
Default: 0.0
-
-
on-message
:(optional): Specify on what message type the action will be executed. If both 'playback-time' and 'on-message' is specified, the action will be executed on whatever happens first.Possible types:
string
Default: (null)
-
element-name
:(mandatory): The name of the GESTrackElement to add a keyframe onPossible types:
string
-
property-name
:(mandatory): The name of the property for which to add a keyframe onPossible types:
string
-
timestamp
:(mandatory): The timestamp of the keyframePossible types:
string or float
-
value
:(mandatory): The value of the keyframePossible types:
float
copy-element
copy-element,
[playback-time=(double,string)],
element-name=(string),
[recurse=(boolean)],
position=(string or float),
[paste-name=(string)];
Remove a child from @container-name.
- Implementer namespace: ges
Parameters
Parameters:
-
playback-time
:(optional): The playback time at which the action will be executedPossible variables:
-
position
: The current position in the stream -
duration
: The duration of the stream
Possible types:
double,string
Default: 0.0
-
-
on-message
:(optional): Specify on what message type the action will be executed. If both 'playback-time' and 'on-message' is specified, the action will be executed on whatever happens first.Possible types:
string
Default: (null)
-
element-name
:(mandatory): The name of the GESTtimelineElement to copyPossible types:
string
-
recurse
:(optional): Copy recursively or notPossible types:
boolean
Default: true
-
position
:(mandatory): The time where to paste the elementPossible types:
string or float
-
paste-name
:(optional): The name of the copied elementPossible types:
string
Default: (null)
remove-keyframe
remove-keyframe,
[playback-time=(double,string)],
element-name=(string),
property-name=(string),
timestamp=(string or float);
Remove a child from @container-name.
- Implementer namespace: ges
Parameters
Parameters:
-
playback-time
:(optional): The playback time at which the action will be executedPossible variables:
-
position
: The current position in the stream -
duration
: The duration of the stream
Possible types:
double,string
Default: 0.0
-
-
on-message
:(optional): Specify on what message type the action will be executed. If both 'playback-time' and 'on-message' is specified, the action will be executed on whatever happens first.Possible types:
string
Default: (null)
-
element-name
:(mandatory): The name of the GESTrackElement to add a keyframe onPossible types:
string
-
property-name
:(mandatory): The name of the property for which to add a keyframe onPossible types:
string
-
timestamp
:(mandatory): The timestamp of the keyframePossible types:
string or float
load-project
load-project,
[playback-time=(double,string)],
serialized-content;
Loads a project either from its content passed in the serialized-content field. Note that it will completely clean the previous timeline
- Implementer namespace: ges
Parameters
Parameters:
-
playback-time
:(optional): The playback time at which the action will be executedPossible variables:
-
position
: The current position in the stream -
duration
: The duration of the stream
Possible types:
double,string
Default: 0.0
-
-
on-message
:(optional): Specify on what message type the action will be executed. If both 'playback-time' and 'on-message' is specified, the action will be executed on whatever happens first.Possible types:
string
Default: (null)
-
serialized-content
:(mandatory): The full content of the XML describing project in XGES formet.
commit
commit,
[playback-time=(double,string)];
Commit the timeline.
- Implementer namespace: ges
Parameters
Parameters:
-
playback-time
:(optional): The playback time at which the action will be executedPossible variables:
-
position
: The current position in the stream -
duration
: The duration of the stream
Possible types:
double,string
Default: 0.0
-
-
on-message
:(optional): Specify on what message type the action will be executed. If both 'playback-time' and 'on-message' is specified, the action will be executed on whatever happens first.Possible types:
string
Default: (null)