Conversion matrix structure
The media matrix is a JSON array composed of a JSON configuration for each of its processing flows. Each flow has the following structure:
{
"name": "FlowName",
"priority": 100,
"extensions": [
"extension_1",
"extension_2"
],
"flow": {
"tasks": {
...
}
},
"output": {
"location": "local",
"renditions": {
...
}
}
}
The following table describes the parameters of this JSON:
|
Parameter |
Type |
Description |
|---|---|---|
|
|
String |
Processing flow name. |
|
|
Integer |
Priority of the processing flow. |
|
|
Array of strings |
Array of file types to which the flow applies. |
|
|
List |
List of tasks. |
|
|
List |
List of JSON-formatted processing tasks. |
|
|
List |
Configuration parameters of the output file. |
|
|
String |
Location for the output. |
|
|
List |
List of JSON-formatted rendition links. |
Processing task parameters
The tasks parameter contained in flow is a list of task objects, each following the structure:
"[task_name]": {
"property_1": value_1,
"property_2": value_2,
...
}
where [task_name] is the name of the processing task and the valid properties, listed on the following tabs, depend on the task type.
Store file
|
Parameter |
Type |
Description |
|---|---|---|
|
|
String |
Defines whether the file is an attachment or provided inline. |
|
|
String |
ContentType/MimeType for the output file. |
|
|
String |
Name of the property where the source file key is found. |
|
|
String |
Name of the property to which the output file key is saved. |
|
|
String |
The name of the file provider where the output file is saved. |
|
|
String |
Task type. |
Convert image
|
Parameter |
Type |
Description |
|---|---|---|
|
|
String |
Name of an embedded clipping path from an 8BIM image profile when more than one path is available. This applies the conversion to the selected pixels under the specified path only. If a clipping path is set, the extra conversion parameters are ignored. |
|
|
String |
Color profile applied to the output image. |
|
|
String |
Color space applied to the output image. |
|
|
String |
Defines whether the file is an attachment or provided inline. |
|
|
String |
ContentType/MimeType for the output file. |
|
|
List |
Order in which the ImageMagick parameters occur. |
|
|
String |
Additional ImageMagick parameters to use in a command. |
|
|
String |
Linked to |
|
|
Integer |
DPI used for the output image. Parameter required with ImageMagick. |
|
|
String |
An ordered, comma-separated list of previews. The processing agent checks for availability of these previews in the RAW file metadata. If a preview is available, the agent applies default image conversion to it to generate the target image. If none of the listed previews are available, the agent applies default image conversion to the original image instead. |
|
|
Integer |
Height of the output image when resizing. |
|
|
Integer |
Period, in seconds, after which ImageMagick times out. The maximum permitted time-out for ImageMagick is 120 seconds. |
|
|
Integer |
Period, in seconds, after which the Identify application within ImageMagick times out. |
|
|
String |
Method use to resize images. |
|
|
String |
Name of the property where the source file key is found. |
|
|
Integer |
Quality level of conversion when the output is a JPEG file. |
|
|
Boolean |
Determines whether existing transparency should be kept or when converting PDF to PNG. |
|
|
Boolean |
Defines whether only the first page or multiple pages of the file should have its renditions created. |
|
|
String |
Name of the property to which the output file key is saved. |
|
|
String |
The name of the file provider where the output file is saved. |
|
|
String |
Algorithm use for cropping. |
|
|
String |
Linked to |
|
|
Double |
Linked to |
|
|
String |
Extension of the output file. |
|
|
String |
Task type. |
|
|
Integer |
Width of the output image when resizing. |
Convert video
|
Parameter |
Type |
Description |
|---|---|---|
|
|
Integer |
Defines the quality of the rendition based on the original file. |
|
|
String |
Defines whether the file is an attachment or provided inline. |
|
|
String |
ContentType/MimeType for the output file. |
|
|
String |
Additional ImageMagick parameters to use in a command. |
|
|
Integer |
Height of the output video when resizing. |
|
|
String |
Name of the property where the source file key is found. |
|
|
Integer |
Duration of the output file, in seconds. |
|
|
String |
Name of the property to which the output file key is saved. |
|
|
String |
The name of the file provider where the output file is saved. |
|
|
Integer |
The maximum number of frames from the video to use in the preview. |
|
|
Timecode |
The time point in the video from which the rendition starts. For example, with a value of 5 the output file starts at the fifth second of the original file. |
|
|
String |
Extension of the output file. |
|
|
Timecode |
Specific end point of a video you wish to extract (used for clipping feature). |
|
|
Timecode |
Specific start point in a video you wish to extract (used for clipping feature). |
|
|
String |
Task type. |
|
|
Integer |
Width of the output video when resizing. |
Convert document
|
Parameter |
Type |
Description |
|---|---|---|
|
|
String |
Defines whether the file is an attachment or provided inline. |
|
|
String |
ContentType/MimeType for the output file. |
|
|
Boolean |
Determines whether to use text from the document for full-text searches. |
|
|
String |
Name of the property where the source file key is found. |
|
|
Boolean |
Defines whether the output file uses compression methods to reduce the file size. |
|
|
String |
Name of the property to which the output file key is saved. |
|
|
String |
The name of the file provider where the output file is saved. |
|
|
Boolean |
Defines whether only the first page or multiple pages of the file should have its renditions created. |
|
|
String |
Task type. |
Convert HTML
|
Parameter |
Type |
Description |
|---|---|---|
|
|
String |
ContentType/MimeType for the output file. |
|
|
String |
Defines whether the file is an attachment or provided inline. |
|
|
String |
Name of the property where the source file key is found. |
|
|
String |
Name of the property to which the output file key is saved. |
|
|
String |
The name of the file provider where the output file is saved. |
|
|
String |
Task type. |
Create storyboard
|
Parameter |
Type |
Description |
|---|---|---|
|
|
String |
Color space applied to the output image. |
|
|
String |
ContentType/MimeType for the output file. |
|
|
String |
Defines whether the file is an attachment or provided inline. |
|
|
Integer |
DPI use for the output image. Parameter required with ImageMagick. |
|
|
String |
Name of the property where the source file key is found. |
|
|
String |
Name of the property to which the output file key is saved. |
|
|
String |
The name of the file provider where the output file is saved. |
|
|
Integer |
Width of the thumbnail when seeking in a video. |
|
|
Integer |
Height of the thumbnail when seeking in a video. |
|
|
Integer |
Number of frames used for seeking in a video. |
|
|
Integer |
Width of the thumbnail for the storyboard rendition. |
|
|
Integer |
Height of the thumbnail for the storyboard rendition. |
|
|
Integer |
Number of frames used for the storyboard rendition. |
|
|
String |
Extension of the output file. |
|
|
String |
Task type. |
Extracting clipping paths
|
Parameter |
Type |
Description |
|---|---|---|
|
|
String |
Name of the property where the source file key is found. |
|
|
String |
Name of the property to which the output file key is saved. |
|
|
String |
The name of the file provider where the output file is saved. |
|
|
String |
Task type. |
Extract metadata
|
Parameter |
Type |
Description |
|---|---|---|
|
|
String |
ContentType/MimeType for the output file. |
|
|
String |
Defines whether the file is an attachment or provided inline. |
|
|
String |
Name of the property where the source file key is found. |
|
|
String |
Name of the property to which the output file key is saved. |
|
|
String |
The name of the file provider where the output file is saved. |
|
|
String |
Task type. |
Extract vision data
|
Parameter |
Type |
Description |
|---|---|---|
|
|
String |
Defines whether the file is an attachment or provided inline. |
|
|
String |
ContentType/MimeType for the output file. |
|
|
String |
Types of content to analyze. |
|
|
String |
Send a request to either the OCR endpoint for text recognition both to the Analyze endpoint for image features recognition. |
|
|
List |
Features to extract. |
|
|
Boolean |
Determines whether the OCR feature detects the orientation of text. |
|
|
String |
Name of the property where the source file key is found. |
|
|
String |
Name of the property to which the output file key is saved. |
|
|
String |
The name of the file provider where the output file is saved. |
|
|
Double |
The minimum accuracy level for analysis. |
|
|
String |
Task type. |
Extract video indexer data
|
Parameter |
Type |
Description |
|---|---|---|
|
|
Integer |
Determines the number of key frames in a single rendition. |
|
|
String |
Defines whether the file is an attachment or provided inline. |
|
|
String |
ContentType/MimeType for the output file. |
|
|
String |
Output format for the storyboard and face renditions. |
|
|
String |
Name of the property where the source file key is found. |
|
|
String |
Name of the property to which the output file key is saved. |
|
|
String |
The name of the file provider where the output file is saved. |
|
|
Integer |
Height for the face thumbnail renditions. |
|
|
Integer |
Width for the face thumbnail renditions. |
|
|
Integer |
Height for the key frame renditions. |
|
|
Integer |
Width for the key frame renditions. |
|
|
Integer |
Output quality as a percentage of the source file. |
|
|
String |
Task type. |
Run external web task
|
Parameter |
Type |
Description |
|---|---|---|
|
|
String |
Defines whether the file is an attachment or provided inline. |
|
|
String |
ContentType/MimeType for the output file. |
|
|
String |
URL of the external task. |
|
|
String |
JSON containing web request headers. |
|
|
String |
Name of the property where the source file key is found. |
|
|
String |
Name of the property to which the output file key is saved. |
|
|
String |
The name of the file provider where the output file is saved. |
|
|
JSON |
JSON containing web request parameters. |
|
|
Integer |
The number of days in which the file is publicly available. |
|
|
String |
Task type. |
Rendition links parameters
The renditions parameter, contained in output, is a series of rendition link objects, objects, each with the following structure:
"[name]": {
"initial": {
"status": "pending"
},
"file": "massive",
"properties": [
"width",
"height"
]
}
The following table describes the parameters of this JSON:
|
Parameter |
Type |
Description |
|---|---|---|
|
|
String |
Name of the output. |
|
|
List |
List of initial parameters. |
|
|
String |
Statuses of the output. |
|
|
String |
Name of the output file. |
|
|
Array |
Array of properties to store with the output file. |