This article introduces the details of the parameters.
Input
Parameter | Type | Required | Description |
---|---|---|---|
Bucket | String | Yes | OSS bucket that stores the input file.
You must assign the read and write permissions on this bucket to Media Processing on the bucket authorization page in the resource control channel of the console. This parameter complies with the OSS bucket definition. For more information, see the definition of “bucket” in the glossary. |
Location | String | Yes | Data center (also called OSS location) where the OSS bucket that stores the input
file is located.
This parameter complies with the OSS location definition. For more information, see the definition of “location” in the glossary. |
Object | String | Yes | Name of the input file (an OSS object),
which must be subject to URL encoding and UTF-8 encoding. This parameter complies with the OSS object definition. For more information, see the definition of “object” in the glossary. |
Output
Parameter | Type | Required | Description |
---|---|---|---|
OutputObject | String | Yes | Name of the output file (an OSS object),
|
TemplateId | String | Yes | The transcoding template ID.
Media Processing supports custom transcoding templates and preset transcoding templates. |
WaterMarks | WaterMark[] | No | A list of watermarks formatted as a JSON array. For more information, see “5. Transcoding
watermark parameters.”
|
Clip | String | No | Video clip, which is a JSON object. For more information, see “3. Clip.”
Example: |
Rotate | String | No | Video rotation angle.
Value range: [0, 360). The rotation is clockwise. |
Container | String | No | If this parameter is set, it overwrites the Container parameter in the specified transcoding template. For more information, see “7. Container.” |
Video | String | No | If this parameter is set, it overwrites the Video parameter in the specified transcoding template. For more information, see Video . |
Audio | String | No | If this parameter is set, it overwrites the Audio parameter in the specified transcoding template. For more information, see Audio . |
AudioStreamMap | String | No | Audio stream sequence number.
|
TransConfig | String | No | Transcoding process configuration. If this parameter is set, it overwrites the TransConfig parameter in the specified transcoding template. For more information, see “16. TransConfig.” |
MergeList | String | No | Merging setting. Up to four MergeURLs. For more information, see “ Merging.”
|
MergeConfigUrl | String | No | MergeConfigUrl and MergeList are mutually exclusive.
|
MuxConfig | String | No | If this parameter is set, it overwrites the MuxConfig parameter in the specified transcoding template. For more information, see “MuxConfig.” |
Priority | String | No | Task priority in the MPS queue.
|
UserData | String | No | Custom data, up to 1,024 bytes. |
M3U8NonStandardSupport | String | No | M3U8 custom parameter support. The parameter value is a JSON object. For more information,
see “ M3U8 custom parameters.” Example: { "TS":{"Md5Support":true,"SizeSupport":true} } |
Encryption | String | No | Data encryption, which only supports output in M3U8 format.
|
SubtitleConfig | String | No | Subtitle configuration, which is a JSON object.
|
OpeningList | String | No | Opening list. JSON format.
|
TailSlateList | String | No | Tail slate list, in JSON format.
|
DeWatermark | String | No | Blurring watermark, JSON object. For more information, see DeWatermark. |
Amix | String | No | Audio mixing.
Scenarios: for example, to add background music; and to mix two audio tracks of a video. Use the AudioStreamMap parameter to select the audio track of the input video for audio mixing. JSON list format, example: [{“AmixURL”:“http://test-bucket.oss-cn-hangzhou.aliyuncs.com/audio.mp3",“Map”:“0:a:0”,“MixDurMode”:"longest”}] |
Clip
Parameter | Type | Required | Description |
---|---|---|---|
TimeSpan | String | No | Time span of a clip.
For more information, see TimeSpan. |
ConfigToClipFirstPart | Boolean | No | Whether to clip the first part.
|
TimeSpan
Parameter | Type | Required | Description |
---|---|---|---|
Seek | String | No | Start time,
or,
Example: 01:59:59.999 or 32000.23 |
Duration | String | No | Duration.
or,
Example: 01:00:59.999 or 32000.23 |
End | String | No | Duration truncated in the end.
The Duration parameter is invalid if this parameter is set.
or
Example: 01:00:59.999 or 32000.23 |
Transcoding watermark parameter
Parameter | Type | Required | Description |
---|---|---|---|
WaterMarkTemplateId | String | No | Watermark template ID.
If this parameter is not set, the following default settings are applied:
|
InputFile | String | Yes | Input watermark file.
|
Width | String | No | If this parameter is set, it overwrites the watermark width setting of the watermark
template. The parameter value can be an integer or a decimal number.
|
Height | String | No | If this parameter is set, it overwrites the watermark height setting of the watermark
template. The parameter value can be an integer or a decimal number.
|
Dx | String | No | If this parameter is set, it overwrites the Dx parameter of the watermark template.
This parameter indicates the horizontal offset of the watermark image relative to
the output video.
Default value: 0. The parameter value can be an integer or a decimal number.
|
Dy | String | No | If this parameter is set, it overwrites the Dy parameter of the watermark template.
This parameter indicates the vertical offset of the watermark image relative to the
output video.
Default value: 0. The parameter value can be an integer or a decimal number.
|
ReferPos | String | No | If this parameter is set, it overwrites the ReferPos parameter of the watermark template.
It indicates the watermark position and can be set to TopRight, TopLeft, BottomRight, or BottomLeft. |
Type | String | No | If this parameter is set, it overwrites the Type parameter of the watermark template.
It indicates the watermark type and can be set to Image or Text.
Note If it is set to Text, the TextWaterMark parameter must be set.Text: Text watermark.
|
Timeline | String | No | If this parameter is set, it overwrites the Timeline parameter of the watermark template.
It indicates a dynamic watermark.
For more information, see the description of Timeline. |
TextWaterMark | String | No | Text watermark configuration, which is a JSON object. This parameter must be set if
Type is set to Text.
|
Watermark template configuration
Parameter | Type | Required | Description |
---|---|---|---|
Width | String | No | Width of the watermark image in the output video.
The parameter value can be an integer or a decimal number.
|
Height | String | No | Height of the watermark image in the output video. The parameter value can be an integer
or a decimal number.
|
Dx | String | No | Horizontal offset of the watermark image relative to the output video.
Default value: 0. The parameter value can be an integer or a decimal number.
|
Dy | String | No | Vertical offset of the watermark image relative to the output video.
Default value: 0. The parameter value can be an integer or a decimal number.
|
ReferPos | String | No | Watermark position.
|
Type | String | No | Watermark type. This parameter can be set to Image or Text.
|
Timeline | String | No | Dynamic watermark.
For more information, see the description of Timeline. |
Description of the Width and Height parameters:
- When neither the Width nor the Height parameter is set, the watermark width is 0.12 times the resolution width of the output video and the watermark height scales proportionally according to the aspect ratio of the original watermark image.
- When either the Width or the Height parameter is set, the unspecified side scales proportionally according to the aspect ratio of the original watermark image.
- When the Width and Height parameters are set, the watermark image is set based on actual values.
Container
Parameter | Type | Required | Description |
---|---|---|---|
Format | String | No | Container format.
|
Video
Parameter | Type | Required | Meaning | Description |
---|---|---|---|---|
Codec | String | No | Codec format | Optional values: H. 264, H. 265, GIF, webp.
Default value: H. 264 |
Profile | String | No | Encoding level | Optional values: baseline, main, and high.
Default value: high
Best practice: If multiple definitions exist, we recommend that you set Profile to baseline for the lowest definition to guarantee normal play on low-end devices, and set Profile to main or high for other definitions. Note Currently, this parameter is only supported by H. 264.
|
Bitrate | String | No | Bit rate of the output video file |
|
Crf | String | No | which is a quality control factor. |
Note The Bitrate parameter is invalid if the Crf parameter is set.
|
Width | String | No | Width |
|
Height | String | No | Height |
|
Fps | String | No | Frame rate |
|
GOP | String | No | Maximum time interval or maximum number of frames between two key frames. | Maximum time interval, the unit second is required to be entered.
|
Preset | String | No | Preset video algorithm | Optional values: veryfast, fast, medium, slow, and slower.
Default value: medium Note Currently, this parameter is only supported by H. 264.
|
ScanMode | String | No | Scan mode | Optional values: interlaced and progressive. |
Bufsize | String | No | Buffer size |
|
Maxrate | String | No | Peak video bit rate | Value range [10,50000], in kbps. |
PixFmt | String | No | Video color format | Optional values: yuv420p, yuvj420p, and other standard color formats.
Default value: yuv420p or original color format. |
Remove | String | No | Whether to delete video streams |
|
Crop | String | No | Video cropping | Two cropping methods are supported.
|
Pad | String | No | Pad video with black borders | Parameter value format: width:height:left:top.
Example: 1280:800:0:140 |
Longfig Mode | String | No | Whether to enable auto-rotate screen (that is long edge and short edge mode). |
Default value: false. |
Container | Audio codecs | Video Codecs |
---|---|---|
flv | AAC, MP3 | H.264 |
mp4 | AAC, MP3 | H.264, H. 265 |
ts | AAC, MP3 | H.264, H. 265 |
m3u8 | AAC, MP3 | H.264, H. 265 |
gif | Not supported | GIF |
Video/Codec | H.264 | H.265 | GIF |
---|---|---|---|
Profile | Y | N | N |
Bitrate | Y | Y | N |
Crf | Y | Y | N |
Width | Y | Y | Y |
Height | Y | Y | Y |
Fps | Y | Y | Y |
Gop | Y | Y | N |
Preset | Y | N | N |
ScanMode | Y | Y | Y |
Bufsize | Y | Y | N |
Maxrate | Y | Y | N |
PixFmt | Y | Y | bgr8 |
Audio
Parameter | Type | Required | Description |
---|---|---|---|
Codec | String | No | Audio codec format: AAC, MP3, VORBIS, and FLAC.
Default value: AAC. |
Profile | String | No | Preset audio encoding.
Optional values when Codec is set to AAC: aac_low, aac_he, aac_he_v2, aac_ld, and aac_eld. |
Samplerate | String | No | Sampling rate.
Note
|
Bitrate | String | No | Audio bit rate of the output file.
|
Channels | String | No | Number of sound channels.
Default value: 2 Note
|
Remove | String | No | Whether to delete audio streams.
|
Container | Audio Codecs |
---|---|
mp3 | MP3 |
mp4 | AAC |
ogg | VORBIS, FLAC |
flac | FLAC |
Snapshopconfig
Parameter | Type | Required | Description |
---|---|---|---|
Format | String | No | Screenshots data type.
|
BlackLevel | String | No |
This parameter specifies the black pixel threshold that is used to detect black frames in the first screenshot for multi-screenshot capture.
The smaller the value, the fewer black pixels in a frame.
To filter frames that contain only black pixels, set the BlackLevel parameter to 100. Example: When the screenshot capture time is 0 and the number of screenshots is 10, set the BlackLevel parameter to 100 to filter out frames that contain only black pixels in the first screenshot. |
OutputFile | String | Yes | Output file, which is a JSON object.
For more information, see “38. Screenshot OutputFile.” |
TileOutputFile | String | No | The output file, which is a JSON object, and the structure is the same as the OutputFile.
|
Time | String | Yes | Time for screenshots.
Unit: milliseconds. |
Interval | String | No | Screenshot interval.
|
Num | String | No | Screenshot quantity.
If this parameter is set, screenshots are taken in sequence asynchronously. The value must be greater than 0.
|
Width | String | No | Width of the output screenshot image.
|
Height | String | No | Height of the output screenshot image.
|
FrameType | String | No | Screenshot type.
|
Tileout. | String | No | Tile configuration. JSON object.
For more information, see TileOut. |
SubOut | String | No | Webvtt tile configuration, JSON object.
For more information, see SubOut. |
Segment
Parameter | Type | Required | Description |
---|---|---|---|
Duration | String | No | Segment time length.
Default value: 10 seconds |
ForceSegTime | String | No | A list of up to 10 segment time points, separated by commas (,).
|
TransConfig
Parameter | Type | Required | Description |
---|---|---|---|
TransMode | String | No | Transcoding mode.
|
AdjDarMethod | String | No | Resolution rewrite mode.
|
IsCheckReso | String | No | Whether to check resolution.
|
IsCheckResoFail | String | No | Whether to check resolution.
|
IsCheckVideoBitrate | String | No | Whether to check video bit rate.
|
IsCheckAudioBitrate | String | No | Whether to check the audio bit rate.
|
IsCheckAudioBitrateFail | String | No | This parameter indicates the processing when the output video bit rate is greater
than the media source video bit rate.
|
IsCheckVideoBitrateFail | String | No | This parameter indicates the processing when the output video bit rate is greater
than the media source video bit rate.
|
MuxConfig
Parameter | Type | Required | Description |
---|---|---|---|
Segment | String | No | Segment configuration, which is a JSON object.
|
NotifyConfig
Parameter | Type | Required | Description |
---|---|---|---|
QueueName | String | No | MNS queue created in Alibaba Cloud Message Service.
|
Topic | String | No | Topic created in Alibaba Cloud Message Service.
Note This function is currently under a public beta test.
|
Transcoding task input
Parameter | Type | Required | Description |
---|---|---|---|
Bucket | String | Yes | OSS bucket that stores the input file.
|
Location | String | Yes | Data center (also called OSS location) where the OSS bucket that stores the input
file is located.
This parameter complies with the OSS location definition. For more information, see the definition of “location” in the glossary. |
Object | String | Yes | Name of the input file (an OSS object),
|
Audio | String | No | Audio configuration of the source media file, which is a JSON object.
Note This parameter must be set when the input file is in ADPCM or PCM format.
|
Container | String | No | Container configuration of the source media file, which is a JSON object.
Note This parameter must be set when the input file is in ADPCM or PCM format.
|
InputContainer
Parameter | Type | Required | Description |
---|---|---|---|
Format | String | Yes | Source media audio format.
Optional values: alaw, f32be, f32le, f64be, f64le, mulaw, s16be, s16le, s24be, s24le, s32be, s32le, s8, u16be, u16le, u24be, u24le, u32be, u32le, and u8. |
InputAudio
Parameter | Type | Required | Description |
---|---|---|---|
Channels | String | Yes | Number of source media audio channels.
Value range: [1,8] |
Samplerate | String | Yes | Source media audio sampling rate.
|
AnalysisConfig
Parameter | Type | Required | Description |
---|---|---|---|
QualityControl | String | No | Output quality control, which is a JSON object.
For more information, see “QualityControl.” |
PropertiesControl | String | No | Attribute control, which is a JSON object.
For more information, see “PropertiesControl.” |
QualityControl
Parameter | Type | Required | Description |
---|---|---|---|
RateQuality | String | No | Output quality level.
|
MethodStreaming | String | No | Play mode; optional values: network and local.
Default value: network |
PropertiesControl
Parameter | Type | Required | Description |
---|---|---|---|
Deinterlace | String | No | Forced scan mode determination.
|
Crop | String | No | Video cropping configuration.
|
Crop
Parameter | Type | Required | Description |
---|---|---|---|
Mode | String | No | Value:
This parameter is required if the Crop parameter is set (not a blank JOSN{}). |
Width | Integer | No | Width after cutting.
|
Height | Integer | No | Height after cropping.
|
Top | Integer | No | Top margin for cropping.
|
Left | Integer | No | Left margin for cropping.
|
TransFeatures
TransFeatures | Type | Required | Description |
---|---|---|---|
MergeList | String | No | Video merging setting,
|
Merging
Parameter | Type | Required | Description |
---|---|---|---|
MergeURL | String | Yes | Merged part address.
|
Start | String | No | Start time.
|
Duration | String | No | Duration.
|
Task output file
Parameter | Type | Required | Description |
---|---|---|---|
URL | String | No | OSS URL of the input file.
|
Bucket | String | No |
|
Location | String | No |
|
Object | String | No |
|
Support for M3U8 custom parameters
Parameter | Type | Required | Description |
---|---|---|---|
TS | String | No | Custom parameter support related to TS files. The parameter value is a JSON object.
For more information, see “30. TS parameter support.” |
TS parameter support
Parameter | Type | Required | Description |
---|---|---|---|
Md5Support | Boolean | No | Whether to support TS-specific MD5 value output to M3U8 files. |
SizeSupport | Boolean | No | Whether to support TS file size output to M3U8 files. |
Timeline parameters
Parameter | Type | Required | Description |
---|---|---|---|
Start | String | No | Start time of watermark appearance.
|
Duration | String | No | Duration when the watermark persists.
|
Encryption parameters
Parameter | Type | Required | Description |
---|---|---|---|
Type | String | Yes | Value: hls-aes-128 |
Key | String | Yes | Video encryption key.
|
KeyUri | String | Yes | Key access URL, which is encrypted by Base64 |
KeyType | String | Yes | The encryption key must be encrypted by Base64 or KMS when being transferred to Media
Processing.
Note If you use KMS, contact us to acquire the primary key. Base64 is the basic encryption
mode, whereas KMS performs encryption based on Base64.
|
SubtitleConfig
Parameter | Type | Required | Description |
---|---|---|---|
ExtSubtitleList | ExtSubtitle[] | No | A list of up to four external subtitles, which is a JSON array.
|
ExtSubtitle
Parameter | Type | Required | Description |
---|---|---|---|
Input | String | Yes | External input subtitle file, which is a JSON object.
Note
|
CharEnc | String | No | External subtitle character encoding.
Note A check error may occur if this parameter is set to Auto; We recommend that you specify
a character encoding method.
|
Opening
Parameter | Type | Required | Description |
---|---|---|---|
OpenUrl | String | Yes | Opening URL, which is an OSS address. |
Start | String | No | Start time relative to the main video.
|
Width | String | No | Width.
|
Height | String | No | Height
|
TailSlate
Parameter | Type | Required | Description |
---|---|---|---|
TailUrl | String | Yes | Tail slate URL, which is an OSS address. |
BlendDuration | String | No | The duration of transition from the main video to the ending scene. The effect of transition is fade-in and fade-out: The last frame of the main video is displayed, and the ending scene is played at the same time. The last frame of the main video gradually fades out while the ending scene fades in. Unit: seconds, default value: 0. |
Width | String | No | Width; optional values: (0, 4096), -1, and full. -1 indicates the value of the program source, and “full” indicates filling up the screen. Default value: -1. |
Height | String | No | High, range (0,,),-1, full,-1 represent the value of the source, full indicates the fill screen. The default value is -1. |
IsMergeAudio | Boolean | No | Whether to merge sample audios. Default value: true. |
BgColor | String | No | Specifies the background color to fill up the blank when the width or height of the ending scene is smaller than that of the main video. Default color: White. For more information, see bgcolor. |
Text watermark parameters
Parameter | Type | Required | Description |
---|---|---|---|
Content | String | Yes | Text watermark content, which must be Base64 encoded.
For example, if you want to add the text watermark “test text watermark”, set this parameter to 5rWL6K+V5paH5a2X5rC05Y2w. |
FontName | String | No | Default value: “SimSun”.
For more information, see Supported font. |
FontSize | Int | No | Font size.
|
FontColor | String | No | Font color.
For more information about the optional values, see FontColor. |
FontAlpha | Int | No | Font transparency.
|
Top | Int | No | Top margin of the text.
|
Left | Int | No | Left margin of text.
|
BorderWidth | Int | No | Stroke width.
|
BorderColor | String | No | Stroke color.
|
Screenshot OutputFile
Parameter | Type | Required | Description |
---|---|---|---|
Bucket | String | Yes | OSS bucket that stores the output screenshot file.
This parameter complies with the OSS bucket definition. For more information, see the definition of “bucket” in the glossary. |
Location | String | Yes | Data center (also called OSS location) where the OSS bucket that stores the output
screenshot file is located.
This parameter complies with the OSS location definition. For more information, see the definition of “location” in the glossary. |
Object | String | Yes | Name of the output screenshot file (an OSS object).
The placeholder replacement rules are applicable to output screenshot file naming.
Batch screenshot taking: If screenshots are taken in sequence asynchronously and Num is not set to 1, then Object of OutputFile must contain %7BCount%7D to identify the addresses of multiple screenshot images that are taken in sequence. If three screenshot images are output and Object of OutputFile is %7BCount%7D.jpg, then the output images (indicated by Object) are 00001.jpg, 00002.jpg, and 00003.jpg in sequence. |
TileOut
Parameter | Type | Required | Description |
---|---|---|---|
Lines | String | No | Picture-tiling lines.
|
Columns | String | No | Picture-tiling columns.
|
CellWidth | String | No | The width of a single picture.
The width of the screenshot output resolution by default. |
CellHeight | String | No | The height of a single picture.
The height of the screenshot output resolution by default. |
Margin | String | No | The width of the margin.
|
Padding | String | No | The picture space, default value: 0, unit: px. |
Color | String | No | Background color.
|
IsKeepCellPic | String | No | Whether the picture is kept.
|
MultiBitrateVideoStream
Parameter | Type | Required | Description |
---|---|---|---|
URI | String | No | The output name of the video bitstream, which must end with .m3u8. For example, a/b/test.m3u8, format: ^[a-z]{1}[a-z0-9. /-]+$ |
ExtXMedia
Parameter | Type | Required | Description |
---|---|---|---|
Name | String | Yes | Required, description, corresponding to NAME of HLS V5 protocol, 64 bytes at most, UTF-8. |
Language | String | No | Optional, language type, RFC5646, corresponding to LANGUAGE of HLS V5 protocol. |
URI | String | Yes | Required, resource path.
Example: a/b/c/d/audio-1.m3u8, Format: ^[a-z]{1}[a-z0-9. /-]+$ |
MasterPlayList
Parameter | Type | Required | Description |
---|---|---|---|
MultiBitrateVideoStreams | JsonArray | Yes | Multi-bitstream array.
|
MultiBitrateVideoStream
Parameter | Type | Required | Description |
---|---|---|---|
RefActivityName | String | Yes | The name of the associated activity. |
ExtXStreamInfo | Json | Yes | The bitstream feature.
|
ExtXStreamInfo
Parameter | Type | Required | Description |
---|---|---|---|
BandWidth | String | Yes | Bandwidth.
The upper limit of the total bitrate, required, which corresponds to BANDWIDTH of HLS V5 protocol. |
Audio | String | No | The ID of the audio streams group.
Optional, which corresponds to AUDIO of HLS V5 protocol. |
Subtitles | String | No | The ID of the subtitile stream groups.
Optional, which corresponds to SUBTITLES of HLS V5 protocol. |
SubOut Webvtt
Parameter | Type | Required | Description |
---|---|---|---|
IsSptFrag | String | No | Whether the picture is tiled out.
|
DeWatermark
{
"0": [
{
"l": 10,
"t": 10,
"w": 10,
"h": 10
},
{
"l": 100,
"t": 0.1,
"w": 10,
"h": 10
}
],
"128000": [],
"250000": [
{
"l": 0.2,
"t": 0.1,
"w": 0.01,
"h": 0.05
}
]
}
- L: Number, indicating the left margin of the region to be blurred.
- T: Number, indicating the top margin of the region to be blurred.
- W: Number, indicating the width of the region to be blurred.
- H: Number, indicating the height of the region to be blurred.
When values of T, L, W and H are larger than one, they indicate absolute pixel value. Otherwise, they indicates percentage values corresponding to source video resolution. Whether the values of T, L, W and H are percentage values or absolute values, they are rounded down in the final treatment.
- Starting from 0ms, the system performs dewatermarking treatment on the Logo which is 10✖️10 pixel in size and 10X10 pixel from the upper-left corner, as well as on the Logo which is 10X10 pixel in size and has a left margin of 100 pixel and top margin of 0.1✖️(src_height).
- Until 128000ms, the system doesnot stop performing dewatermarking treatment on the Logo, that is, [0~128000] is the time range when the Logo is blurred.
- Starting from 250000ms, the system performs dewatermarking treatment on the Logo which is 0.01✖️(src_width) in width, 0.05✖️(src_height) in height, and has a left margin of 0.2✖️(src_width) and top margin of 0.1✖️(src_height).
AdaptationSet
Parameter | Type | Required | Description |
---|---|---|---|
Group | String | Yes | Required, group name, as in Dash File:
|
Lang | String | No | Language.
Can be set in audio and subtitle activity. |
Representation
Parameter | Type | Required | Description |
---|---|---|---|
Id | String | Yes | Required, flow ID, as in Dash File:
|
URI | String | Yes | Required, resource path.
Example: a/b/c/d/video-1.mpd, format: ^[a-z]{1}[a-z0-9. /-]+$ |
InputConfig
Parameter | Type | Required | Description |
---|---|---|---|
Format | String | Yes | Required, the input format of the subtitle file.
Supports stl, ttml, and vtt formats. |
InputFile | String | Yes |
|
Volume
Parameters | Type | Required or not | Description |
---|---|---|---|
Method | String | No | Volume regulation mode.
Optional value: auto, dynamic, linear. |
IntegratedLoudnessTarget | String | No | Target volume, number.
|
TruePeak | String | No | Maximum peak value, number.
|
LoudnessRangeTarget | String | No | Volume range, number.
|
Amix
Parameters | Type | Required | Description |
---|---|---|---|
AmixURL | String | Yes | Background audio track media that needs audio mixing.
Value: OSS URL or character string "input". input scenario: to mix two audio tracks of a video stream. |
Map | String | Yes | Select target audio tracks from AmixURL. The value is : 0:a:{audio_index}. Example: 0:a:0. |
MixDurMode | String | No | Value: first, long.
|