QueryIProductionJob

Updated at:

Queries the status and results of an intelligent production job.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

ice:QueryIProductionJob

get

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

ClientToken

string

No

The idempotency parameter.

****12e8864746a0a398****

JobId

string

Yes

The ID of the intelligent job.

****20b48fb04483915d4f2cd8ac****

Response elements

Element

Type

Description

Example

object

Schema of Response

RequestId

string

The request ID.

01A0E5D1-4B3C-599D-8017-2DA186EA1053

JobId

string

The job ID.

****20b48fb04483915d4f2cd8ac****

Name

string

The job name.

Test task

FunctionName

string

The name of the algorithm feature to use. Valid values:

  • Cover: Intelligent cover

  • VideoClip: Video synopsis

  • VideoDelogo: Video icon removal

  • VideoDetext: Video subtitle removal

  • CaptionExtraction: Subtitle fetch

  • VideoGreenScreenMatting: Image matting

  • FaceBeauty: Video face beautification

  • VideoH2V: Video landscape-to-portrait conversion

  • MusicSegmentDetect: Chorus detection

  • AudioBeatDetection: Beat detection

  • AudioQualityAssessment: Audio quality assessment

  • SpeechDenoise: Speech noise reduction

  • AudioMixing: Audio mixing

  • MusicDemix: Vocal and accompaniment separation

Cover

Input

object

The input media.

Type

string

The input type. Valid values:

  • OSS: OSS file URL.

  • Media: media asset ID.

OSS

Media

string

The input media. If Type is set to OSS, enter the OSS URL. If Type is set to Media, enter the media asset ID. The OSS URL must be in one of the following formats:

  • oss://bucket/object

  • http(s)://bucket.oss-[RegionId].aliyuncs.com/object where bucket is the name of the OSS bucket that resides in the same region as the current project, and object is the file path.

oss://bucket/object

Output

object

The output media.

Type

string

The media type. Valid values:

  • OSS: OSS path.

  • Media: media asset ID.

OSS

Biz

string

The business to which the media asset belongs.

Valid values:

  • VOD :

    VOD

  • IMS :

    IMS

IMS

Media

string

The output media. If Type is set to OSS, the OSS URL is returned. If Type is set to Media, the specified media asset ID or a newly generated media asset ID is returned.

The OSS URL must be in one of the following formats:

  • oss://bucket/object

  • http(s)://bucket.oss-[RegionId].aliyuncs.com/object where bucket is the name of the OSS bucket that resides in the same region as the current project, and object is the file path.

oss://bucket/object

OutputUrl

string

The OSS URL of the specified output file when Type is set to Media.

http(s)://bucket.oss-[RegionId].aliyuncs.com/object

TemplateId

string

The template ID.

****96e8864746a0b6f3****

JobParams

string

The algorithm job parameters. This is a JSON object. The parameters vary based on the algorithm.

{"Model":"gif"}

ScheduleConfig

object

The job configuration information.

PipelineId

string

The pipeline ID.

a54fdc9c9aab413caef0d1150f565e86

Priority

integer

The priority of the job in its corresponding pipeline.

  • Highest priority: 10.

  • Default value: 6.

6

UserData

string

The user-defined data. This data is returned as-is when the result is retrieved.

{"test":1}

Result

string

The result information output by the algorithm. The output varies based on FunctionName and is in JSON format. For more information, see the following sections.

{}

CreateTime

string

The creation time in GMT.

2022-07-07T07:16:11Z

FinishTime

string

The completion time in GMT.

2021-11-26T14:50:25Z

Status

string

The job status. Valid values:

  • Queuing: The job is queued.

  • Analysing: The job is being analyzed.

  • Fail: The job failed.

  • Success: The job succeeded.

Success

OutputFiles

array

The output file array.

string

The path and name of the generated file.

output/xxx.mp4

OutputMediaIds

array

The list of media asset IDs output by the job.

string

The media asset ID output by the job.

['fdd967d0ae2271f09aa4e7f7d4490104']

OutputUrls

array

The output file URL array.

string

The accessible URL path of the generated file.

http://xxx

Result examples.

Cover

Example: [{"Score":8.270855992569906,"Time":"28278.25","Url":"cover/test-00001.jpg"},{"Score":7.474117489692728,"Time":"25942.583333333332","Url":"cover/test-00002.jpg"}]

where Score is the confidence score of the cover result, Time is the timestamp of the cover frame, and Url is the path of the cover file.

VideoClip

Example: {"VideoSummaryList":[{"EndTime":"5.28","StartTime":"0.28"}]}

where VideoSummaryList is a list that indicates the time periods extracted from the original video, in seconds.

VideoDelogo

Example: {}

The algorithm does not output additional information.

VideoDetext

Example: {}

The algorithm does not output additional information.

CaptionExtraction

Example: {}

The algorithm does not output additional information.

VideoGreenScreenMatting

Example: {}

The algorithm does not output additional information.

FaceBeauty

Example: {}

The algorithm does not output additional information.

VideoH2V

Example: {}

The algorithm does not output additional information.

MusicSegmentDetect

Example: [{"start":39.32,"end":63.85,"title":"Chorus"},{"start":86.69,"end":114.45,"title":"Chorus"},{"start":135.75,"end":160.27,"title":"Chorus"}]

AudioBeatDetection

Example: {}

The algorithm does not output additional information.

AudioQualityAssessment

Example: [{ "Discontinuity":"Good", "Loudness":"Excellent", "Worst MOS(0-5)":"0.38", "Discontinuity(0-5)":"3.52", "Speech Ratio":"48.55", "Loudness(0-5)":"4.91", "Worst Discontinuity(0-5)":"0.88", "Worst Coloration(0-5)":"0.42", "Channel":"1", "Coloration(0-5)":"0.99", "Bad Mute Ratio(%)":"0.0", "Time":"2022-12-02 16:14:06", "Noisiness(0-5)":"3.28", "MOS":"Poor", "Worst Noisiness(0-5)":"0.91", "Double Talk Ratio(%)":"19.23", "Input":"/home/admin/algo/quality****/example.wav", "Total Duration":"42.78", "Noisiness":"Good", "Tag":"Valid", "MOS(0-5)":"1.01", "Loudness(-90dB-0dB)":"-0.59", "Coloration":"Bad", "Saturated Ratio(%)":"37.55" }, { "Discontinuity":"Fair", "Loudness":"Excellent", "Worst MOS(0-5)":"0.65", "Discontinuity(0-5)":"2.45", "Speech Ratio":"41.68", "Loudness(0-5)":"4.52", "Worst Discontinuity(0-5)":"0.66", "Worst Coloration(0-5)":"0.72", "Channel":"2", "Coloration(0-5)":"2.34", "Bad Mute Ratio(%)":"0.0", "Time":"2022-12-02 16:14:06", "Noisiness(0-5)":"2.53", "MOS":"Poor", "Worst Noisiness(0-5)":"0.67", "Double Talk Ratio(%)":"25.93", "Input":"/home/admin/algo/quality****/example.wav", "Total Duration":"42.78", "Noisiness":"Fair", "Tag":"Valid", "MOS(0-5)":"1.69", "Loudness(-90dB-0dB)":"-4.82", "Coloration":"Fair", "Saturated Ratio(%)":"0.0" }]

Parameter field descriptions

SpeechDenoise

Example: {}

The algorithm does not output additional information.

AudioMixing

Example: {}

The algorithm does not output additional information.

MusicDemix

Example: {}

The algorithm does not output additional information.

Examples

Success response

JSON format

{
  "RequestId": "01A0E5D1-4B3C-599D-8017-2DA186EA1053",
  "JobId": "****20b48fb04483915d4f2cd8ac****",
  "Name": "Test task",
  "FunctionName": "Cover",
  "Input": {
    "Type": "OSS",
    "Media": "oss://bucket/object"
  },
  "Output": {
    "Type": "OSS",
    "Biz": "IMS",
    "Media": "oss://bucket/object",
    "OutputUrl": "http(s)://bucket.oss-[RegionId].aliyuncs.com/object "
  },
  "TemplateId": "****96e8864746a0b6f3****",
  "JobParams": "{\"Model\":\"gif\"}",
  "ScheduleConfig": {
    "PipelineId": "a54fdc9c9aab413caef0d1150f565e86",
    "Priority": 6
  },
  "UserData": "{\"test\":1}",
  "Result": "{}",
  "CreateTime": "2022-07-07T07:16:11Z",
  "FinishTime": "2021-11-26T14:50:25Z",
  "Status": "Success",
  "OutputFiles": [
    "output/xxx.mp4"
  ],
  "OutputMediaIds": [
    "['fdd967d0ae2271f09aa4e7f7d4490104']"
  ],
  "OutputUrls": [
    "http://xxx"
  ]
}

Error codes

HTTP status code

Error code

Error message

Description

400 IdempotentParameterMismatch The request uses the same client token as a previous, but non-identical request. Do not reuse a client token with different requests, unless the requests are identical.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.