{-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE DuplicateRecordFields #-} {-# LANGUAGE NamedFieldPuns #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE StrictData #-} {-# LANGUAGE NoImplicitPrelude #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} {-# OPTIONS_GHC -fno-warn-unused-matches #-} -- Derived from AWS service descriptions, licensed under Apache 2.0. -- | -- Module : Amazonka.MediaConvert.Types.InputTemplate -- Copyright : (c) 2013-2023 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay -- Stability : auto-generated -- Portability : non-portable (GHC extensions) module Amazonka.MediaConvert.Types.InputTemplate where import qualified Amazonka.Core as Core import qualified Amazonka.Core.Lens.Internal as Lens import qualified Amazonka.Data as Data import Amazonka.MediaConvert.Types.AudioSelector import Amazonka.MediaConvert.Types.AudioSelectorGroup import Amazonka.MediaConvert.Types.CaptionSelector import Amazonka.MediaConvert.Types.ImageInserter import Amazonka.MediaConvert.Types.InputClipping import Amazonka.MediaConvert.Types.InputDeblockFilter import Amazonka.MediaConvert.Types.InputDenoiseFilter import Amazonka.MediaConvert.Types.InputFilterEnable import Amazonka.MediaConvert.Types.InputPsiControl import Amazonka.MediaConvert.Types.InputScanType import Amazonka.MediaConvert.Types.InputTimecodeSource import Amazonka.MediaConvert.Types.Rectangle import Amazonka.MediaConvert.Types.VideoSelector import qualified Amazonka.Prelude as Prelude -- | Specified video input in a template. -- -- /See:/ 'newInputTemplate' smart constructor. data InputTemplate = InputTemplate' { -- | Use audio selector groups to combine multiple sidecar audio inputs so -- that you can assign them to a single output audio tab -- (AudioDescription). Note that, if you\'re working with embedded audio, -- it\'s simpler to assign multiple input tracks into a single audio -- selector rather than use an audio selector group. audioSelectorGroups :: Prelude.Maybe (Prelude.HashMap Prelude.Text AudioSelectorGroup), -- | Use Audio selectors (AudioSelectors) to specify a track or set of tracks -- from the input that you will use in your outputs. You can use multiple -- Audio selectors per input. audioSelectors :: Prelude.Maybe (Prelude.HashMap Prelude.Text AudioSelector), -- | Use captions selectors to specify the captions data from your input that -- you use in your outputs. You can use up to 20 captions selectors per -- input. captionSelectors :: Prelude.Maybe (Prelude.HashMap Prelude.Text CaptionSelector), -- | Use Cropping selection (crop) to specify the video area that the service -- will include in the output video frame. If you specify a value here, it -- will override any value that you specify in the output setting Cropping -- selection (crop). crop :: Prelude.Maybe Rectangle, -- | Enable Deblock (InputDeblockFilter) to produce smoother motion in the -- output. Default is disabled. Only manually controllable for MPEG2 and -- uncompressed video inputs. deblockFilter :: Prelude.Maybe InputDeblockFilter, -- | Enable Denoise (InputDenoiseFilter) to filter noise from the input. -- Default is disabled. Only applicable to MPEG2, H.264, H.265, and -- uncompressed video inputs. denoiseFilter :: Prelude.Maybe InputDenoiseFilter, -- | Use this setting only when your video source has Dolby Vision studio -- mastering metadata that is carried in a separate XML file. Specify the -- Amazon S3 location for the metadata XML file. MediaConvert uses this -- file to provide global and frame-level metadata for Dolby Vision -- preprocessing. When you specify a file here and your input also has -- interleaved global and frame level metadata, MediaConvert ignores the -- interleaved metadata and uses only the the metadata from this external -- XML file. Note that your IAM service role must grant MediaConvert read -- permissions to this file. For more information, see -- https:\/\/docs.aws.amazon.com\/mediaconvert\/latest\/ug\/iam-role.html. dolbyVisionMetadataXml :: Prelude.Maybe Prelude.Text, -- | Specify how the transcoding service applies the denoise and deblock -- filters. You must also enable the filters separately, with Denoise -- (InputDenoiseFilter) and Deblock (InputDeblockFilter). * Auto - The -- transcoding service determines whether to apply filtering, depending on -- input type and quality. * Disable - The input is not filtered. This is -- true even if you use the API to enable them in (InputDeblockFilter) and -- (InputDeblockFilter). * Force - The input is filtered regardless of -- input type. filterEnable :: Prelude.Maybe InputFilterEnable, -- | Use Filter strength (FilterStrength) to adjust the magnitude the input -- filter settings (Deblock and Denoise). The range is -5 to 5. Default is -- 0. filterStrength :: Prelude.Maybe Prelude.Int, -- | Enable the image inserter feature to include a graphic overlay on your -- video. Enable or disable this feature for each input individually. This -- setting is disabled by default. imageInserter :: Prelude.Maybe ImageInserter, -- | (InputClippings) contains sets of start and end times that together -- specify a portion of the input to be used in the outputs. If you provide -- only a start time, the clip will be the entire input from that point to -- the end. If you provide only an end time, it will be the entire input up -- to that point. When you specify more than one input clip, the -- transcoding service creates the job outputs by stringing the clips -- together in the order you specify them. inputClippings :: Prelude.Maybe [InputClipping], -- | When you have a progressive segmented frame (PsF) input, use this -- setting to flag the input as PsF. MediaConvert doesn\'t automatically -- detect PsF. Therefore, flagging your input as PsF results in better -- preservation of video quality when you do deinterlacing and frame rate -- conversion. If you don\'t specify, the default value is Auto (AUTO). -- Auto is the correct setting for all inputs that are not PsF. Don\'t set -- this value to PsF when your input is interlaced. Doing so creates -- horizontal interlacing artifacts. inputScanType :: Prelude.Maybe InputScanType, -- | Use Selection placement (position) to define the video area in your -- output frame. The area outside of the rectangle that you specify here is -- black. If you specify a value here, it will override any value that you -- specify in the output setting Selection placement (position). If you -- specify a value here, this will override any AFD values in your input, -- even if you set Respond to AFD (RespondToAfd) to Respond (RESPOND). If -- you specify a value here, this will ignore anything that you specify for -- the setting Scaling Behavior (scalingBehavior). position :: Prelude.Maybe Rectangle, -- | Use Program (programNumber) to select a specific program from within a -- multi-program transport stream. Note that Quad 4K is not currently -- supported. Default is the first program within the transport stream. If -- the program you specify doesn\'t exist, the transcoding service will use -- this default. programNumber :: Prelude.Maybe Prelude.Natural, -- | Set PSI control (InputPsiControl) for transport stream inputs to specify -- which data the demux process to scans. * Ignore PSI - Scan all PIDs for -- audio and video. * Use PSI - Scan only PSI data. psiControl :: Prelude.Maybe InputPsiControl, -- | Use this Timecode source setting, located under the input settings -- (InputTimecodeSource), to specify how the service counts input video -- frames. This input frame count affects only the behavior of features -- that apply to a single input at a time, such as input clipping and -- synchronizing some captions formats. Choose Embedded (EMBEDDED) to use -- the timecodes in your input video. Choose Start at zero (ZEROBASED) to -- start the first frame at zero. Choose Specified start (SPECIFIEDSTART) -- to start the first frame at the timecode that you specify in the setting -- Start timecode (timecodeStart). If you don\'t specify a value for -- Timecode source, the service will use Embedded by default. For more -- information about timecodes, see -- https:\/\/docs.aws.amazon.com\/console\/mediaconvert\/timecode. timecodeSource :: Prelude.Maybe InputTimecodeSource, -- | Specify the timecode that you want the service to use for this input\'s -- initial frame. To use this setting, you must set the Timecode source -- setting, located under the input settings (InputTimecodeSource), to -- Specified start (SPECIFIEDSTART). For more information about timecodes, -- see https:\/\/docs.aws.amazon.com\/console\/mediaconvert\/timecode. timecodeStart :: Prelude.Maybe Prelude.Text, -- | Input video selectors contain the video settings for the input. Each of -- your inputs can have up to one video selector. videoSelector :: Prelude.Maybe VideoSelector } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'InputTemplate' with all optional fields omitted. -- -- Use or to modify other optional fields. -- -- The following record fields are available, with the corresponding lenses provided -- for backwards compatibility: -- -- 'audioSelectorGroups', 'inputTemplate_audioSelectorGroups' - Use audio selector groups to combine multiple sidecar audio inputs so -- that you can assign them to a single output audio tab -- (AudioDescription). Note that, if you\'re working with embedded audio, -- it\'s simpler to assign multiple input tracks into a single audio -- selector rather than use an audio selector group. -- -- 'audioSelectors', 'inputTemplate_audioSelectors' - Use Audio selectors (AudioSelectors) to specify a track or set of tracks -- from the input that you will use in your outputs. You can use multiple -- Audio selectors per input. -- -- 'captionSelectors', 'inputTemplate_captionSelectors' - Use captions selectors to specify the captions data from your input that -- you use in your outputs. You can use up to 20 captions selectors per -- input. -- -- 'crop', 'inputTemplate_crop' - Use Cropping selection (crop) to specify the video area that the service -- will include in the output video frame. If you specify a value here, it -- will override any value that you specify in the output setting Cropping -- selection (crop). -- -- 'deblockFilter', 'inputTemplate_deblockFilter' - Enable Deblock (InputDeblockFilter) to produce smoother motion in the -- output. Default is disabled. Only manually controllable for MPEG2 and -- uncompressed video inputs. -- -- 'denoiseFilter', 'inputTemplate_denoiseFilter' - Enable Denoise (InputDenoiseFilter) to filter noise from the input. -- Default is disabled. Only applicable to MPEG2, H.264, H.265, and -- uncompressed video inputs. -- -- 'dolbyVisionMetadataXml', 'inputTemplate_dolbyVisionMetadataXml' - Use this setting only when your video source has Dolby Vision studio -- mastering metadata that is carried in a separate XML file. Specify the -- Amazon S3 location for the metadata XML file. MediaConvert uses this -- file to provide global and frame-level metadata for Dolby Vision -- preprocessing. When you specify a file here and your input also has -- interleaved global and frame level metadata, MediaConvert ignores the -- interleaved metadata and uses only the the metadata from this external -- XML file. Note that your IAM service role must grant MediaConvert read -- permissions to this file. For more information, see -- https:\/\/docs.aws.amazon.com\/mediaconvert\/latest\/ug\/iam-role.html. -- -- 'filterEnable', 'inputTemplate_filterEnable' - Specify how the transcoding service applies the denoise and deblock -- filters. You must also enable the filters separately, with Denoise -- (InputDenoiseFilter) and Deblock (InputDeblockFilter). * Auto - The -- transcoding service determines whether to apply filtering, depending on -- input type and quality. * Disable - The input is not filtered. This is -- true even if you use the API to enable them in (InputDeblockFilter) and -- (InputDeblockFilter). * Force - The input is filtered regardless of -- input type. -- -- 'filterStrength', 'inputTemplate_filterStrength' - Use Filter strength (FilterStrength) to adjust the magnitude the input -- filter settings (Deblock and Denoise). The range is -5 to 5. Default is -- 0. -- -- 'imageInserter', 'inputTemplate_imageInserter' - Enable the image inserter feature to include a graphic overlay on your -- video. Enable or disable this feature for each input individually. This -- setting is disabled by default. -- -- 'inputClippings', 'inputTemplate_inputClippings' - (InputClippings) contains sets of start and end times that together -- specify a portion of the input to be used in the outputs. If you provide -- only a start time, the clip will be the entire input from that point to -- the end. If you provide only an end time, it will be the entire input up -- to that point. When you specify more than one input clip, the -- transcoding service creates the job outputs by stringing the clips -- together in the order you specify them. -- -- 'inputScanType', 'inputTemplate_inputScanType' - When you have a progressive segmented frame (PsF) input, use this -- setting to flag the input as PsF. MediaConvert doesn\'t automatically -- detect PsF. Therefore, flagging your input as PsF results in better -- preservation of video quality when you do deinterlacing and frame rate -- conversion. If you don\'t specify, the default value is Auto (AUTO). -- Auto is the correct setting for all inputs that are not PsF. Don\'t set -- this value to PsF when your input is interlaced. Doing so creates -- horizontal interlacing artifacts. -- -- 'position', 'inputTemplate_position' - Use Selection placement (position) to define the video area in your -- output frame. The area outside of the rectangle that you specify here is -- black. If you specify a value here, it will override any value that you -- specify in the output setting Selection placement (position). If you -- specify a value here, this will override any AFD values in your input, -- even if you set Respond to AFD (RespondToAfd) to Respond (RESPOND). If -- you specify a value here, this will ignore anything that you specify for -- the setting Scaling Behavior (scalingBehavior). -- -- 'programNumber', 'inputTemplate_programNumber' - Use Program (programNumber) to select a specific program from within a -- multi-program transport stream. Note that Quad 4K is not currently -- supported. Default is the first program within the transport stream. If -- the program you specify doesn\'t exist, the transcoding service will use -- this default. -- -- 'psiControl', 'inputTemplate_psiControl' - Set PSI control (InputPsiControl) for transport stream inputs to specify -- which data the demux process to scans. * Ignore PSI - Scan all PIDs for -- audio and video. * Use PSI - Scan only PSI data. -- -- 'timecodeSource', 'inputTemplate_timecodeSource' - Use this Timecode source setting, located under the input settings -- (InputTimecodeSource), to specify how the service counts input video -- frames. This input frame count affects only the behavior of features -- that apply to a single input at a time, such as input clipping and -- synchronizing some captions formats. Choose Embedded (EMBEDDED) to use -- the timecodes in your input video. Choose Start at zero (ZEROBASED) to -- start the first frame at zero. Choose Specified start (SPECIFIEDSTART) -- to start the first frame at the timecode that you specify in the setting -- Start timecode (timecodeStart). If you don\'t specify a value for -- Timecode source, the service will use Embedded by default. For more -- information about timecodes, see -- https:\/\/docs.aws.amazon.com\/console\/mediaconvert\/timecode. -- -- 'timecodeStart', 'inputTemplate_timecodeStart' - Specify the timecode that you want the service to use for this input\'s -- initial frame. To use this setting, you must set the Timecode source -- setting, located under the input settings (InputTimecodeSource), to -- Specified start (SPECIFIEDSTART). For more information about timecodes, -- see https:\/\/docs.aws.amazon.com\/console\/mediaconvert\/timecode. -- -- 'videoSelector', 'inputTemplate_videoSelector' - Input video selectors contain the video settings for the input. Each of -- your inputs can have up to one video selector. newInputTemplate :: InputTemplate newInputTemplate = InputTemplate' { audioSelectorGroups = Prelude.Nothing, audioSelectors = Prelude.Nothing, captionSelectors = Prelude.Nothing, crop = Prelude.Nothing, deblockFilter = Prelude.Nothing, denoiseFilter = Prelude.Nothing, dolbyVisionMetadataXml = Prelude.Nothing, filterEnable = Prelude.Nothing, filterStrength = Prelude.Nothing, imageInserter = Prelude.Nothing, inputClippings = Prelude.Nothing, inputScanType = Prelude.Nothing, position = Prelude.Nothing, programNumber = Prelude.Nothing, psiControl = Prelude.Nothing, timecodeSource = Prelude.Nothing, timecodeStart = Prelude.Nothing, videoSelector = Prelude.Nothing } -- | Use audio selector groups to combine multiple sidecar audio inputs so -- that you can assign them to a single output audio tab -- (AudioDescription). Note that, if you\'re working with embedded audio, -- it\'s simpler to assign multiple input tracks into a single audio -- selector rather than use an audio selector group. inputTemplate_audioSelectorGroups :: Lens.Lens' InputTemplate (Prelude.Maybe (Prelude.HashMap Prelude.Text AudioSelectorGroup)) inputTemplate_audioSelectorGroups = Lens.lens (\InputTemplate' {audioSelectorGroups} -> audioSelectorGroups) (\s@InputTemplate' {} a -> s {audioSelectorGroups = a} :: InputTemplate) Prelude.. Lens.mapping Lens.coerced -- | Use Audio selectors (AudioSelectors) to specify a track or set of tracks -- from the input that you will use in your outputs. You can use multiple -- Audio selectors per input. inputTemplate_audioSelectors :: Lens.Lens' InputTemplate (Prelude.Maybe (Prelude.HashMap Prelude.Text AudioSelector)) inputTemplate_audioSelectors = Lens.lens (\InputTemplate' {audioSelectors} -> audioSelectors) (\s@InputTemplate' {} a -> s {audioSelectors = a} :: InputTemplate) Prelude.. Lens.mapping Lens.coerced -- | Use captions selectors to specify the captions data from your input that -- you use in your outputs. You can use up to 20 captions selectors per -- input. inputTemplate_captionSelectors :: Lens.Lens' InputTemplate (Prelude.Maybe (Prelude.HashMap Prelude.Text CaptionSelector)) inputTemplate_captionSelectors = Lens.lens (\InputTemplate' {captionSelectors} -> captionSelectors) (\s@InputTemplate' {} a -> s {captionSelectors = a} :: InputTemplate) Prelude.. Lens.mapping Lens.coerced -- | Use Cropping selection (crop) to specify the video area that the service -- will include in the output video frame. If you specify a value here, it -- will override any value that you specify in the output setting Cropping -- selection (crop). inputTemplate_crop :: Lens.Lens' InputTemplate (Prelude.Maybe Rectangle) inputTemplate_crop = Lens.lens (\InputTemplate' {crop} -> crop) (\s@InputTemplate' {} a -> s {crop = a} :: InputTemplate) -- | Enable Deblock (InputDeblockFilter) to produce smoother motion in the -- output. Default is disabled. Only manually controllable for MPEG2 and -- uncompressed video inputs. inputTemplate_deblockFilter :: Lens.Lens' InputTemplate (Prelude.Maybe InputDeblockFilter) inputTemplate_deblockFilter = Lens.lens (\InputTemplate' {deblockFilter} -> deblockFilter) (\s@InputTemplate' {} a -> s {deblockFilter = a} :: InputTemplate) -- | Enable Denoise (InputDenoiseFilter) to filter noise from the input. -- Default is disabled. Only applicable to MPEG2, H.264, H.265, and -- uncompressed video inputs. inputTemplate_denoiseFilter :: Lens.Lens' InputTemplate (Prelude.Maybe InputDenoiseFilter) inputTemplate_denoiseFilter = Lens.lens (\InputTemplate' {denoiseFilter} -> denoiseFilter) (\s@InputTemplate' {} a -> s {denoiseFilter = a} :: InputTemplate) -- | Use this setting only when your video source has Dolby Vision studio -- mastering metadata that is carried in a separate XML file. Specify the -- Amazon S3 location for the metadata XML file. MediaConvert uses this -- file to provide global and frame-level metadata for Dolby Vision -- preprocessing. When you specify a file here and your input also has -- interleaved global and frame level metadata, MediaConvert ignores the -- interleaved metadata and uses only the the metadata from this external -- XML file. Note that your IAM service role must grant MediaConvert read -- permissions to this file. For more information, see -- https:\/\/docs.aws.amazon.com\/mediaconvert\/latest\/ug\/iam-role.html. inputTemplate_dolbyVisionMetadataXml :: Lens.Lens' InputTemplate (Prelude.Maybe Prelude.Text) inputTemplate_dolbyVisionMetadataXml = Lens.lens (\InputTemplate' {dolbyVisionMetadataXml} -> dolbyVisionMetadataXml) (\s@InputTemplate' {} a -> s {dolbyVisionMetadataXml = a} :: InputTemplate) -- | Specify how the transcoding service applies the denoise and deblock -- filters. You must also enable the filters separately, with Denoise -- (InputDenoiseFilter) and Deblock (InputDeblockFilter). * Auto - The -- transcoding service determines whether to apply filtering, depending on -- input type and quality. * Disable - The input is not filtered. This is -- true even if you use the API to enable them in (InputDeblockFilter) and -- (InputDeblockFilter). * Force - The input is filtered regardless of -- input type. inputTemplate_filterEnable :: Lens.Lens' InputTemplate (Prelude.Maybe InputFilterEnable) inputTemplate_filterEnable = Lens.lens (\InputTemplate' {filterEnable} -> filterEnable) (\s@InputTemplate' {} a -> s {filterEnable = a} :: InputTemplate) -- | Use Filter strength (FilterStrength) to adjust the magnitude the input -- filter settings (Deblock and Denoise). The range is -5 to 5. Default is -- 0. inputTemplate_filterStrength :: Lens.Lens' InputTemplate (Prelude.Maybe Prelude.Int) inputTemplate_filterStrength = Lens.lens (\InputTemplate' {filterStrength} -> filterStrength) (\s@InputTemplate' {} a -> s {filterStrength = a} :: InputTemplate) -- | Enable the image inserter feature to include a graphic overlay on your -- video. Enable or disable this feature for each input individually. This -- setting is disabled by default. inputTemplate_imageInserter :: Lens.Lens' InputTemplate (Prelude.Maybe ImageInserter) inputTemplate_imageInserter = Lens.lens (\InputTemplate' {imageInserter} -> imageInserter) (\s@InputTemplate' {} a -> s {imageInserter = a} :: InputTemplate) -- | (InputClippings) contains sets of start and end times that together -- specify a portion of the input to be used in the outputs. If you provide -- only a start time, the clip will be the entire input from that point to -- the end. If you provide only an end time, it will be the entire input up -- to that point. When you specify more than one input clip, the -- transcoding service creates the job outputs by stringing the clips -- together in the order you specify them. inputTemplate_inputClippings :: Lens.Lens' InputTemplate (Prelude.Maybe [InputClipping]) inputTemplate_inputClippings = Lens.lens (\InputTemplate' {inputClippings} -> inputClippings) (\s@InputTemplate' {} a -> s {inputClippings = a} :: InputTemplate) Prelude.. Lens.mapping Lens.coerced -- | When you have a progressive segmented frame (PsF) input, use this -- setting to flag the input as PsF. MediaConvert doesn\'t automatically -- detect PsF. Therefore, flagging your input as PsF results in better -- preservation of video quality when you do deinterlacing and frame rate -- conversion. If you don\'t specify, the default value is Auto (AUTO). -- Auto is the correct setting for all inputs that are not PsF. Don\'t set -- this value to PsF when your input is interlaced. Doing so creates -- horizontal interlacing artifacts. inputTemplate_inputScanType :: Lens.Lens' InputTemplate (Prelude.Maybe InputScanType) inputTemplate_inputScanType = Lens.lens (\InputTemplate' {inputScanType} -> inputScanType) (\s@InputTemplate' {} a -> s {inputScanType = a} :: InputTemplate) -- | Use Selection placement (position) to define the video area in your -- output frame. The area outside of the rectangle that you specify here is -- black. If you specify a value here, it will override any value that you -- specify in the output setting Selection placement (position). If you -- specify a value here, this will override any AFD values in your input, -- even if you set Respond to AFD (RespondToAfd) to Respond (RESPOND). If -- you specify a value here, this will ignore anything that you specify for -- the setting Scaling Behavior (scalingBehavior). inputTemplate_position :: Lens.Lens' InputTemplate (Prelude.Maybe Rectangle) inputTemplate_position = Lens.lens (\InputTemplate' {position} -> position) (\s@InputTemplate' {} a -> s {position = a} :: InputTemplate) -- | Use Program (programNumber) to select a specific program from within a -- multi-program transport stream. Note that Quad 4K is not currently -- supported. Default is the first program within the transport stream. If -- the program you specify doesn\'t exist, the transcoding service will use -- this default. inputTemplate_programNumber :: Lens.Lens' InputTemplate (Prelude.Maybe Prelude.Natural) inputTemplate_programNumber = Lens.lens (\InputTemplate' {programNumber} -> programNumber) (\s@InputTemplate' {} a -> s {programNumber = a} :: InputTemplate) -- | Set PSI control (InputPsiControl) for transport stream inputs to specify -- which data the demux process to scans. * Ignore PSI - Scan all PIDs for -- audio and video. * Use PSI - Scan only PSI data. inputTemplate_psiControl :: Lens.Lens' InputTemplate (Prelude.Maybe InputPsiControl) inputTemplate_psiControl = Lens.lens (\InputTemplate' {psiControl} -> psiControl) (\s@InputTemplate' {} a -> s {psiControl = a} :: InputTemplate) -- | Use this Timecode source setting, located under the input settings -- (InputTimecodeSource), to specify how the service counts input video -- frames. This input frame count affects only the behavior of features -- that apply to a single input at a time, such as input clipping and -- synchronizing some captions formats. Choose Embedded (EMBEDDED) to use -- the timecodes in your input video. Choose Start at zero (ZEROBASED) to -- start the first frame at zero. Choose Specified start (SPECIFIEDSTART) -- to start the first frame at the timecode that you specify in the setting -- Start timecode (timecodeStart). If you don\'t specify a value for -- Timecode source, the service will use Embedded by default. For more -- information about timecodes, see -- https:\/\/docs.aws.amazon.com\/console\/mediaconvert\/timecode. inputTemplate_timecodeSource :: Lens.Lens' InputTemplate (Prelude.Maybe InputTimecodeSource) inputTemplate_timecodeSource = Lens.lens (\InputTemplate' {timecodeSource} -> timecodeSource) (\s@InputTemplate' {} a -> s {timecodeSource = a} :: InputTemplate) -- | Specify the timecode that you want the service to use for this input\'s -- initial frame. To use this setting, you must set the Timecode source -- setting, located under the input settings (InputTimecodeSource), to -- Specified start (SPECIFIEDSTART). For more information about timecodes, -- see https:\/\/docs.aws.amazon.com\/console\/mediaconvert\/timecode. inputTemplate_timecodeStart :: Lens.Lens' InputTemplate (Prelude.Maybe Prelude.Text) inputTemplate_timecodeStart = Lens.lens (\InputTemplate' {timecodeStart} -> timecodeStart) (\s@InputTemplate' {} a -> s {timecodeStart = a} :: InputTemplate) -- | Input video selectors contain the video settings for the input. Each of -- your inputs can have up to one video selector. inputTemplate_videoSelector :: Lens.Lens' InputTemplate (Prelude.Maybe VideoSelector) inputTemplate_videoSelector = Lens.lens (\InputTemplate' {videoSelector} -> videoSelector) (\s@InputTemplate' {} a -> s {videoSelector = a} :: InputTemplate) instance Data.FromJSON InputTemplate where parseJSON = Data.withObject "InputTemplate" ( \x -> InputTemplate' Prelude.<$> ( x Data..:? "audioSelectorGroups" Data..!= Prelude.mempty ) Prelude.<*> (x Data..:? "audioSelectors" Data..!= Prelude.mempty) Prelude.<*> ( x Data..:? "captionSelectors" Data..!= Prelude.mempty ) Prelude.<*> (x Data..:? "crop") Prelude.<*> (x Data..:? "deblockFilter") Prelude.<*> (x Data..:? "denoiseFilter") Prelude.<*> (x Data..:? "dolbyVisionMetadataXml") Prelude.<*> (x Data..:? "filterEnable") Prelude.<*> (x Data..:? "filterStrength") Prelude.<*> (x Data..:? "imageInserter") Prelude.<*> (x Data..:? "inputClippings" Data..!= Prelude.mempty) Prelude.<*> (x Data..:? "inputScanType") Prelude.<*> (x Data..:? "position") Prelude.<*> (x Data..:? "programNumber") Prelude.<*> (x Data..:? "psiControl") Prelude.<*> (x Data..:? "timecodeSource") Prelude.<*> (x Data..:? "timecodeStart") Prelude.<*> (x Data..:? "videoSelector") ) instance Prelude.Hashable InputTemplate where hashWithSalt _salt InputTemplate' {..} = _salt `Prelude.hashWithSalt` audioSelectorGroups `Prelude.hashWithSalt` audioSelectors `Prelude.hashWithSalt` captionSelectors `Prelude.hashWithSalt` crop `Prelude.hashWithSalt` deblockFilter `Prelude.hashWithSalt` denoiseFilter `Prelude.hashWithSalt` dolbyVisionMetadataXml `Prelude.hashWithSalt` filterEnable `Prelude.hashWithSalt` filterStrength `Prelude.hashWithSalt` imageInserter `Prelude.hashWithSalt` inputClippings `Prelude.hashWithSalt` inputScanType `Prelude.hashWithSalt` position `Prelude.hashWithSalt` programNumber `Prelude.hashWithSalt` psiControl `Prelude.hashWithSalt` timecodeSource `Prelude.hashWithSalt` timecodeStart `Prelude.hashWithSalt` videoSelector instance Prelude.NFData InputTemplate where rnf InputTemplate' {..} = Prelude.rnf audioSelectorGroups `Prelude.seq` Prelude.rnf audioSelectors `Prelude.seq` Prelude.rnf captionSelectors `Prelude.seq` Prelude.rnf crop `Prelude.seq` Prelude.rnf deblockFilter `Prelude.seq` Prelude.rnf denoiseFilter `Prelude.seq` Prelude.rnf dolbyVisionMetadataXml `Prelude.seq` Prelude.rnf filterEnable `Prelude.seq` Prelude.rnf filterStrength `Prelude.seq` Prelude.rnf imageInserter `Prelude.seq` Prelude.rnf inputClippings `Prelude.seq` Prelude.rnf inputScanType `Prelude.seq` Prelude.rnf position `Prelude.seq` Prelude.rnf programNumber `Prelude.seq` Prelude.rnf psiControl `Prelude.seq` Prelude.rnf timecodeSource `Prelude.seq` Prelude.rnf timecodeStart `Prelude.seq` Prelude.rnf videoSelector instance Data.ToJSON InputTemplate where toJSON InputTemplate' {..} = Data.object ( Prelude.catMaybes [ ("audioSelectorGroups" Data..=) Prelude.<$> audioSelectorGroups, ("audioSelectors" Data..=) Prelude.<$> audioSelectors, ("captionSelectors" Data..=) Prelude.<$> captionSelectors, ("crop" Data..=) Prelude.<$> crop, ("deblockFilter" Data..=) Prelude.<$> deblockFilter, ("denoiseFilter" Data..=) Prelude.<$> denoiseFilter, ("dolbyVisionMetadataXml" Data..=) Prelude.<$> dolbyVisionMetadataXml, ("filterEnable" Data..=) Prelude.<$> filterEnable, ("filterStrength" Data..=) Prelude.<$> filterStrength, ("imageInserter" Data..=) Prelude.<$> imageInserter, ("inputClippings" Data..=) Prelude.<$> inputClippings, ("inputScanType" Data..=) Prelude.<$> inputScanType, ("position" Data..=) Prelude.<$> position, ("programNumber" Data..=) Prelude.<$> programNumber, ("psiControl" Data..=) Prelude.<$> psiControl, ("timecodeSource" Data..=) Prelude.<$> timecodeSource, ("timecodeStart" Data..=) Prelude.<$> timecodeStart, ("videoSelector" Data..=) Prelude.<$> videoSelector ] )