All Products
Search
Document Center

ApsaraVideo VOD:GetMediaDNAResult

更新時間:Jul 19, 2024

Queries a media fingerprinting result. After a media fingerprinting job is complete, you can call this operation to query the media fingerprinting result.

Operation description

Regions that support this operation: China (Beijing), China (Shanghai), and Singapore.

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
MediaIdstringYes

The ID of the video.

88c6ca184c0e*****a5b665e2a126797

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The ID of the request.

63FC4896-E956-4B*****7D-134FF1BC597A
DNAResultobject

The media fingerprinting results.

VideoDNAarray<object>

The video fingerprint recognition result.

object
PrimaryKeystring

The ID of the video that has a similar fingerprint.

6ad8987da46f4b*****490ce2873745
Similaritystring

The similarity between the fingerprints of the input video and the matched video. 1 indicates that the fingerprints of the two videos are the same.

0.98
Detailarray<object>

The details of the matched video. Information such as the location and duration of the video is returned.

object
Inputobject

The start time and duration of the input video.

Durationstring

The duration of the video. Unit: seconds.

12.0
Startstring

The start time of the video. Unit: seconds.

2.0
Duplicationobject

The start time and duration of the matched video.

Durationstring

The duration of the video. Unit: seconds.

12.0
Startstring

The start time of the video. Unit: seconds.

2.0

Examples

Sample success responses

JSONformat

{
  "RequestId": "63FC4896-E956-4B*****7D-134FF1BC597A",
  "DNAResult": {
    "VideoDNA": [
      {
        "PrimaryKey": "6ad8987da46f4b*****490ce2873745",
        "Similarity": "0.98",
        "Detail": [
          {
            "Input": {
              "Duration": "12.0",
              "Start": "2.0"
            },
            "Duplication": {
              "Duration": "12.0",
              "Start": "2.0"
            }
          }
        ]
      }
    ]
  }
}

Error codes

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