This topic describes the activities and supported parameters in the topology of a media workflow. If you want to configure the topology of a media workflow by calling the AddMediaWorkflow or UpdateMediaWorkflow operation, you can refer to this topic.
Activities
Activity name | Activity type in the topology | Description |
Input | Start | Required. Configures the Object Storage Service (OSS) input path and global settings including the ApsaraVideo Media Processing (MPS) queue and message notifications. |
Publish | Report | Required. Configures the publishing mode. Two publishing modes are supported: Auto and Manual. |
Analyze | Analysis | Intelligently analyzes input media files and recommends appropriate preset templates for the files. |
Encode | Transcode | Transcodes input media files to different formats. This ensures that the files can be played on different platforms. |
Snapshot | Screenshot | Captures the snapshots of videos at specific points in time. You can use a snapshot as the video thumbnail or use multiple snapshots to generate a sprite. |
Pack | PackageConfig | Packages multi-resolution, multi-audio track, and multi-subtitle video files to generate M3U8 files. |
Video Group | VideoGroup | |
Audio Group | AudioGroup | |
Subtitle Group | SubtitleGroup | |
Extract Video Extract Audio Extract Subtitle | Transcode | |
Generate | GenerateMasterPlayList | |
Content Moderation | Censor | Detects pornographic content, terrorist content, and undesirable content in speeches, text, and scenes of a video. This reduces costs for manual review and lowers the risks that may be brought by non-compliant content. |
Video DNA | FpShot | Uniquely identifies a video. This allows you to extract and compare the fingerprints of images and audio in videos. This way, you can find duplicate videos, trace the source of video clips, and identify plagiarism. |
Intelligent Thumbnail | Cover | Selects the optimum key frame or clip of a video as the video thumbnail to improve the clicks conversion rate and user experience of the video. This is implemented by using algorithms based on a full understanding of the video content, image aesthetics, and large amounts of user behavior data. |
Input
This activity is required. You can configure the OSS input path and global settings including the MPS queue and message notifications for a media workflow.
This activity obtains media information. If the media information fails to be obtained, the subsequent activities are skipped until the Publish activity is run.
Parameter | Type | Required | Description |
InputFile | String | Yes | The input file. You can use the Bucket, Location, and Object parameters to specify the location of the file.
|
PipelineId | String | Yes | The ID of the MPS queue, which is a global setting.
|
MessageType | String | No | The type of the message, which is a global setting. Valid values:
|
QueueName | String | No | The SMQ queue to be associated with the MPS queue, which is a global setting. After a job is complete in the MPS queue, the job results are pushed to the SMQ queue. For more information about message notifications, see Receive notifications.
|
TopicName | String | No | The SMQ topic to be associated with the MPS queue, which is a global setting. After a job is complete in the MPS queue, the job results are pushed to the SMQ topic. The associated SMQ topic pushes a message about the results to the URL that subscribes to the SMQ topic. For more information, see Receive notifications.
|
RoleName | String | No | The name of the Resource Access Management (RAM) role, which is a global setting.
|
Publish
This activity is required. You can configure the media publishing mode after the workflow is run.
Parameter | Type | Required | Description |
PublishType | String | No | The publishing mode of the media file, which is a global setting. Valid values:
|
Analyze
This activity intelligently analyzes input media files and recommends appropriate preset templates for the files.
Parameter | Type | Required | Description |
KeepOnlyHighestDefinition | String | No | Specifies whether to retain only the analysis results for videos in the highest definition. Valid values:
|
Encode
Parameter | Type | Required | Description |
Outputs | String | No | The outputs of the transcoding jobs.
|
OutputBucket | String | No | The name of the output bucket.
|
OutputLocation | String | No | The region of the output bucket.
|
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 subtitle URL. This parameter is required for extracting subtitle streams during HLS packaging.
|
Representation | String | No | This parameter is required for extracting video, audio, or subtitle streams during DASH packaging.
|
InputConfig | String | No | The subtitle URL. This parameter is required for extracting subtitle streams during DASH packaging.
|
Snapshot
Parameter | Type | Required | Description |
SnapshotConfig | String | Yes | The snapshot configurations.
|
MediaCover | String | No | Specifies whether to set the snapshot as the media thumbnail. This parameter is valid only for a single snapshot. Valid values:
|
Pack
Pack
Parameter | Type | Required | Description |
Output | String | Yes | The detailed information about the output file, which is a JSON string. Example: {"Bucket":"output","Location":"oss-cn-hangzhou","MasterPlayListName":"a/b/c.m3u8"}. Note Placeholders that can be used to specify the MasterPlayListName parameter:
|
Protocol | String | Yes | The protocol that can be used for packaging. Valid values: hls and dash. |
Video Group
Parameter | Type | Required | Description |
AdaptationSet | String | No | The information about the video group. This parameter is required for DASH packaging.
|
Audio Group
Parameter | Type | Required | Description |
GroupId | String | No | The ID of the audio group. This parameter is required for HLS packaging.
|
AdaptationSet | String | No | The information about the audio group. This parameter is required for DASH packaging.
|
Subtitle Group
Parameter | Type | Required | Description |
GroupId | String | No | The ID of the subtitle group. This parameter is required for HLS packaging.
|
AdaptationSet | String | No | The information about the subtitle group. This parameter is required for DASH packaging.
|
Generate
Parameter | Type | Required | Description |
MasterPlayList | String | No |
|