| object | | |
RequestId | string | | 9EDC30DC-0050-5459-B788-F761B2BE359B |
TranscodeParentJob | object | TranscodeParentJobWithSubJobDTO | |
TranscodeJobList | array<object> | | |
TranscodeJobList | object | | |
CreateTime | string | The time when the job was created. | 2022-01-12T08:49:41Z |
Name | string | | transcode-job |
ParentJobId | string | | 8b2198504dd340b7b3c9842a74fc9baa |
JobId | string | | 7d6a7e0d4db2457a8d45ff5d43e1bf0a |
JobIndex | integer | The index number of the subjob in the entire job. | 0 |
InputGroup | array<object> | The input group of the job. An input of a single file indicates a transcoding job. An input of multiple files indicates an audio and video stream merge job. | |
InputGroup | object | The information about the job input. | |
Type | string | The type of the media object. Valid values:
- OSS: an Object Storage Service (OSS) object.
- Media: a media asset.
| OSS |
Media | string | The media object.
- If Type is set to OSS, the URL of an OSS object is returned. Both the OSS and HTTP protocols are supported.
- If Type is set to Media, the ID of a media asset is returned.
| oss://bucket/path/to/video.mp4 |
InputUrl | string | The URL of the media asset. This parameter is specified only when the media asset is transcoded. | oss://bucket/path/to/video.mp4 |
ProcessConfig | object | The transcoding configuration. | |
Transcode | object | The transcoding configuration. | |
TemplateId | string | | 9547c6ad97cb4f2aaa29683ebd18d410 |
OverwriteParams | object | The parameters that are used to overwrite the corresponding parameters of the template. | |
Video | object | | |
Codec | string | | H.264 |
Profile | string | The encoding profile. Valid values: baseline, main, and high.
- baseline: applicable to mobile devices.
- main: applicable to standard-definition devices.
- high: applicable to high-definition devices.
Default value: high. | Main |
Bitrate | string | The average bitrate of the video.
- Valid values: [10,50000].
- Unit: Kbit/s.
| 3000 |
Crf | string | The constant rate factor.
- Valid values: [0,51].
- Default value: 23 if the encoding format is H.264, or 26 if the encoding format is H.265.
If this parameter is specified, the value of Bitrate becomes invalid. | 23 |
Width | string | The width of the output video.
- Valid values: [128,4096].
- Unit: pixels.
Default value: the width of the input video. | 1920 |
Height | string | The height of the output video.
- Valid values: [128,4096].
- Unit: pixels.
Default value: the height of the input video. | 1080 |
Fps | string | The frame rate.
- Valid values: (0,60]. The value is 60 if the frame rate of the input video exceeds 60.
- Default value: the frame rate of the input video.
| 25 |
Gop | string | The maximum number of frames between two keyframes.
- Valid values: [1,1080000].
- Default value: 250.
| 250 |
Preset | string | The preset video algorithm. This parameter takes effect only if the encoding format is H.264. Valid values: veryfast, fast, medium, slow, and slower. Default value: medium. | medium |
ScanMode | string | The scan mode. Valid values: interlaced and progressive. | progressive |
PixFmt | string | The pixel format of the video. Valid values: standard pixel formats such as yuv420p and yuvj420p. | yuv420p |
Remove | string | Indicates whether the video was removed. | false |
Crop | string | The method of video cropping. Valid values:
- border: automatically detects and removes black bars.
- A value in the width:height:left:top format: crops the videos based on the custom settings.
| 1280:800:0:140 |
Pad | string | The black bars added to the video. Format: width:height:left:top. | 1280:800:0:140 |
LongShortMode | string | Indicates whether the auto-rotate screen feature is enabled. | false |
Bufsize | string | The buffer size.
- Valid values: [1000,128000].
- Default value: 6000.
- Unit: Kbit/s.
| 6000 |
Maxrate | string | The maximum bitrate of the output video.
- Valid values: [10,50000].
- Unit: Kbit/s.
| 9000 |
AbrMax | string | The maximum adaptive bitrate (ABR). This parameter takes effect only for Narrowband HD 1.0.
- Valid values: [10,50000].
- Unit: Kbit/s.
| 6000 |
Audio | object | | |
Codec | string | The audio codec. Valid values: AAC, MP3, VORBIS, and FLAC. Default value: AAC. | AAC |
Profile | string | The audio codec profile. If the Codec parameter is set to AAC, the valid values are aac_low, aac_he, aac_he_v2, aac_ld, and aac_eld. | aac_low |
Samplerate | string | The sampling rate.
- Default value: 44100. Valid values: 22050, 32000, 44100, 48000, and 96000.
- Unit: Hz.
| 44100 |
Bitrate | string | The audio bitrate of the output file.
- Valid values: [8,1000].
- Unit: Kbit/s.
- Default value: 128.
| 128 |
Channels | string | The number of sound channels. Default value: 2. | 2 |
Remove | string | Indicates whether the audio stream is deleted. | false |
Volume | object | The volume configurations. | |
Method | string | The volume adjustment method. Valid values: | auto |
IntegratedLoudnessTarget | string | | -6 |
TruePeak | string | | -1 |
LoudnessRangeTarget | string | | 8 |
Container | object | The encapsulation format settings. | |
Format | string | | mp4 |
MuxConfig | object | The encapsulation settings. | |
Segment | object | | |
Duration | string | | 10 |
ForceSegTime | string | The forced segmentation point in time. | 2,3 |
TransConfig | object | The conditional transcoding configurations. | |
TransMode | string | The video transcoding mode. Valid values:
- onepass: You can set this parameter to onepass if the Bitrate parameter is set to ABR. The encoding speed of this mode is faster than that of the twopass mode.
- twopass: You can set this parameter to twopass if the Bitrate parameter is set to VBR. The encoding speed of this mode is slower than that of the onepass mode.
- CBR: the constant bitrate mode.
Default value: onepass. | onepass |
IsCheckReso | string | Indicates whether the video resolution was checked. You can specify only one of the IsCheckReso and IsCheckResoFail parameters. The priority of the IsCheckResoFail parameter is higher. Valid values:
- true If the width or height of the input video is less than that of the output video, the resolution of the input video is used for transcoding.
- false
Default value: false. | true |
IsCheckResoFail | string | Indicates whether the video resolution was checked. You can specify only one of the IsCheckReso and IsCheckResoFail parameters. The priority of the IsCheckResoFail parameter is higher. Valid values:
- true If the width or height of the input video is less than that of the output video, the transcoding job fails.
- false
Default value: false. | true |
IsCheckVideoBitrate | string | Indicates whether the video bitrate was checked. You can specify only one of the IsCheckVideoBitrate and IsCheckVideoBitrateFail parameters. The priority of the IsCheckVideoBitrateFail parameter is higher. Valid values:
- true If the bitrate of the input video is less than that of the output video, the bitrate of the input video is used for transcoding.
- false
Default value: false. | true |
IsCheckVideoBitrateFail | string | Indicates whether the video bitrate was checked. You can specify only one of the IsCheckVideoBitrate and IsCheckVideoBitrateFail parameters. The priority of the IsCheckVideoBitrateFail parameter is higher. Valid values:
- true If the bitrate of the input video is less than that of the output video, the transcoding job fails.
- false
Default value: false. | true |
IsCheckAudioBitrate | string | Indicates whether the audio bitrate was checked. You can specify only one of the IsCheckAudioBitrate and IsCheckAudioBitrateFail parameters. The priority of the IsCheckAudioBitrateFail parameter is higher. Valid values:
- true If the bitrate of the input audio is less than that of the output audio, the bitrate of the input audio is used for transcoding.
- false
Default value:
- If this parameter is not specified and the codec of the output audio is different from that of the input audio, the default value is false.
- If this parameter is not specified and the codec of the output audio is the same as that of the input audio, the default value is true.
| true |
IsCheckAudioBitrateFail | string | Indicates whether the audio bitrate was checked. You can specify only one of the IsCheckAudioBitrate and IsCheckAudioBitrateFail parameters. The priority of the IsCheckAudioBitrateFail parameter is higher. Valid values:
- true If the bitrate of the input audio is less than that of the output audio, the transcoding job fails.
- false
Default value: false. | true |
AdjDarMethod | string | 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.
Valid values: rescale, crop, pad, and none.
Default value: none.
For more information about examples, see How do I set the resolution for an output video? | none |
ImageWatermarks | array<object> | The watermark configuration of an image. | |
ImageWatermark | object | The watermark configuration of an image. | |
TemplateId | string | | 9547c6ad97cb4f2aaa29683ebd18d410 |
OverwriteParams | object | The parameters that are used to overwrite the corresponding parameters of the template. | |
Width | string | The width of the output video. | 32 |
Height | string | The height of the output video. | 32 |
Dx | string | The position of the watermark on the x-axis. | 10 |
Dy | string | The position of the watermark on the y-axis. | 10 |
ReferPos | string | The reference position of the watermark. Valid values: TopLeft, TopRight, BottomLeft, and BottomRight. Default value: TopLeft. | TopLeft |
Timeline | object | | |
Start | string | The start time of the stream. | 00:00:05 |
Duration | string | The duration of the stream. Valid values: the number of seconds or "ToEND". | ToEND |
File | object | The watermark image file. | |
Type | string | The type of the media object. Valid values:
- OSS: an OSS object.
- Media: a media asset.
| OSS |
Media | string | The media object.
- If Type is set to OSS, the URL of an OSS object is returned. Both the OSS and HTTP protocols are supported.
- If Type is set to Media, the ID of a media asset is returned.
| oss://bucket/path/to/video.mp4 |
TextWatermarks | array<object> | The configurations of the text watermark. | |
TextWatermark | object | The configurations of the text watermark. | |
TemplateId | string | | 9547c6ad97cb4f2aaa29683ebd18d410 |
OverwriteParams | object | The parameters that are used to overwrite the corresponding parameters of the template. | |
Content | string | The watermark text. Base64 encoding is not required. The string must be encoded in UTF-8. | |
FontName | string | | SimSun |
FontColor | string | | #006400 |
FontAlpha | string | The transparency of the watermark. | 1.0 |
Top | string | The distance of the watermark from the top edge. | 10 |
Left | string | The distance of the watermark from the left edge. | 10 |
FontSize | integer | | 16 |
BorderWidth | integer | | 0 |
BorderColor | string | | #006400 |
Adaptive | string | Indicates whether the text size was adjusted based on the output video dimensions. Valid values: true and false. Default value: false. | false |
Subtitles | array<object> | The subtitle configuration. | |
Subtitle | object | The subtitle configuration. | |
TemplateId | string | | 9547c6ad97cb4f2aaa29683ebd18d410 |
OverwriteParams | object | The parameters that are used to overwrite the corresponding parameters of the template. | |
Format | string | The format of the subtitle file. | vtt |
CharEnc | string | The file encoding format. | UTF-8 |
File | object | | |
Type | string | The type of the media object. Valid values:
- OSS: an OSS object.
- Media: a media asset.
| OSS |
Media | string | The media object.
- If Type is set to OSS, the URL of an OSS object is returned. Both the OSS and HTTP protocols are supported.
- If Type is set to Media, the ID of a media asset is returned.
| oss://bucket/path/to/video.mp4 |
Encryption | object | | |
EncryptType | string | | PrivateEncryption |
CipherText | string | The ciphertext of HTTP Live Streaming (HLS) encryption. | MTYi00NDU0LTg5O**** |
DecryptKeyUri | string | The endpoint of the decryption service for HLS encryption. | https://sample.com/path?CipherText=MTYi00NDU0LTg5O**** |
KeyServiceType | string | The type of the key service. Valid values: KMS and Base64. | KMS |
CombineConfigs | array<object> | The multi-input stream merge configuration. | |
CombineConfig | object | | |
AudioIndex | string | | |
VideoIndex | string | | |
Start | double | The start time of the input stream. Default value: 0. | 0.0 |
Duration | double | The duration of the input stream. The default value is the duration of the video. | 20.0 |
IsInheritTags | boolean | Indicates whether the tags of the input stream are inherited in the output stream. This parameter does not take effect when the input is not a media asset. Default value: false. | true |
Output | object | The output file configuration. | |
Type | string | The type of the media object. Valid values:
- OSS: an OSS object.
- Media: a media asset.
| OSS |
Media | string | The media object.
- If Type is set to OSS, the URL of an OSS object is returned. Both the OSS and HTTP protocols are supported.
- If Type is set to Media, the ID of a media asset is returned.
| oss://bucket/path/to/video.mp4 |
OutputUrl | string | The path of the transcoded output stream. This parameter is required only when the output is a media asset. | oss://bucket/path/to/{MediaId}/{JobId}.mp4
|
UserData | string | | user-data |
ScheduleConfig | object | The scheduling information about the job. | |
PipelineId | string | The ID of the ApsaraVideo Media Processing (MPS) queue to which the snapshot job was submitted. | e37ebee5d98b4781897f6086e89f9c56 |
Priority | integer | The priority of the job. Valid values: 1 to 10. The greater the value, the higher the priority. | 5 |
Status | string | The state of the transcoding job. Valid values: Init (the job is submitted), Success (the job is successful), Fail (the job failed), and Deleted (the job is deleted). | Init |
OutFileMeta | object | The media information about the video generated by the job. | |
FileBasicInfo | object | The basic file information. | |
MediaId | string | The ID of the media asset. | 486c2890096871edba6f81848c016303 |
FileName | string | | file.m3u8 |
FileStatus | string | | Normal |
FileType | string | The file type. Valid values: source_file and transcode_file. | source_file |
FileSize | string | The file size. Unit: bytes. | 31737 |
FileUrl | string | | http://bucket.oss-cn-shanghai.aliyuncs.com/path/to/file.m3u8 |
Region | string | The region in which the file resides. | cn-shanghai |
FormatName | string | The name of the video format. | hls,applehttp |
Duration | string | The duration of the video. Unit: seconds. | 403.039999 |
Bitrate | string | | 888.563 |
Width | string | The width of the output video. | 848 |
Height | string | The height of the output video. | 478 |
AudioStreamInfoList | array<object> | The information about the audio stream. | |
AudioStreamInfoList | object | The information about the audio stream. | |
Index | string | The sequence number of the stream. | 1 |
CodecName | string | | aac |
CodecLongName | string | The name of the encoding format. | AAC (Advanced Audio Coding) |
CodecTimeBase | string | The time base of the encoder. | 1/44100 |
CodecTagString | string | The name of the encoder tag. | [15][0][0][0] |
CodecTag | string | | 0x000f |
SampleFmt | string | | fltp |
SampleRate | string | The sampling rate. Unit: Hz. | 44100 |
Channels | string | The number of sound channels. | 2 |
ChannelLayout | string | The sound channel layout. | stereo |
Timebase | string | | 1/90000 |
StartTime | string | The start time of the stream. | 1.473556 |
Duration | string | The duration of the stream. Unit: seconds. | 403.039989 |
Bitrate | string | | 0.f |
Lang | string | The language of the stream. | cn |
VideoStreamInfoList | array<object> | The information about the video stream. | |
VideoStreamInfoList | object | The information about the video stream. | |
Index | string | The sequence number of the stream. | 0 |
Codec_name | string | | h264 |
Codec_long_name | string | The name of the encoding format. | H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 |
Profile | string | | High |
Codec_time_base | string | The time base of the encoder. | 1/50 |
Codec_tag_string | string | The tag string of the encoding format. | [27][0][0][0] |
Codec_tag | string | The tag of the encoding format. | 0x001b |
Width | string | The width of the output video. | 848 |
Height | string | The height of the output video. | 478 |
Has_b_frames | string | Indicates whether the video stream contains bidirectional frames (B-frames). Valid values:
- 0: The stream contains no B-frames.
- 1: The stream contains one B-frame.
- 2: The stream contains multiple consecutive B-frames.
| 2 |
Sar | string | The aspect ratio of the area from which the sampling points are collected. | 478:477 |
Dar | string | The display aspect ratio. | 16:9 |
PixFmt | string | | yuv420p |
Level | string | | 31 |
Fps | string | | 25.0 |
Avg_fps | string | | 25.0 |
Time_base | string | | 1/90000 |
Start_time | string | The start time of the stream. | 1.473556 |
Duration | string | The duration of the stream. Unit: seconds. | 403.039989 |
Bit_rate | string | | 888.563 |
NumFrames | string | The total number of frames. | 10040 |
Lang | string | The language of the stream. | cn |
Rotate | string | The rotation angle of the video image. Valid values: 0, 90, 180, and 270. Default value: 0. | 0 |
SubmitResultJson | object | The job submission result. | {} |
SubmitTime | string | The time when the job was submitted. | 2022-01-12T08:49:41Z |
FinishTime | string | The time when the job was complete. | 2022-01-12T08:49:41Z |
RequestId | string | The ID of the request that submitted the job. | 31E30781-9495-5E2D-A84D-759B0A01E262 |
CreateTime | string | The time when the job was created. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC. | 2022-01-12T08:49:41Z |
Name | string | | transcode-job |
RequestId | string | The ID of the request that submitted the job. | 31E30781-9495-5E2D-A84D-759B0A01E262 |
ParentJobId | string | | 8b2198504dd340b7b3c9842a74fc9baa |
JobCount | integer | | 1 |
Status | string | The state of the job.
- Success: At least one of the subjobs is successful.
- Fail: All subjobs failed.
| Success |
TriggerSource | string | The source of the job. Valid values:
| API |
Percent | integer | The completion percentage of the job. | 0 |
SubmitTime | string | The time when the job was submitted. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC. | 2022-01-12T08:49:41Z |
FinishTime | string | The time when the job was complete. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC. | 2022-01-12T08:49:41Z |
InputGroup | array<object> | The input group of the job. An input of a single file indicates a transcoding job. An input of multiple files indicates an audio and video stream merge job. | |
InputGroup | object | The information about the job input. | |
Type | string | The type of the media object. Valid values:
- OSS: an OSS object.
- Media: a media asset.
| OSS |
Media | string | The media object.
- If Type is set to OSS, the URL of an OSS object is returned. Both the OSS and HTTP protocols are supported.
- If Type is set to Media, the ID of a media asset is returned.
| oss://bucket/path/to/video.mp4 |
OutputGroup | array<object> | The output group of the job. | |
OutputGroup | object | | |
Output | object | The output file configuration. | |
Type | string | The type of the media object. Valid values:
- OSS: an OSS object.
- Media: a media asset.
| OSS |
Media | string | The media object.
- If Type is set to OSS, the URL of an OSS object is returned. Both the OSS and HTTP protocols are supported.
- If Type is set to Media, the ID of a media asset is returned.
| oss://bucket/path/to/video.mp4 |
OutputUrl | string | The URL of the output stream. | oss://bucket/path/to/video.mp4
|
ProcessConfig | object | The job processing configuration. | |
Transcode | object | The transcoding configuration. | |
TemplateId | string | | 9547c6ad97cb4f2aaa29683ebd18d410 |
OverwriteParams | object | The parameters that are used to overwrite the corresponding parameters of the template. | |
Video | object | | |
Codec | string | | H.264 |
Profile | string | The encoding profile. Valid values: baseline, main, and high.
- baseline: applicable to mobile devices.
- main: applicable to standard-definition devices.
- high: applicable to high-definition devices.
Default value: high. | Main |
Bitrate | string | The average bitrate of the video.
- Valid values: [10,50000].
- Unit: Kbit/s.
| 3000 |
Crf | string | The constant rate factor.
- Valid values: [0,51].
- Default value: 23 if the encoding format is H.264, or 26 if the encoding format is H.265.
- If this parameter is specified, the value of Bitrate becomes invalid.
| 23 |
Width | string | The width of the output video.
- Valid values: [128,4096].
- Unit: pixels.
- Default value: the width of the input video.
| 1920 |
Height | string | The height of the output video.
- Valid values: [128,4096].
- Unit: pixels.
- Default value: the height of the input video.
| 1080 |
Fps | string | The frame rate.
- Valid values: (0,60].
- The value is 60 if the frame rate of the input video exceeds 60.
- Default value: the frame rate of the input video.
| 25 |
Gop | string | The maximum number of frames between two keyframes.
- Valid values: [1,1080000].
- Default value: 250.
| 250 |
Preset | string | The preset video algorithm. This parameter takes effect only if the encoding format is H.264. Valid values: veryfast, fast, medium, slow, and slower. Default value: medium. | medium |
ScanMode | string | The scan mode. Valid values: interlaced and progressive. | progressive |
PixFmt | string | The pixel format of the video. Valid values: standard pixel formats such as yuv420p and yuvj420p. | yuv420p |
Remove | string | Indicates whether the video was removed. | false |
Crop | string | The method of video cropping. Valid values: border: automatically detects and removes black bars. A value in the width:height:left:top format: crops the videos based on the custom settings. Example: 1280:800:0:140. | 1280:800:0:140 |
Pad | string | The black bars added to the video.
- Format: width:height:left:top.
- Example: 1280:800:0:140.
| 1280:800:0:140 |
LongShortMode | string | Indicates whether the auto-rotate screen feature is enabled. | false |
Bufsize | string | The buffer size.
- Valid values: [1000,128000].
- Default value: 6000.
- Unit: KB.
| 6000 |
Maxrate | string | The maximum bitrate of the output video.
- Valid values: [10,50000].
- Unit: Kbit/s.
| 9000 |
AbrMax | string | The maximum ABR. This parameter takes effect only for Narrowband HD 1.0.
- Valid values: [10,50000].
- Unit: Kbit/s.
| 6000 |
Audio | object | | |
Codec | string | The audio codec. Valid values: AAC, MP3, VORBIS, and FLAC. Default value: AAC. | AAC |
Profile | string | The audio codec profile. If the Codec parameter is set to AAC, the valid values are aac_low, aac_he, aac_he_v2, aac_ld, and aac_eld. | aac_low |
Samplerate | string | The sampling rate.
- Default value: 44100.
- Valid values: 22050, 32000, 44100, 48000, and 96000.
- Unit: Hz.
| 44100 |
Bitrate | string | The audio bitrate of the output file.
- Valid values: [8,1000].
- Unit: Kbit/s.
- Default value: 128.
| 128 |
Channels | string | The number of sound channels. Default value: 2. | 2 |
Remove | string | Indicates whether the audio stream is deleted. | false |
Volume | object | The volume configurations. | |
Method | string | The volume adjustment method. Valid values: | auto |
IntegratedLoudnessTarget | string | | -6 |
TruePeak | string | | -1 |
LoudnessRangeTarget | string | | 8 |
Container | object | The encapsulation format settings. | |
Format | string | | mp4 |
MuxConfig | object | The encapsulation settings. | |
Segment | object | | |
Duration | string | | 10 |
ForceSegTime | string | The forced segmentation point in time. | 2,3 |
TransConfig | object | The conditional transcoding configurations. | |
TransMode | string | The video transcoding mode. Valid values:
- onepass: You can set this parameter to onepass if the Bitrate parameter is set to ABR. The encoding speed of this mode is faster than that of the twopass mode.
- twopass: You can set this parameter to twopass if the Bitrate parameter is set to VBR. The encoding speed of this mode is slower than that of the onepass mode.
- CBR: the constant bitrate mode.
Default value: onepass. | onepass |
IsCheckReso | string | Indicates whether the video resolution was checked. You can specify only one of the IsCheckReso and IsCheckResoFail parameters. The priority of the IsCheckResoFail parameter is higher. Valid values:
- true If the width or height of the input video is less than that of the output video, the resolution of the input video is used for transcoding.
- false
Default value: false. | true |
IsCheckResoFail | string | Indicates whether the video resolution was checked. You can specify only one of the IsCheckReso and IsCheckResoFail parameters. The priority of the IsCheckResoFail parameter is higher. Valid values:
- true If the width or height of the input video is less than that of the output video, the transcoding job fails.
- false
Default value: false. | true |
IsCheckVideoBitrate | string | Indicates whether the video bitrate was checked. You can specify only one of the IsCheckVideoBitrate and IsCheckVideoBitrateFail parameters. The priority of the IsCheckVideoBitrateFail parameter is higher. Valid values:
- true If the bitrate of the input video is less than that of the output video, the bitrate of the input video is used for transcoding.
- false
Default value: false. | true |
IsCheckVideoBitrateFail | string | Indicates whether the video bitrate was checked. You can specify only one of the IsCheckVideoBitrate and IsCheckVideoBitrateFail parameters. The priority of the IsCheckVideoBitrateFail parameter is higher. Valid values:
- true If the bitrate of the input video is less than that of the output video, the transcoding job fails.
- false
Default value: false. | true |
IsCheckAudioBitrate | string | Indicates whether the audio bitrate was checked. You can specify only one of the IsCheckAudioBitrate and IsCheckAudioBitrateFail parameters. The priority of the IsCheckAudioBitrateFail parameter is higher. Valid values:
- true If the bitrate of the input audio is less than that of the output audio, the bitrate of the input audio is used for transcoding.
- false
Default value:
- If this parameter is not specified and the codec of the output audio is different from that of the input audio, the default value is false.
- If this parameter is not specified and the codec of the output audio is the same as that of the input audio, the default value is true.
| true |
IsCheckAudioBitrateFail | string | Indicates whether the audio bitrate was checked. You can specify only one of the IsCheckAudioBitrate and IsCheckAudioBitrateFail parameters. The priority of the IsCheckAudioBitrateFail parameter is higher. Valid values:
- true If the bitrate of the input audio is less than that of the output audio, the transcoding job fails.
- false
Default value: false. | true |
AdjDarMethod | string | 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.
Valid values: rescale, crop, pad, and none.
Default value: none. | none |
ImageWatermarks | array<object> | The watermark configuration of an image. | |
ImageWatermark | object | The watermark configuration of an image. | |
TemplateId | string | | 9547c6ad97cb4f2aaa29683ebd18d410 |
OverwriteParams | object | The parameters that are used to overwrite the corresponding parameters of the template. | |
Width | string | The width of the output video. | 32 |
Height | string | The height of the output video. | 32 |
Dx | string | The position of the watermark on the x-axis. | 10 |
Dy | string | The position of the watermark on the y-axis. | 10 |
ReferPos | string | The reference position of the watermark. Valid values: TopLeft, TopRight, BottomLeft, and BottomRight. Default value: TopLeft. | TopLeft |
Timeline | object | | |
Start | string | The start time of the stream. | 00:00:05 |
Duration | string | The duration of the stream. Valid values: the number of seconds or "ToEND". | ToEND |
File | object | The watermark image file. | |
Type | string | The type of the media object. Valid values:
- OSS: an OSS object.
- Media: a media asset.
| OSS |
Media | string | The media object.
- If Type is set to OSS, the URL of an OSS object is returned. Both the OSS and HTTP protocols are supported.
- If Type is set to Media, the ID of a media asset is returned.
| oss://bucket/path/to/video.mp4 |
TextWatermarks | array<object> | The configurations of the text watermark. | |
TextWatermark | object | The configurations of the text watermark. | |
TemplateId | string | | 9547c6ad97cb4f2aaa29683ebd18d410 |
OverwriteParams | object | The parameters that are used to overwrite the corresponding parameters of the template. | |
Content | string | The watermark text. Base64 encoding is not required. The string must be encoded in UTF-8. | |
FontName | string | | SimSun |
FontColor | string | | #006400 |
FontAlpha | string | The transparency of the watermark. | 1.0 |
Top | string | The distance of the watermark from the top edge. | 10 |
Left | string | The distance of the watermark from the left edge. | 10 |
FontSize | integer | | 16 |
BorderWidth | integer | | 0 |
BorderColor | string | | #006400 |
Adaptive | string | Indicates whether the text size was adjusted based on the output video dimensions. Valid values: true and false. Default value: false. | false |
Subtitles | array<object> | The subtitle configuration. | |
Subtitle | object | The subtitle configuration. | |
TemplateId | string | | 9547c6ad97cb4f2aaa29683ebd18d410 |
OverwriteParams | object | The parameters that are used to overwrite the corresponding parameters of the template. | |
Format | string | The format of the subtitle file. | vtt |
CharEnc | string | The file encoding format. | UTF-8 |
File | object | | |
Type | string | The type of the media object. Valid values:
- OSS: an OSS object.
- Media: a media asset.
| OSS |
Media | string | The media object.
- If Type is set to OSS, the URL of an OSS object is returned. Both the OSS and HTTP protocols are supported.
- If Type is set to Media, the ID of a media asset is returned.
| oss://bucket/path/to/video.mp4 |
Encryption | object | | |
EncryptType | string | | PrivateEncryption |
CipherText | string | The ciphertext of HLS encryption. | MTYi00NDU0LTg5O**** |
DecryptKeyUri | string | The endpoint of the decryption service for HLS encryption. | https://sample.com/path?CipherText=MTYi00NDU0LTg5O**** |
KeyServiceType | string | The type of the key service. Valid values: KMS and Base64. | KMS |
CombineConfigs | array<object> | The multi-input stream merge configuration. | |
CombineConfig | object | | |
AudioIndex | string | | |
VideoIndex | string | | |
Start | double | The start time of the input stream. Default value: 0. | 0.0 |
Duration | double | The duration of the input stream. The default value is the duration of the video. | 20.0 |
UserData | string | | user-data |
ScheduleConfig | object | The scheduling configuration of the job. | |
PipelineId | string | The ID of the ApsaraVideo Media Processing (MPS) queue to which the snapshot job was submitted. | e37ebee5d98b4781897f6086e89f9c56 |
Priority | integer | The priority of the job. Valid values: 1 to 10. The greater the value, the higher the priority. | 5 |