public class RebuildMediaTargetVideoStream extends AbstractModel
Constructor and Description |
---|
RebuildMediaTargetVideoStream() |
RebuildMediaTargetVideoStream(RebuildMediaTargetVideoStream 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, 35000],单位:kbps。
当取值为 0,表示视频码率和原始视频保持一致。
|
String |
getCodec()
Get 视频流的编码格式,可选值:
libx264:H.264 编码;
libx265:H.265 编码;
av1:AOMedia Video 1 编码。
默认视频流的编码格式为 H.264 编码。
|
String |
getFillType()
Get 填充方式,当视频流配置宽高参数与原始视频的宽高比不一致时,对转码的处理方式,即为“填充”。可选填充方式:
stretch:拉伸,对每一帧进行拉伸,填满整个画面,可能导致转码后的视频被“压扁“或者“拉长“;
black:留黑,保持视频宽高比不变,边缘剩余部分使用黑色填充。
默认值:stretch 。
|
Long |
getFps()
Get 视频帧率,取值范围:[0, 100],单位:Hz。 当取值为 0,表示帧率和原始视频保持一致。
|
Long |
getGop()
Get 关键帧 I 帧之间的间隔,取值范围:0 和 [1, 100000],单位:帧数。
当填 0 或不填时,系统将自动设置 gop 长度。
|
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, 35000],单位:kbps。
当取值为 0,表示视频码率和原始视频保持一致。
|
void |
setCodec(String Codec)
Set 视频流的编码格式,可选值:
libx264:H.264 编码;
libx265:H.265 编码;
av1:AOMedia Video 1 编码。
默认视频流的编码格式为 H.264 编码。
|
void |
setFillType(String FillType)
Set 填充方式,当视频流配置宽高参数与原始视频的宽高比不一致时,对转码的处理方式,即为“填充”。可选填充方式:
stretch:拉伸,对每一帧进行拉伸,填满整个画面,可能导致转码后的视频被“压扁“或者“拉长“;
black:留黑,保持视频宽高比不变,边缘剩余部分使用黑色填充。
默认值:stretch 。
|
void |
setFps(Long Fps)
Set 视频帧率,取值范围:[0, 100],单位:Hz。 当取值为 0,表示帧率和原始视频保持一致。
|
void |
setGop(Long Gop)
Set 关键帧 I 帧之间的间隔,取值范围:0 和 [1, 100000],单位:帧数。
当填 0 或不填时,系统将自动设置 gop 长度。
|
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, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public RebuildMediaTargetVideoStream()
public RebuildMediaTargetVideoStream(RebuildMediaTargetVideoStream source)
public String getCodec()
public void setCodec(String Codec)
Codec
- 视频流的编码格式,可选值:
public Long getBitrate()
public void setBitrate(Long Bitrate)
Bitrate
- 视频流的码率,取值范围:0 和 [128, 35000],单位:kbps。
当取值为 0,表示视频码率和原始视频保持一致。public Long getFps()
public void setFps(Long Fps)
Fps
- 视频帧率,取值范围:[0, 100],单位:Hz。 当取值为 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 String getFillType()
public void setFillType(String FillType)
FillType
- 填充方式,当视频流配置宽高参数与原始视频的宽高比不一致时,对转码的处理方式,即为“填充”。可选填充方式:
public Long getGop()
public void setGop(Long Gop)
Gop
- 关键帧 I 帧之间的间隔,取值范围:0 和 [1, 100000],单位:帧数。
当填 0 或不填时,系统将自动设置 gop 长度。Copyright © 2023. All rights reserved.