Skip to content

COMMAND.3 Ingestion Status

Giuliano Catrambone edited this page Jan 27, 2019 · 13 revisions

Overview

The following commands are used to retrieve information about the ingestions.

URI

  • 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]

Method

GET

URL Params

Required

None

Optional

  • 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

Payload Data

None

Success Response

Code

200 OK

Content

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
						}
					}
				]
			}
		]
	}
}

Error Response

See Common Error Responses

Sample Call

Assuming:

  • UserKey: 5
  • APIKey: SU1.8ZO1O2zVeBMNv9lzZ0whABXSAdjWrR~rpcnI5eaHNO2gysrNdAv8BNoWZB1eLP

curl -k -v -u 5:SU1.8ZO1O2zVeBMNv9lzZ0whABXSAdjWrR~rpcnI5eaHNO2gysrNdAv8BNoWZB1eLP https://mms-api.catrasoft.cloud/catramms/v1/ingestionsRoot/304

  1. Home

    Tutorial
    1. User registration
    2. Add content - Pull
    3. Add content, on success send an email
    4. Two Tasks (Add content) to be executed in parallel
    5. Add a set of video encoding profiles
    6. Add two contents, send an email, concat, cut and encode
    7. Add a single image profile (Logo)
    8. Add a video, an image, encode the image, overlay the encoded image on the video
  2. REST API version 1 (latest)

    Registration
    1. User registration
    2. Login
    3. Create Workspace
    4. Share Workspace
    5. Update Workspace
    6. Update User
    Workflow Ingestion
    1. Workflow
    2. Status/metadata of an ingestion
    3. Group Of Tasks
    Workflow As Library
    1. Workflow as Library
    2. Create-Update a Workflow as Library
    3. Delete a Workflow as Library
    4. Use of a Workflow as Library
    Add-Remove Content
    1. Add a new Content
      1. Pull
      2. Push
    2. Remove a Content
    3. Information about the contents saved into MMS
    4. Retention of a Content
    Delivery
    1. Download HTTP of a Content
    2. FTP of a Content
    3. Local copy of a Content
    4. Live Proxy
    5. VOD Proxy
    6. Countdown
    7. Check Streaming
    Social Network Delivery
    1. POST a Content on Facebook
    2. POST a Content on YouTube
    3. YouTube Live Broadcast
    4. Facebook Live Broadcast
    Encoding (video-audio-image)
    1. Add encoding profiles
    2. Remove encoding profiles
    3. Encode
    4. Information about the encoding profiles saved into MMS
    5. Predefined MMS Encoding Profiles
    Media activities
    1. Concatenate videos having same codecs
    2. Cut
    3. Video speed
    4. Extract tracks
    5. Add silent audio
    Overlay
    1. Overlay an Image on a Video
    2. Overlay a Text on a Video
    3. Picture In Picture
    4. Intro Outro Overlay
    5. Live Grid
    Frame Processing
    1. Frame of a video
    2. Periodical Frames of a video
    3. I-Frames of a video
    4. Motion JPEG video generated by Periodical Frames of a video
    5. Motion JPEG video generated by I-Frames of a video
    6. Slideshow video by images
    Recorder
    1. Live Recorder
    2. Live Cut
    Communication
    1. HTTP Callback
    2. Notification through email
    Utilities
    1. Change File Format
    2. Media Cross Reference
    Computer Vision
    1. Face Recognition
    2. Face Identification
    Configuration
    1. YouTube
    2. Facebook
    3. Live URL
    4. FTP
    5. E-Mail
Clone this wiki locally