This topic describes the methods supported for media workflows and the supported parameters.
Start
You can configure trigger conditions and global settings for media workflows. The start method obtains media information. If the media information fails to be obtained, the subsequent methods are skipped until the report method is called.
Parameter | Type | Required | Description |
---|---|---|---|
InputFile | String | Yes | The information about the input file, including the Object Storage Service (OSS) bucket in which the input file is stored, the region where the bucket is deployed, and the prefix of the input file.
|
PipelineId | String | Yes | The ID of the pipeline. This is a global parameter. In a media workflow, the value of QueueName or TopicName specified for the workflow takes effect. |
MessageType | String | No | The type of the message.
|
QueueName | String | No | The name of the queue. This is a global parameter. |
TopicName | String | No | The name of the topic. This is a global parameter. |
RoleName | String | No | The name of the authorized RAM role. This is a global parameter. Default value: AliyunMTSDefaultRole. |
Transcode
Parameter | Type | Required | Description |
---|---|---|---|
Outputs | String | No | This parameter is optional for extracting subtitle streams.
|
OutputBucket | String | No | The OSS bucket in which the output file is stored. The Bucket configuration in PackageConfig takes precedence over the OutputBucket configuration during HTTP Live Streaming (HLS) and Dynamic Adaptive Streaming over HTTP (DASH) packaging. |
OutputLocation | String | No | The region where the output bucket is deployed. The Location configuration in PackageConfig takes precedence over the OutputLocation configuration during HLS and DASH packaging. |
MultiBitrateVideoStream | String | No | This parameter is required for extracting video streams during HLS packaging.
|
ExtXMedia | String | No | This parameter is required for extracting audio or subtitle streams during HLS packaging.
|
WebVTTSubtitleURL | String | No | The URL of the subtitles. This parameter is supported only for HLS packaging.
|
Representation | String | No | This parameter is required for extracting audio, video, or subtitle streams during DASH packaging.
|
InputConfig | String | No | This parameter is supported only for DASH packaging and is required for extracting subtitle streams.
|
Screenshot
Parameter | Type | Required | Description |
---|---|---|---|
SnapshotConfig | String | Yes |
|
MediaCover | String | No | Specifies whether to set the snapshot as the media thumbnail.
|
Analysis
Parameter | Type | Required | Description |
---|---|---|---|
KeepOnlyHighestDefinition | String | No | Specifies whether to retain only the analysis results for videos in the highest definition.
|
Report
Parameter | Type | Required | Description |
---|---|---|---|
PublishType | String | No | The publishing type of the media file. Valid values: Auto, Manual, and TranscodeCompletedAuto.
Default value: Manual. Note
|
PackageConfig
Parameter | Type | Required | Description |
---|---|---|---|
Output | String | Yes | The JSON string that contains information about the output file. Example: {"Bucket":"output","Location":"oss-cn-hangzhou","MasterPlayListName":"a/b/c.m3u8"}. Note Supported placeholders in MasterPlayListName:
|
Protocol | String | Yes | Valid values: hls and dash. |
SubtitleGroup
Parameter | Type | Required | Description |
---|---|---|---|
GroupId | String | No | The ID of the group.
|
AdaptationSet | String | No |
|
AudioGroup
Parameter | Type | Required | Description |
---|---|---|---|
GroupId | String | No | The ID of the group.
|
AdaptationSet | String | No |
|
VideoGroup
Parameter | Type | Required | Description |
---|---|---|---|
AdaptationSet | String | No |
|
GenerateMasterPlayList
Parameter | Type | Required | Description |
---|---|---|---|
MasterPlayList | String | No |
|