Skip to content

Render Engine Configurations

You will need to configure your render engine of choice to work with Erizos Studio, to do so:

  1. Open the user menu in the top-right corner of Studio and press Settings.
  2. If you are not logged in as an administrator, press Unlock Advanced Settings at the bottom of the dialog.
  3. Enter administrator credentials.

    Info

    Default Username : admin
    Default Password : admin

    Opening Advanced settings

  4. Under Global Settings, choose the Renderers tab and enter your settings for each render engine you would like to configure by following the stages below.

Info

Every renderer is a card with an enable switch in its title. The settings only appear once the switch is on, and Studio then checks the connection and shows the result next to the renderer's name.

Note

Changing a renderer setting requires a restart: after Save Settings you are asked to confirm "To apply changes Studio Server needs to be restarted".

Vizrt Engine

In order to configure the Vizrt Engine follow those steps -

  1. Ensure Vizrt GH Rest is installed and reachable (it is used on port 19398 by default).
  2. Enable Vizrt by toggling the switch.
  3. Fill in GH Address (the Graphic Hub host name or IP; localhost by default).
  4. Fill in GH Username (Guest by default).
  5. Enter the GH Password, leave empty if no password is set for GH user.
  6. Optionally turn on Advanced Options to change:
    • GH Port - the Graphic Hub port, 19396 by default.
    • GH Rest Port - the Graphic Hub REST port, 19398 by default.
    • HTTPS - use HTTPS for the Graphic Hub REST connection.

Vizrt config

Unreal Engine

To configure Unreal Engine:

  1. Ensure the Unreal Projects path is accessible from all render engines, access via IP address is recommended (e.g. \\127.0.0.1\path\to\projects).
  2. Toggle the switch to enable Unreal Engine.
  3. Choose where the projects come from with the CreativeHub / Projects Folder buttons:
    • Projects Folder - select the folder where your projects are stored (see the Warning box below).
    • CreativeHub - select or type the address of the machine running CreativeHub, and fill in the Username and Password used to access it.
  4. Select whether to Launch Engine In Editor Mode (see the Info box below).
  5. Turn on Support Multi Output (Motion Design) if your projects use Unreal Motion Design with several outputs.
  6. Press Save Settings.

Warning

All Unreal Projects that will be controlled via Erizos Studio should be saved under the folder that is defined as the project folder. Ensure the path you provide is the folder where your projects are stored, not the path of the Project itself.

Info

Launch Engine In Editor Mode - if turned on, Erizos Studio will launch the Unreal Engine in Editor mode if no instance of Unreal is running.

Unreal config

Pixotope

Pixotope is configured exactly like Unreal Engine:

  1. Toggle the switch to enable Pixotope.
  2. Choose the source of the projects with the CreativeHub / Projects Folder buttons, and fill in the folder, or the CreativeHub address, Username and Password.
  3. Turn on Launch Engine In Editor to have Studio start the engine in editor mode when no instance is running.
  4. Turn on Support Multi Output (Motion Design) if your projects use Motion Design with several outputs.
  5. Press Save Settings.

Singular.live

  1. Toggle the switch to enable Singular.
  2. Fill in Singular Username.
  3. Fill in Singular Password.
  4. Press Save Settings.

Singular config

Info

Use Asset Browser - turn on if you want to use the Singular Storage as the media provider, instead of MediaHub or local storage.

Note

The connection to Singular is only checked once both the username and the password have been filled in.

CasparCG

To ensure smooth operation with local preview and media access, specific settings and folder structures must be configured.

Prerequisites:
1. CasparCG Installation
Ensure that CasparCG is installed at C:\CasparCG. Erizos Studio will automatically launch it from this directory.
2. Media Path Configuration
To allow CasparCG to access media from the Erizos Studio Agent, the media-path parameter in the CasparCG configuration file must be set. By default, this path should point to the Agent’s cache folder:
C:\ProgramData\Erizos\Agent\Cache
(or whatever is set as the Agent's Cache → Folder)
3. Template Organization
In the Renderers tab, the CasparCG card holds a single setting, Assets Folder. Templates are read from a Templates sub-folder of that folder, for example D:\Projects\Caspar\Templates.

CasparCG setup

Ensure these settings are correctly applied before proceeding with any further configurations.

Info

Inside the Templates folder, sub-folders whose name starts with _ are hidden from the Templates Manager. A thumbnail for a template is read from _Thumbnails\<template name>.png next to the script.

CasparCG Templates

Each template should implement the following functions:

  1. import (required) - Defines the template's exposed fields, which are necessary for proper integration and interaction.
  2. in (optional) - Specifies the commands that should be executed when the user invokes the action take in.
  3. out - (optional) - Specifies the commands that should be executed when the user invokes the action take out.
  4. trigger (optional) -Specifies the commands that should be executed when the user clicks on a defined action.

Their signatures are:

1
2
3
4
import(): Field[];
in(channel: number, payload: any, isPreview: boolean): string[];
out(channel: number, payload: any, isPreview: boolean): string[];
trigger(channel: number, action: string): string[];

Each of them returns the list of CasparCG commands to send. The action passed to trigger has the form <field id>|<action>.

Below are examples of CasparCG projects available for testing. Please feel free to refine or adjust them as necessary.

Download ZIP File

You can define a field as MEDIA to allow it to accept images, videos, or audio. Alternatively, you can specify it as IMAGE, VIDEO or AUDIO to restrict the field to only one type of media.

Info

Besides the template's own functions, Studio sends two sets of commands by itself: before a page is taken it sends one LOADBG <channel> <asset> per media asset that has not been loaded on that channel yet, and Clear sends CLEAR <channel> followed by MIXER <channel> CLEAR.

How to Create a Template

Creating templates for CasparCG in Erizos Studio is a manual process, as CasparCG does not have an editing tool like most render engines. A CasparCG template in Erizos Studio is defined by a simple JavaScript file that is described below. To create a template and make it available in the Templates Manager for adding to your playlist, follow these steps:

  • Create the JavaScript File: Use the JavaScript code provided below and copy it into your preferred code editor.
  • Modify the Fields: Update fields such as id, title, type, and value according to your needs. You can also add other necessary fields, such as Text, by creating a field ID, specifying the type, and assigning a value.
  • Save the File: Save this .js file into the Templates folder under the Assets Folder set for this renderer in Studio’s Settings.
  • Open Templates Manager: Select CasparCG in the Templates Manager and choose the template you need.
  • Add template to Playlist: Once you have added the template as a page to your playlist, you can choose an image or video and set the necessary parameters in Studio.

Tip

If you have modified the existing template, just click on it in Studio's Playlist and press 'Reimport'. Studio keeps the script in memory after the first use, so a change to the .js file only takes effect after a Reimport.

Warning

The file is evaluated as a script and the last expression in it is taken as the template object. Put the object literal last, in parentheses, and do not call anything after it.

By following these steps, you can create the necessary amount of templates, each as a .js file, and customize them to suit your requirements.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
// Temporary object to store position and scale
let temp = {};

// Template definition object
({
  // Import function defining template fields and their properties:
  import: () => [
    { id: 'media', title: 'Image / Video', type: 'MEDIA', value: '' },
    { id: 'loc', title: 'Position & Size', type: 'NONE', fields: [
      { id: 'Position', type: 'VERTEX2D', value: { x: 0, y: 0 }, meta: { minimum: { x: -100, y: -100 }, maximum: { x: 100, y: 100 }, step: 0.1 } },
      { id: 'Scale', type: 'VERTEX2D', value: { x: 100, y: 100 }, meta: { minimum: { x: 0, y: 0 }, linked: true, step: 0.01, precision: 2 } },
    ]},
    { id: 'color', title: 'Color', type: 'NONE', fields: [
      { id: 'Brightness', type: 'DOUBLE', value: 100, meta: { minimum: 0, maximum: 200, step: 0.1 } },
      { id: 'Saturation', type: 'DOUBLE', value: 100, meta: { minimum: 0, maximum: 200, step: 0.1 } },
      { id: 'Contrast', type: 'DOUBLE', value: 100, meta: { minimum: 0, maximum: 200, step: 0.1 } },
    ]},
  ],

  // Called when you press 'Take IN'
  in: (channel, data, isPreview) => {
    const commands = [];
    if (data.media)
      commands.push(`PLAY ${channel}-1 ${data.media}`);

    const { loc, color } = data;
    temp.pos = loc?.Position ?? temp.pos;
    temp.scale = loc?.Scale ?? temp.scale;
    if (temp.pos && temp.scale)
      commands.push(`MIXER ${channel}-1 FILL ${temp.pos.x / 100} ${temp.pos.y / 100} ${temp.scale.x / 100} ${temp.scale.y / 100}`);

    if (color?.Brightness !== undefined)
      commands.push(`MIXER ${channel}-1 BRIGHTNESS ${color.Brightness / 100}`);

    if (color?.Saturation !== undefined)
      commands.push(`MIXER ${channel}-1 SATURATION ${color.Saturation / 100}`);

    if (color?.Contrast !== undefined)
      commands.push(`MIXER ${channel}-1 CONTRAST ${color.Contrast / 100}`);

    return commands;
  },

  // Called when you press 'Take OUT'
  out: (channel) => [
    `CLEAR ${channel}`,
  ],
});

Supported Field types

Warning

Field type names are matched exactly and are always upper case.

Field type Description Returned value Example
NONE Used to group other fields
BOOLEAN Indicates if the feature is enabled, default: false “true” or “false” value { id: 2, type: 'BOOLEAN', value: true, meta: { description: 'Indicates if the feature is enabled', default: false } }
INTEGER Represents the count of items a whole number { id: 3, type: 'INTEGER', value: 42, meta: { minimum: 0, maximum: 100, step: 1, description: 'Represents the count of items' } }
DOUBLE Represents a floating-point number with high precision a float value { id: 4, type: 'DOUBLE', value: 3.14159, meta: { minimum: 0.0, maximum: 10.0, step: 0.01, description: 'Represents a precise measurement' } }
STRING Renders a single line text input one line string { id: 5, type: 'STRING', value: "Example text", meta: { description: "Renders a single line text input", maxLength: 255, placeholder: "Enter text here" } }
TEXT Renders a multiline text input multiline text { id: 6, type: 'TEXT', value: "This is an example of multiline text input.\nIt supports multiple lines.", meta: { description: "Renders a multiline text input", maxLength: 1000, placeholder: "Enter detailed information here" } }
COLOR rrggbbaa { id: 7, type: 'COLOR', value: "FF5733FF", meta: { description: "Represents a color value in rrggbbaa format", default: "FFFFFFFF" } }
IMAGE path to the image file on local disk or empty string { id: 8, type: 'IMAGE', value: "/path/to/image.jpg", meta: { description: "Represents the path to the image file on local disk or an empty string", default: "", fileTypes: ["jpg", "png", "gif"] } }
VIDEO path to the video file on local disk or empty string { id: 9, type: 'VIDEO', value: "/path/to/video.mp4", meta: { description: "Represents the path to the video file on local disk or an empty string", default: "", fileTypes: ["mp4", "mov", "avi"] } }
AUDIO path to the audio file on local disk or empty string { id: 10, type: 'AUDIO', value: "/path/to/audio.mp3", meta: { description: "Represents the path to the audio file on local disk or an empty string", default: "", fileTypes: ["mp3", "wav", "aac"] } }
MEDIA Renders a media picker that allows the user to select an image, video or audio file path to the video file on local disk or empty string { id: 11, type: 'MEDIA', value: "/path/to/media.file", meta: { description: "Renders a media picker that allows the user to select an image, video, or audio file", default: "", fileTypes: ["jpg", "png", "gif", "mp4", "mov", "avi", "mp3", "wav", "aac"] } }
VERTEX2D X,y float values { id: 1, type: 'VERTEX2D', value: { x: 0, y: 0 }, meta: { minimum: { x: -100, y: -100 }, maximum: { x: 100, y: 100 }, step: 0.1 } }
VERTEX3D X,y float values { id: 13, type: 'VERTEX3D', value: { x: 0.0, y: 0.0, z: 0.0 }, meta: { description: "Represents a 3D vertex with X, Y, and Z float values", minimum: { x: -100.0, y: -100.0, z: -100.0 }, maximum: { x: 100.0, y: 100.0, z: 100.0 }, step: 0.1 } }

Note

IMAGE, VIDEO and MEDIA values are rewritten to a path relative to the Agent's cache folder before they are sent to CasparCG, which is why the media-path must point at that folder.

Generic

The Generic renderer lets you drive a device or a service that Erizos Studio has no dedicated system for, by writing the integration yourself in JavaScript.

  1. Navigate to Settings → Global Settings → Renderers → Generic.
  2. Toggle the switch to enable Generic.
  3. In Templates Folder, select the folder holding your template scripts.
  4. Press Save Settings.

Each template is a .js file in that folder. The script is loaded into a worker thread and is given an exports object to fill in:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
// The layers this template exposes
exports.templates = [
  { id: 'Layer1', title: 'Layer 1', fields: [
    { id: 'text', title: 'Text', type: 'STRING', value: '' },
  ]},
];

exports.in      = async (engine, payload, isPreview) => { /* ... */ };
exports.out     = async (engine, payload, isPreview) => { /* ... */ };
exports.set     = async (engine, payload, isPreview) => { /* ... */ };
exports.update  = async (engine, payload, isPreview) => { /* ... */ };
exports.load    = async (engine, payload, isPreview) => { /* ... */ };
exports.prepare = async (engine, assets) => { /* ... */ };
exports.trigger = async (engine, payload) => { /* ... */ };
  • exports.templates is required; every entry becomes a layer of the imported template.
  • Every command function is optional - only the ones you define are called.
  • engine carries the output's id, address, port and type.
  • log(op, message, meta) writes to the Studio log, and require is available for Node modules.

OSC

To integrate OSC (Open Sound Control) with Erizos Studio, users simply need to specify the folder containing the OSC-based templates. This can be done through the settings:

  1. Navigate to Settings → Global Settings → Renderers → OSC.
  2. Toggle the switch to enable OSC, then set the Templates Folder where the OSC templates are stored.

OSC setup

Note

When you add an OSC output to a profile, the engine uses UDP port 9000 unless another port is set on the engine.

Users can create custom UIs that can control multiple OSC devices.

To send OSC commands directly from Erizos Studio, users can utilize the UI Builder Send Command API that supports sending of both single values and arrays of values.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
// A single value
Api.profile.program.sendCommand('OSC', {
  parameter: 'MyParameterName',
  value: 0.5
});

// Several values in one message
Api.profile.program.sendCommand('OSC', {
  parameter: 'MyParameterName',
  values: [0.5, true, 'Label']
});

parameter is required. When values is given it is used and value is ignored.

OSC Templates

OSC Templates are essentially JSON files that define the structure and behavior of the OSC integration. These JSON files describe the following key elements:

  • Exposed Fields: Specifies the data points that can be controlled via OSC.
  • ID: The OSC address of the field.
  • Type: The data type of each field.

A template lives at <Templates Folder>/<folder>/<file>.json and has this shape:

1
2
3
4
5
6
7
8
9
{
  "level": "MyLevel",
  "properties": [
    { "id": "/mixer/1/fader", "title": "Fader", "type": "DOUBLE", "value": 0.5, "min": 0, "max": 1 },
    { "id": "/mixer/1/mute", "title": "Mute", "type": "BOOLEAN", "value": false },
    { "id": "/mixer/1/label", "title": "Label", "type": "STRING", "value": "", "caps": true, "maxCharacters": 16 },
    { "id": "/mixer/1/preset", "title": "Preset", "type": "OPTIONS", "value": "A", "options": ["A", "B", "C"] }
  ]
}

Each property in the json has the following interface:

interface IOSCProperty {
  id: string;
  title: string;
  type: string;
  value: any;
  min?: number;
  max?: number;
  linked?: boolean;
  caps?: boolean;
  maxCharacters?: number;
  options?: string[];
}

The supported type values are BOOLEAN, INTEGER, DOUBLE, STRING, IMAGE, COLOR and OPTIONS. min and max apply to INTEGER and DOUBLE, caps and maxCharacters to STRING, and options to OPTIONS. A property with any other type is skipped. When title is left out, the last segment of the id is used instead.

Attached below is an example of OSC Template you can test.

Download ZIP File

Composer

Starting from version 3.3, Composer is available as a new output option for rendering graphical content in an HTML format. Once configured, Composer generates an HTML page containing your graphics and animations. This output can be opened directly in a browser or embedded into web applications.

Studio keeps a live link to the page it renders, so the content updates dynamically in real time.

Configuring Composer

1. Enable Composer in Renderers

  1. Open Studio → Settings → Global Settings → Renderers.
  2. Turn on the Composer toggle.

2. Select the Templates Folder

Click the folder icon next to Templates Folder and select the directory that holds your Composer and OGraf projects.

Note

If the path does not exist, the Composer card reports "Projects folder does not exists" and the renderer will not connect.

3. Enable Composer for Live Preview

  1. Go to Settings → User Settings → Live Local Preview.
  2. Check that the Composer switch is on. Every enabled renderer is listed here and each is on by default.

4. Add Composer to Outputs

  1. Open Profile settings → Outputs.
  2. Click Add Output.
  3. Select Composer from the list of available output types.
  4. Give the output a Name.
  5. Select the Machine IP where Composer will run.
  6. Press Save.
  7. Add the configured Composer output to the required Output Channel(s).

Use Cases

Use Case Description
Browser Viewing Display real-time graphics directly in a web browser.
Embedding Integrate HTML output into custom web apps or dashboards.
Remote Control Send graphics to cloud-hosted, remote, or distributed systems.

OGraf

Starting from version 3.4, OGraf is available as an alternative HTML rendering mode within Composer. OGraf operates through the same Composer infrastructure but provides a different approach to HTML-based graphics rendering.

A Composer project is a folder holding a graphics.json manifest; an OGraf project is a folder holding an *.ograf.json manifest instead. Both live in the same Templates Folder.

Configuring OGraf

OGraf uses the same configuration as Composer:

  1. Follow all steps in the Composer section above to configure the Composer renderer.
  2. Once Composer is configured, OGraf projects will automatically become available.

Using OGraf Templates

  1. Open Templates Manager.
  2. In the renderer dropdown, select Composer.
  3. Choose an OGraf project from the available templates.
  4. Add the template to your playlist and use it like any other graphics template.

The OGraf manifest

Key Meaning
name The template name shown in Studio.
main The entry script of the graphic. Defaults to graphic.mjs.
schema The property schema; each property becomes an exposed field.
customActions Each entry becomes an Action field on the page, using its id and name.
v_erizos.group Optional group name - see OGraf Groups below.

Key Differences

OGraf shares Composer's infrastructure and the commands the player handles - LOAD, CLEAR, IN, OUT, CONTINUE, SET and TRIGGER - but it operates as a separate rendering mode with its own project structure. Both Composer and OGraf projects can be used simultaneously in your workflow through the same Composer configuration.

OGraf Groups

Templates can be assigned to a group by adding a group field to the v_erizos section of the OGraf manifest file:

{
  "v_erizos": {
    "group": "my-group-name"
  }
}

When a template belonging to a group is taken In, all other templates from the same group that are currently In will automatically be taken Out. This is useful for managing mutually exclusive graphics, such as lower thirds that should not appear simultaneously.