com.amazonaws.services.mediaconvert.model.H264QvbrSettings Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws-java-sdk-mediaconvert Show documentation
Show all versions of aws-java-sdk-mediaconvert Show documentation
The AWS Java SDK for AWS Elemental MediaConvert module holds the client classes that are used for communicating with AWS Elemental MediaConvert Service
/*
* Copyright 2019-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
package com.amazonaws.services.mediaconvert.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;
/**
* Settings for quality-defined variable bitrate encoding with the H.264 codec. Use these settings only when you set
* QVBR for Rate control mode.
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class H264QvbrSettings implements Serializable, Cloneable, StructuredPojo {
/**
* Use this setting only when Rate control mode is QVBR and Quality tuning level is Multi-pass HQ. For Max average
* bitrate values suited to the complexity of your input video, the service limits the average bitrate of the video
* part of this output to the value that you choose. That is, the total size of the video element is less than or
* equal to the value you set multiplied by the number of seconds of encoded output.
*/
private Integer maxAverageBitrate;
/**
* Use this setting only when you set Rate control mode to QVBR. Specify the target quality level for this output.
* MediaConvert determines the right number of bits to use for each part of the video to maintain the video quality
* that you specify. When you keep the default value, AUTO, MediaConvert picks a quality level for you, based on
* characteristics of your input video. If you prefer to specify a quality level, specify a number from 1 through 10.
* Use higher numbers for greater quality. Level 10 results in nearly lossless compression. The quality level for
* most broadcast-quality transcodes is between 6 and 9. Optionally, to specify a value between whole numbers, also
* provide a value for the setting qvbrQualityLevelFineTune. For example, if you want your QVBR quality level to be
* 7.33, set qvbrQualityLevel to 7 and set qvbrQualityLevelFineTune to .33.
*/
private Integer qvbrQualityLevel;
/**
* Optional. Specify a value here to set the QVBR quality to a level that is between whole numbers. For example, if
* you want your QVBR quality level to be 7.33, set qvbrQualityLevel to 7 and set qvbrQualityLevelFineTune to .33.
* MediaConvert rounds your QVBR quality level to the nearest third of a whole number. For example, if you set
* qvbrQualityLevel to 7 and you set qvbrQualityLevelFineTune to .25, your actual QVBR quality level is 7.33.
*/
private Double qvbrQualityLevelFineTune;
/**
* Use this setting only when Rate control mode is QVBR and Quality tuning level is Multi-pass HQ. For Max average
* bitrate values suited to the complexity of your input video, the service limits the average bitrate of the video
* part of this output to the value that you choose. That is, the total size of the video element is less than or
* equal to the value you set multiplied by the number of seconds of encoded output.
*
* @param maxAverageBitrate
* Use this setting only when Rate control mode is QVBR and Quality tuning level is Multi-pass HQ. For Max
* average bitrate values suited to the complexity of your input video, the service limits the average
* bitrate of the video part of this output to the value that you choose. That is, the total size of the
* video element is less than or equal to the value you set multiplied by the number of seconds of encoded
* output.
*/
public void setMaxAverageBitrate(Integer maxAverageBitrate) {
this.maxAverageBitrate = maxAverageBitrate;
}
/**
* Use this setting only when Rate control mode is QVBR and Quality tuning level is Multi-pass HQ. For Max average
* bitrate values suited to the complexity of your input video, the service limits the average bitrate of the video
* part of this output to the value that you choose. That is, the total size of the video element is less than or
* equal to the value you set multiplied by the number of seconds of encoded output.
*
* @return Use this setting only when Rate control mode is QVBR and Quality tuning level is Multi-pass HQ. For Max
* average bitrate values suited to the complexity of your input video, the service limits the average
* bitrate of the video part of this output to the value that you choose. That is, the total size of the
* video element is less than or equal to the value you set multiplied by the number of seconds of encoded
* output.
*/
public Integer getMaxAverageBitrate() {
return this.maxAverageBitrate;
}
/**
* Use this setting only when Rate control mode is QVBR and Quality tuning level is Multi-pass HQ. For Max average
* bitrate values suited to the complexity of your input video, the service limits the average bitrate of the video
* part of this output to the value that you choose. That is, the total size of the video element is less than or
* equal to the value you set multiplied by the number of seconds of encoded output.
*
* @param maxAverageBitrate
* Use this setting only when Rate control mode is QVBR and Quality tuning level is Multi-pass HQ. For Max
* average bitrate values suited to the complexity of your input video, the service limits the average
* bitrate of the video part of this output to the value that you choose. That is, the total size of the
* video element is less than or equal to the value you set multiplied by the number of seconds of encoded
* output.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public H264QvbrSettings withMaxAverageBitrate(Integer maxAverageBitrate) {
setMaxAverageBitrate(maxAverageBitrate);
return this;
}
/**
* Use this setting only when you set Rate control mode to QVBR. Specify the target quality level for this output.
* MediaConvert determines the right number of bits to use for each part of the video to maintain the video quality
* that you specify. When you keep the default value, AUTO, MediaConvert picks a quality level for you, based on
* characteristics of your input video. If you prefer to specify a quality level, specify a number from 1 through 10.
* Use higher numbers for greater quality. Level 10 results in nearly lossless compression. The quality level for
* most broadcast-quality transcodes is between 6 and 9. Optionally, to specify a value between whole numbers, also
* provide a value for the setting qvbrQualityLevelFineTune. For example, if you want your QVBR quality level to be
* 7.33, set qvbrQualityLevel to 7 and set qvbrQualityLevelFineTune to .33.
*
* @param qvbrQualityLevel
* Use this setting only when you set Rate control mode to QVBR. Specify the target quality level for this
* output. MediaConvert determines the right number of bits to use for each part of the video to maintain the
* video quality that you specify. When you keep the default value, AUTO, MediaConvert picks a quality level
* for you, based on characteristics of your input video. If you prefer to specify a quality level, specify a
* number from 1 through 10. Use higher numbers for greater quality. Level 10 results in nearly lossless
* compression. The quality level for most broadcast-quality transcodes is between 6 and 9. Optionally, to
* specify a value between whole numbers, also provide a value for the setting qvbrQualityLevelFineTune. For
* example, if you want your QVBR quality level to be 7.33, set qvbrQualityLevel to 7 and set
* qvbrQualityLevelFineTune to .33.
*/
public void setQvbrQualityLevel(Integer qvbrQualityLevel) {
this.qvbrQualityLevel = qvbrQualityLevel;
}
/**
* Use this setting only when you set Rate control mode to QVBR. Specify the target quality level for this output.
* MediaConvert determines the right number of bits to use for each part of the video to maintain the video quality
* that you specify. When you keep the default value, AUTO, MediaConvert picks a quality level for you, based on
* characteristics of your input video. If you prefer to specify a quality level, specify a number from 1 through 10.
* Use higher numbers for greater quality. Level 10 results in nearly lossless compression. The quality level for
* most broadcast-quality transcodes is between 6 and 9. Optionally, to specify a value between whole numbers, also
* provide a value for the setting qvbrQualityLevelFineTune. For example, if you want your QVBR quality level to be
* 7.33, set qvbrQualityLevel to 7 and set qvbrQualityLevelFineTune to .33.
*
* @return Use this setting only when you set Rate control mode to QVBR. Specify the target quality level for this
* output. MediaConvert determines the right number of bits to use for each part of the video to maintain
* the video quality that you specify. When you keep the default value, AUTO, MediaConvert picks a quality
* level for you, based on characteristics of your input video. If you prefer to specify a quality level,
* specify a number from 1 through 10. Use higher numbers for greater quality. Level 10 results in nearly
* lossless compression. The quality level for most broadcast-quality transcodes is between 6 and 9.
* Optionally, to specify a value between whole numbers, also provide a value for the setting
* qvbrQualityLevelFineTune. For example, if you want your QVBR quality level to be 7.33, set
* qvbrQualityLevel to 7 and set qvbrQualityLevelFineTune to .33.
*/
public Integer getQvbrQualityLevel() {
return this.qvbrQualityLevel;
}
/**
* Use this setting only when you set Rate control mode to QVBR. Specify the target quality level for this output.
* MediaConvert determines the right number of bits to use for each part of the video to maintain the video quality
* that you specify. When you keep the default value, AUTO, MediaConvert picks a quality level for you, based on
* characteristics of your input video. If you prefer to specify a quality level, specify a number from 1 through 10.
* Use higher numbers for greater quality. Level 10 results in nearly lossless compression. The quality level for
* most broadcast-quality transcodes is between 6 and 9. Optionally, to specify a value between whole numbers, also
* provide a value for the setting qvbrQualityLevelFineTune. For example, if you want your QVBR quality level to be
* 7.33, set qvbrQualityLevel to 7 and set qvbrQualityLevelFineTune to .33.
*
* @param qvbrQualityLevel
* Use this setting only when you set Rate control mode to QVBR. Specify the target quality level for this
* output. MediaConvert determines the right number of bits to use for each part of the video to maintain the
* video quality that you specify. When you keep the default value, AUTO, MediaConvert picks a quality level
* for you, based on characteristics of your input video. If you prefer to specify a quality level, specify a
* number from 1 through 10. Use higher numbers for greater quality. Level 10 results in nearly lossless
* compression. The quality level for most broadcast-quality transcodes is between 6 and 9. Optionally, to
* specify a value between whole numbers, also provide a value for the setting qvbrQualityLevelFineTune. For
* example, if you want your QVBR quality level to be 7.33, set qvbrQualityLevel to 7 and set
* qvbrQualityLevelFineTune to .33.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public H264QvbrSettings withQvbrQualityLevel(Integer qvbrQualityLevel) {
setQvbrQualityLevel(qvbrQualityLevel);
return this;
}
/**
* Optional. Specify a value here to set the QVBR quality to a level that is between whole numbers. For example, if
* you want your QVBR quality level to be 7.33, set qvbrQualityLevel to 7 and set qvbrQualityLevelFineTune to .33.
* MediaConvert rounds your QVBR quality level to the nearest third of a whole number. For example, if you set
* qvbrQualityLevel to 7 and you set qvbrQualityLevelFineTune to .25, your actual QVBR quality level is 7.33.
*
* @param qvbrQualityLevelFineTune
* Optional. Specify a value here to set the QVBR quality to a level that is between whole numbers. For
* example, if you want your QVBR quality level to be 7.33, set qvbrQualityLevel to 7 and set
* qvbrQualityLevelFineTune to .33. MediaConvert rounds your QVBR quality level to the nearest third of a
* whole number. For example, if you set qvbrQualityLevel to 7 and you set qvbrQualityLevelFineTune to .25,
* your actual QVBR quality level is 7.33.
*/
public void setQvbrQualityLevelFineTune(Double qvbrQualityLevelFineTune) {
this.qvbrQualityLevelFineTune = qvbrQualityLevelFineTune;
}
/**
* Optional. Specify a value here to set the QVBR quality to a level that is between whole numbers. For example, if
* you want your QVBR quality level to be 7.33, set qvbrQualityLevel to 7 and set qvbrQualityLevelFineTune to .33.
* MediaConvert rounds your QVBR quality level to the nearest third of a whole number. For example, if you set
* qvbrQualityLevel to 7 and you set qvbrQualityLevelFineTune to .25, your actual QVBR quality level is 7.33.
*
* @return Optional. Specify a value here to set the QVBR quality to a level that is between whole numbers. For
* example, if you want your QVBR quality level to be 7.33, set qvbrQualityLevel to 7 and set
* qvbrQualityLevelFineTune to .33. MediaConvert rounds your QVBR quality level to the nearest third of a
* whole number. For example, if you set qvbrQualityLevel to 7 and you set qvbrQualityLevelFineTune to .25,
* your actual QVBR quality level is 7.33.
*/
public Double getQvbrQualityLevelFineTune() {
return this.qvbrQualityLevelFineTune;
}
/**
* Optional. Specify a value here to set the QVBR quality to a level that is between whole numbers. For example, if
* you want your QVBR quality level to be 7.33, set qvbrQualityLevel to 7 and set qvbrQualityLevelFineTune to .33.
* MediaConvert rounds your QVBR quality level to the nearest third of a whole number. For example, if you set
* qvbrQualityLevel to 7 and you set qvbrQualityLevelFineTune to .25, your actual QVBR quality level is 7.33.
*
* @param qvbrQualityLevelFineTune
* Optional. Specify a value here to set the QVBR quality to a level that is between whole numbers. For
* example, if you want your QVBR quality level to be 7.33, set qvbrQualityLevel to 7 and set
* qvbrQualityLevelFineTune to .33. MediaConvert rounds your QVBR quality level to the nearest third of a
* whole number. For example, if you set qvbrQualityLevel to 7 and you set qvbrQualityLevelFineTune to .25,
* your actual QVBR quality level is 7.33.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public H264QvbrSettings withQvbrQualityLevelFineTune(Double qvbrQualityLevelFineTune) {
setQvbrQualityLevelFineTune(qvbrQualityLevelFineTune);
return this;
}
/**
* Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
* redacted from this string using a placeholder value.
*
* @return A string representation of this object.
*
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (getMaxAverageBitrate() != null)
sb.append("MaxAverageBitrate: ").append(getMaxAverageBitrate()).append(",");
if (getQvbrQualityLevel() != null)
sb.append("QvbrQualityLevel: ").append(getQvbrQualityLevel()).append(",");
if (getQvbrQualityLevelFineTune() != null)
sb.append("QvbrQualityLevelFineTune: ").append(getQvbrQualityLevelFineTune());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof H264QvbrSettings == false)
return false;
H264QvbrSettings other = (H264QvbrSettings) obj;
if (other.getMaxAverageBitrate() == null ^ this.getMaxAverageBitrate() == null)
return false;
if (other.getMaxAverageBitrate() != null && other.getMaxAverageBitrate().equals(this.getMaxAverageBitrate()) == false)
return false;
if (other.getQvbrQualityLevel() == null ^ this.getQvbrQualityLevel() == null)
return false;
if (other.getQvbrQualityLevel() != null && other.getQvbrQualityLevel().equals(this.getQvbrQualityLevel()) == false)
return false;
if (other.getQvbrQualityLevelFineTune() == null ^ this.getQvbrQualityLevelFineTune() == null)
return false;
if (other.getQvbrQualityLevelFineTune() != null && other.getQvbrQualityLevelFineTune().equals(this.getQvbrQualityLevelFineTune()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getMaxAverageBitrate() == null) ? 0 : getMaxAverageBitrate().hashCode());
hashCode = prime * hashCode + ((getQvbrQualityLevel() == null) ? 0 : getQvbrQualityLevel().hashCode());
hashCode = prime * hashCode + ((getQvbrQualityLevelFineTune() == null) ? 0 : getQvbrQualityLevelFineTune().hashCode());
return hashCode;
}
@Override
public H264QvbrSettings clone() {
try {
return (H264QvbrSettings) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
@com.amazonaws.annotation.SdkInternalApi
@Override
public void marshall(ProtocolMarshaller protocolMarshaller) {
com.amazonaws.services.mediaconvert.model.transform.H264QvbrSettingsMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}