All Products
Search
Document Center

ApsaraVideo Media Processing:SubmitFpShotJob

Last Updated:Mar 03, 2024

Submits a media fingerprint analysis job to query the media fingerprint repository for a media file with the identical or similar fingerprint as the input file.

Operation description

  • You can call this operation to submit a video, audio, image, or text fingerprint analysis job.

  • This operation asynchronously submits a job. The query results may not have been generated when the response is returned. After the results are generated, an asynchronous message is returned.

  • You can submit a text fingerprint analysis job only in the China (Shanghai) region.

  • The input file of the job must be in one of the following formats:

    • Image formats: JPEG, PNG, and BMP.
    • Video formats: MP4, AVI, MKV, MPG, TS, MOV, FLV, MXF.
    • Video encoding formats: MPEG2, MPEG4, H264, HEVC, and WMV.

QPS limit

You can call this operation up to 150 times per second per account. Requests that exceed this limit are dropped and you will experience service interruptions. We recommend that you take note of this limit when you call this operation. For more information, see QPS limit.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
InputstringYes

The OSS URL of the job input. The value is a JSON object. You can query the OSS URL in the OSS or MPS console.

Note The OSS bucket must reside in the same region as your MPS service.
{"Bucket":"example-bucket-****","Location":"oss-cn-shanghai","Object":"example-****.flv"}
PipelineIdstringNo

The ID of the MPS queue. This ID can be used to associate the job with a notification method. To view the ID of the MPS queue, perform the following steps: Log on to the MPS console. In the left-side navigation pane, choose Global Settings > Pipelines.

88c6ca184c0e47098a5b665e2a12****
FpShotConfigstringYes

The configurations of the media fingerprint analysis job. The value is a JSON object. For more information, see the "FpShotConfig" section of the Parameter details topic.

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

The custom data. The value can be up to 128 bytes in length and cannot start with a special character.

testid-****

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

RequestIdstring

The ID of the request.

25818875-5F78-4A13-BEF6-D7393642CA58
JobIdstring

The ID of the media fingerprint analysis job. We recommend that you keep this ID for subsequent operation calls.

2a0697e35a7342859f733a9190c4****

Asynchronous notification parameters

ParameterTypeDescription
TypeStringThe type of the message.
FpShotJobNotifyAliyunFpShotJobNotifyThe notification of the results of the media fingerprint analysis job. For more information, see the "AliyunFpShotJobNotify" section of the Data types topic.
UserDataStringThe custom data.

Examples

Sample success responses

JSONformat

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

Error codes

For a list of error codes, visit the Service error codes.