Add a subtitles workflow to Imagen ⚡

A new workflow will be required to add subtitle files to audio or video content

Introduction

Example Subtitle Workflow XML

Walkthrough Guide


Introduction

Only with a subtitles workflow can Imagen add subtitles to audio or video content. The XML below can be used to import a ready-made workflow into an Imagen Workflow Editor. Copy the text below into a text editor and save the file as "Subtitles Workflow.xml.  Then follow the walkthrough guide. 


Example Subtitle Workflow XML

<?xml version="1.0" encoding="utf-8"?>
<CISXMLDocument xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <Workflow id="872882D8-3C8B-42be-8F46-ED72B3AF32B0" name="Subtitles_Upload" auto-submit="0">
    <ProcessingCostMultiplier>0</ProcessingCostMultiplier>
    <Global-Inputs>
      <Input type="Int" sub-type="Record_ID" hidden="false" id="0" name="Record ID" maxOccurs="100">
        <connection maxOccurs="100">Retrieve Original Video:0</connection>
        <connection maxOccurs="1">Create annotations:1</connection>
      </Input>
      <Input type="Int" sub-type="Media_ID-Video" hidden="false" id="1" name="Media ID" maxOccurs="100">
        <connection maxOccurs="100">Retrieve Original Video:1</connection>
        <connection maxOccurs="1">Create annotations:2</connection>
      </Input>
    </Global-Inputs>
    <Workflow-Elements>
      <Workflow-Element id="Create annotations" type="CIS_CreateAnnotations" name="Create annotations" version="1.000000" locationX="529" locationY="310">
        <Inputs>
          <Pin type="FQ_MediaObject" hidden="false" id="0" name="Media" minOccurs="-1" />
          <Pin type="Int" sub-type="Record_ID" hidden="false" id="1" name="Record ID" />
          <Pin type="Int" sub-type="Media_ID,Layer_out-;Explicit Content;Label Detection;Logos;Object Tracking;Scenes;Transcript;Text Detection;Audio Effects;Blocks;Emotions;Faces;Frame Patterns;Keywords;Named Locations;Named People;Sentiments;Shots;Speakers;Topics" hidden="false" id="2" name="Media ID" minOccurs="-1" />
        </Inputs>
        <Outputs>
          <Pin type="Text" hidden="false" id="0" name="Completed" />
        </Outputs>
        <Properties>
          <Parameter type="Text" hidden="false" id="0" name="LayerName" />
          <Parameter type="Text" hidden="false" id="1" name="ExplicitContentDetection">Explicit Content</Parameter>
          <Parameter type="Text" hidden="false" id="2" name="LabelDetection">Label Detection</Parameter>
          <Parameter type="Text" hidden="false" id="3" name="LogoRecognition">Logos</Parameter>
          <Parameter type="Text" hidden="false" id="4" name="ObjectTracking">Object Tracking</Parameter>
          <Parameter type="Text" hidden="false" id="5" name="ShotChangeDetection">Scenes</Parameter>
          <Parameter type="Text" hidden="false" id="6" name="SpeechTranscription">Transcript</Parameter>
          <Parameter type="Text" hidden="false" id="7" name="TextDetection">Text Detection</Parameter>
          <Parameter type="Text" hidden="false" id="8" name="AudioEffects">Audio Effects</Parameter>
          <Parameter type="Text" hidden="false" id="9" name="Blocks">Blocks</Parameter>
          <Parameter type="Text" hidden="false" id="10" name="Emotions">Emotions</Parameter>
          <Parameter type="Text" hidden="false" id="11" name="Faces">Faces</Parameter>
          <Parameter type="Text" hidden="false" id="12" name="FramePatterns">Frame Patterns</Parameter>
          <Parameter type="Text" hidden="false" id="13" name="Keywords">Keywords</Parameter>
          <Parameter type="Text" hidden="false" id="14" name="NamedLocations">Named Locations</Parameter>
          <Parameter type="Text" hidden="false" id="15" name="NamedPeople">Named People</Parameter>
          <Parameter type="Text" hidden="false" id="16" name="Sentiments">Sentiments</Parameter>
          <Parameter type="Text" hidden="false" id="17" name="Shots">Shots</Parameter>
          <Parameter type="Text" hidden="false" id="18" name="Speakers">Speakers</Parameter>
          <Parameter type="Text" hidden="false" id="19" name="Topics">Topics</Parameter>
          <Parameter type="Int" hidden="false" id="20" name="MinimumConfidence">0</Parameter>
        </Properties>
      </Workflow-Element>
      <Workflow-Element id="Retrieve Original Video" type="CIS_RetrieveMedia" name="Media Retriever" version="2.000000" locationX="219" locationY="307">
        <Inputs>
          <Pin type="Int" sub-type="Record_ID" hidden="false" id="0" name="Record ID" maxOccurs="100" />
          <Pin type="Int" sub-type="Media_ID" hidden="false" id="1" name="Media ID" maxOccurs="100">
            <Dependence condition="P1:">
              <Attribute id="&quot;&quot;Media_ID-&quot;&quot;:P1&quot;subtype&quot;" attribute="subtype" />
            </Dependence>
          </Pin>
          <Pin type="Int" sub-type="Profile" hidden="false" id="2" name="Profile" minOccurs="0" maxOccurs="100">
            <Dependence condition="P1:-1">
              <Attribute attribute="minOccurs">1</Attribute>
            </Dependence>
          </Pin>
          <Pin type="Int" sub-type="Start_Frame" hidden="false" id="3" name="Start" minOccurs="-1" maxOccurs="100" />
          <Pin type="Int" sub-type="End_Frame" hidden="false" id="4" name="End" minOccurs="-1" maxOccurs="100" />
          <Pin type="Text" sub-type="ExternalURLs" hidden="false" id="6" name="ExternalURLs" minOccurs="-1" />
        </Inputs>
        <Outputs>
          <Pin type="FQ_MediaObject" sub-type="Video" hidden="false" id="0" name="Media" maxOccurs="100" />
          <Pin type="FQ_MediaObject" sub-type="Image" hidden="false" id="1" name="Custom Image" maxOccurs="100" propertyIDForCount="3" />
          <Pin type="FQ_MediaObject" sub-type="Subtitles" hidden="false" id="2" name="Subtitles (English GB (en-GB))" maxOccurs="100" />
        </Outputs>
        <Properties>
          <Parameter type="Int" hidden="false" id="0" name="Database">13</Parameter>
          <Parameter type="Int" sub-type="Video" hidden="false" id="1" name="Profile">-2</Parameter>
          <Parameter type="Int" hidden="false" id="2" name="Flags">1</Parameter>
          <Parameter type="Count" hidden="false" id="3" name="Output Count">0</Parameter>
          <Parameter type="Text" sub-type="Subtitle" hidden="false" id="4">en-GB</Parameter>
        </Properties>
        <Connections>
          <Connector id="2">
            <connection maxOccurs="1">Create annotations:0</connection>
          </Connector>
        </Connections>
      </Workflow-Element>
    </Workflow-Elements>
    <Client-Attributes>
      <Usage>GeneralUse</Usage>
      <Database>13</Database>
      <Allow-Batch>1</Allow-Batch>
      <SingleJob>false</SingleJob>
      <ACL>
        <Role RoleID="8" Type="2" Rights="1" Organisation="">Imagen Ltd SSO</Role>
      </ACL>
    </Client-Attributes>
    <EmailProperties version="" updateType="None">
      <Properties />
    </EmailProperties>
  </Workflow>
</CISXMLDocument>

Walkthrough Guide