This topic describes the parameters that are used in the ApsaraVideo Media Processing (MPS) API, including their types, descriptions, and valid values. You can configure these API parameters to use MPS features, such as transcoding, MPS queues, and workflows.
Input details
The Input parameter is referenced by the SubmitJobs operation.
Parameter | Type | Required | Description |
Bucket | String | Yes | The Object Storage Service (OSS) bucket that stores the input file. For more information about OSS buckets, see Terms. |
Location | String | Yes | Enter the data center (OSS Region) for the OSS Bucket.
|
Object | String | Yes | The OSS path of the input file. The OSS path is a full path that includes the name of the input file.
|
Referer | String | No | The configuration of hotlink protection. If you enable the hotlink protection feature for the OSS bucket to allow only specified referers in the whitelist to download files, you must specify this parameter. If you do not enable the hotlink protection feature for the OSS bucket, you do not need to specify this parameter. For more information, see Hotlink protection.
|
Output details
The Output parameter is referenced by the SubmitJobs, AddMediaWorkflow, and UpdateMediaWorkflow operations.
Parameter | Type | Required | Description |
OutputObject | String | Yes | The OSS path of the output file. The OSS path is a full path that includes the name of the output file.
|
TemplateId | String | Yes | The ID of the transcoding template.
|
Container | Object | No | The container format. For more information, see the Container section of this topic.
|
Video | Object | No | The parameter related to video transcoding. For more information, see the Video section of this topic.
|
Audio | Object | No | The parameter related to audio transcoding. For more information, see the Audio section of this topic.
|
TransConfig | Object | No | The parameter related to the transcoding process. For more information, see the TransConfig section of this topic.
|
VideoStreamMap | String | No | The identifier of the video stream to be retained in the input file. Valid values:
|
AudioStreamMap | String | No | The identifier of the audio stream to be retained in the input file. Valid values:
|
Rotate | String | No | The rotation angle of the video in the clockwise direction.
|
WaterMarks | Object[] | No | The watermarks. Watermarks are images or text added to video images. If you specify this parameter, the corresponding parameter in the specified watermark template is overwritten. For more information, see the WaterMarks section of this topic.
|
DeWatermark | Object | No | You can perform blur processing. For more information, see Blur processing details.
|
SubtitleConfig | Object | No | The configurations of the hard subtitle. This parameter lets you add external subtitle files to the video. For more information, see the SubtitleConfig section of this topic.
|
Clip | Object | No | The clip. For more information, see the Clip section of this topic.
|
MergeList | Object[] | No | The merge list. You can merge multiple input files and clips in sequence to generate a new video. For more information, see the MergeList section of this topic.
|
MergeConfigUrl | String | No | The OSS path of the configuration file for merging clips.
Important If you merge too many or excessively long clips, service performance may be affected and transcoding may fail. If you have professional requirements for video merging, use the editing service of Intelligent Media Services. For more information, see Intelligent Media Services. |
OpeningList | Object[] | No | The opening parts. Opening is a special merging effect that lets you embed opening parts at the beginning of the input video. The opening parts are displayed in Picture-in-Picture (PiP) mode. For more information, see the OpeningList section of this topic.
|
TailSlateList | Object[] | No | The ending parts. Ending is a special merging effect that lets you add ending parts to the end of the input video. The ending parts are displayed in fade-in and fade-out mode. For more information, see the TailSlateList section of this topic.
|
Amix | Object[] | No | The audio mixing configuration. This parameter is suitable for scenarios in which you want to merge multiple audio tracks in a video or add background music. For more information, see the Amix section of this topic.
|
MuxConfig | Object | No | The packaging configurations. For more information, see the MuxConfig section of this topic.
|
M3U8NonStandardSupport | Object | No | The non-standard support for the M3U8 format. For more information, see the M3U8NonStandardSupport section of this topic.
|
Encryption | String | No | The encryption configuration. This parameter takes effect only if the Container parameter is set to m3u8. For more information, see Encryption parameter details.
|
UserData | String | No | The custom data, which can be up to 1,024 bytes in size. |
Priority | String | No | The priority of the transcoding job in the MPS queue.
|
Metadata | Map | No | The
|
Container details
This parameter serves as a reference for Output.Container.
Parameter | Type | Required | Description |
Format | String | No | The container format.
|
TransConfig details
This parameter is referenced in Output.TransConfig.
Parameter | Type | Required | Description |
TransMode | String | No | The video transcoding mode. This parameter takes effect only if the Codec parameter is set to H.264, H.265, or AV1, and the Bitrate and Crf parameters are set to valid values. For more information, see the Bitrate control mode section of this topic. Valid values:
|
AdjDarMethod | String | No | The method that is used to adjust the resolution. This parameter takes effect only if both the Width and Height parameters are specified. You can use this parameter together with the LongShortMode parameter.
|
IsCheckReso | String | No | Specifies whether to check the video resolution. You can specify only one of the IsCheckReso and IsCheckResoFail parameters. The IsCheckResoFail parameter has a higher priority than the IsCheckReso parameter. Valid values:
|
IsCheckResoFail | String | No | Specifies whether to check the video resolution. This parameter is mutually exclusive with IsCheckResoFail and takes priority.
|
IsCheckVideoBitrate | String | No | Specifies whether to check the video bitrate. You can specify only one of the IsCheckVideoBitrate and IsCheckVideoBitrateFail parameters. The IsCheckVideoBitrateFail parameter has a higher priority than the IsCheckVideoBitrate parameter. Valid values:
|
IsCheckVideoBitrateFail | String | No | Specifies whether to check the video bitrate. This parameter is mutually exclusive with IsCheckVideoBitrateFail and takes precedence.
|
IsCheckAudioBitrate | String | No | Specifies whether to check the audio bitrate. You can specify only one of the IsCheckAudioBitrate and IsCheckAudioBitrateFail parameters. The IsCheckAudioBitrateFail parameter has a higher priority than the IsCheckAudioBitrate parameter. Valid values:
|
IsCheckAudioBitrateFail | String | No | Specifies whether to check the audio bitrate. This parameter is mutually exclusive with IsCheckAudioBitrateFail and has a higher priority.
|
Bitrate control mode
You can set the TransMode, Bitrate, vbv (Maxrate, Bufsize), and Crf parameters based on the video bitrate control mode.
Bitrate control mode | Setting of the TransMode parameter | Setting of the bitrate-related parameters |
Constant bitrate (CBR) | CBR | Bitrate, Maxrate, and Bufsize must be equal. |
Average bitrate (ABR) | OnePass or unspecified | The Bitrate parameter is required. The Maxrate and Bufsize parameters are optional, which can be used to configure the bitrate range during peak hours. |
Variable bitrate (VBR) | twopass | The Bitrate, Maxrate, and Bufsize parameters are required. |
CRF quality control | fixCRF | A CRF value is required. If the Crf parameter is not specified, the default value of the Crf parameter corresponding to the specified Codec value takes effect. The Maxrate and Bufsize parameters are optional, which can be used to configure the bitrate range during peak hours. |
Not specified | Leave the Bitrate parameter empty, and the default value of the Crf parameter corresponding to the specified Codec value takes effect. |
Video details
This parameter is referenced by Output.Video.
Parameter | Type | Required | Description |
Remove | String | No | Specifies whether to delete the video stream. Valid values:
|
Codec | String | No | The video encoding format.
|
Width | String | No | The width or long side of the output video. If the LongShortMode parameter is set to false or left empty, this parameter specifies the width of the output video. If the LongShortMode parameter is set to true, this parameter specifies the long side of the output video.
|
Height | String | No | The height or short side of the output video. If the LongShortMode parameter is set to false or left empty, this parameter specifies the height of the output video. If the LongShortMode parameter is set to true, this parameter specifies the short side of the output video.
|
LongShortMode | String | No | Specifies whether to enable automatic rotation (adapting to the long and short edges). This setting takes effect only when `Width` or `Height` is specified.
|
Fps | String | No | The frame rate of the video stream.
|
MaxFps | String | No | The maximum frame rate. |
Gop | String | No | Set the interval between adjacent I-frames in time or frame count. Note The larger the group of pictures (GOP) value, the higher the compression ratio, the lower the encoding speed, the longer the length of a single segment of streaming media, and the longer the response time to seeking. For more information, see the description of the term GOP in Terms.
|
Bitrate | String | No | The average bitrate of the output video. If you use the CRB, ABR, or VBR bitrate control mode, you must specify the Bitrate parameter, and you must set the TransMode parameter to a valid value. For more information, see the Bitrate control mode section of this topic.
|
BitrateBnd | String | No | The average bitrate range of the output video.
|
Maxrate | String | No | The peak bitrate of the output video. For more information, see the Bitrate control mode section of this topic.
|
Bufsize | String | No | The buffer size for bitrate control. You can specify this parameter to control the bitrate fluctuation. For more information, see the Bitrate control mode section of this topic. Note The larger the value of Bufsize, the greater the bitrate fluctuation and the higher the video quality.
|
Crf | String | No | The quality control factor. To use the CRF mode, you must specify the Crf parameter and set the TransMode parameter to fixCRF. For more information, see the Bitrate control mode section of this topic. Note The larger the value of the Crf parameter, the lower the video quality and the higher the compression ratio.
|
Qscale | String | No | The value of the factor for video quality control. This parameter takes effect if you use the VBR mode. Note The larger the value of the Qscale parameter, the lower the video quality and the higher the compression ratio.
|
Profile | String | No | Specifies the encoding profile. For more information, see Terms.
|
Preset | String | No | The preset mode of the H.264 encoder. Note The faster the mode you select, the lower the video quality.
|
ScanMode | String | No | The scan mode. Valid values:
Best practice: The interlaced scan mode saves data traffic than the progressive scan mode but provides poor image quality. Therefore, the progressive scan mode is commonly used in mainstream video production.
|
PixFmt | String | No | The color format of the video.
|
Crop | String | No | The method that is used to crop videos. The borders can be automatically detected and removed. You can also manually crop the video.
|
Pad | String | No | The video is padded with black bars.
|
Audio details
This parameter is used in Output.Audio.
Parameter | Type | Required | Description |
Remove | String | No | Specifies whether to delete the audio stream.
|
Codec | String | No | The audio codec format.
Note If you set the audio encoding format to AC3 or EAC3 during transcoding, your standard audio is transcoded into Dolby format. When you use the ApsaraVideo Player SDK, you can enable Dolby-specific audio effects on Dolby-enabled devices. Dolby audio production is an audio and video enhancement service. In the Chinese mainland, you are charged CNY 3.5 per minute. No additional audio transcoding fees are charged. For more information, see Audio and video enhancement fees. |
Profile | String | No | The audio encoding profile.
|
Bitrate | String | No | The audio bitrate of the output file.
|
Samplerate | String | No | The sampling rate.
|
Channels | String | No | The number of sound channels.
|
Volume | String | No | The volume configuration. For more information, see the Volume section of this topic.
|
Volume control details
This parameter is used by Output.Audio.Volume.
Parameter | Type | Required | Description |
Method | String | No | Adjusting the volume
|
Level | String | No | The level of volume adjustment performed based on the volume of the input audio.
|
IntegratedLoudnessTarget | String | No | The target volume.
|
TruePeak | String | No | The maximum volume.
|
LoudnessRangeTarget | String | No | The allowed deviation from the target volume.
|
Transcoding watermark parameter details
This parameter is used by Output.WaterMarks.
Parameter | Type | Required | Description |
Type | String | No | The type of the watermark. Valid values:
|
TextWaterMark | Object | No | The configuration of the text watermark. For more information, see the TextWaterMark section of this topic.
|
InputFile | Object | No | The file to be used as the image watermark. You can use the Bucket, Location, and Object parameters to specify the location of the file.
Note If you add an image watermark whose type is not HDR to an HDR video, the color of the image watermark may become inaccurate. |
WaterMarkTemplateId | String | No | The ID of the image watermark template. If you do not specify this parameter, the following default configurations are used for the parameters related to the image watermark:
|
ReferPos | String | No | The location of the image watermark.
|
Dx | String | No | The horizontal offset of the image watermark relative to the output video. If you specify this parameter, the corresponding parameter in the specified watermark template is overwritten. The following value types are supported:
|
Dy | String | No | The vertical offset of the image watermark relative to the output video. The following value types are supported:
|
Width | String | No | You can set the width of the image watermark in two ways:
|
Height | String | No | You can set the height of the image watermark in two ways:
|
Timeline | String | No | The display time of the image watermark. For more information, see the Timeline section of this topic. |
Text watermark parameter details
This parameter is referenced in Output.WaterMarks.TextWaterMark.
Parameter | Type | Required | Description |
Content | String | Yes | The text to be displayed as the watermark. The text must be encoded in the Base64 format.
Note If the text contains special characters such as emojis and single quotation marks ('), the watermark may be truncated or fails to be added. You must escape special characters before you add them. |
FontName | String | No | Font.
|
FontSize | Int | No | Font size.
|
FontColor | String | No | Font color.
|
FontAlpha | Float | No | Text transparency.
|
BorderWidth | Int | No | Outline width
|
BorderColor | String | No | Outline color.
|
Top | Int | No | Top margin of the text.
|
Left | Int | No | Left margin.
|
Timeline parameter details
The Output.WaterMarks.Timeline parameter references this parameter.
Parameter | Type | Required | Description |
Start | String | No | The beginning of the time range in which the image watermark is displayed.
|
Duration | String | No | The time range in which the image watermark is displayed.
|
Watermark template configuration details
The Config parameter is referenced by the AddWaterMarkTemplate and UpdateWaterMarkTemplate operations.
Parameter | Type | Required | Description |
Type | String | No | The type of watermark.
|
ReferPos | String | No | The location of the image watermark.
|
Dx | String | No | The horizontal offset of the image watermark relative to the output video. The following value types are supported:
|
Dy | String | No | The vertical offset of the image watermark relative to the output video. The following value types are supported:
|
Width | String | No | The width of the image watermark. The following value types are supported:
|
Height | String | No | The height of the image watermark can be set in one of two ways:
|
Timeline | String | No | Dynamic watermark: For more information, see Timeline parameter details. |
The following figure shows an example of how to use the ReferPos, Dx, and Dy parameters to specify the location of an image watermark.
Note the following when you specify the Width and Height parameters:
If you specify neither the Width nor Height parameter, the watermark width is 0.12 times the width of the output video, and the watermark height is proportionally scaled based on the watermark width and the aspect ratio of the original image.
If you specify only the Width parameter, the watermark height is proportionally scaled based on the specified width and the aspect ratio of the original image. If you specify only the Height parameter, the watermark width is proportionally scaled based on the specified height and the aspect ratio of the original image.
If you specify both the Width and Height parameters, the watermark is displayed with the specified width and height.
Blurring details
This parameter is used by Output.DeWatermark.
{
// Blur two watermarks in the video image starting from the first frame. The first watermark is 10 × 10 pixels away from the upper-left corner of the video image and is 10 × 10 pixels in size. The second watermark is 100 pixels away from the left side of the video image and is 10 × 10 pixels in size. The distance between the top of the video image and the watermark is calculated by multiplying 0.1 by the height of the video image.
"0": [
{
"l": 10,
"t": 10,
"w": 10,
"h": 10
},
{
"l": 100,
"t": 0.1,
"w": 10,
"h": 10
}
],
// Stop blurring the logos at the 128,000th millisecond. In this case, the logos are blurred from the start of the video to the 128,000th millisecond.
"128000": [],
// Blur the watermark in the video image starting from the 250,000th millisecond. The watermark width is 0.01 times the width of the video image, and the watermark height is 0.05 times the height of the video image. The distance between the left side of the video image and the watermark is calculated by multiplying 0.2 by the width of the video image. The distance between the top of the video image and the watermark is calculated by multiplying 0.1 by the height of the video image.
"250000": [
{
"l": 0.2,
"t": 0.1,
"w": 0.01,
"h": 0.05
}
]
} Description
pts: The point in time at which a frame is displayed, in milliseconds.
l: The left margin of the blurred area.
t: The top margin of the blurred area.
w: The width of the blurred area.
h: The height of the blurred area.
If the values of the l, t, w, and h parameters are greater than 1, they are interpreted as pixel values. Otherwise, they are interpreted as a ratio relative to the video dimensions. The values are rounded to the nearest integer to define the blurred area.
SubtitleConfig details
This parameter is referenced by Output.SubtitleConfig.
Parameter | Type | Required | Description |
ExtSubtitleList | Object[] | No | The external subtitles. For more information, see the ExtSubtitle section of this topic.
|
ExtSubtitle details
This parameter is a reference for the Output.SubtitleConfig.ExtSubtitle parameter.
Parameter | Type | Required | Description |
Input | String | Yes | The external subtitle file. You can use the Bucket, Location, and Object parameters to specify the location of the file.
Note If the length of a subtitle file exceeds the length of a video, the video length prevails. If the characters of a subtitle are excessive and cannot be displayed in one line, the subtitle is truncated. |
CharEnc | String | No | The encoding format of the external subtitles.
Note If you set this parameter to auto, the detected character set may not be the actual character set. We recommend that you set this parameter to another value. |
FontName | String | No | The font of the subtitle.
|
FontSize | Int | No | The font size of the subtitle.
|
Clip details
This parameter is used by Output.Clip.
Parameter | Type | Required | Description |
TimeSpan | String | No | The time span of cropping a clip from the input file. For more information, see the TimeSpan section of this topic.
|
ConfigToClipFirstPart | Boolean | No | Specifies whether to perform video editing on the first segment.
|
TimeSpan details
This parameter is used in Output.Clip.TimeSpan.
Parameter | Type | Required | Description |
Seek | String | No | The start point in time of the clip. You can use this parameter to specify the start point in time of the clip. The default start point in time is the beginning of the video.
|
Duration | String | No | The length of the clip. You can specify the length of the clip relative to the point in time specified by the Seek parameter. By default, the length of the clip is from the point in time specified by the Seek parameter to the end of the video. You can specify only one of the Duration and End parameters. If you specify the End parameter, the setting of the Duration parameter is invalid.
|
End | String | No | The length of the ending part of the original video to be cropped out. You can specify only one of the Duration and End parameters. If you specify the End parameter, the setting of the Duration parameter is invalid.
|
MergeList concatenation parameter details
This parameter is referenced in Output.MergeList.
Parameter | Type | Required | Description |
MergeURL | String | Yes | The OSS path of the clip to be merged.
|
Start | String | No | The point in time at which the output clip is cut from the original clip. Specify this parameter if you want to merge only part of the video into the output file. The default start point in time is the beginning of the video.
|
Duration | String | No | The length of the mixed video. The length is relative to the start point in time specified by the Start parameter. Specify this parameter if you want to merge only part of the video into the output file. By default, the length is the period from the start point in time specified by the Start parameter to the end of the video.
|
OpeningList details
This parameter is a reference for Output.OpeningList.
Parameter | Type | Required | Description |
OpenUrl | String | Yes | The OSS path of the opening part.
|
Start | String | No | The duration that elapses after the input video is played before the opening scene is played. The value starts from 0.
|
Width | String | No | The width of the output video can be set in three ways:
Note The output opening part is center-aligned based on the central point of the main part. The width of the opening part must be equal to or less than the width of the main part. Otherwise, the result is unknown. |
Height | String | No | You can set the height of the output video in three ways:
Note The output opening part is center-aligned based on the central point of the main part. The height of the opening part must be equal to or less than the height of the main part. Otherwise, the result is unknown. |
TailSlateList details
This parameter is referenced in Output.TailSlateList.
Parameter | Type | Required | Description |
TailUrl | String | Yes | The URL of the end slate video in OSS.
|
BlendDuration | String | No | The amount of time between the end of the main part and the beginning of the ending part. During the transition, the last frame of the main part fades out, and the first frame of the ending part fades in.
|
Width | String | No | The width of the output ending part. Valid values:
Note The output ending part is center-aligned based on the central point of the main part. The width of the ending part must be equal to or less than the width of the main part. Otherwise, the result is unknown. |
Height | String | No | The height of the output end slate has three available settings:
Note The output ending part is center-aligned based on the central point of the main part. The height of the ending part must be equal to or less than the height of the main part. Otherwise, the result is unknown. |
IsMergeAudio | Boolean | No | Specifies whether to append the audio of the outro video.
|
BgColor | String | No | The color of the margin if the width and height of the ending part are less than those of the main part.
|
Amix mix details
Output.Amix references this parameter.
Parameter | Type | Required | Description |
AmixURL | String | Yes | The audio stream to be mixed supports two modes:
|
Map | String | No | To select the target audio stream for mixing in AmixURL, use the AudioStreamMap parameter to specify the ordinal number of the audio stream in the input file.
|
MixDurMode | String | No | The duration of the mixed output file.
|
Start | String | No | The start point in time of the audio stream. Specify this parameter if you want to mix only part of the audio into the output file. The default start point in time is the beginning of the audio.
|
Duration | String | No | The length of the mixed audio. The length is relative to the start point in time specified by the Start parameter. Specify this parameter if you want to mix only part of the audio into the output file. By default, the length is the period from the start point in time specified by the Start parameter to the end of the audio.
|
MuxConfig details
This parameter applies to Output.MuxConfig.
Parameter | Type | Required | Description |
Segment | String | No | The segment configuration. For more information, see the Segment section of this topic.
|
Segment details
This parameter is referenced in Output.MuxConfig.Segment.
Parameter | Type | Required | Description |
Duration | Int | No | The segment duration.
|
ForceSegTime | String | No | The points in time at which the video is forcibly segmented. Separate points in time with commas (,). You can specify up to 10 points in time.
|
Support details for non-standard M3U8 parameters
This parameter is a reference for Output.M3U8NonStandardSupport.
Parameter | Type | Required | Description |
TS | Object | No | The non-standard support for TS files. For more information, see the TS section of this topic. |
TS Parameter Support Details
The TS parameter is referenced by the Output.M3U8NonStandardSupport.TS parameter.
Parameter | Type | Required | Description |
Md5Support | Boolean | No | Specifies whether to include the MD5 value of each TS file in the output M3U8 video. |
SizeSupport | Boolean | No | Specifies whether to include the size of each TS file in the output M3U8 video. |
Encryption parameter details
This parameter is used by Output.Encryption.
Parameter | Type | Required | Description |
Type | String | Yes | The encryption method of the video. Valid values:
|
KeyType | String | Yes | Key encryption method.
|
Key | String | Yes | The ciphertext key for the encrypted video. The key format is determined by the encryption method.
Note Alibaba Cloud provides the master key. To obtain the key, submit a ticket. |
KeyUri | String | Yes | This is the decryption service endpoint. You must set up the service yourself.
|
SkipCnt | String | No | The number of clips that are not encrypted at the beginning of the video. This ensures a shorter loading time during startup.
|
Placeholder replacement rules
The following placeholders can be used in file paths.
For example, if the input file path is a/b/example.flv and you want the output file path to be a/b/c/example+test.mp4, you can use the {ObjectPrefix} and {FileName} placeholders to specify the output file path. The URL-encoded path is %7BObjectPrefix%7D/c/%7BFileName%7D%2Btest.mp4.
Placeholder description | Transcoding output file | Caption Input | Snapshot output file | |||
Placeholder | Description | Perform transcoding using a workflow | Submit a transcoding job | Subtitle | Taking a screenshot of a workflow | Submit a snapshot job |
{ObjectPrefix} | The prefix of the input file. | Support | Supported | Support | Support | Supported |
{FileName} | Enter the file name | Supported | Support | Supported | Supported | Support |
{ExtName} | The file name extension of the input file. | Supported | Supported | Support | Supported | Support |
{DestMd5} | The MD5 value of the output file. | Supported | Support | Not supported | Not supported | Not supported |
{DestAvgBitrate} | The average bitrate of the output file. | Supported | Supported | Not supported | Not supported | Not supported |
{SnapshotTime} | The point in time of the snapshot. | Not supported | Not supported | Not supported | Support | Supported |
{Count} | The serial number of a snapshot in multiple snapshots that are captured at a time. | Not supported | Not supported | Not supported | Support | Support |
{RunId} | The ID of the execution instance of the workflow. | Support | Not supported | Not supported | Not supported | Not supported |
{MediaId} | The ID of the media file in the workflow. | Support | Not supported | Not supported | Not supported | Not supported |
SnapshotConfig
The SnapshotConfig parameter is referenced by the SubmitSnapshotJob operation.
You can run snapshot jobs in synchronous or asynchronous mode. In asynchronous mode, the completion time is not guaranteed. After you submit a snapshot job, the job is added to an MPS queue to be scheduled and executed. As a result, the snapshot may not be available when the response from the SubmitSnapshotJob operation is returned. After the job is complete, you can call the QuerySnapshotJobList operation to poll for the execution results or receive the results by configuring MNS notifications for the MPS queue. For more information, see Receive message notifications. If you specify the Interval or Num parameter, the job runs in asynchronous mode.
Parameter | Type | Required | Description |
Num | String | No | The number of snapshots to be captured.
|
Time | String | No | The point in time at which the system starts to capture snapshots in the input video.
|
Interval | String | No | The interval at which snapshots are captured.
|
TimeArray | Array | No | The array of specific points in time. This parameter is required if you capture snapshots at specific points in time.
Important
|
FrameType | String | No | Specifies the type of screenshot.
Note The point-in-time screenshot scenario is limited to normal frame screenshots. |
Width | String | No | The width of snapshots.
|
Height | String | No | The height of snapshots.
|
BlackLevel | String | No | The upper limit of black pixels in a snapshot. If the black pixels in a snapshot exceed this value, the system determines that the image is a black screen. For more information about black pixels, see the description of the PixelBlackThreshold parameter. This parameter takes effect if the following conditions are met:
Parameter description:
|
PixelBlackThreshold | String | No | The color value threshold for pixels. If the color value of a pixel is less than the threshold, the system determines that the pixel is a black pixel.
|
Format | String | No | The format of the output file.
|
SubOut | Object | No | The configurations of the WebVTT file. For more information, see the SubOut Webvtt section of this topic.
|
TileOut | Object | No | The image sprite configurations. For more information, see the TileOut section of this topic.
|
OutputFile | Object | Yes | The output is a single small image file stored at the location specified by the OSS Bucket, Location, and Object. For more information, see OutputFile screenshot details.
|
TileOutputFile | Object | No | The output image sprite. You must specify the storage path of the object in OSS. The value of this parameter is similar to that of the OutputFile parameter.
Note
|
SubOut Webvtt configuration details
The SnapshotConfig.SubOut parameter references this parameter.
Parameter | Type | Required | Description |
IsSptFrag | String | No | Specifies whether to generate WebVTT index files. Valid values:
|
TileOut stitching configuration details
This parameter is used for SnapshotConfig.TileOut.
Parameter | Type | Required | Description |
Lines | Int | No | The number of rows that the tiled snapshot contains.
|
Columns | Int | No | The number of columns that the tiled snapshot contains.
|
CellWidth | String | No | Width of a single image.
|
CellHeight | String | No | Height of a single image.
|
Padding | String | No | Single-image pitch
|
Margin | String | No | Frame width.
|
Color | String | No | The background color. The background color that is used to fill the margins, the padding between snapshots, and the area in which no snapshots are displayed.
|
IsKeepCellPic | String | No | Determines whether to retain individual thumbnails.
|
OutputFile screenshot details
Parameter | Type | Required | Description |
Bucket | String | Yes | The OSS bucket that stores the output files of individual small images.
|
Location | String | Yes | The region in which the OSS bucket resides.
|
Object | String | Yes | The path in which the output snapshots are stored in OSS.
Note
|
NotifyConfig details
The NotifyConfig parameter is referenced by the AddPipeline and UpdatePipeline operations.
Parameter | Type | Required | Description |
QueueName | String | No | The MNS queue to attach. When a job in the MPS queue is complete, its execution result is sent to this queue. For more information about how to receive message notifications, see Receive message notifications.
|
Topic | String | No | The SMQ topic in which you want to receive notifications. After the job is complete, the job results are pushed to the SMQ topic. Then, the SMQ topic pushes the message to multiple queues or URLs that subscribe to the topic. For more information about receiving notifications, see Receive notifications.
|
Transcoding Job Input Details
Parameter | Type | Required | Description |
Bucket | String | Yes | The OSS bucket that stores the input file.
|
Location | String | Yes | The region in which the OSS bucket resides. Follow the OSS Location definition. For more information, see the Glossary. |
Object | String | Yes | The OSS object that is used as the input file.
|
Audio | String | No | The audio configuration of the input file. The value must be a JSON object. Note This parameter is required if the input file is in the ADPCM or PCM format.
|
Container | String | No | The container configuration of the input file. The value must be a JSON object. Note This parameter is required if the input file is in the ADPCM or PCM format.
|
InputContainer details
Parameter | Type | Required | Description |
Format | String | Yes | The audio format of the input file. Valid values: alaw, f32be, f32le, f64be, f64le, mulaw, s16be, s16le, s24be, s24le, s32be, s32le, s8, u16be, u16le, u24be, u24le, u32be, u32le, and u8. |
InputAudio details
Parameter | Type | Required | Description |
Channels | String | Yes | The number of sound channels in the input file. Valid values: [1,8]. |
Samplerate | String | Yes | The audio sampling rate of the input file.
|
AnalysisConfig details
Parameter | Type | Required | Description |
QualityControl | String | No | The configuration of the output file quality. The value must be a JSON object. For more information, see the QualityControl section of this topic. |
PropertiesControl | String | No | The property configuration. The value must be a JSON object. For more information, see the PropertiesControl section of this topic. |
QualityControl details
Parameter | Type | Required | Description |
RateQuality | String | No | The quality level of the output file.
|
MethodStreaming | String | No | The playback mode. Valid values: network and local. Default value: network. |
PropertiesControl details
Parameter | Type | Required | Description |
Deinterlace | String | No | Determining the forced scan mode.
|
Crop | String | No | The cropping configuration of the video image.
|
Crop details
Parameter | Type | Required | Description |
Mode | String | No | This parameter is required if the value of the Crop parameter is not an empty JSON object. Valid values:
|
Width | Integer | No | Cropped width
|
Height | Integer | No | The height of the cropped image.
|
Top | Integer | No | The top margin to be cropped out.
|
Left | Integer | No | The left margin to be cropped out.
|
TransFeatures details
Parameter | Type | Required | Description |
MergeList | String | No | Configuration field for video concatenation.
|
Job output file details
Parameter | Type | Required | Description |
URL | String | No | The URL of the input file in OSS.
|
Bucket | String | No |
|
Location | String | No |
|
Object | String | No |
|
MultiBitrateVideoStream details
Parameter | Type | Required | Description |
URI | String | No | The name of the output video stream, which must end with .m3u8. Example: a/b/test.m3u8. Format: ^[a-z]{1}[a-z0-9./-]+$. |
RefActivityName | String | Yes | The name of the associated activity. |
ExtXStreamInfo | Json | Yes | The information about the stream. Example: |
ExtXMedia details
Parameter | Type | Required | Description |
Name | String | Yes | The name of the resource. The name can be up to 64 bytes in length and must be encoded in UTF-8. This parameter corresponds to NAME in the HTTP Live Streaming (HLS) V5 protocol. |
Language | String | No | Optional. The language code in RFC 5646 format that corresponds to the `LANGUAGE` attribute of the HLS V5 protocol. |
URI | String | Yes | The path of the resource. Format: ^[a-z]{1}[a-z0-9./-]+$. Example: a/b/c/d/audio-1.m3u8. |
MasterPlayList details
Parameter | Type | Required | Description |
MultiBitrateVideoStreams | JsonArray | Yes | The array of multiple streams. Example: |
ExtXStreamInfo details
Parameter | Type | Required | Description |
BandWidth | String | Yes | The bandwidth. This parameter specifies the upper limit of the total bitrate and corresponds to BANDWIDTH in the HLS V5 protocol. |
Audio | String | No | The ID of the audio stream group. This parameter corresponds to AUDIO in the HLS V5 protocol. |
Subtitles | String | No | The ID of the subtitle stream group. This parameter corresponds to SUBTITLES in the HLS V5 protocol. |
AdaptationSet details
Parameter | Type | Required | Description |
Group | String | Yes | The name of the group. Example: |
Lang | String | No | The language of the resource. You can specify this parameter for audio and subtitle resources. |
Representation Details
Parameter | Type | Required | Description |
Id | String | Yes | The ID of the stream. Example: |
URI | String | Yes | The path of the resource. Format: ^[a-z]{1}[a-z0-9./-]+$. Example: a/b/c/d/video-1.mpd. |
InputConfig details
Parameter | Type | Required | Description |
Format | String | Yes | The format of the input subtitle file. Valid values: stl, ttml, and vtt. |
InputFile | String | Yes | |
VideoCensorConfig
Name | Type | Required | Description |
OutputFile | String | Yes | The storage address for video snapshot results. Example: The {Count} placeholder specifies the serial number of a snapshot. The snapshots are named output00001.jpg, output00002.jpg, and so on. |
VideoCensor | String | No | Specifies whether to review the video content. Default value: true. If you set this parameter to false, you must make sure that a job for the same media input file was submitted and successfully executed. Otherwise, the request is rejected. |
BizType | String | No | Default value: common. Custom business type. |
Scope | String | No | The following are the possible review results:
Default value: abnormal. |

