Class Mp4Settings
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<Mp4Settings.Builder,
Mp4Settings>
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal CmfcAudioDuration
Specify this setting only when your output will be consumed by a downstream repackaging workflow that is sensitive to very small duration differences between video and audio.final String
Specify this setting only when your output will be consumed by a downstream repackaging workflow that is sensitive to very small duration differences between video and audio.static Mp4Settings.Builder
builder()
final Mp4C2paManifest
When enabled, a C2PA compliant manifest will be generated, signed and embeded in the output.final String
When enabled, a C2PA compliant manifest will be generated, signed and embeded in the output.final String
Specify the name or ARN of the AWS Secrets Manager secret that contains your C2PA public certificate chain in PEM format.final Mp4CslgAtom
cslgAtom()
When enabled, file composition times will start at zero, composition times in the 'ctts' (composition time to sample) box for B-frames will be negative, and a 'cslg' (composition shift least greatest) box will be included per 14496-1 amendment 1.final String
When enabled, file composition times will start at zero, composition times in the 'ctts' (composition time to sample) box for B-frames will be negative, and a 'cslg' (composition shift least greatest) box will be included per 14496-1 amendment 1.final Integer
Ignore this setting unless compliance to the CTTS box version specification matters in your workflow.final boolean
final boolean
equalsBySdkFields
(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final Mp4FreeSpaceBox
Inserts a free-space box immediately after the moov box.final String
Inserts a free-space box immediately after the moov box.final <T> Optional
<T> getValueForField
(String fieldName, Class<T> clazz) final int
hashCode()
final Mp4MoovPlacement
To place the MOOV atom at the beginning of your output, which is useful for progressive downloading: Leave blank or choose Progressive download.final String
To place the MOOV atom at the beginning of your output, which is useful for progressive downloading: Leave blank or choose Progressive download.final String
Overrides the "Major Brand" field in the output file.static Class
<? extends Mp4Settings.Builder> final String
Specify the ID or ARN of the AWS KMS key used to sign the C2PA manifest in your MP4 output.Take this object and create a builder that contains all of the current property values of this object.final String
toString()
Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
audioDuration
Specify this setting only when your output will be consumed by a downstream repackaging workflow that is sensitive to very small duration differences between video and audio. For this situation, choose Match video duration. In all other cases, keep the default value, Default codec duration. When you choose Match video duration, MediaConvert pads the output audio streams with silence or trims them to ensure that the total duration of each audio stream is at least as long as the total duration of the video stream. After padding or trimming, the audio stream duration is no more than one frame longer than the video stream. MediaConvert applies audio padding or trimming only to the end of the last segment of the output. For unsegmented outputs, MediaConvert adds padding only to the end of the file. When you keep the default value, any minor discrepancies between audio and video duration will depend on your output audio codec.If the service returns an enum value that is not available in the current SDK version,
audioDuration
will returnCmfcAudioDuration.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromaudioDurationAsString()
.- Returns:
- Specify this setting only when your output will be consumed by a downstream repackaging workflow that is sensitive to very small duration differences between video and audio. For this situation, choose Match video duration. In all other cases, keep the default value, Default codec duration. When you choose Match video duration, MediaConvert pads the output audio streams with silence or trims them to ensure that the total duration of each audio stream is at least as long as the total duration of the video stream. After padding or trimming, the audio stream duration is no more than one frame longer than the video stream. MediaConvert applies audio padding or trimming only to the end of the last segment of the output. For unsegmented outputs, MediaConvert adds padding only to the end of the file. When you keep the default value, any minor discrepancies between audio and video duration will depend on your output audio codec.
- See Also:
-
audioDurationAsString
Specify this setting only when your output will be consumed by a downstream repackaging workflow that is sensitive to very small duration differences between video and audio. For this situation, choose Match video duration. In all other cases, keep the default value, Default codec duration. When you choose Match video duration, MediaConvert pads the output audio streams with silence or trims them to ensure that the total duration of each audio stream is at least as long as the total duration of the video stream. After padding or trimming, the audio stream duration is no more than one frame longer than the video stream. MediaConvert applies audio padding or trimming only to the end of the last segment of the output. For unsegmented outputs, MediaConvert adds padding only to the end of the file. When you keep the default value, any minor discrepancies between audio and video duration will depend on your output audio codec.If the service returns an enum value that is not available in the current SDK version,
audioDuration
will returnCmfcAudioDuration.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromaudioDurationAsString()
.- Returns:
- Specify this setting only when your output will be consumed by a downstream repackaging workflow that is sensitive to very small duration differences between video and audio. For this situation, choose Match video duration. In all other cases, keep the default value, Default codec duration. When you choose Match video duration, MediaConvert pads the output audio streams with silence or trims them to ensure that the total duration of each audio stream is at least as long as the total duration of the video stream. After padding or trimming, the audio stream duration is no more than one frame longer than the video stream. MediaConvert applies audio padding or trimming only to the end of the last segment of the output. For unsegmented outputs, MediaConvert adds padding only to the end of the file. When you keep the default value, any minor discrepancies between audio and video duration will depend on your output audio codec.
- See Also:
-
c2paManifest
When enabled, a C2PA compliant manifest will be generated, signed and embeded in the output. For more information on C2PA, see https://c2pa.org/specifications/specifications/2.1/index.htmlIf the service returns an enum value that is not available in the current SDK version,
c2paManifest
will returnMp4C2paManifest.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromc2paManifestAsString()
.- Returns:
- When enabled, a C2PA compliant manifest will be generated, signed and embeded in the output. For more information on C2PA, see https://c2pa.org/specifications/specifications/2.1/index.html
- See Also:
-
c2paManifestAsString
When enabled, a C2PA compliant manifest will be generated, signed and embeded in the output. For more information on C2PA, see https://c2pa.org/specifications/specifications/2.1/index.htmlIf the service returns an enum value that is not available in the current SDK version,
c2paManifest
will returnMp4C2paManifest.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromc2paManifestAsString()
.- Returns:
- When enabled, a C2PA compliant manifest will be generated, signed and embeded in the output. For more information on C2PA, see https://c2pa.org/specifications/specifications/2.1/index.html
- See Also:
-
certificateSecret
Specify the name or ARN of the AWS Secrets Manager secret that contains your C2PA public certificate chain in PEM format. Provide a valid secret name or ARN. Note that your MediaConvert service role must allow access to this secret. The public certificate chain is added to the COSE header (x5chain) for signature validation. Include the signer's certificate and all intermediate certificates. Do not include the root certificate. For details on COSE, see: https://opensource.contentauthenticity.org/docs/manifest/signing-manifests- Returns:
- Specify the name or ARN of the AWS Secrets Manager secret that contains your C2PA public certificate chain in PEM format. Provide a valid secret name or ARN. Note that your MediaConvert service role must allow access to this secret. The public certificate chain is added to the COSE header (x5chain) for signature validation. Include the signer's certificate and all intermediate certificates. Do not include the root certificate. For details on COSE, see: https://opensource.contentauthenticity.org/docs/manifest/signing-manifests
-
cslgAtom
When enabled, file composition times will start at zero, composition times in the 'ctts' (composition time to sample) box for B-frames will be negative, and a 'cslg' (composition shift least greatest) box will be included per 14496-1 amendment 1. This improves compatibility with Apple players and tools.If the service returns an enum value that is not available in the current SDK version,
cslgAtom
will returnMp4CslgAtom.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromcslgAtomAsString()
.- Returns:
- When enabled, file composition times will start at zero, composition times in the 'ctts' (composition time to sample) box for B-frames will be negative, and a 'cslg' (composition shift least greatest) box will be included per 14496-1 amendment 1. This improves compatibility with Apple players and tools.
- See Also:
-
cslgAtomAsString
When enabled, file composition times will start at zero, composition times in the 'ctts' (composition time to sample) box for B-frames will be negative, and a 'cslg' (composition shift least greatest) box will be included per 14496-1 amendment 1. This improves compatibility with Apple players and tools.If the service returns an enum value that is not available in the current SDK version,
cslgAtom
will returnMp4CslgAtom.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromcslgAtomAsString()
.- Returns:
- When enabled, file composition times will start at zero, composition times in the 'ctts' (composition time to sample) box for B-frames will be negative, and a 'cslg' (composition shift least greatest) box will be included per 14496-1 amendment 1. This improves compatibility with Apple players and tools.
- See Also:
-
cttsVersion
Ignore this setting unless compliance to the CTTS box version specification matters in your workflow. Specify a value of 1 to set your CTTS box version to 1 and make your output compliant with the specification. When you specify a value of 1, you must also set CSLG atom to the value INCLUDE. Keep the default value 0 to set your CTTS box version to 0. This can provide backward compatibility for some players and packagers.- Returns:
- Ignore this setting unless compliance to the CTTS box version specification matters in your workflow. Specify a value of 1 to set your CTTS box version to 1 and make your output compliant with the specification. When you specify a value of 1, you must also set CSLG atom to the value INCLUDE. Keep the default value 0 to set your CTTS box version to 0. This can provide backward compatibility for some players and packagers.
-
freeSpaceBox
Inserts a free-space box immediately after the moov box.If the service returns an enum value that is not available in the current SDK version,
freeSpaceBox
will returnMp4FreeSpaceBox.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromfreeSpaceBoxAsString()
.- Returns:
- Inserts a free-space box immediately after the moov box.
- See Also:
-
freeSpaceBoxAsString
Inserts a free-space box immediately after the moov box.If the service returns an enum value that is not available in the current SDK version,
freeSpaceBox
will returnMp4FreeSpaceBox.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromfreeSpaceBoxAsString()
.- Returns:
- Inserts a free-space box immediately after the moov box.
- See Also:
-
moovPlacement
To place the MOOV atom at the beginning of your output, which is useful for progressive downloading: Leave blank or choose Progressive download. To place the MOOV at the end of your output: Choose Normal.If the service returns an enum value that is not available in the current SDK version,
moovPlacement
will returnMp4MoovPlacement.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available frommoovPlacementAsString()
.- Returns:
- To place the MOOV atom at the beginning of your output, which is useful for progressive downloading: Leave blank or choose Progressive download. To place the MOOV at the end of your output: Choose Normal.
- See Also:
-
moovPlacementAsString
To place the MOOV atom at the beginning of your output, which is useful for progressive downloading: Leave blank or choose Progressive download. To place the MOOV at the end of your output: Choose Normal.If the service returns an enum value that is not available in the current SDK version,
moovPlacement
will returnMp4MoovPlacement.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available frommoovPlacementAsString()
.- Returns:
- To place the MOOV atom at the beginning of your output, which is useful for progressive downloading: Leave blank or choose Progressive download. To place the MOOV at the end of your output: Choose Normal.
- See Also:
-
mp4MajorBrand
Overrides the "Major Brand" field in the output file. Usually not necessary to specify.- Returns:
- Overrides the "Major Brand" field in the output file. Usually not necessary to specify.
-
signingKmsKey
Specify the ID or ARN of the AWS KMS key used to sign the C2PA manifest in your MP4 output. Provide a valid KMS key ARN. Note that your MediaConvert service role must allow access to this key.- Returns:
- Specify the ID or ARN of the AWS KMS key used to sign the C2PA manifest in your MP4 output. Provide a valid KMS key ARN. Note that your MediaConvert service role must allow access to this key.
-
toBuilder
Description copied from interface:ToCopyableBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToCopyableBuilder<Mp4Settings.Builder,
Mp4Settings> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojo
Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojo
class, and is generated based on a service model.If an
SdkPojo
class does not have any inherited fields,equalsBySdkFields
andequals
are essentially the same.- Specified by:
equalsBySdkFields
in interfaceSdkPojo
- Parameters:
obj
- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToField
in interfaceSdkPojo
- Returns:
- The mapping between the field name and its corresponding field.
-