All Products
Search
Document Center

Intelligent Media Management:TargetSubtitle

Last Updated:Dec 11, 2024
ParameterTypeDescriptionExample
object

The subtitle processing settings.

DisableSubtitleboolean

Specifies whether to disable subtitle processing. Valid values:

  • true
  • false (default)
Note If you call the GenerateVideoPlaylist operation and subtitles are required, you must set this parameter to false.
false
Streamarray

The index numbers of subtitle streams for source files that need to be processed. If you set this parameter to null (default) or a value greater than 100, all subtitle streams are processed.

  • Example: [0,1] indicates that the subtitle streams whose index numbers are 0 and 1 are processed. [1] indicates that the subtitle stream whose index number is 1 is processed. [101] indicates that all subtitle streams are processed.
Note Only subtitle streams whose index numbers exist are processed. If the index number of a subtitle stream does not exist, the subtitle stream is ignored.
integer

The index number of the subtitle stream that needs to be processed.

0
ExtractSubtitleobject

The subtitle extraction settings.

Note If you call the GenerateVideoPlaylist operation, this parameter is not supported.
URIstring

The prefix of the OSS path that is used to save the extracted subtitles. The OSS path is in the oss://bucket/object format. bucket specifies the name of the OSS bucket that is in the same region as the current project. object specifies the full file path that contains the file name extension.

  • Example: If the URI is oss://examplebucket/outputSubtitle, multiple files are generated in oss://examplebucket/outputSubitile_${index}.${ext}. ${ext} indicates the file name extension of a subtitle file, and ${index} indicates the serial number of a subtitle file that corresponds to the specific subtitle stream of a source video. The serial numbers start from 0.
oss://test-bucket/extractsubtitle
Formatstring

The format of the extracted subtitle file. Valid values:

  • ass
  • srt
  • webvtt
webvtt