Submits an intelligent production job by calling SubmitIProductionJob.
Operation description
This is an asynchronous operation. After you submit a job, a job ID is returned. The job is not yet complete at this point and enters a background queue for asynchronous execution. The final result is delivered through a callback notification. You can also proactively query the job status by calling QueryIProductionJob.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ice:SubmitIProductionJob |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Name |
string |
No |
The job name. The name can be up to 100 characters in length. |
Test task |
| FunctionName |
string |
Yes |
The name of the algorithm function to use. Valid values:
|
Cover |
| Input |
object |
Yes |
The input media. Object Storage Service (OSS) paths and media asset IDs are supported. Different algorithm functions have different input file requirements. For more information, see the supplementary description below. |
|
| Type |
string |
Yes |
The media type. Valid values:
|
OSS |
| Media |
string |
Yes |
The input media. OSS paths and media asset IDs are supported. OSS path rules (use either format):
|
oss://bucket/object |
| Output |
object |
Yes |
The output media. OSS paths and media asset IDs are supported. Different algorithm functions produce different output files. For more information, see the supplementary description below. |
|
| Type |
string |
Yes |
The media type. Valid values:
|
OSS |
| Biz |
string |
No |
The business type to which the media asset belongs. |
IMS |
| Media |
string |
Yes |
The output media. If Type is set to OSS, specify an OSS path. If Type is set to Media, specify a media asset ID. OSS path rules (use either format):
Media asset ID:
Note
The OSS path supports placeholders, such as oss://example-****/iproduction/{source}-{timestamp}-{sequenceId}.png. The following placeholders are supported:
|
oss://bucket/object |
| OutputUrl |
string |
No |
The OSS path of the output file when Type is set to Media. The bucket must be registered in IMS or VOD. |
http(s)://bucket.oss-[RegionId].aliyuncs.com/object |
| TemplateId |
string |
No |
The template ID. |
****20b48fb04483915d4f2cd8ac**** |
| JobParams |
string |
No |
The algorithm job parameters. This is a JSON object. The parameters vary depending on the algorithm. For more information, see the supplementary description. |
{"Model":"gif"} |
| ScheduleConfig |
object |
No |
The job scheduling configuration. |
|
| PipelineId |
string |
No |
The pipeline ID. |
5246b8d12a62433ab77845074039c3dc |
| Priority |
integer |
No |
The priority. Valid values: 1 to 10. A smaller value indicates a higher priority. |
6 |
| UserData |
string |
No |
The custom user data, which is returned as-is when you retrieve the result. The value can be up to 256 characters in length. |
{"test":1} |
| ModelId |
string |
No |
The algorithm model ID. If this parameter is left empty, the default model for the corresponding function is used. In most cases, leave this parameter empty to use the default model. The following algorithm functions have non-default models available:
|
Input and Output field description.
Cover
Input: a video file. Output: several images (3 by default, distinguished by placeholders) in PNG or GIF format (depending on the JobParams parameter, which determines whether static or animated images are generated).
VideoDelogo
Input: a video file. Output: a video with logos removed (in MP4 format).
VideoDetext
Input: a video file. Output: a video with subtitles removed (in MP4 format).
CaptionExtraction
Input: a video file. Output: a subtitle file (in SRT format).
VideoGreenScreenMatting
Input: a video file. Output: a video after image matting (in MP4 or WebM format, depending on the JobParams parameter).
FaceBeauty
Input: a video file. Output: a video with face beautification applied (in MP4 format).
VideoH2V
Input: a video file. Output: a landscape-to-portrait video (in MP4 format).
MusicSegmentDetect
Input: an audio file. Output: a result file containing chorus detection information (in JSON format).
AudioBeatDetection
Input: an audio file. Output: a result file containing beat detection information (in JSON format).
AudioQualityAssessment
Input: an audio file. No output file is generated. The audio quality assessment result is returned directly in QueryIProductionJob.
SpeechDenoise
Input: an audio file. Output: a denoised audio file (in WAV format).
AudioMixing
Input: an audio file to be mixed. Output: a mixed audio file (in WAV format). For information about how to specify the audio file to be mixed in, see the JobParams parameters below.
MusicDemix
Input: an audio file (a song). Output: two audio files after vocal and accompaniment separation. Include the {resultType} placeholder in the Output path to distinguish between the vocal track and the background track.
JobParams JSON field description.
Cover
Model: String. The intelligent cover model. If left empty, image covers are generated. If set to gif, animated covers are generated.
VideoDelogo
LogoModel: String. The type of logo to remove. Valid values: tv (general logo - TV station), internet (general logo - online media). Multiple values can be specified, separated by commas.
Boxes: String. The position of the target logo box, specified as normalized distances from the top-left corner: [xmin, ymin, width, height]. Up to two target logo boxes are supported. Example: "[[0, 0, 0.3, 0.3], [0.7, 0, 0.3, 0.3]]".
VideoDetext
LimitRegion: List. The restricted subtitle detection region, specified as normalized distances from the top-left corner: [xmin, ymin, width, height]. Multiple detection regions are supported. Example: [[0, 0, 0.3, 0.3], [0.7, 0, 0.3, 0.3]]. If this parameter is not set, the default detection region is the bottom 30% of the video.
- Time: The global erasure time range (in seconds). List type, including the start time and end time: [start_time, end_time]. Example: [5, 20], which means only subtitles between 5 and 20 seconds of the video are erased.
The Time parameter can be a one-dimensional array, such as [5, 20], to specify a single time range.
The Time parameter can also be a two-dimensional array, such as [[5, 20], [25, 43], [51, 80]], to specify multiple time ranges (supported only when modelId=algo-video-detext-new).
CaptionExtraction
fps: The sampling frame rate (optional). Integer. Valid values: 2 to 10. Default value: 5.
roi: The subtitle selection region (only subtitles within this region are extracted). Format: [[top, bottom], [left, right]], with normalized values (for example, the bottom half: [[0.5, 1], [0, 1]]). If this parameter is not specified, the bottom 1/4 of the video is used by default.
lang: The recognition language. Valid values: ch (Chinese), en (English), ch_ml (Chinese-English mixed). Default value: ch.
track: If set to "main", only the main subtitle track is extracted. If not specified, all subtitles within the region are extracted by default.
VideoGreenScreenMatting
bgimage: The background image to overlay after matting. Example: http://example-image-****.example-location.aliyuncs.com/example/example.jpg. If this parameter is not specified, a WebM video with a transparent channel is output.
FaceBeauty
beauty_params: The face beautification parameters. Example: "whiten=20,smooth=50,face_thin=50". For more information, see Parameter field description.
VideoH2V
None.
MusicSegmentDetect
None.
AudioBeatDetection
None.
AudioQualityAssessment
None.
SpeechDenoise
Input audio requirements: the format must be WAV, and the sample rate must be 16 kHz or 48 kHz.
AudioMixing
inputs: The list of audio track file URLs to be mixed. Only one file is supported. Example: {"file":"http://example-bucket-****.oss-ap-southeast-1.aliyuncs.com/2.mp4"}
MusicDemix
None.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. |
C1849434-FC47-5DC1-92B6-F7EAAFE3851E |
| JobId |
string |
The intelligent production job ID. |
****20b48fb04483915d4f2cd8ac**** |
Examples
Success response
JSON format
{
"RequestId": "C1849434-FC47-5DC1-92B6-F7EAAFE3851E",
"JobId": "****20b48fb04483915d4f2cd8ac****"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.