All Products
Search
Document Center

ApsaraVideo Media Processing:QueryFpShotJobList

Last Updated:Mar 29, 2024

Queries media fingerprint analysis jobs. You can call this operation to query video fingerprint analysis jobs and text fingerprint analysis jobs.

Operation description

  • After a media fingerprint analysis job is submitted, the media fingerprinting service compares the fingerprints of the job input with those of the media files in the media fingerprint library. You can call this operation to query the job results.
  • You can query the results of a text fingerprint analysis job only in the China (Shanghai) region.

QPS limits

You can call this API operation up to 100 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 limits.

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
JobIdsstringNo

The ID of the media fingerprint analysis job that you want to query. To view the job ID, log on to the ApsaraVideo Media Processing (MPS) console, click Tasks in the left-side navigation pane, and then click the Video DNA tab on the Tasks page. You can query up to 10 media fingerprint analysis jobs at a time. Separate multiple job IDs with commas (,).

88c6ca184c0e47098a5b665e2a12****
NextPageTokenstringNo

The token that is used to retrieve the next page of the query results. You do not need to specify this parameter in the first request. The response to the first request contains this parameter, which you add to the next request.

16f01ad6175e4230ac42bb5182cd****
MaximumPageSizelongNo

The maximum number of entries to return on each page.

  • Default value: 10.
  • Valid values: 1 to 100.
10
StatestringNo

The status of the jobs to be queried. Valid values:

  • All: all jobs.
  • Queuing: the jobs that are being queued.
  • Analysing: the jobs that are in progress.
  • Fail: failed jobs.
  • Success: successful jobs.
All
StartOfJobCreatedTimeRangestringNo

The beginning of the time range within which the jobs to be queried were created.

  • Specify the time in the ISO 8601 standard in the
  • YYYY-MM-DDThh:mm:ssZ format. The time must be in UTC.
2021-12-22T03:48:05Z
EndOfJobCreatedTimeRangestringNo

The end of the time range within which the jobs to be queried were created.

  • Specify the time in the ISO 8601 standard in the
  • YYYY-MM-DDThh:mm:ssZ format. The time must be in UTC.
2022-02-14T02:16:07Z
PipelineIdstringNo

The ID of the MPS queue. To view the ID of the MPS queue, log on to the MPS console and choose Global Settings > Pipelines in the left-side navigation pane.

b11c171cced04565b1f38f1ecc39****

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

RequestIdstring

The ID of the request.

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

The token that is used to retrieve the next page of the query results. The value is a 32-bit UUID. If the returned query results cannot be displayed within one page, this parameter is returned. The value of this parameter is updated for each query.

b11c171cced04565b1f38f1ecc39****
FpShotJobListobject []

The information about media fingerprint analysis jobs.

FpShotResultobject

The results of the media fingerprint analysis job.

AudioFpShotsobject []

The audio fingerprint analysis results.

PrimaryKeystring

The unique primary key of the input audio.

498ac941373341599c4777c8d884****
FpShotSlicesobject []

The audio files that have similar fingerprints to the input audio in the audio fingerprint library.

Duplicationobject

The start point in time and duration of the similar audio clip in the audio file that has similar fingerprints to the input audio in the audio fingerprint library.

Startstring

The start point in time of the similar audio clip in the audio file that has similar fingerprints to the input audio in the audio fingerprint library.

0
Durationstring

The duration of the similar audio clip in the audio file that has similar fingerprints to the input audio in the audio fingerprint library.

3
Similaritystring

The similarity of the input audio against the audio file that has similar fingerprints to the input audio in the audio fingerprint library.

0
Inputobject

The start point in time and duration of the similar audio clip in the input audio.

Startstring

The start point in time of the similar audio clip in the input audio.

0
Durationstring

The duration of the similar audio clip in the input audio.

5
Similaritystring

The overall similarity of the input audio against audio files that have similar fingerprints to the input audio in the audio fingerprint library.

0
FpShotsobject []

The video fingerprint analysis results.

PrimaryKeystring

The unique primary key of the input video.

498ac941373341599c4777c8d884****
FpShotSlicesobject []

The video files that have similar fingerprints to the input video in the video fingerprint library.

Duplicationobject

The start point in time and duration of the similar video clip in the video file that has similar fingerprints to the input video in the video fingerprint library.

Startstring

The start point in time of the similar video clip in the video file that has similar fingerprints to the input video in the video fingerprint library.

1260
Durationstring

The duration of the similar video clip in the video file that has similar fingerprints to the input video in the video fingerprint library.

48
Similaritystring

The similarity of the input video clip against the video file that has similar fingerprints to the input video in the video fingerprint library.

0
Inputobject

The start time and duration of the similar video clip in the input video.

Startstring

The start point in time of the similar video clip in the input video.

46
Durationstring

The duration of the similar video clip in the input video.

48
Similaritystring

The overall similarity of the input video against video files that have similar fingerprints to the input video in the video fingerprint library.

Note The overall similarity is the average value of the similarities of the input video clips with the clips of the video that has a similar fingerprint. If multiple video files that have similar fingerprints to the input video exist in the video fingerprint library, the similarities of the input video against multiple similar video clips are returned.
0.8914769887924194
TextFpShotsobject []

The text fingerprint analysis results.

PrimaryKeystring

The unique primary key of the input text.

3e34ac649945b53a1b0f863ce030****
Similaritystring

The similarity of the input text against text snippets that have similar fingerprints to the input text in the text fingerprint library.

1.0
TextFpShotSlicesobject []

The text snippets that have similar fingerprints to the input text in the text fingerprint library.

Similaritystring

The similarity of the input text against the text snippet that has similar fingerprints to the input text in the text fingerprint library.

1.0
InputTextstring

The input text for text fingerprint analysis.

It's snowy today.
DuplicationTextstring

The text snippet that has similar fingerprints to the input text in the text fingerprint library.

It's snowy today.
InputFragmentobject

The start point in time and duration of the similar text snippet in the input text.

Startstring

The start time of the similar text snippet in the input text.

0
Durationstring

The duration of the similar text snippet in the input text.

3
CreationTimestring

The time when the job was created.

2017-01-10T12:00:00Z
FinishTimestring

The time when the job was complete.

0
Statestring

The status of the job. Valid values:

  • Queuing: The job is waiting in the queue.
  • Analysing: The job is in progress.
  • Success: The job is successful.
  • Fail: The job fails.
Success
Messagestring

The error message returned if the job fails. This parameter is not returned if the job is successful.

The parameter \"Id\" is invalid.A uuid must:1)be comprised of chracters[a-f],numbers[0-9];2)be 32 characters long
FpShotConfigobject

The configurations of the job.

PrimaryKeystring

The unique primary key of the video.

3ca84a39a9024f19853b21be9cf9****
SaveTypestring

The storage type. Valid values:

  • nosave: The fingerprints of the job input are not saved to the media fingerprint library.
  • save: The fingerprints of the job input are saved to the media fingerprint library only if the job input is not duplicated with media content in the media fingerprint library.
  • forcesave: The fingerprints of the job input are forcibly saved to the media fingerprint library.
save
FpDBIdstring

The ID of the media fingerprint library.

2288c6ca184c0e47098a5b665e2a12****
FileIdstring

The ID of the uploaded file.

ebb51ee30f0b49aba959823fa991****
UserDatastring

The custom data.

testid-001
Durationinteger

The length of the input file. Unit: seconds.

5
Codestring

The error code returned if the job fails.

InvalidParameter.UUIDFormatInvalid
InputFileobject

The information about the job input.

Objectstring

The Object Storage Service (OSS) object that is used as the job input.

test.mp4
Locationstring

The OSS region in which the job input resides.

oss-cn-beijing
Bucketstring

The OSS bucket in which the job input resides.

oss-test
PipelineIdstring

The ID of the MPS queue to which the analysis job is submitted.

88c6ca184c0e47098a5b665e2a12****
Idstring

The ID of the job.

88c6ca184c0e47098a5b665e2a12****
Inputstring

The information about the job input.

{"Bucket":"oss-test","Location":"oss-cn-beijing","Object":"test.mp4"}
NonExistIdsarray

The IDs of the jobs that do not exist.

string

The IDs of the jobs that do not exist. This parameter is not returned if all specified jobs are found.

ae687c02fe944327ba9631e50da23128****

Examples

Sample success responses

JSONformat

{
  "RequestId": "25818875-5F78-4A13-BEF6-D7393642CA58",
  "NextPageToken": "b11c171cced04565b1f38f1ecc39****",
  "FpShotJobList": {
    "FpShotJob": [
      {
        "FpShotResult": {
          "AudioFpShots": {
            "FpShot": [
              {
                "PrimaryKey": "498ac941373341599c4777c8d884****",
                "FpShotSlices": {
                  "FpShotSlice": [
                    {
                      "Duplication": {
                        "Start": "0",
                        "Duration": "3"
                      },
                      "Similarity": "0",
                      "Input": {
                        "Start": "0",
                        "Duration": "5"
                      }
                    }
                  ]
                },
                "Similarity": "0"
              }
            ]
          },
          "FpShots": {
            "FpShot": [
              {
                "PrimaryKey": "498ac941373341599c4777c8d884****",
                "FpShotSlices": {
                  "FpShotSlice": [
                    {
                      "Duplication": {
                        "Start": "1260",
                        "Duration": "48"
                      },
                      "Similarity": "0",
                      "Input": {
                        "Start": "46",
                        "Duration": "48"
                      }
                    }
                  ]
                },
                "Similarity": "0.8914769887924194"
              }
            ]
          },
          "TextFpShots": {
            "TextFpShot": [
              {
                "PrimaryKey": "3e34ac649945b53a1b0f863ce030****",
                "Similarity": "1.0",
                "TextFpShotSlices": {
                  "TextFpShotSlice": [
                    {
                      "Similarity": "1.0",
                      "InputText": "It's snowy today.\n",
                      "DuplicationText": "It's snowy today.\n",
                      "InputFragment": {
                        "Start": "0",
                        "Duration": "3"
                      }
                    }
                  ]
                }
              }
            ]
          }
        },
        "CreationTime": "2017-01-10T12:00:00Z",
        "FinishTime": "0",
        "State": "Success",
        "Message": "The parameter \\\"Id\\\" is invalid.A uuid must:1)be comprised of chracters[a-f],numbers[0-9];2)be 32 characters long",
        "FpShotConfig": {
          "PrimaryKey": "3ca84a39a9024f19853b21be9cf9****",
          "SaveType": "save",
          "FpDBId": "2288c6ca184c0e47098a5b665e2a12****"
        },
        "FileId": "ebb51ee30f0b49aba959823fa991****",
        "UserData": "testid-001",
        "Duration": 5,
        "Code": "InvalidParameter.UUIDFormatInvalid",
        "InputFile": {
          "Object": "test.mp4",
          "Location": "oss-cn-beijing",
          "Bucket": "oss-test"
        },
        "PipelineId": "88c6ca184c0e47098a5b665e2a12****",
        "Id": "88c6ca184c0e47098a5b665e2a12****",
        "Input": "{\"Bucket\":\"oss-test\",\"Location\":\"oss-cn-beijing\",\"Object\":\"test.mp4\"}"
      }
    ]
  },
  "NonExistIds": {
    "String": [
      "ae687c02fe944327ba9631e50da23128****"
    ]
  }
}

Error codes

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