public class VideoTemplateInfoForUpdate extends AbstractModel
header, skipSign
Constructor and Description |
---|
VideoTemplateInfoForUpdate() |
VideoTemplateInfoForUpdate(VideoTemplateInfoForUpdate 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 |
getBframes()
Get Maximum number of consecutive B-frames.
|
Long |
getBitDepth()
Get Bit: 8/10 is supported.
|
Long |
getBitrate()
Get Bitrate of a video stream, in kbps.
|
String |
getCodec()
Get Encoding format for video streams.
|
Long |
getCompress()
Get Proportional compression bitrate.
|
Long |
getContentAdaptStream()
Get Whether to enable adaptive encoding.
|
String |
getFillType()
Get Filling mode.
|
Long |
getFps()
Get Video frame rate.
|
Long |
getFpsDenominator()
Get Denominator of the frame rate.
|
Long |
getGop()
Get Interval between I-frames (keyframes), which can be customized in frames or seconds.
|
String |
getGopUnit()
Get GOP value unit.
|
Long |
getHeight()
Get Maximum value of the height (or short side) of a video stream in px.
|
Long |
getHlsTime()
Get Average segment duration.
|
String |
getMode()
Get Bitrate control mode.
|
Long |
getNoScenecut()
Get Adaptive I-frame decision.
|
Long |
getRawPts()
Get Preservation of original timestamp.
|
String |
getResolutionAdaptive()
Get Resolution adaption.
|
String |
getSar()
Get Display aspect ratio.
|
SegmentSpecificInfo |
getSegmentSpecificInfo()
Get Special segment configuration
Note: This field may return null, indicating that no valid value can be obtained.
|
Long |
getSegmentType()
Get HLS segment type.
|
String |
getStereo3dType()
Get 3D video splicing mode, which is only valid for MV-HEVC 3D videos.
|
Long |
getVcrf()
Get Control factor for constant video bitrate.
|
String |
getVideoLevel()
Get Encoder level.
|
String |
getVideoProfile()
Get Profile, suitable for different scenarios.
|
Long |
getWidth()
Get Maximum value of the width (or long side) of a video stream in px.
|
void |
setBframes(Long Bframes)
Set Maximum number of consecutive B-frames.
|
void |
setBitDepth(Long BitDepth)
Set Bit: 8/10 is supported.
|
void |
setBitrate(Long Bitrate)
Set Bitrate of a video stream, in kbps.
|
void |
setCodec(String Codec)
Set Encoding format for video streams.
|
void |
setCompress(Long Compress)
Set Proportional compression bitrate.
|
void |
setContentAdaptStream(Long ContentAdaptStream)
Set Whether to enable adaptive encoding.
|
void |
setFillType(String FillType)
Set Filling mode.
|
void |
setFps(Long Fps)
Set Video frame rate.
|
void |
setFpsDenominator(Long FpsDenominator)
Set Denominator of the frame rate.
|
void |
setGop(Long Gop)
Set Interval between I-frames (keyframes), which can be customized in frames or seconds.
|
void |
setGopUnit(String GopUnit)
Set GOP value unit.
|
void |
setHeight(Long Height)
Set Maximum value of the height (or short side) of a video stream in px.
|
void |
setHlsTime(Long HlsTime)
Set Average segment duration.
|
void |
setMode(String Mode)
Set Bitrate control mode.
|
void |
setNoScenecut(Long NoScenecut)
Set Adaptive I-frame decision.
|
void |
setRawPts(Long RawPts)
Set Preservation of original timestamp.
|
void |
setResolutionAdaptive(String ResolutionAdaptive)
Set Resolution adaption.
|
void |
setSar(String Sar)
Set Display aspect ratio.
|
void |
setSegmentSpecificInfo(SegmentSpecificInfo SegmentSpecificInfo)
Set Special segment configuration
Note: This field may return null, indicating that no valid value can be obtained.
|
void |
setSegmentType(Long SegmentType)
Set HLS segment type.
|
void |
setStereo3dType(String Stereo3dType)
Set 3D video splicing mode, which is only valid for MV-HEVC 3D videos.
|
void |
setVcrf(Long Vcrf)
Set Control factor for constant video bitrate.
|
void |
setVideoLevel(String VideoLevel)
Set Encoder level.
|
void |
setVideoProfile(String VideoProfile)
Set Profile, suitable for different scenarios.
|
void |
setWidth(Long Width)
Set Maximum value of the width (or long side) of a video stream in px.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public VideoTemplateInfoForUpdate()
public VideoTemplateInfoForUpdate(VideoTemplateInfoForUpdate source)
public String getCodec()
public void setCodec(String Codec)
Codec
- Encoding format for video streams. Optional values:
public Long getFps()
public void setFps(Long Fps)
Fps
- Video frame rate. Value range:
When FpsDenominator is empty, the range is [0, 120], in Hz.
When FpsDenominator is not empty, the Fps/FpsDenominator range is [0, 120].
If the value is 0, the frame rate will be the same as that of the source video.Note: This field may return null, indicating that no valid values can be obtained.public Long getBitrate()
public void setBitrate(Long Bitrate)
Bitrate
- Bitrate of a video stream, in kbps. Value range: 0 and [128, 100000].If the value is 0, the bitrate of the video will be the same as that of the source video.Note: This field may return null, indicating that no valid values can be obtained.public String getResolutionAdaptive()
public void setResolutionAdaptive(String ResolutionAdaptive)
ResolutionAdaptive
- Resolution adaption. Valid values:
public Long getWidth()
public void setWidth(Long Width)
Width
- Maximum value of the width (or long side) of a video stream in px. Value range: 0 and [128, 4,096].
public Long getHeight()
public void setHeight(Long Height)
Height
- Maximum value of the height (or short side) of a video stream in px. Value range: 0 and [128, 4,096].public Long getGop()
public void setGop(Long Gop)
Gop
- Interval between I-frames (keyframes), which can be customized in frames or seconds. GOP value range: 0 and [1, 100000].
If this parameter is 0, the system will automatically set the GOP length.
Note: This field may return null, indicating that no valid value can be obtained.public String getGopUnit()
public void setGopUnit(String GopUnit)
GopUnit
- GOP value unit. Optional values:
frame: indicates frame
second: indicates second
Default value: frame
Note: This field may return null, indicating that no valid value can be obtained.public String getFillType()
public void setFillType(String FillType)
FillType
- Filling mode. When the configured aspect ratio parameter for video streams differs from the aspect ratio of the original video, the processing method for transcoding is "filling". Optional filling modes:
public Long getVcrf()
public void setVcrf(Long Vcrf)
Vcrf
- Control factor for constant video bitrate. Value range: [0, 51] and 100.
It is recommended not to specify this parameter if there are no special requirements.
Note:
When you need to set it to auto, fill in 100.
If Mode is set to ABR, the Vcrf value does not need to be configured.
If Mode is set to CBR, the Vcrf value does not need to be configured.
Note: This field may return null, indicating that no valid value can be obtained.public Long getContentAdaptStream()
public void setContentAdaptStream(Long ContentAdaptStream)
ContentAdaptStream
- Whether to enable adaptive encoding. Valid values:
public Long getHlsTime()
public void setHlsTime(Long HlsTime)
HlsTime
- Average segment duration. Value range: (0-10], unit: second
Default value: 10
Note: It is used only in the format of HLS.
Note: This field may return null, indicating that no valid value can be obtained.public Long getSegmentType()
public void setSegmentType(Long SegmentType)
SegmentType
- HLS segment type. Valid values:
public Long getFpsDenominator()
public void setFpsDenominator(Long FpsDenominator)
FpsDenominator
- Denominator of the frame rate.
Note: The value must be greater than 0.
Note: This field may return null, indicating that no valid values can be obtained.public String getStereo3dType()
public void setStereo3dType(String Stereo3dType)
Stereo3dType
- 3D video splicing mode, which is only valid for MV-HEVC 3D videos. Valid values:
public String getVideoProfile()
public void setVideoProfile(String VideoProfile)
VideoProfile
- Profile, suitable for different scenarios.
baseline: It only supports I/P-frames and non-interlaced scenarios, and is suitable for scenarios such as video calls and mobile videos.
main: It offers I-frames, P-frames, and B-frames, and supports both interlaced and non-interlaced modes. It is mainly used in mainstream audio and video consumption products such as video players and streaming media transmission devices.
high: the highest encoding level, with 8x8 prediction added to the main profile and support for custom quantification. It is widely used in scenarios such as Blu-ray storage and HDTV.
default: automatic filling along with the original video
This configuration appears only when the encoding standard is set to H264. Default value: default
Note: This field may return null, indicating that no valid value can be obtained.public String getVideoLevel()
public void setVideoLevel(String VideoLevel)
VideoLevel
- Encoder level. Default value: auto ("")
If the encoding standard is set to H264, the following options are supported: "", 1, 1.1, 1.2, 1.3, 2, 2.1, 2.2, 3, 3.1, 3.2, 4, 4.1, 4.2, 5, and 5.1.
If the encoding standard is set to H265, the following options are supported: "", 1, 2, 2.1, 3, 3.1, 4, 4.1, 5, 5.1, 5.2, 6, 6.1, 6.2, and 8.5.
Note: This field may return null, indicating that no valid value can be obtained.public Long getBframes()
public void setBframes(Long Bframes)
Bframes
- Maximum number of consecutive B-frames. The default is auto, and 0 - 16 and -1 are supported.
Note:
-1 indicates auto.
Note: This field may return null, indicating that no valid value can be obtained.public String getMode()
public void setMode(String Mode)
Mode
- Bitrate control mode. Optional values:
VBR: variable bitrate. The output bitrate is adjusted based on the complexity of the video image, ensuring higher image quality. This mode is suitable for storage scenarios as well as applications with high image quality requirements.
ABR: average bitrate. The average bitrate of the output video is kept stable to the greatest extent, but short-term bitrate fluctuations are allowed. This mode is suitable for scenarios where it is necessary to minimize the overall bitrate while a certain quality is maintained.
CBR: constant bitrate. The output bitrate remains constant during the video encoding process, regardless of changes in image complexity. This mode is suitable for scenarios with strict network bandwidth requirements, such as live streaming.
VCRF: constant rate factor. The video quality is controlled by setting a quality factor, achieving constant quality encoding of videos. The bitrate is automatically adjusted based on the complexity of the content. This mode is suitable for scenarios where maintaining a certain quality is desired.
VBR is selected by default.
Note: This field may return null, indicating that no valid value can be obtained.public String getSar()
public void setSar(String Sar)
Sar
- Display aspect ratio. Optional values: [1:1, 2:1, default]
Default value: default
Note: This field may return null, indicating that no valid value can be obtained.public Long getNoScenecut()
public void setNoScenecut(Long NoScenecut)
NoScenecut
- Adaptive I-frame decision. When it is enabled, Media Processing Service will automatically identify transition points between different scenarios in the video (usually they are visually distinct frames, such as those of switching from one shot to another) and adaptively insert keyframes (I-frames) at these points to improve the random accessibility and encoding efficiency of the video. Optional values:
0: Disable the adaptive I-frame decision
1: Enable the adaptive I-frame decision
Default value: 0
Note: This field may return null, indicating that no valid value can be obtained.public Long getBitDepth()
public void setBitDepth(Long BitDepth)
BitDepth
- Bit: 8/10 is supported. Default value: 8
Note: This field may return null, indicating that no valid value can be obtained.public Long getRawPts()
public void setRawPts(Long RawPts)
RawPts
- Preservation of original timestamp. Optional values:
0: Disabled
1: Enabled
Default value: Disabled
Note: This field may return null, indicating that no valid value can be obtained.public Long getCompress()
public void setCompress(Long Compress)
Compress
- Proportional compression bitrate. When it is enabled, the bitrate of the output video will be adjusted according to the proportion. After the compression ratio is entered, the system will automatically calculate the target output bitrate based on the source video bitrate. Compression ratio range: 0-100, optional values: [0-100] and -1
Note: -1 indicates auto.
Note: This field may return null, indicating that no valid value can be obtained.public SegmentSpecificInfo getSegmentSpecificInfo()
public void setSegmentSpecificInfo(SegmentSpecificInfo SegmentSpecificInfo)
SegmentSpecificInfo
- Special segment configuration
Note: This field may return null, indicating that no valid value can be obtained.Copyright © 2024. All rights reserved.