-
Notifications
You must be signed in to change notification settings - Fork 12
Command.38 Create or Update WorkflowAsLibrary
Giuliano Catrambone edited this page Mar 28, 2020
·
1 revision
- Create a Workflow As Library if it does not exist
- Update a Workflow As Library if it is already present
/catramms/v1/workflowLibrary
PUT
None
None
- The workflow (json) that has to be created/updated into MMS.
{
"Label": "Picture of the Video",
"Task": {
"Label": "${Label}",
"Parameters": {
"ExecutionType": "parallel",
"ReferencesOutput": [
{"ReferenceLabel": "Frame Containing Face: ${Title}"},
{"ReferenceLabel": "Frame: ${Title}"}
],
"Tasks": [{
"Label": "Frame Containing Face: ${Title}",
"OnError": {"Task": {
"Label": "Frame: ${Title}",
"OnSuccess": {"Task": {
"Label": "Encode image (Frame): ${title}",
"Parameters": {
"ContentType": "image",
"EncodingPriority": "High",
"EncodingProfileLabel": "MMS_JPG_240"
},
"Type": "Encode"
}},
"Parameters": {
"Height": 480,
"Ingester": "Giuliano",
"InstantInSeconds": 0,
"Retention": "${ImageRetention}",
"Tags": "[\"[\\\"[\\\\\\\"[\\\\\\\\\\\\\\\"${ImageTags}\\\\\\\\\\\\\\\"]\\\\\\\"]\\\"]\"]",
"Title": "${Title}",
"Width": 640
},
"Type": "Frame"
}},
"OnSuccess": {"Task": {
"Label": "Encode image (FrameContainingFace): ${Title}",
"Parameters": {
"ContentType": "image",
"EncodingPriority": "High",
"EncodingProfileLabel": "MMS_JPG_240"
},
"Type": "Encode"
}},
"Parameters": {
"CascadeName": "haarcascade_frontalface_alt_tree",
"EncodingPriority": "High",
"Ingester": "Giuliano",
"InitialFramesNumberToBeSkipped": "${FaceRecognition_InitialFramesNumberToBeSkipped}",
"OneFramePerSecond": true,
"Output": "FrameContainingFace",
"Retention": "${ImageRetention}",
"Tags": "${ImageTags}",
"Title": "${Title}"
},
"Type": "Face-Recognition"
}]
},
"Type": "GroupOfTasks"
},
"Type": "Workflow",
"Variables": {
"FaceRecognition_InitialFramesNumberToBeSkipped": {
"Type": "integer",
"Value": 1500
},
"FrameCaptureSeconds": {
"Type": "decimal",
"Value": 60
},
"ImageRetention": {
"Type": "string",
"Value": "1d"
},
"ImageTags": {
"Type": "string",
"Value": "FACE"
},
"Ingester": {
"Type": "string",
"Value": "Admin"
},
"Label": {
"Type": "string",
"Value": "Image label"
},
"Title": {
"Type": "string",
"Value": "My Title"
}
}
}
201 Created
{
"workflowLibraryKey": 12,
"Label": "Picture of the Video"
}
curl -k -v -X PUT -d '...' https://mms-api.catrasoft.cloud/catramms/v1/workflowLibrary
- 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