Skip to main content
Skip table of contents

Add custom tags from other source

Here is a guide how you can use your own source to add tags.
For example to use your own machine learning models to add tags for an elements.

There are three options where we can insert new tags programmatically. Point 2. and 3. are very similar.

  1. Pre Ingest Load hook file

  2. Custom Transcoding Task during the ingest or re-render with the API

  3. after an element is ingested via the API

This script can be used as a extra transcoding task with a custom command:

https://github.com/das-element/resources/blob/main/misc/create_custom_tags.py

Using this example requires a CLI license with the API support of the software.

  1. setup the Python API - API documentation

  2. create a new Transcoding Tempalte

  3. add this as a extra-task to the Template Mapping

  4. download this Python file

  5. get the exec and params from the python file info text

    CODE
    # e.g. for Linux
    
    exec:
    /usr/bin/python3
    params:
    "$DASELEMENT_RESOURCES/scripts/custom/create_custom_tags.py" <element.uuid>
  6. make sure to update the library_path value in the Python file

  7. the extra-tasks will be executed after the Main and Proxy transocding jobs are down

The library settings should look something like this in the end:

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.