Functions¶
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Details¶
- GES.buffer_add_frame_composition_meta(buffer)[source]¶
- Parameters:
buffer (
Gst.Buffer
) –Gst.Buffer
to which protection metadata should be added.- Returns:
a pointer to the added
GES.FrameCompositionMeta
.- Return type:
Attaches positioning metadata to a
Gst.Buffer
.New in version 1.24.
- GES.deinit()[source]¶
Clean up any resources created by GES in
GES.init
().It is normally not needed to call this function in a normal application as the resources will automatically be freed when the program terminates. This function is therefore mostly used by testsuites and other memory profiling tools. This function should be called from the thread where
GES.init
() was called.After this call GES should not be used until another
GES.init
() call.
- GES.edge_name(edge)[source]¶
- Parameters:
- Returns:
A human friendly name for edge
- Return type:
New in version 1.16.
- GES.edit_mode_name(mode)[source]¶
- Parameters:
mode (
GES.EditMode
) – aGES.EditMode
- Returns:
a string representation of mode.
- Return type:
Return a string representation of mode.
New in version 1.18.
- GES.find_formatter_for_uri(uri)[source]¶
-
Get the best formatter for uri. It tries to find a formatter compatible with uri extension, if none is found, it returns the default formatter asset.
New in version 1.18.
- GES.init()[source]¶
- Return type:
Initialize the GStreamer Editing Service. Call this before any usage of GES. You should take care of initilizing GStreamer before calling this function.
MT safety. GStreamer Editing Services do not guarantee MT safety. An application is required to use GES APIs (including
GES.deinit
()) in the thread whereGES.init
() was called.
- GES.init_check(argv)[source]¶
- Parameters:
- Raises:
- Returns:
True
if GES could be initialized.- argv:
pointer to application’s argv
- Return type:
Initializes the GStreamer Editing Services library, setting up internal path lists, and loading evrything needed.
This function will return
False
if GES could not be initialized for some reason.
- GES.is_initialized()[source]¶
-
Use this function to check if GES has been initialized with
GES.init
() orGES.init_check
().New in version 1.16.
- GES.list_assets(filter)[source]¶
- Parameters:
filter (
GObject.GType
) – The type of object that can be extracted from the asset- Returns:
A list of all
GES.Asset
-s currently in the cache whoseGES.Asset
:extractable-type
is of the filter type.- Return type:
List all the assets in the current cache whose
GES.Asset
:extractable-type
are of the given type (including subclasses).Note that, since only a
GES.Extractable
can be extracted from an asset, usingGES_TYPE_EXTRACTABLE
as filter will return all the assets in the current cache.
- GES.play_sink_convert_frame(playsink, caps)[source]¶
- Parameters:
playsink (
Gst.Element
) – The playsink to get last frame fromcaps (
Gst.Caps
) – The caps defining the format the return value will have
- Returns:
A
Gst.Sample
containing the last frame from playsink in the format defined by the caps- Return type:
Gst.Sample
orNone
Get the last buffer playsink showed
Deprecated since version 1.18: Use the “convert-sample” action signal of #playsink instead.
- GES.track_type_name(type)[source]¶
- Parameters:
type (
GES.TrackType
) –- Return type: