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
Test
RAM authorization
|
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.
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
| Name | Type | Description |
| Type | String | The message type. |
| FpShotJobNotify | AliyunFpShotJobNotify | The video fingerprinting job. For more information, see AliyunFpShotJobNotify data type. |
| UserData | String | The 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.