public class EditMediaVideoStream extends AbstractModel
header, skipSign
Constructor and Description |
---|
EditMediaVideoStream() |
EditMediaVideoStream(EditMediaVideoStream 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 视频流的码率,取值范围:0 和 [128, 100000],单位:kbps。
当取值为 0 或不填时,表示由云点播自动设置码率。
|
String |
getCodec()
Get 视频流的编码格式,可选值:
libx264:H.264 编码;
libx265:H.265 编码;
av1:AOMedia Video 1 编码;
H.266:H.266 编码。
|
Long |
getFps()
Get 视频帧率,取值范围:[0, 100],单位:Hz。
当取值为0,将自动为视频设置帧率。
默认值为 0。
|
Long |
getHeight()
Get 视频流高度(或短边)的最大值,取值范围:0 和 [128, 4096],单位:px。
当 Width、Height 均为 0,则分辨率取基准分辨率;
当 Width 为 0,Height 非 0,则 Width 按基准分辨率比例缩放;
当 Width 非 0,Height 为 0,则 Height 按基准分辨率比例缩放;
当 Width、Height 均非 0,则分辨率按用户指定。
默认值:0。
|
String |
getResolutionAdaptive()
Get 分辨率自适应,可选值:
open:开启,此时,Width 代表视频的长边,Height 表示视频的短边;
close:关闭,此时,Width 代表视频的宽度,Height 表示视频的高度。
默认值:open。
|
Long |
getWidth()
Get 视频流宽度(或长边)的最大值,取值范围:0 和 [128, 4096],单位:px。
当 Width、Height 均为 0,则分辨率取基准分辨率;
当 Width 为 0,Height 非 0,则 Width 按基准分辨率比例缩放;
当 Width 非 0,Height 为 0,则 Height 按基准分辨率比例缩放;
当 Width、Height 均非 0,则分辨率按用户指定。
默认值:0。
|
void |
setBitrate(Long Bitrate)
Set 视频流的码率,取值范围:0 和 [128, 100000],单位:kbps。
当取值为 0 或不填时,表示由云点播自动设置码率。
|
void |
setCodec(String Codec)
Set 视频流的编码格式,可选值:
libx264:H.264 编码;
libx265:H.265 编码;
av1:AOMedia Video 1 编码;
H.266:H.266 编码。
|
void |
setFps(Long Fps)
Set 视频帧率,取值范围:[0, 100],单位:Hz。
当取值为0,将自动为视频设置帧率。
默认值为 0。
|
void |
setHeight(Long Height)
Set 视频流高度(或短边)的最大值,取值范围:0 和 [128, 4096],单位:px。
当 Width、Height 均为 0,则分辨率取基准分辨率;
当 Width 为 0,Height 非 0,则 Width 按基准分辨率比例缩放;
当 Width 非 0,Height 为 0,则 Height 按基准分辨率比例缩放;
当 Width、Height 均非 0,则分辨率按用户指定。
默认值:0。
|
void |
setResolutionAdaptive(String ResolutionAdaptive)
Set 分辨率自适应,可选值:
open:开启,此时,Width 代表视频的长边,Height 表示视频的短边;
close:关闭,此时,Width 代表视频的宽度,Height 表示视频的高度。
默认值:open。
|
void |
setWidth(Long Width)
Set 视频流宽度(或长边)的最大值,取值范围:0 和 [128, 4096],单位:px。
当 Width、Height 均为 0,则分辨率取基准分辨率;
当 Width 为 0,Height 非 0,则 Width 按基准分辨率比例缩放;
当 Width 非 0,Height 为 0,则 Height 按基准分辨率比例缩放;
当 Width、Height 均非 0,则分辨率按用户指定。
默认值:0。
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public EditMediaVideoStream()
public EditMediaVideoStream(EditMediaVideoStream source)
public String getCodec()
public void setCodec(String Codec)
Codec
- 视频流的编码格式,可选值:
public Long getBitrate()
public void setBitrate(Long Bitrate)
Bitrate
- 视频流的码率,取值范围:0 和 [128, 100000],单位:kbps。
当取值为 0 或不填时,表示由云点播自动设置码率。public String getResolutionAdaptive()
public void setResolutionAdaptive(String ResolutionAdaptive)
ResolutionAdaptive
- 分辨率自适应,可选值:
public Long getWidth()
public void setWidth(Long Width)
Width
- 视频流宽度(或长边)的最大值,取值范围:0 和 [128, 4096],单位:px。
public Long getHeight()
public void setHeight(Long Height)
Height
- 视频流高度(或短边)的最大值,取值范围:0 和 [128, 4096],单位:px。
public Long getFps()
public void setFps(Long Fps)
Fps
- 视频帧率,取值范围:[0, 100],单位:Hz。
当取值为0,将自动为视频设置帧率。
默认值为 0。Copyright © 2025. All rights reserved.