Add Metadata

Inject a file or sockets contents as metadata to each frame.

Overview

Add Metadata to frames. Connects to a port and injects data read from the port as metadata to each frame.

Inputs & Outputs

  • Inputs : 1, Media Format : Any
  • Outputs : 1, Media Format: Same as Input
  • Output Metadata : See below.

Properties

PropertyDescriptionTypeDefaultRequired
source_uriReads newline-delimited text from this URI and appends it to frame metadata.stringnullYes
  • URI format: tcp://<ip-address>:<port>
  • Node will connect to this Port & IP Address and add received data as metadata. \n is used as a data delimiter.

Output Metadata

The fields below are declared by this node's metadata schema; any JSON values are representative examples.

PathTypeDescription
<node_id>.metadatastringText as retrieved from the socket.
<node_id>.typestringIdentifies the node type that produced this metadata.

JSON example

{
  "metadata_add1": {
    "metadata": "value",
    "type": "metadata_add"
  }
}

Did this page help you?