All Products
Search
Document Center

ApsaraVideo Media Processing:SubmitFpShotJob

Last Updated:Oct 30, 2026

Queries whether identical or similar media fingerprint results exist in the media fingerprint library.

Operation description

  • You can call this operation to submit video, audio, image, and text DNA jobs.

  • This operation is an asynchronous operation. After you submit a job, a job ID is returned. The job is not completed immediately but queued for asynchronous execution in the background. The final result is sent through a callback notification. You can also call the Query DNA job results operation to actively query the job status.

  • DNA-related operations are currently available in the China (Beijing), China (Shanghai), China (Hangzhou), Singapore, and Saudi Arabia (Riyadh) regions. The Saudi Arabia (Riyadh) region is operated by a partner. Other regions are not supported. Text DNA-related features are currently available only in the China (Shanghai) region.

  • Input file format limits:
    • Image formats: JPEG, PNG, and BMP.

    • Video formats: MP4, AVI, MKV, MPG, TS, MOV, FLV, and MXF.

    • Video codecs: MPEG-2, MPEG-4, H.264, HEVC, and WMV.

  • Text DNA scenarios: The library only supports importing long text strings with TextType=Text. For search, the input with TextType=ASR is the ASR recognition result, which is a JSON string array containing start, end, and text.

QPS limits

The queries per second (QPS) limit on this operation is 100 per user. If the limit is exceeded, API calls are throttled, which may affect your business. Call this operation within the limit. For more information, see QPS limits.

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

mts:SubmitFpShotJob

create

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

Input

string

Yes

The job input file URL. OSS URLs, HTTP URLs, and ApsaraVideo VOD media asset URLs are supported.

  • OSS URL: an OSS triplet in JSON string format. Example: {"Bucket":"test-bucket","Location":"oss-cn-shanghai","Object":"test.mp4"}.

  • HTTP URL: a publicly downloadable URL. Example: http://example-test-****.mp4.

  • ApsaraVideo VOD media asset URL: a media asset ID in JSON string format. Example: {"MediaId":"99238***321"}.

Note

The region of the OSS bucket and the storage region of the media asset must be the same as the region of ApsaraVideo Media Processing (MPS).

{"Bucket":"example-bucket-****","Location":"oss-cn-shanghai","Object":"example-****.flv"}

PipelineId

string

No

The ID of the MPS queue. It is used to bind message notifications. You can obtain the ID by choosing ApsaraVideo Media Processing console > Global Settings > MPS Queues.

88c6ca184c0e47098a5b665e2a12****

FpShotConfig

string

Yes

The video fingerprinting configuration. It is a JSON object. For more information, see FpShotConfig details.

{ "PrimaryKey": "12345****", "SaveType": "save", "FpDBId": "417f2ada5999daf****" }

UserData

string

No

The custom user data. The maximum length is 128 bytes. It cannot start with a special character.

testid-****

Response elements

Element

Type

Description

Example

object

The response parameters.

RequestId

string

The request ID.

25818875-5F78-4A13-BEF6-D7393642CA58

JobId

string

The ID of the video fingerprinting job. Save this ID for subsequent calls to other related operations.

2a0697e35a7342859f733a9190c4****

Asynchronous notification message parameters

NameTypeDescription
TypeStringThe message type.
FpShotJobNotifyAliyunFpShotJobNotifyThe video fingerprinting job. For more information, see AliyunFpShotJobNotify data type.
UserDataStringThe custom user data.

Examples

Success response

JSON format

{
  "RequestId": "25818875-5F78-4A13-BEF6-D7393642CA58",
  "JobId": "2a0697e35a7342859f733a9190c4****"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.