public class TranscodeTaskInput extends AbstractModel
Constructor and Description |
---|
TranscodeTaskInput() |
TranscodeTaskInput(TranscodeTaskInput source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
|
Modifier and Type | Method and Description |
---|---|
Long |
getDefinition()
Get ID of a video transcoding template.
|
Float |
getEndTimeOffset()
Get End time offset of a transcoded video, in seconds.
|
HeadTailParameter |
getHeadTailParameter()
Get Opening and closing credits parameters
Note: this field may return `null`, indicating that no valid value was found.
|
MosaicInput[] |
getMosaicSet()
Get List of blurs.
|
NumberFormat |
getObjectNumberFormat()
Get Rule of the `{number}` variable in the output path after transcoding.
|
String |
getOutputObjectPath()
Get Path to a primary output file, which can be a relative path or an absolute path.
|
TaskOutputStorage |
getOutputStorage()
Get Target bucket of an output file.
|
OverrideTranscodeParameter |
getOverrideParameter()
Get Video transcoding custom parameter, which is valid when `Definition` is not 0.
|
RawTranscodeParameter |
getRawParameter()
Get Custom video transcoding parameter, which is valid if `Definition` is 0.
|
String |
getSegmentObjectName()
Get Path to an output file part (the path to ts during transcoding to HLS), which can only be a relative path.
|
Float |
getStartTimeOffset()
Get Start time offset of a transcoded video, in seconds.
|
WatermarkInput[] |
getWatermarkSet()
Get List of up to 10 image or text watermarks.
|
void |
setDefinition(Long Definition)
Set ID of a video transcoding template.
|
void |
setEndTimeOffset(Float EndTimeOffset)
Set End time offset of a transcoded video, in seconds.
|
void |
setHeadTailParameter(HeadTailParameter HeadTailParameter)
Set Opening and closing credits parameters
Note: this field may return `null`, indicating that no valid value was found.
|
void |
setMosaicSet(MosaicInput[] MosaicSet)
Set List of blurs.
|
void |
setObjectNumberFormat(NumberFormat ObjectNumberFormat)
Set Rule of the `{number}` variable in the output path after transcoding.
|
void |
setOutputObjectPath(String OutputObjectPath)
Set Path to a primary output file, which can be a relative path or an absolute path.
|
void |
setOutputStorage(TaskOutputStorage OutputStorage)
Set Target bucket of an output file.
|
void |
setOverrideParameter(OverrideTranscodeParameter OverrideParameter)
Set Video transcoding custom parameter, which is valid when `Definition` is not 0.
|
void |
setRawParameter(RawTranscodeParameter RawParameter)
Set Custom video transcoding parameter, which is valid if `Definition` is 0.
|
void |
setSegmentObjectName(String SegmentObjectName)
Set Path to an output file part (the path to ts during transcoding to HLS), which can only be a relative path.
|
void |
setStartTimeOffset(Float StartTimeOffset)
Set Start time offset of a transcoded video, in seconds.
|
void |
setWatermarkSet(WatermarkInput[] WatermarkSet)
Set List of up to 10 image or text watermarks.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public TranscodeTaskInput()
public TranscodeTaskInput(TranscodeTaskInput source)
public Long getDefinition()
public void setDefinition(Long Definition)
Definition
- ID of a video transcoding template.public RawTranscodeParameter getRawParameter()
public void setRawParameter(RawTranscodeParameter RawParameter)
RawParameter
- Custom video transcoding parameter, which is valid if `Definition` is 0.
This parameter is used in highly customized scenarios. We recommend you use `Definition` to specify the transcoding parameter preferably.public OverrideTranscodeParameter getOverrideParameter()
public void setOverrideParameter(OverrideTranscodeParameter OverrideParameter)
OverrideParameter
- Video transcoding custom parameter, which is valid when `Definition` is not 0.
When any parameters in this structure are entered, they will be used to override corresponding parameters in templates.
This parameter is used in highly customized scenarios. We recommend you only use `Definition` to specify the transcoding parameter.
Note: this field may return `null`, indicating that no valid value was found.public WatermarkInput[] getWatermarkSet()
public void setWatermarkSet(WatermarkInput[] WatermarkSet)
WatermarkSet
- List of up to 10 image or text watermarks.
Note: This field may return null, indicating that no valid values can be obtained.public MosaicInput[] getMosaicSet()
public void setMosaicSet(MosaicInput[] MosaicSet)
MosaicSet
- List of blurs. Up to 10 ones can be supported.public Float getStartTimeOffset()
public void setStartTimeOffset(Float StartTimeOffset)
StartTimeOffset
- Start time offset of a transcoded video, in seconds.
public Float getEndTimeOffset()
public void setEndTimeOffset(Float EndTimeOffset)
EndTimeOffset
- End time offset of a transcoded video, in seconds.
public TaskOutputStorage getOutputStorage()
public void setOutputStorage(TaskOutputStorage OutputStorage)
OutputStorage
- Target bucket of an output file. If this parameter is left empty, the `OutputStorage` value of the upper folder will be inherited.
Note: This field may return null, indicating that no valid values can be obtained.public String getOutputObjectPath()
public void setOutputObjectPath(String OutputObjectPath)
OutputObjectPath
- Path to a primary output file, which can be a relative path or an absolute path. If this parameter is left empty, the following relative path will be used by default: `{inputName}_transcode_{definition}.{format}`.public String getSegmentObjectName()
public void setSegmentObjectName(String SegmentObjectName)
SegmentObjectName
- Path to an output file part (the path to ts during transcoding to HLS), which can only be a relative path. If this parameter is left empty, the following relative path will be used by default: `{inputName}_transcode_{definition}_{number}.{format}`.public NumberFormat getObjectNumberFormat()
public void setObjectNumberFormat(NumberFormat ObjectNumberFormat)
ObjectNumberFormat
- Rule of the `{number}` variable in the output path after transcoding.
Note: This field may return null, indicating that no valid values can be obtained.public HeadTailParameter getHeadTailParameter()
public void setHeadTailParameter(HeadTailParameter HeadTailParameter)
HeadTailParameter
- Opening and closing credits parameters
Note: this field may return `null`, indicating that no valid value was found.Copyright © 2023. All rights reserved.