public class VideoEncodingPresetVideoSetting extends AbstractModel
Constructor and Description |
---|
VideoEncodingPresetVideoSetting() |
VideoEncodingPresetVideoSetting(VideoEncodingPresetVideoSetting 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 |
getBitrate()
Get 指定码率,单位 bps。当该参数为'0'时则不强制限定码率。
默认值:0。
|
String |
getCodec()
Get 视频流的编码格式,可选值:
H264:H.264 编码。
|
Long |
getShortEdge()
Get 视频短边尺寸,取值范围: [128, 4096],单位:px。
视频最后的分辨率,根据短边尺寸和宽高比进行计算。
例:如果项目的宽高比是 16:9 :
短边尺寸为 1080,则导出视频的分辨率为 1920 * 1080。
短边尺寸为 720,则导出视频的分辨率为 1280 * 720。
如果项目的宽高比是 9:16 :
短边尺寸为 1080,则导出视频的分辨率为 1080 * 1920。
短边尺寸为 720,则导出视频的分辨率为 720 * 1280。
默认值:1080。
|
void |
setBitrate(Long Bitrate)
Set 指定码率,单位 bps。当该参数为'0'时则不强制限定码率。
默认值:0。
|
void |
setCodec(String Codec)
Set 视频流的编码格式,可选值:
H264:H.264 编码。
|
void |
setShortEdge(Long ShortEdge)
Set 视频短边尺寸,取值范围: [128, 4096],单位:px。
视频最后的分辨率,根据短边尺寸和宽高比进行计算。
例:如果项目的宽高比是 16:9 :
短边尺寸为 1080,则导出视频的分辨率为 1920 * 1080。
短边尺寸为 720,则导出视频的分辨率为 1280 * 720。
如果项目的宽高比是 9:16 :
短边尺寸为 1080,则导出视频的分辨率为 1080 * 1920。
短边尺寸为 720,则导出视频的分辨率为 720 * 1280。
默认值:1080。
|
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 VideoEncodingPresetVideoSetting()
public VideoEncodingPresetVideoSetting(VideoEncodingPresetVideoSetting source)
public String getCodec()
public void setCodec(String Codec)
Codec
- 视频流的编码格式,可选值:
public Long getShortEdge()
public void setShortEdge(Long ShortEdge)
ShortEdge
- 视频短边尺寸,取值范围: [128, 4096],单位:px。
视频最后的分辨率,根据短边尺寸和宽高比进行计算。
例:如果项目的宽高比是 16:9 :
public Long getBitrate()
public void setBitrate(Long Bitrate)
Bitrate
- 指定码率,单位 bps。当该参数为'0'时则不强制限定码率。
默认值:0。Copyright © 2022. All rights reserved.