-
Notifications
You must be signed in to change notification settings - Fork 12
COMMAND.3 Ingestion Status
Giuliano Catrambone edited this page Jan 27, 2019
·
13 revisions
The following commands are used to retrieve information about the ingestions.
- URI to retrieve information about the Ingestion Workflows
- /catramms/v1/ingestionRoots/[:IngestionRootKey]?[:start]&[:rows]&[:contentType]&[:startIngestionDate]&[:endIngestionDate]&[:asc]
- URI to retrieve the json ingested with a specific Ingestion Workflow
- /catramms/v1/ingestionRoot/:IngestionRootKey
- URI to retrieve information about the Ingestion Jobs
- /catramms/v1/ingestionJobsRoot/[:IngestionJobKey]?[:start]&[:rows]&[:contentType]&[:startIngestionDate]&[:endIngestionDate]&[:status]&[:asc]
- URI to retrieve information about the Encoding Jobs
- /catramms/v1/encodingJobsRoot/[:EncodingJobKey]?[:start]&[:rows]&[:contentType]&[:startIngestionDate]&[:endIngestionDate]&[:status]&[:asc]
GET
None
- IngestionRootKey=[number]
- example: IngestionRootKey=12
- IngestionJobKey=[number]
- example: IngestionJobKey=12
- EncodingJobKey=[number]
- example: EncodingJobKey=12
- start=[number starting from 0]
- default: 0
- example: start=20
- rows=[number]
- default: 10
- example: rows=10
- startIngestionDate=[string, format: YYYY-MM-DDTHH:MI:SSZ]
- example: startIngestionDate=2018-04-26T07:19:11Z
- endIngestionDate=[string, format: YYYY-MM-DDTHH:MI:SSZ]
- example: endIngestionDate=2018-04-27T07:19:11Z
- asc=[boolean]
- example: asc=true
- status=[string, options: all, completed, notCompleted]
- example: status=notCompleted
None
200 OK
The API returns the identifiers (Keys), labels and the Status about every task of the 'workflow' identified by the IngestionRootKey parameter. Here follows a sample:
{
"requestParameters" :
{
"ingestionRootKey" : 304,
"rows" : 10,
"start" : 0
},
"response" :
{
"numFound" : 1,
"workflows" :
[
{
"ingestionRootKey" : 304,
"label" : "1",
"tasks" :
[
{
"downloadingProgress" : 100,
"endIngestion" : "2018-06-09T15:47:37Z",
"errorMessage" : null,
"ingestionJobKey" : 1143,
"ingestionType" : "Add-Content",
"label" : "My video",
"mediaItemKey" : 14,
"physicalPathKey" : null,
"startIngestion" : "2018-06-09T15:47:30Z",
"status" : "End_TaskSuccess",
"uploadingProgress" : null,
"videoDetails" :
{
"audioBitRate" : 254857,
"audioChannels" : 2,
"audioCodecName" : "aac",
"audioSampleRate" : 48000,
"bitRate" : 3711950,
"durationInMilliSeconds" : 131000,
"videoAvgFrameRate" : "25/1",
"videoBitRate" : 3332779,
"videoCodecName" : "h264",
"videoHeight" : 720,
"videoProfile" : "High",
"videoWidth" : 1280
}
},
{
"endIngestion" : "2018-06-09T15:47:41Z",
"errorMessage" : null,
"ingestionJobKey" : 1145,
"ingestionType" : "Email-Notification",
"label" : "",
"mediaItemKey" : null,
"physicalPathKey" : null,
"startIngestion" : "2018-06-09T15:47:30Z",
"status" : "End_TaskSuccess"
},
{
"encoding" :
{
"encodingFailuresNumber" : 0,
"encodingJobEnd" : "2018-06-09T15:51:09Z",
"encodingJobStart" : "2018-06-09T15:47:43Z",
"encodingProgress" : 100,
"encodingStatus" : "End_ProcessedSuccessful",
"parameters" :
{
"encodingProfileKey" : 17,
"sourcePhysicalPathKey" : 80
},
"type" : "EncodeVideoAudio"
},
"endIngestion" : "2018-06-09T15:51:09Z",
"errorMessage" : null,
"ingestionJobKey" : 1144,
"ingestionType" : "Encode",
"label" : "my label",
"mediaItemKey" : 14,
"physicalPathKey" : 81,
"startIngestion" : "2018-06-09T15:47:30Z",
"status" : "End_TaskSuccess",
"videoDetails" :
{
"audioBitRate" : 163408,
"audioChannels" : 2,
"audioCodecName" : "aac",
"audioSampleRate" : 48000,
"bitRate" : 4192079,
"durationInMilliSeconds" : 131000,
"videoAvgFrameRate" : "30/1",
"videoBitRate" : 4020958,
"videoCodecName" : "h264",
"videoHeight" : 1080,
"videoProfile" : "Main",
"videoWidth" : 1920
}
}
]
}
]
}
}
Assuming:
- UserKey: 5
- APIKey: SU1.8ZO1O2zVeBMNv9lzZ0whABXSAdjWrR~rpcnI5eaHNO2gysrNdAv8BNoWZB1eLP
curl -k -v -u 5:SU1.8ZO1O2zVeBMNv9lzZ0whABXSAdjWrR~rpcnI5eaHNO2gysrNdAv8BNoWZB1eLP https://mms-api.catrasoft.cloud/catramms/v1/ingestionsRoot/304
- tutorial videos: https://www.youtube.com/@CatraMMS/videos
- support email: [email protected]
- info email: [email protected]
- MMS GUI: https://mms-gui.catramms-cloud.com/catramms
- REST MMS API: https://app.swaggerhub.com/apis-docs/giulianoc/MediaManagementService
- API base URL: https://mms-api.catramms-cloud.com/catramms/1.0.1/...
- Delivery URL (authorization by parameter): https://delivery.catramms-cloud.com/catramms/1.0.1/...
- Delivery URL (authorization by path): https://delivery-path.catramms-cloud.com/catramms/1.0.1/...
- Push binary URL: https://binary.catramms-cloud.com/catramms/1.0.1/...
-
Tutorial
- User registration
- Add content - Pull
- Add content, on success send an email
- Two Tasks (Add content) to be executed in parallel
- Add a set of video encoding profiles
- Add two contents, send an email, concat, cut and encode
- Add a single image profile (Logo)
- Add a video, an image, encode the image, overlay the encoded image on the video
-
Workflow Ingestion
Workflow As Library
Add-Remove Content
Delivery
Social Network Delivery
Encoding (video-audio-image)
Media activities
Overlay
Frame Processing
Recorder
Communication
Utilities
Computer Vision