# Initialization

GES needs to be initialized after GStreamer itself. This section contains the various functions to do so.

## Functions

### ges_deinit

    ges_deinit ()

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.prototype.deinit

    function GES.prototype.deinit(): {
        // javascript wrapper for 'ges_deinit'
    }

Clean up any resources created by GES in GES.prototype.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.prototype.init was called.

After this call GES should not be used until another GES.prototype.init call.

### GES.deinit

    def GES.deinit ():
        #python wrapper for 'ges_deinit'

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_init

    gboolean
    ges_init ()

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.

Returns –
No description available

### GES.prototype.init

    function GES.prototype.init(): {
        // javascript wrapper for 'ges_init'
    }

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.prototype.deinit) in the thread where GES.prototype.init was called.

Returns ( Number ) –
No description available

### GES.init

    def GES.init ():
        #python wrapper for 'ges_init'

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.

Returns ( bool ) –
No description available

### ges_init_check

    gboolean
    ges_init_check (int* argc,
                    char*** argv,
                    GError ** error)

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.

Parameters:

`argc` ( [inout] [allow-none] ) –

pointer to application's argc

`argv` ( [inout] [array length=argc] [allow-none] ) –

pointer to application's argv

`error` –
No description available
Returns –

TRUE if GES could be initialized.

### GES.prototype.init_check

    function GES.prototype.init_check(argc: Number, argv: [ String ]): {
        // javascript wrapper for 'ges_init_check'
    }

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.

Parameters:

`argc` ( Number ) –

pointer to application's argc

`argv` ( [ String ] ) –

pointer to application's argv

Returns a tuple made of:

( Number ) –

true if GES could be initialized.

`argc` ( Number ) –

true if GES could be initialized.

`argv` ( [ String ] ) –

true if GES could be initialized.

### GES.init_check

    @raises(GLib.GError)
    def GES.init_check (argc, argv):
        #python wrapper for 'ges_init_check'

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.

Parameters:

`argc` ( int ) –

pointer to application's argc

`argv` ( [ str ] ) –

pointer to application's argv

Returns a tuple made of:

( bool ) –

True if GES could be initialized.

`argc` ( int ) –

True if GES could be initialized.

`argv` ( [ str ] ) –

True if GES could be initialized.

### ges_init_get_option_group

    GOptionGroup *
    ges_init_get_option_group ()

Returns a GOptionGroup with GES's argument specifications. The group is set up to use standard GOption callbacks, so when using this group in combination with GOption parsing methods, all argument parsing and initialization is automated.

This function is useful if you want to integrate GES with other libraries that use GOption (see g_option_context_add_group ).

If you use this function, you should make sure you initialise the GStreamer as one of the very first things in your program. That means you need to use gst_init_get_option_group and add it to the option context before using the ges_init_get_option_group result.

Returns ( [transfer: full] ) –

a pointer to GES's option group.

### ges_is_initialized

    gboolean
    ges_is_initialized ()

Use this function to check if GES has been initialized with ges_init or ges_init_check.

Returns –

TRUE if initialization has been done, FALSE otherwise.

Since : 1.16

### GES.prototype.is_initialized

    function GES.prototype.is_initialized(): {
        // javascript wrapper for 'ges_is_initialized'
    }

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

Returns ( Number ) –

true if initialization has been done, false otherwise.

Since : 1.16

### GES.is_initialized

    def GES.is_initialized ():
        #python wrapper for 'ges_is_initialized'

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

Returns ( bool ) –

True if initialization has been done, False otherwise.

Since : 1.16

### ges_validate_register_action_types

    gboolean
    ges_validate_register_action_types ()

Returns –
No description available

### GES.prototype.validate_register_action_types

    function GES.prototype.validate_register_action_types(): {
        // javascript wrapper for 'ges_validate_register_action_types'
    }

Returns ( Number ) –
No description available

### GES.validate_register_action_types

    def GES.validate_register_action_types ():
        #python wrapper for 'ges_validate_register_action_types'

Returns ( bool ) –
No description available

### ges_version

    ges_version (guint * major,
                 guint * minor,
                 guint * micro,
                 guint * nano)

Gets the version number of the GStreamer Editing Services library.

Parameters:

`major` ( [out] ) –

pointer to a guint to store the major version number

`minor` ( [out] ) –

pointer to a guint to store the minor version number

`micro` ( [out] ) –

pointer to a guint to store the micro version number

`nano` ( [out] ) –

pointer to a guint to store the nano version number

### GES.prototype.version

    function GES.prototype.version(): {
        // javascript wrapper for 'ges_version'
    }

Gets the version number of the GStreamer Editing Services library.

### GES.version

    def GES.version ():
        #python wrapper for 'ges_version'

Gets the version number of the GStreamer Editing Services library.

The results of the search are