libZSservicesZSamazonka-mediaconvertZSamazonka-mediaconvert
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.MediaConvert.Types.Mp4Settings

Description

 
Synopsis

Documentation

data Mp4Settings Source #

These settings relate to your MP4 output container. You can create audio only outputs with this container. For more information, see https://docs.aws.amazon.com/mediaconvert/latest/ug/supported-codecs-containers-audio-only.html#output-codecs-and-containers-supported-for-audio-only.

See: newMp4Settings smart constructor.

Constructors

Mp4Settings' 

Fields

  • moovPlacement :: Maybe Mp4MoovPlacement

    If set to PROGRESSIVE_DOWNLOAD, the MOOV atom is relocated to the beginning of the archive as required for progressive downloading. Otherwise it is placed normally at the end.

  • cttsVersion :: Maybe Natural

    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 (cslgAtom) 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 :: Maybe Mp4FreeSpaceBox

    Inserts a free-space box immediately after the moov box.

  • audioDuration :: Maybe 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. For this situation, choose Match video duration (MATCH_VIDEO_DURATION). In all other cases, keep the default value, Default codec duration (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.

  • mp4MajorBrand :: Maybe Text

    Overrides the "Major Brand" field in the output file. Usually not necessary to specify.

  • cslgAtom :: Maybe Mp4CslgAtom

    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.

Instances

Instances details
Eq Mp4Settings Source # 
Instance details

Defined in Amazonka.MediaConvert.Types.Mp4Settings

Read Mp4Settings Source # 
Instance details

Defined in Amazonka.MediaConvert.Types.Mp4Settings

Show Mp4Settings Source # 
Instance details

Defined in Amazonka.MediaConvert.Types.Mp4Settings

Generic Mp4Settings Source # 
Instance details

Defined in Amazonka.MediaConvert.Types.Mp4Settings

Associated Types

type Rep Mp4Settings :: Type -> Type #

NFData Mp4Settings Source # 
Instance details

Defined in Amazonka.MediaConvert.Types.Mp4Settings

Methods

rnf :: Mp4Settings -> () #

Hashable Mp4Settings Source # 
Instance details

Defined in Amazonka.MediaConvert.Types.Mp4Settings

ToJSON Mp4Settings Source # 
Instance details

Defined in Amazonka.MediaConvert.Types.Mp4Settings

FromJSON Mp4Settings Source # 
Instance details

Defined in Amazonka.MediaConvert.Types.Mp4Settings

type Rep Mp4Settings Source # 
Instance details

Defined in Amazonka.MediaConvert.Types.Mp4Settings

type Rep Mp4Settings = D1 ('MetaData "Mp4Settings" "Amazonka.MediaConvert.Types.Mp4Settings" "libZSservicesZSamazonka-mediaconvertZSamazonka-mediaconvert" 'False) (C1 ('MetaCons "Mp4Settings'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "moovPlacement") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Mp4MoovPlacement)) :*: (S1 ('MetaSel ('Just "cttsVersion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "freeSpaceBox") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Mp4FreeSpaceBox)))) :*: (S1 ('MetaSel ('Just "audioDuration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe CmfcAudioDuration)) :*: (S1 ('MetaSel ('Just "mp4MajorBrand") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "cslgAtom") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Mp4CslgAtom))))))

newMp4Settings :: Mp4Settings Source #

Create a value of Mp4Settings with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:moovPlacement:Mp4Settings', mp4Settings_moovPlacement - If set to PROGRESSIVE_DOWNLOAD, the MOOV atom is relocated to the beginning of the archive as required for progressive downloading. Otherwise it is placed normally at the end.

$sel:cttsVersion:Mp4Settings', mp4Settings_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 (cslgAtom) 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.

$sel:freeSpaceBox:Mp4Settings', mp4Settings_freeSpaceBox - Inserts a free-space box immediately after the moov box.

$sel:audioDuration:Mp4Settings', mp4Settings_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 (MATCH_VIDEO_DURATION). In all other cases, keep the default value, Default codec duration (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.

$sel:mp4MajorBrand:Mp4Settings', mp4Settings_mp4MajorBrand - Overrides the "Major Brand" field in the output file. Usually not necessary to specify.

$sel:cslgAtom:Mp4Settings', mp4Settings_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.

mp4Settings_moovPlacement :: Lens' Mp4Settings (Maybe Mp4MoovPlacement) Source #

If set to PROGRESSIVE_DOWNLOAD, the MOOV atom is relocated to the beginning of the archive as required for progressive downloading. Otherwise it is placed normally at the end.

mp4Settings_cttsVersion :: Lens' Mp4Settings (Maybe Natural) Source #

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 (cslgAtom) 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.

mp4Settings_freeSpaceBox :: Lens' Mp4Settings (Maybe Mp4FreeSpaceBox) Source #

Inserts a free-space box immediately after the moov box.

mp4Settings_audioDuration :: Lens' Mp4Settings (Maybe CmfcAudioDuration) Source #

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 (MATCH_VIDEO_DURATION). In all other cases, keep the default value, Default codec duration (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.

mp4Settings_mp4MajorBrand :: Lens' Mp4Settings (Maybe Text) Source #

Overrides the "Major Brand" field in the output file. Usually not necessary to specify.

mp4Settings_cslgAtom :: Lens' Mp4Settings (Maybe Mp4CslgAtom) Source #

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.