All Products
Search
Document Center

Intelligent Media Management:TargetSubtitle

Last Updated:Aug 28, 2026

Parameter

Type

Description

Example

object

The subtitle processing settings.

DisableSubtitle

boolean

Whether to disable subtitle generation. Valid values:

  • true

  • false (default)

Note

If you call the GenerateVideoPlaylist operation and subtitles are required, you must set this parameter to false.

false

Stream

array

The index numbers of subtitle streams to process. If you set this parameter to null (default) or a value greater than 100, all subtitle streams are processed.

  • For example, set this parameter to [0,1] to process subtitle streams 0 and 1, [1] to process only subtitle stream 1, or [101] to process all subtitle streams.

Note

If the specified index number does not match any subtitle stream, it is ignored.

integer

The index number of the subtitle stream to process.

0

ExtractSubtitle

object

The subtitle extraction settings.

Note

The GenerateVideoPlaylist operation does not support this parameter.

URI

string

The OSS URI prefix for storing extracted subtitles. The URI follows the oss://bucket/object format, where bucket is the name of the OSS bucket in the same region as the current project and object is the full file path including the extension.

  • Example: If the prefix is oss://examplebucket/outputSubtitle, an output subtitle file has a URI in the format of oss://examplebucket/outputSubitile_${index}.${ext}, where ${ext} is the file name extension and ${index} is the 0-based index number matching the source subtitle stream.

oss://test-bucket/extractsubtitle

Format

string

The format of the extracted subtitle file. Valid values:

  • ass

  • srt

  • webvtt

webvtt