Functions

  add_missing_uri_relocation_uri (uri, recurse)
  deinit ()
  edge_name (edge)
  init ()
  init_check (argv)
  is_initialized ()
  list_assets (filter)
  play_sink_convert_frame (playsink, caps)
  pspec_equal (key_spec_1, key_spec_2)
  pspec_hash (key_spec)
  track_type_name (type)
  validate_register_action_types ()
  version ()

Details

GES.add_missing_uri_relocation_uri(uri, recurse)[source]
Parameters:
Return type:

bool

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:edge (GES.Edge) –
Return type:str
GES.init()[source]
Return type:bool

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 where GES.init() was called.

GES.init_check(argv)[source]
Parameters:argv ([str] or None) – pointer to application’s argv
Raises:GLib.Error
Returns:True if GES could be initialized.
argv:pointer to application’s argv
Return type:(bool, argv: [str])

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]
Returns:True if initialization has been done, False otherwise.
Return type:bool

Use this function to check if GES has been initialized with GES.init() or GES.init_check().

New in version 1.16.

GES.list_assets(filter)[source]
Parameters:filter (GObject.GType) – Type of assets to list, #GES_TYPE_EXTRACTABLE will list all assets
Returns:The list of GES.Asset the object contains
Return type:[GES.Asset]

List all asset filtering per filter as defined by filter. It copies the asset and thus will not be updated in time.

GES.play_sink_convert_frame(playsink, caps)[source]
Parameters:
  • playsink (Gst.Element) – The playsink to get last frame from
  • caps (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

Get the last buffer playsink showed

GES.pspec_equal(key_spec_1, key_spec_2)[source]
Parameters:
Return type:

bool

GES.pspec_hash(key_spec)[source]
Parameters:key_spec (object or None) –
Return type:int
GES.track_type_name(type)[source]
Parameters:type (GES.TrackType) –
Return type:str
GES.validate_register_action_types()[source]
Return type:bool
GES.version()[source]
Returns:
major:pointer to a int to store the major version number
minor:pointer to a int to store the minor version number
micro:pointer to a int to store the micro version number
nano:pointer to a int to store the nano version number
Return type:(major: int, minor: int, micro: int, nano: int)

Gets the version number of the GStreamer Editing Services library.