Cinegy Convert supports automatic execution of PowerShell scripts for various specific cases.

Press the Profile_Editor_browse_iconbutton in the "Pre initialization" field to apply a script to be processed before the task initialization:

scripting_parameters

The following dialog appears:

script_editor_empty

script_import_button

Press the "Import" button to select an existing PowerShell script from the "Import script from" dialog that appears.

The script will be loaded to the dialog. You can edit it directly via the keyboard, if necessary:

script_editor_loaded

script_export_button

The currently loaded script can be saved as a PS1 file by pressing the "Export" button and defining its location and name in the "Export script as" dialog that appears.

Press "OK".

You can also apply a script to be executed when the task processing is finished in the same way by pressing the Profile_Editor_browse_iconin the "Post processing" field.

With the script(s) applied, the field value(s) in the profile editing form will be changed correspondingly:

script_is_set

To expel a selected script, click Profile_Editor_Edit_iconand select the "Clear" command:

Clear_field_value

Examples

Pre Initialization Scripting

Pre initialization script will be executed prior to the task processing start. It is used for defining additional metadata for a task, for instance, scan the file, calculate the MD5 hash value and locate it into one of the macros, which can further be used in profiles, for example when importing into the Cinegy Archive database.

A sample script provided by Cinegy for download from Github enables generating TrafficID by a certain pattern.

Post Processing Script

Post processing script will be applied on full task processing completion, once the file is created or node is registered in the Cinegy Archive database.

A sample script provided by Cinegy for download from Github uploads the video file processed by Cinegy Convert on Facebook.