All Products
Search
Document Center

ApsaraVideo VOD:GetMediaDNAResult

Last Updated:Dec 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

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
vod:GetMediaDNAResultget
*All Resources
*
    none
none

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.

VideoDNAobject
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.

Detailobject
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.