special-key
to test the authorization filters.Access
- HTTP Basic Authentication
- APIKey Key
ParamName: API-Token
KeyInQuery: false
KeyInHeader: true
Methods
get /presets/builtIn/{folder}/{name}
get /presets
delete /presets/user/{folder}/{name}
get /presets/user/{folder}/{name}
post /presets/user/{folder}/{name}
put /presets/user/{folder}/{name}
delete /workers/findByFilter
get /workers/findByFilter
get /workers/info/{id}
get /workers/log/{id}
post /workers
delete /workers/remove/{id}
get /workers/stats/{id}
put /workers/terminate/{id}
Authentication
get /auth
Return type
Example data
{
"data" : {
"expires" : 1684427563,
"neverExpires" : true,
"product" : "nablet mediaEngine",
"token" : "*******",
"version" : "v3.0.0"
}
}
Produces
This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.application/json
Responses
200
OK auth400
MIME type not accepted401
Unauthorized accessPresets
get /presets/builtIn/{folder}/{name}
Path parameters
Return type
Example data
{
"muxer_stream_count" : 6.027456183070403,
"video_stream_settings" : [ "", "" ],
"video_stream_count" : 2.3021358869347655,
"writing_application" : "writing_application",
"writing_application_date" : "writing_application_date",
"writing_application_version" : "writing_application_version",
"audio_stream_count" : 0.8008281904610115,
"output_stream_count" : 1.4658129805029452,
"preset_info" : {
"valid_framerate_count" : 5.637376656633329,
"valid_container_format_count" : 5.962133916683182,
"comment" : "comment",
"valid_container_formats" : [ "", "" ],
"display_name" : "display_name"
},
"transcoder_settings" : {
"match_source_streams" : true
},
"audio_stream_settings" : [ "", "" ],
"output_stream_settings" : [ "", "" ],
"muxer_stream_settings" : [ "", "" ]
}
Produces
This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.application/json
text/plain
text/html
Responses
200
OK mediaEnginePreset400
Bad request401
Unauthorized access404
Not foundget /presets
Query parameters
Return type
Example data
{
"presets" : [ {
"created" : "2023-12-15T13:41:20.625Z",
"displayName" : "DNxHD 110x 720p29.97",
"folder" : "avid",
"href" : "/api/v1/preset/avid/dnxhd-110x-720p2997",
"name" : "dnxhd-110x-720p2997",
"sdkVersion" : "v3.0.14",
"type" : "built-in"
}, {
"created" : "2023-11-26T00:43:19.665Z",
"displayName" : "Beta 4444 DNxHD",
"folder" : "Avid",
"href" : "/api/v1/preset/user/Avid/Beta_4444_DNxHD",
"name" : "Beta_4444_DNxHD",
"sdkVersion" : "v3.0.14",
"type" : "user"
} ]
}
Produces
This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.application/json
Responses
200
OK presets400
Bad request401
Unauthorized accessdelete /presets/user/{folder}/{name}
Path parameters
Query parameters
Return type
Example data
{
"status" : "OK"
}
Produces
This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.application/json
Responses
200
OK inline_response_200400
Bad request401
Unauthorized access404
Not foundget /presets/user/{folder}/{name}
Path parameters
Return type
Example data
{
"muxer_stream_count" : 6.027456183070403,
"video_stream_settings" : [ "", "" ],
"video_stream_count" : 2.3021358869347655,
"writing_application" : "writing_application",
"writing_application_date" : "writing_application_date",
"writing_application_version" : "writing_application_version",
"audio_stream_count" : 0.8008281904610115,
"output_stream_count" : 1.4658129805029452,
"preset_info" : {
"valid_framerate_count" : 5.637376656633329,
"valid_container_format_count" : 5.962133916683182,
"comment" : "comment",
"valid_container_formats" : [ "", "" ],
"display_name" : "display_name"
},
"transcoder_settings" : {
"match_source_streams" : true
},
"audio_stream_settings" : [ "", "" ],
"output_stream_settings" : [ "", "" ],
"muxer_stream_settings" : [ "", "" ]
}
Produces
This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.application/json
text/plain
Responses
200
OK mediaEnginePreset400
Bad request401
Unauthorized access404
Not foundpost /presets/user/{folder}/{name}
Adding a mediaEngine Preset
There are two ways to a preset to the database: a) using a converted JSON preset or b) using a text/plain preset directly. For converting a text/plain preset to JSON you can use the 'cfgconverter' from the mediaEngine SDK:
cfgconverter -j -i mypreset.txt -co mypreset.json
For more furher information about the cmd-line options please call 'cfgconverter' with the help (-h/--help) argument.
Path parameters
Consumes
This API call consumes the following media types via the Content-Type request header:application/json
text/plain
Request body
Return type
Example data
{
"status" : "OK"
}
Produces
This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.application/json
Responses
200
OK inline_response_200400
Bad request401
Unauthorized access409
Conflictput /presets/user/{folder}/{name}
Path parameters
Consumes
This API call consumes the following media types via the Content-Type request header:application/json
text/plain
Request body
Return type
Example data
{
"status" : "OK"
}
Produces
This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.application/json
Responses
200
OK inline_response_200400
Bad request401
Unauthorized access404
Not foundVersion
get /version
Return type
Example data
{
"data" : {
"coreDLLBuildDate" : "11/29/2023 01:11:01",
"coreDLLVersion" : "v3.0.4",
"coreSDKVersion" : "v3.0.4",
"meDLLBuildDate" : "11/29/2023 01:10:57",
"meDLLVersion" : "v3.0.3",
"meSDKVersion" : "v3.0.3",
"product" : "nablet mediaEngine REST server"
}
}
Produces
This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.application/json
Responses
200
OK version401
Unauthorized accessWorkers
delete /workers/findByFilter
Query parameters
Responses
200
OK401
Unauthorized access404
Not foundget /workers/findByFilter
Query parameters
Responses
200
OK400
Bad request401
Unauthorized access404
Not foundget /workers/info/{id}
Path parameters
Return type
Example data
[ {
"inputConfiguration" : {
"application" : "transcode",
"processOptions" : {
"kubernetes" : { },
"maxMemoryLimit" : 6,
"visibility" : "server",
"linux" : { },
"forcedShutdownTimeout" : 5000,
"cpuSet" : "0-4,7,9-11",
"windows" : {
"jobUserTimeLimitMs" : 1.4658129805029452,
"propagateOnChildProcesses" : true,
"priorityClass" : "normal",
"processUserTimeLimitMs" : 5.962133916683182
},
"clockTimeLimitMs" : 0.8008281904610115,
"docker" : { }
},
"inputSources" : [ "", "" ],
"applicationArgs" : [ "-sw" ],
"config" : {
"preset" : "/preset/avid/dnxhd-115-720p50",
"customPreset" : { }
},
"outputPaths" : [ "S:\\test.mxf", "S:\\test.mxf" ]
},
"product" : "nablet mediaEngine",
"processorTime" : 0,
"statsURL" : "ws://127.0.0.1:43211",
"exitCode" : -1,
"pid" : 52084,
"id" : "65629821692375e86c067611",
"state" : "running",
"commandLine" : "../transcode -i -o ",
"version" : "v3.0.3"
}, {
"inputConfiguration" : {
"application" : "transcode",
"processOptions" : {
"kubernetes" : { },
"maxMemoryLimit" : 6,
"visibility" : "server",
"linux" : { },
"forcedShutdownTimeout" : 5000,
"cpuSet" : "0-4,7,9-11",
"windows" : {
"jobUserTimeLimitMs" : 1.4658129805029452,
"propagateOnChildProcesses" : true,
"priorityClass" : "normal",
"processUserTimeLimitMs" : 5.962133916683182
},
"clockTimeLimitMs" : 0.8008281904610115,
"docker" : { }
},
"inputSources" : [ "", "" ],
"applicationArgs" : [ "-sw" ],
"config" : {
"preset" : "/preset/avid/dnxhd-115-720p50",
"customPreset" : { }
},
"outputPaths" : [ "S:\\test.mxf", "S:\\test.mxf" ]
},
"product" : "nablet mediaEngine",
"processorTime" : 0,
"statsURL" : "ws://127.0.0.1:43211",
"exitCode" : -1,
"pid" : 52084,
"id" : "65629821692375e86c067611",
"state" : "running",
"commandLine" : "../transcode -i -o ",
"version" : "v3.0.3"
} ]
Produces
This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.application/json
Responses
200
OK401
Unauthorized access404
Not foundget /workers/log/{id}
Path parameters
Return type
Example data
"12/02/2023 17:40:40.438 [37284] info: nbmecore: ********************************************************************************\n12/02/2023 17:40:40.438 [37284] info: nbmecore: nablet MediaEngine Core\n12/02/2023 17:40:40.438 [37284] info: nbmecore: SDK Version: 3.0.4.0 (11/29/2023 01:11:01)\n12/02/2023 17:40:40.438 [37284] info: nbmecore: DLL Version: 3.0.4.0 (11/29/2023 01:11:01)\n12/02/2023 17:40:40.438 [37284] info: nbmecore: Windows Version: 6.02.9200\n12/02/2023 17:40:40.438 [37284] info: nbmecore: CPU: Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz, Active CPUs: 5\n12/02/2023 17:40:40.438 [37284] info: nbmecore: Host: NV-AVX02-PC\n12/02/2023 17:40:40.438 [37284] info: nbmecore: Application: 'transcode' v3.0.3\n12/02/2023 17:40:40.438 [37284] info: nbmecore: \n12/02/2023 17:40:40.438 [37284] info: nbmecore: Date: 12/02/2023 18:40:40.438 [+1:00]\n12/02/2023 17:40:40.438 [37284] info: nbmecore: ********************************************************************************\n12/02/2023 17:40:40.438 [37284] info: nbmecore: \n12/02/2023 17:40:40.439 [37284] info: nbmecore: ***************************************\n12/02/2023 17:40:40.439 [37284] info: nbmecore: TraceSetLevel=0\n12/02/2023 17:40:40.439 [37284] info: nbmecore: DebugSetLevel=5\n12/02/2023 17:40:40.439 [37284] info: nbmecore: InfoSetLevel=5\n12/02/2023 17:40:40.439 [37284] info: nbmecore: WarningSetLevel=5\n12/02/2023 17:40:40.439 [37284] info: nbmecore: ***************************************\n12/02/2023 17:40:40.439 [37284] info: nbmecore: initializing core library\n...\n"
Produces
This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.text/plain
Responses
200
OK String401
Unauthorized access404
Not foundpost /workers
Process Options
Common Options
forcedShutdownTimeout - Time to wait for a shutdown event to finish.
cpuSet - Sets the CPUs for this job, e.g. 0-4,7,9-11.
clockTimeLimitMs - Time limit for the job in ms or '0' for no limit.
maxMemoryLimit - Maximum memory usage for worker in bytes (currently, only supported on Windows). visibility - Determines if the worker should show in a console window or not. Allowed values are 'normal', 'minimized', 'hidden' and 'server'.|
Windows Options
priorityClass - Causes all worker processes associated with the job to use the same priority class. Allowed values are 'aboveNormal', 'belowNormal', 'high', 'idle', 'normal', 'realtime'.
jobUserTimeLimitMs - Establishes a user-mode execution time limit in ms for the job.
processUserTimeLimitMs - Establishes a user-mode execution time limit in ms for each currently active process and for all future processes associated with the job.
propagateOnChildProcesses -Allows any process associated with the job to create child processes that are not associated with the job.
Docker Options
Not available yet.
Kubernetes Options
Not available yet.
Application Settings
application - The application name, currently only 'transcode' is supported.
applicationArgs - List of cmd-line options (please use carefully, can change in the future).
Configuration Settings
preset - Link to built-in preset.
customPreset - Optional customer preset in mediaEngine preset JSON format.
Input Sources
inputSources - Array of input sources which can be URLs, file paths or RAW video/audio.
Input Source Types
path - A path to an input file reachable by the server (local file system)
url - A URL either using a network path or a device specific syntax (e.g. DeckLink)
raw-video - A raw video file (see also JSON schema)
raw-audio - A raw (PCM) audio file (see also JSON schema)
Output Paths
outputPaths - Array of output paths which can be URLs or file paths.
Consumes
This API call consumes the following media types via the Content-Type request header:application/json
Request body
Return type
Example data
[ {
"inputConfiguration" : {
"application" : "transcode",
"processOptions" : {
"kubernetes" : { },
"maxMemoryLimit" : 6,
"visibility" : "server",
"linux" : { },
"forcedShutdownTimeout" : 5000,
"cpuSet" : "0-4,7,9-11",
"windows" : {
"jobUserTimeLimitMs" : 1.4658129805029452,
"propagateOnChildProcesses" : true,
"priorityClass" : "normal",
"processUserTimeLimitMs" : 5.962133916683182
},
"clockTimeLimitMs" : 0.8008281904610115,
"docker" : { }
},
"inputSources" : [ "", "" ],
"applicationArgs" : [ "-sw" ],
"config" : {
"preset" : "/preset/avid/dnxhd-115-720p50",
"customPreset" : { }
},
"outputPaths" : [ "S:\\test.mxf", "S:\\test.mxf" ]
},
"product" : "nablet mediaEngine",
"processorTime" : 0,
"statsURL" : "ws://127.0.0.1:43211",
"exitCode" : -1,
"pid" : 52084,
"id" : "65629821692375e86c067611",
"state" : "running",
"commandLine" : "../transcode -i -o ",
"version" : "v3.0.3"
}, {
"inputConfiguration" : {
"application" : "transcode",
"processOptions" : {
"kubernetes" : { },
"maxMemoryLimit" : 6,
"visibility" : "server",
"linux" : { },
"forcedShutdownTimeout" : 5000,
"cpuSet" : "0-4,7,9-11",
"windows" : {
"jobUserTimeLimitMs" : 1.4658129805029452,
"propagateOnChildProcesses" : true,
"priorityClass" : "normal",
"processUserTimeLimitMs" : 5.962133916683182
},
"clockTimeLimitMs" : 0.8008281904610115,
"docker" : { }
},
"inputSources" : [ "", "" ],
"applicationArgs" : [ "-sw" ],
"config" : {
"preset" : "/preset/avid/dnxhd-115-720p50",
"customPreset" : { }
},
"outputPaths" : [ "S:\\test.mxf", "S:\\test.mxf" ]
},
"product" : "nablet mediaEngine",
"processorTime" : 0,
"statsURL" : "ws://127.0.0.1:43211",
"exitCode" : -1,
"pid" : 52084,
"id" : "65629821692375e86c067611",
"state" : "running",
"commandLine" : "../transcode -i -o ",
"version" : "v3.0.3"
} ]
Produces
This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.application/json
Responses
200
OK400
Bad request401
Unauthorized accessdelete /workers/remove/{id}
Path parameters
Responses
200
OK401
Unauthorized access404
Not foundget /workers/stats/{id}
Path parameters
Return type
Example data
[ {
"processInfo" : {
"estimatedTime" : {
"ms" : 89484.73976845638,
"timecode" : "00:01:29.484"
},
"timeElapsed" : {
"ms" : 15461.1197,
"timecode" : "00:00:15.461"
},
"stats" : {
"framerateN" : 2997,
"totalInputDropFrameCount" : 0,
"currentFPS" : 29.63742866409841,
"currentFramesRendered" : 456,
"currentMediaPosition" : {
"27Mhz" : 0,
"timecode" : "--:--:--.---"
},
"streamingMode" : false,
"totalInputFramesCount" : 3337,
"totalJobs" : 1,
"currentJobDonePercent" : 14,
"currentInputFrames" : 0,
"maxFPS" : 38.3387365392696,
"totalFramesPerJob" : 3337,
"outputStreamStatsCount" : 0,
"minFPS" : 26.781398176454644,
"averageFPS" : 32.19543362873544,
"currentJobsIndex" : 0,
"framerateD" : 125,
"outputStreamStats" : [ ],
"totalFramesRendered" : 0,
"totalMediaDuration" : {
"27Mhz" : 3757882896,
"timecode" : "00:02:19.180"
}
},
"message" : "",
"status" : "job finished"
},
"product" : "nablet mediaEngine",
"processorTime" : 0,
"exitCode" : 0,
"pid" : 45036,
"id" : "65629821692375e86c067611",
"state" : "terminated",
"version" : "v3.0.3"
}, {
"processInfo" : {
"estimatedTime" : {
"ms" : 89484.73976845638,
"timecode" : "00:01:29.484"
},
"timeElapsed" : {
"ms" : 15461.1197,
"timecode" : "00:00:15.461"
},
"stats" : {
"framerateN" : 2997,
"totalInputDropFrameCount" : 0,
"currentFPS" : 29.63742866409841,
"currentFramesRendered" : 456,
"currentMediaPosition" : {
"27Mhz" : 0,
"timecode" : "--:--:--.---"
},
"streamingMode" : false,
"totalInputFramesCount" : 3337,
"totalJobs" : 1,
"currentJobDonePercent" : 14,
"currentInputFrames" : 0,
"maxFPS" : 38.3387365392696,
"totalFramesPerJob" : 3337,
"outputStreamStatsCount" : 0,
"minFPS" : 26.781398176454644,
"averageFPS" : 32.19543362873544,
"currentJobsIndex" : 0,
"framerateD" : 125,
"outputStreamStats" : [ ],
"totalFramesRendered" : 0,
"totalMediaDuration" : {
"27Mhz" : 3757882896,
"timecode" : "00:02:19.180"
}
},
"message" : "",
"status" : "job finished"
},
"product" : "nablet mediaEngine",
"processorTime" : 0,
"exitCode" : 0,
"pid" : 45036,
"id" : "65629821692375e86c067611",
"state" : "terminated",
"version" : "v3.0.3"
} ]
Produces
This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.application/json
Responses
200
OK401
Unauthorized access404
Not foundput /workers/terminate/{id}
Path parameters
Responses
200
OK401
Unauthorized access404
Not foundModels
auth
auth_data
inline_response_200
inputConfiguration
inputConfiguration_config
inputConfiguration_processOptions
inputConfiguration_processOptions_windows
mediaEnginePreset
mediaEnginePreset_preset_info
mediaEnginePreset_transcoder_settings
preset-count
presetcount_builtIn
presets
stats
stats_processInfo
stats_processInfo_estimatedTime
stats_processInfo_stats
stats_processInfo_stats_currentMediaPosition
stats_processInfo_stats_totalMediaDuration
stats_processInfo_timeElapsed
updatePreset
version
version_data
workerInfo