All Products
Search
Document Center

Intelligent Media Management:TargetSubtitle

Last Updated:Oct 09, 2025
ParameterTypeDescriptionExample
object

The subtitle processing settings.

DisableSubtitleboolean

Specifies 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
Streamarray

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

  • For example, you can set the parameter to [0,1] to process subtitle streams with index numbers 0 and 1, [1] to process only the subtitle stream with the index number 1, and [101] to process all subtitle streams.
Note If you specify an index number but no subtitle stream with the index number is found, the index number is ignored.
integer

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

0
ExtractSubtitleobject

The subtitle extraction settings.

Note The GenerateVideoPlaylist operation does not support this parameter.
URIstring

The prefix of the OSS URI where the extracted subtitles are stored. The OSS URI is in the oss://bucket/object format, where bucket specifies the name of the OSS bucket that is in the same region as the current project and object specifies the full file path that includes the file name 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}. In the URI format, ${ext} is the file name extension of the output subtitle file, and ${index} is the same 0-based index number as that of the corresponding source subtitle stream file.
oss://test-bucket/extractsubtitle
Formatstring

The format of the extracted subtitle file. Valid values:

  • ass
  • srt
  • webvtt
webvtt