All Products
Search
Document Center

ApsaraVideo Media Processing:Parameter details

Last Updated:Nov 22, 2023

This topic describes the InputFile and FpShotConfig parameters in detail.

InputFile

Parameter

Type

Required

Description

Bucket

String

Yes

The Object Storage Service (OSS) bucket that stores the input file. For more information, see the definition of an OSS bucket.

Location

String

Yes

The region in which the OSS bucket that stores the input file resides. For more information, see the definition of an OSS region. Set the value to oss-cn-shanghai.

Object

String

No

The OSS object that is used as the input file. The URL of the OSS object must be encoded in UTF-8, with reserved characters being percent-encoded. For more information, see the definition of an OSS object.

FpShotConfig

Parameter

Type

Required

Description

PrimaryKey

String

Yes

The primary key of the video. You must make sure that each primary key is unique.

SaveType

String

Yes

The storage type. Valid values:

  • nosave: The fingerprints of the input file are not saved to the media fingerprint library.

  • save: The fingerprints of the input file are saved to the media fingerprint library after the fingerprints are compared with those in the media fingerprint library to ensure that the input file is unique.

  • forcesave: The fingerprints of the input file are forcibly saved to the media fingerprint library.

  • onlysave: The fingerprints of the input file are saved to the media fingerprint library.

FpDBId

String

Yes

The ID of the media fingerprint library.

TextType

String

No

The text type. This parameter is required for text fingerprint analysis. Valid values:

  • Text: a long text string.

  • ASR: the speech recognition result.

SimilarityThreshold

Float

No

The threshold for determining the similarity of the fingerprints of the input file with those in the media fingerprint library. This parameter is required if SaveType is set to save. Valid values: 0 to 1.