Interface Mp4Settings.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Mp4Settings.Builder,
,Mp4Settings> SdkBuilder<Mp4Settings.Builder,
,Mp4Settings> SdkPojo
- Enclosing class:
Mp4Settings
@Mutable
@NotThreadSafe
public static interface Mp4Settings.Builder
extends SdkPojo, CopyableBuilder<Mp4Settings.Builder,Mp4Settings>
-
Method Summary
Modifier and TypeMethodDescriptionaudioDuration
(String 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.audioDuration
(CmfcAudioDuration 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.c2paManifest
(String c2paManifest) When enabled, a C2PA compliant manifest will be generated, signed and embeded in the output.c2paManifest
(Mp4C2paManifest c2paManifest) When enabled, a C2PA compliant manifest will be generated, signed and embeded in the output.certificateSecret
(String certificateSecret) Specify the name or ARN of the AWS Secrets Manager secret that contains your C2PA public certificate chain in PEM format.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.cslgAtom
(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.cttsVersion
(Integer cttsVersion) Ignore this setting unless compliance to the CTTS box version specification matters in your workflow.freeSpaceBox
(String freeSpaceBox) Inserts a free-space box immediately after the moov box.freeSpaceBox
(Mp4FreeSpaceBox freeSpaceBox) Inserts a free-space box immediately after the moov box.moovPlacement
(String moovPlacement) To place the MOOV atom at the beginning of your output, which is useful for progressive downloading: Leave blank or choose Progressive download.moovPlacement
(Mp4MoovPlacement moovPlacement) To place the MOOV atom at the beginning of your output, which is useful for progressive downloading: Leave blank or choose Progressive download.mp4MajorBrand
(String mp4MajorBrand) Overrides the "Major Brand" field in the output file.signingKmsKey
(String signingKmsKey) Specify the ID or ARN of the AWS KMS key used to sign the C2PA manifest in your MP4 output.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
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.- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- 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.html- Parameters:
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.html- Returns:
- Returns a reference to this object so that method calls can be chained together.
- 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.html- Parameters:
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.html- Returns:
- Returns a reference to this object so that method calls can be chained together.
- 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- Parameters:
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:
- Returns a reference to this object so that method calls can be chained together.
-
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.- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- 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.- Parameters:
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:
- Returns a reference to this object so that method calls can be chained together.
-
freeSpaceBox
Inserts a free-space box immediately after the moov box.- Parameters:
freeSpaceBox
- Inserts a free-space box immediately after the moov box.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
freeSpaceBox
Inserts a free-space box immediately after the moov box.- Parameters:
freeSpaceBox
- Inserts a free-space box immediately after the moov box.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- 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.- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- 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.- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
mp4MajorBrand
Overrides the "Major Brand" field in the output file. Usually not necessary to specify.- Parameters:
mp4MajorBrand
- Overrides the "Major Brand" field in the output file. Usually not necessary to specify.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.- Parameters:
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:
- Returns a reference to this object so that method calls can be chained together.
-