Interface M2tsSettings.Builder

All Superinterfaces:
Buildable, CopyableBuilder<M2tsSettings.Builder,M2tsSettings>, SdkBuilder<M2tsSettings.Builder,M2tsSettings>, SdkPojo
Enclosing class:
M2tsSettings

public static interface M2tsSettings.Builder extends SdkPojo, CopyableBuilder<M2tsSettings.Builder,M2tsSettings>
  • Method Details

    • audioBufferModel

      M2tsSettings.Builder audioBufferModel(String audioBufferModel)
      Selects between the DVB and ATSC buffer models for Dolby Digital audio.
      Parameters:
      audioBufferModel - Selects between the DVB and ATSC buffer models for Dolby Digital audio.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • audioBufferModel

      M2tsSettings.Builder audioBufferModel(M2tsAudioBufferModel audioBufferModel)
      Selects between the DVB and ATSC buffer models for Dolby Digital audio.
      Parameters:
      audioBufferModel - Selects between the DVB and ATSC buffer models for Dolby Digital audio.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • audioDuration

      M2tsSettings.Builder audioDuration(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. 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

      M2tsSettings.Builder audioDuration(M2tsAudioDuration 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:
    • audioFramesPerPes

      M2tsSettings.Builder audioFramesPerPes(Integer audioFramesPerPes)
      The number of audio frames to insert for each PES packet.
      Parameters:
      audioFramesPerPes - The number of audio frames to insert for each PES packet.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • audioPids

      M2tsSettings.Builder audioPids(Collection<Integer> audioPids)
      Specify the packet identifiers (PIDs) for any elementary audio streams you include in this output. Specify multiple PIDs as a JSON array. Default is the range 482-492.
      Parameters:
      audioPids - Specify the packet identifiers (PIDs) for any elementary audio streams you include in this output. Specify multiple PIDs as a JSON array. Default is the range 482-492.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • audioPids

      M2tsSettings.Builder audioPids(Integer... audioPids)
      Specify the packet identifiers (PIDs) for any elementary audio streams you include in this output. Specify multiple PIDs as a JSON array. Default is the range 482-492.
      Parameters:
      audioPids - Specify the packet identifiers (PIDs) for any elementary audio streams you include in this output. Specify multiple PIDs as a JSON array. Default is the range 482-492.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • bitrate

      M2tsSettings.Builder bitrate(Integer bitrate)
      Specify the output bitrate of the transport stream in bits per second. Setting to 0 lets the muxer automatically determine the appropriate bitrate. Other common values are 3750000, 7500000, and 15000000.
      Parameters:
      bitrate - Specify the output bitrate of the transport stream in bits per second. Setting to 0 lets the muxer automatically determine the appropriate bitrate. Other common values are 3750000, 7500000, and 15000000.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • bufferModel

      M2tsSettings.Builder bufferModel(String bufferModel)
      Controls what buffer model to use for accurate interleaving. If set to MULTIPLEX, use multiplex buffer model. If set to NONE, this can lead to lower latency, but low-memory devices may not be able to play back the stream without interruptions.
      Parameters:
      bufferModel - Controls what buffer model to use for accurate interleaving. If set to MULTIPLEX, use multiplex buffer model. If set to NONE, this can lead to lower latency, but low-memory devices may not be able to play back the stream without interruptions.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • bufferModel

      M2tsSettings.Builder bufferModel(M2tsBufferModel bufferModel)
      Controls what buffer model to use for accurate interleaving. If set to MULTIPLEX, use multiplex buffer model. If set to NONE, this can lead to lower latency, but low-memory devices may not be able to play back the stream without interruptions.
      Parameters:
      bufferModel - Controls what buffer model to use for accurate interleaving. If set to MULTIPLEX, use multiplex buffer model. If set to NONE, this can lead to lower latency, but low-memory devices may not be able to play back the stream without interruptions.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • dataPTSControl

      M2tsSettings.Builder dataPTSControl(String dataPTSControl)
      If you select ALIGN_TO_VIDEO, MediaConvert writes captions and data packets with Presentation Timestamp (PTS) values greater than or equal to the first video packet PTS (MediaConvert drops captions and data packets with lesser PTS values). Keep the default value to allow all PTS values.
      Parameters:
      dataPTSControl - If you select ALIGN_TO_VIDEO, MediaConvert writes captions and data packets with Presentation Timestamp (PTS) values greater than or equal to the first video packet PTS (MediaConvert drops captions and data packets with lesser PTS values). Keep the default value to allow all PTS values.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • dataPTSControl

      M2tsSettings.Builder dataPTSControl(M2tsDataPtsControl dataPTSControl)
      If you select ALIGN_TO_VIDEO, MediaConvert writes captions and data packets with Presentation Timestamp (PTS) values greater than or equal to the first video packet PTS (MediaConvert drops captions and data packets with lesser PTS values). Keep the default value to allow all PTS values.
      Parameters:
      dataPTSControl - If you select ALIGN_TO_VIDEO, MediaConvert writes captions and data packets with Presentation Timestamp (PTS) values greater than or equal to the first video packet PTS (MediaConvert drops captions and data packets with lesser PTS values). Keep the default value to allow all PTS values.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • dvbNitSettings

      M2tsSettings.Builder dvbNitSettings(DvbNitSettings dvbNitSettings)
      Use these settings to insert a DVB Network Information Table (NIT) in the transport stream of this output.
      Parameters:
      dvbNitSettings - Use these settings to insert a DVB Network Information Table (NIT) in the transport stream of this output.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • dvbNitSettings

      default M2tsSettings.Builder dvbNitSettings(Consumer<DvbNitSettings.Builder> dvbNitSettings)
      Use these settings to insert a DVB Network Information Table (NIT) in the transport stream of this output. This is a convenience method that creates an instance of the DvbNitSettings.Builder avoiding the need to create one manually via DvbNitSettings.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to dvbNitSettings(DvbNitSettings).

      Parameters:
      dvbNitSettings - a consumer that will call methods on DvbNitSettings.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • dvbSdtSettings

      M2tsSettings.Builder dvbSdtSettings(DvbSdtSettings dvbSdtSettings)
      Use these settings to insert a DVB Service Description Table (SDT) in the transport stream of this output.
      Parameters:
      dvbSdtSettings - Use these settings to insert a DVB Service Description Table (SDT) in the transport stream of this output.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • dvbSdtSettings

      default M2tsSettings.Builder dvbSdtSettings(Consumer<DvbSdtSettings.Builder> dvbSdtSettings)
      Use these settings to insert a DVB Service Description Table (SDT) in the transport stream of this output. This is a convenience method that creates an instance of the DvbSdtSettings.Builder avoiding the need to create one manually via DvbSdtSettings.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to dvbSdtSettings(DvbSdtSettings).

      Parameters:
      dvbSdtSettings - a consumer that will call methods on DvbSdtSettings.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • dvbSubPids

      M2tsSettings.Builder dvbSubPids(Collection<Integer> dvbSubPids)
      Specify the packet identifiers (PIDs) for DVB subtitle data included in this output. Specify multiple PIDs as a JSON array. Default is the range 460-479.
      Parameters:
      dvbSubPids - Specify the packet identifiers (PIDs) for DVB subtitle data included in this output. Specify multiple PIDs as a JSON array. Default is the range 460-479.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • dvbSubPids

      M2tsSettings.Builder dvbSubPids(Integer... dvbSubPids)
      Specify the packet identifiers (PIDs) for DVB subtitle data included in this output. Specify multiple PIDs as a JSON array. Default is the range 460-479.
      Parameters:
      dvbSubPids - Specify the packet identifiers (PIDs) for DVB subtitle data included in this output. Specify multiple PIDs as a JSON array. Default is the range 460-479.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • dvbTdtSettings

      M2tsSettings.Builder dvbTdtSettings(DvbTdtSettings dvbTdtSettings)
      Use these settings to insert a DVB Time and Date Table (TDT) in the transport stream of this output.
      Parameters:
      dvbTdtSettings - Use these settings to insert a DVB Time and Date Table (TDT) in the transport stream of this output.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • dvbTdtSettings

      default M2tsSettings.Builder dvbTdtSettings(Consumer<DvbTdtSettings.Builder> dvbTdtSettings)
      Use these settings to insert a DVB Time and Date Table (TDT) in the transport stream of this output. This is a convenience method that creates an instance of the DvbTdtSettings.Builder avoiding the need to create one manually via DvbTdtSettings.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to dvbTdtSettings(DvbTdtSettings).

      Parameters:
      dvbTdtSettings - a consumer that will call methods on DvbTdtSettings.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • dvbTeletextPid

      M2tsSettings.Builder dvbTeletextPid(Integer dvbTeletextPid)
      Specify the packet identifier (PID) for DVB teletext data you include in this output. Default is 499.
      Parameters:
      dvbTeletextPid - Specify the packet identifier (PID) for DVB teletext data you include in this output. Default is 499.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • ebpAudioInterval

      M2tsSettings.Builder ebpAudioInterval(String ebpAudioInterval)
      When set to VIDEO_AND_FIXED_INTERVALS, audio EBP markers will be added to partitions 3 and 4. The interval between these additional markers will be fixed, and will be slightly shorter than the video EBP marker interval. When set to VIDEO_INTERVAL, these additional markers will not be inserted. Only applicable when EBP segmentation markers are is selected (segmentationMarkers is EBP or EBP_LEGACY).
      Parameters:
      ebpAudioInterval - When set to VIDEO_AND_FIXED_INTERVALS, audio EBP markers will be added to partitions 3 and 4. The interval between these additional markers will be fixed, and will be slightly shorter than the video EBP marker interval. When set to VIDEO_INTERVAL, these additional markers will not be inserted. Only applicable when EBP segmentation markers are is selected (segmentationMarkers is EBP or EBP_LEGACY).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • ebpAudioInterval

      M2tsSettings.Builder ebpAudioInterval(M2tsEbpAudioInterval ebpAudioInterval)
      When set to VIDEO_AND_FIXED_INTERVALS, audio EBP markers will be added to partitions 3 and 4. The interval between these additional markers will be fixed, and will be slightly shorter than the video EBP marker interval. When set to VIDEO_INTERVAL, these additional markers will not be inserted. Only applicable when EBP segmentation markers are is selected (segmentationMarkers is EBP or EBP_LEGACY).
      Parameters:
      ebpAudioInterval - When set to VIDEO_AND_FIXED_INTERVALS, audio EBP markers will be added to partitions 3 and 4. The interval between these additional markers will be fixed, and will be slightly shorter than the video EBP marker interval. When set to VIDEO_INTERVAL, these additional markers will not be inserted. Only applicable when EBP segmentation markers are is selected (segmentationMarkers is EBP or EBP_LEGACY).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • ebpPlacement

      M2tsSettings.Builder ebpPlacement(String ebpPlacement)
      Selects which PIDs to place EBP markers on. They can either be placed only on the video PID, or on both the video PID and all audio PIDs. Only applicable when EBP segmentation markers are is selected (segmentationMarkers is EBP or EBP_LEGACY).
      Parameters:
      ebpPlacement - Selects which PIDs to place EBP markers on. They can either be placed only on the video PID, or on both the video PID and all audio PIDs. Only applicable when EBP segmentation markers are is selected (segmentationMarkers is EBP or EBP_LEGACY).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • ebpPlacement

      M2tsSettings.Builder ebpPlacement(M2tsEbpPlacement ebpPlacement)
      Selects which PIDs to place EBP markers on. They can either be placed only on the video PID, or on both the video PID and all audio PIDs. Only applicable when EBP segmentation markers are is selected (segmentationMarkers is EBP or EBP_LEGACY).
      Parameters:
      ebpPlacement - Selects which PIDs to place EBP markers on. They can either be placed only on the video PID, or on both the video PID and all audio PIDs. Only applicable when EBP segmentation markers are is selected (segmentationMarkers is EBP or EBP_LEGACY).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • esRateInPes

      M2tsSettings.Builder esRateInPes(String esRateInPes)
      Controls whether to include the ES Rate field in the PES header.
      Parameters:
      esRateInPes - Controls whether to include the ES Rate field in the PES header.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • esRateInPes

      M2tsSettings.Builder esRateInPes(M2tsEsRateInPes esRateInPes)
      Controls whether to include the ES Rate field in the PES header.
      Parameters:
      esRateInPes - Controls whether to include the ES Rate field in the PES header.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • forceTsVideoEbpOrder

      M2tsSettings.Builder forceTsVideoEbpOrder(String forceTsVideoEbpOrder)
      Keep the default value unless you know that your audio EBP markers are incorrectly appearing before your video EBP markers. To correct this problem, set this value to Force.
      Parameters:
      forceTsVideoEbpOrder - Keep the default value unless you know that your audio EBP markers are incorrectly appearing before your video EBP markers. To correct this problem, set this value to Force.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • forceTsVideoEbpOrder

      M2tsSettings.Builder forceTsVideoEbpOrder(M2tsForceTsVideoEbpOrder forceTsVideoEbpOrder)
      Keep the default value unless you know that your audio EBP markers are incorrectly appearing before your video EBP markers. To correct this problem, set this value to Force.
      Parameters:
      forceTsVideoEbpOrder - Keep the default value unless you know that your audio EBP markers are incorrectly appearing before your video EBP markers. To correct this problem, set this value to Force.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • fragmentTime

      M2tsSettings.Builder fragmentTime(Double fragmentTime)
      The length, in seconds, of each fragment. Only used with EBP markers.
      Parameters:
      fragmentTime - The length, in seconds, of each fragment. Only used with EBP markers.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • klvMetadata

      M2tsSettings.Builder klvMetadata(String klvMetadata)
      To include key-length-value metadata in this output: Set KLV metadata insertion to Passthrough. MediaConvert reads KLV metadata present in your input and passes it through to the output transport stream. To exclude this KLV metadata: Set KLV metadata insertion to None or leave blank.
      Parameters:
      klvMetadata - To include key-length-value metadata in this output: Set KLV metadata insertion to Passthrough. MediaConvert reads KLV metadata present in your input and passes it through to the output transport stream. To exclude this KLV metadata: Set KLV metadata insertion to None or leave blank.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • klvMetadata

      M2tsSettings.Builder klvMetadata(M2tsKlvMetadata klvMetadata)
      To include key-length-value metadata in this output: Set KLV metadata insertion to Passthrough. MediaConvert reads KLV metadata present in your input and passes it through to the output transport stream. To exclude this KLV metadata: Set KLV metadata insertion to None or leave blank.
      Parameters:
      klvMetadata - To include key-length-value metadata in this output: Set KLV metadata insertion to Passthrough. MediaConvert reads KLV metadata present in your input and passes it through to the output transport stream. To exclude this KLV metadata: Set KLV metadata insertion to None or leave blank.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • maxPcrInterval

      M2tsSettings.Builder maxPcrInterval(Integer maxPcrInterval)
      Specify the maximum time, in milliseconds, between Program Clock References (PCRs) inserted into the transport stream.
      Parameters:
      maxPcrInterval - Specify the maximum time, in milliseconds, between Program Clock References (PCRs) inserted into the transport stream.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • minEbpInterval

      M2tsSettings.Builder minEbpInterval(Integer minEbpInterval)
      When set, enforces that Encoder Boundary Points do not come within the specified time interval of each other by looking ahead at input video. If another EBP is going to come in within the specified time interval, the current EBP is not emitted, and the segment is "stretched" to the next marker. The lookahead value does not add latency to the system. The Live Event must be configured elsewhere to create sufficient latency to make the lookahead accurate.
      Parameters:
      minEbpInterval - When set, enforces that Encoder Boundary Points do not come within the specified time interval of each other by looking ahead at input video. If another EBP is going to come in within the specified time interval, the current EBP is not emitted, and the segment is "stretched" to the next marker. The lookahead value does not add latency to the system. The Live Event must be configured elsewhere to create sufficient latency to make the lookahead accurate.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • nielsenId3

      M2tsSettings.Builder nielsenId3(String nielsenId3)
      If INSERT, Nielsen inaudible tones for media tracking will be detected in the input audio and an equivalent ID3 tag will be inserted in the output.
      Parameters:
      nielsenId3 - If INSERT, Nielsen inaudible tones for media tracking will be detected in the input audio and an equivalent ID3 tag will be inserted in the output.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • nielsenId3

      M2tsSettings.Builder nielsenId3(M2tsNielsenId3 nielsenId3)
      If INSERT, Nielsen inaudible tones for media tracking will be detected in the input audio and an equivalent ID3 tag will be inserted in the output.
      Parameters:
      nielsenId3 - If INSERT, Nielsen inaudible tones for media tracking will be detected in the input audio and an equivalent ID3 tag will be inserted in the output.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • nullPacketBitrate

      M2tsSettings.Builder nullPacketBitrate(Double nullPacketBitrate)
      Value in bits per second of extra null packets to insert into the transport stream. This can be used if a downstream encryption system requires periodic null packets.
      Parameters:
      nullPacketBitrate - Value in bits per second of extra null packets to insert into the transport stream. This can be used if a downstream encryption system requires periodic null packets.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • patInterval

      M2tsSettings.Builder patInterval(Integer patInterval)
      The number of milliseconds between instances of this table in the output transport stream.
      Parameters:
      patInterval - The number of milliseconds between instances of this table in the output transport stream.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • pcrControl

      M2tsSettings.Builder pcrControl(String pcrControl)
      When set to PCR_EVERY_PES_PACKET, a Program Clock Reference value is inserted for every Packetized Elementary Stream (PES) header. This is effective only when the PCR PID is the same as the video or audio elementary stream.
      Parameters:
      pcrControl - When set to PCR_EVERY_PES_PACKET, a Program Clock Reference value is inserted for every Packetized Elementary Stream (PES) header. This is effective only when the PCR PID is the same as the video or audio elementary stream.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • pcrControl

      M2tsSettings.Builder pcrControl(M2tsPcrControl pcrControl)
      When set to PCR_EVERY_PES_PACKET, a Program Clock Reference value is inserted for every Packetized Elementary Stream (PES) header. This is effective only when the PCR PID is the same as the video or audio elementary stream.
      Parameters:
      pcrControl - When set to PCR_EVERY_PES_PACKET, a Program Clock Reference value is inserted for every Packetized Elementary Stream (PES) header. This is effective only when the PCR PID is the same as the video or audio elementary stream.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • pcrPid

      M2tsSettings.Builder pcrPid(Integer pcrPid)
      Specify the packet identifier (PID) for the program clock reference (PCR) in this output. If you do not specify a value, the service will use the value for Video PID.
      Parameters:
      pcrPid - Specify the packet identifier (PID) for the program clock reference (PCR) in this output. If you do not specify a value, the service will use the value for Video PID.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • pmtInterval

      M2tsSettings.Builder pmtInterval(Integer pmtInterval)
      Specify the number of milliseconds between instances of the program map table (PMT) in the output transport stream.
      Parameters:
      pmtInterval - Specify the number of milliseconds between instances of the program map table (PMT) in the output transport stream.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • pmtPid

      M2tsSettings.Builder pmtPid(Integer pmtPid)
      Specify the packet identifier (PID) for the program map table (PMT) itself. Default is 480.
      Parameters:
      pmtPid - Specify the packet identifier (PID) for the program map table (PMT) itself. Default is 480.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • preventBufferUnderflow

      M2tsSettings.Builder preventBufferUnderflow(String preventBufferUnderflow)
      Specify whether MediaConvert automatically attempts to prevent decoder buffer underflows in your transport stream output. Use if you are seeing decoder buffer underflows in your output and are unable to increase your transport stream's bitrate. For most workflows: We recommend that you keep the default value, Disabled. To prevent decoder buffer underflows in your output, when possible: Choose Enabled. Note that if MediaConvert prevents a decoder buffer underflow in your output, output video quality is reduced and your job will take longer to complete.
      Parameters:
      preventBufferUnderflow - Specify whether MediaConvert automatically attempts to prevent decoder buffer underflows in your transport stream output. Use if you are seeing decoder buffer underflows in your output and are unable to increase your transport stream's bitrate. For most workflows: We recommend that you keep the default value, Disabled. To prevent decoder buffer underflows in your output, when possible: Choose Enabled. Note that if MediaConvert prevents a decoder buffer underflow in your output, output video quality is reduced and your job will take longer to complete.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • preventBufferUnderflow

      M2tsSettings.Builder preventBufferUnderflow(M2tsPreventBufferUnderflow preventBufferUnderflow)
      Specify whether MediaConvert automatically attempts to prevent decoder buffer underflows in your transport stream output. Use if you are seeing decoder buffer underflows in your output and are unable to increase your transport stream's bitrate. For most workflows: We recommend that you keep the default value, Disabled. To prevent decoder buffer underflows in your output, when possible: Choose Enabled. Note that if MediaConvert prevents a decoder buffer underflow in your output, output video quality is reduced and your job will take longer to complete.
      Parameters:
      preventBufferUnderflow - Specify whether MediaConvert automatically attempts to prevent decoder buffer underflows in your transport stream output. Use if you are seeing decoder buffer underflows in your output and are unable to increase your transport stream's bitrate. For most workflows: We recommend that you keep the default value, Disabled. To prevent decoder buffer underflows in your output, when possible: Choose Enabled. Note that if MediaConvert prevents a decoder buffer underflow in your output, output video quality is reduced and your job will take longer to complete.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • privateMetadataPid

      M2tsSettings.Builder privateMetadataPid(Integer privateMetadataPid)
      Specify the packet identifier (PID) of the private metadata stream. Default is 503.
      Parameters:
      privateMetadataPid - Specify the packet identifier (PID) of the private metadata stream. Default is 503.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • programNumber

      M2tsSettings.Builder programNumber(Integer programNumber)
      Use Program number to specify the program number used in the program map table (PMT) for this output. Default is 1. Program numbers and program map tables are parts of MPEG-2 transport stream containers, used for organizing data.
      Parameters:
      programNumber - Use Program number to specify the program number used in the program map table (PMT) for this output. Default is 1. Program numbers and program map tables are parts of MPEG-2 transport stream containers, used for organizing data.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • ptsOffset

      M2tsSettings.Builder ptsOffset(Integer ptsOffset)
      Manually specify the initial PTS offset, in seconds, when you set PTS offset to Seconds. Enter an integer from 0 to 3600. Leave blank to keep the default value 2.
      Parameters:
      ptsOffset - Manually specify the initial PTS offset, in seconds, when you set PTS offset to Seconds. Enter an integer from 0 to 3600. Leave blank to keep the default value 2.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • ptsOffsetMode

      M2tsSettings.Builder ptsOffsetMode(String ptsOffsetMode)
      Specify the initial presentation timestamp (PTS) offset for your transport stream output. To let MediaConvert automatically determine the initial PTS offset: Keep the default value, Auto. We recommend that you choose Auto for the widest player compatibility. The initial PTS will be at least two seconds and vary depending on your output's bitrate, HRD buffer size and HRD buffer initial fill percentage. To manually specify an initial PTS offset: Choose Seconds. Then specify the number of seconds with PTS offset.
      Parameters:
      ptsOffsetMode - Specify the initial presentation timestamp (PTS) offset for your transport stream output. To let MediaConvert automatically determine the initial PTS offset: Keep the default value, Auto. We recommend that you choose Auto for the widest player compatibility. The initial PTS will be at least two seconds and vary depending on your output's bitrate, HRD buffer size and HRD buffer initial fill percentage. To manually specify an initial PTS offset: Choose Seconds. Then specify the number of seconds with PTS offset.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • ptsOffsetMode

      M2tsSettings.Builder ptsOffsetMode(TsPtsOffset ptsOffsetMode)
      Specify the initial presentation timestamp (PTS) offset for your transport stream output. To let MediaConvert automatically determine the initial PTS offset: Keep the default value, Auto. We recommend that you choose Auto for the widest player compatibility. The initial PTS will be at least two seconds and vary depending on your output's bitrate, HRD buffer size and HRD buffer initial fill percentage. To manually specify an initial PTS offset: Choose Seconds. Then specify the number of seconds with PTS offset.
      Parameters:
      ptsOffsetMode - Specify the initial presentation timestamp (PTS) offset for your transport stream output. To let MediaConvert automatically determine the initial PTS offset: Keep the default value, Auto. We recommend that you choose Auto for the widest player compatibility. The initial PTS will be at least two seconds and vary depending on your output's bitrate, HRD buffer size and HRD buffer initial fill percentage. To manually specify an initial PTS offset: Choose Seconds. Then specify the number of seconds with PTS offset.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • rateMode

      M2tsSettings.Builder rateMode(String rateMode)
      When set to CBR, inserts null packets into transport stream to fill specified bitrate. When set to VBR, the bitrate setting acts as the maximum bitrate, but the output will not be padded up to that bitrate.
      Parameters:
      rateMode - When set to CBR, inserts null packets into transport stream to fill specified bitrate. When set to VBR, the bitrate setting acts as the maximum bitrate, but the output will not be padded up to that bitrate.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • rateMode

      M2tsSettings.Builder rateMode(M2tsRateMode rateMode)
      When set to CBR, inserts null packets into transport stream to fill specified bitrate. When set to VBR, the bitrate setting acts as the maximum bitrate, but the output will not be padded up to that bitrate.
      Parameters:
      rateMode - When set to CBR, inserts null packets into transport stream to fill specified bitrate. When set to VBR, the bitrate setting acts as the maximum bitrate, but the output will not be padded up to that bitrate.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • scte35Esam

      M2tsSettings.Builder scte35Esam(M2tsScte35Esam scte35Esam)
      Include this in your job settings to put SCTE-35 markers in your HLS and transport stream outputs at the insertion points that you specify in an ESAM XML document. Provide the document in the setting SCC XML.
      Parameters:
      scte35Esam - Include this in your job settings to put SCTE-35 markers in your HLS and transport stream outputs at the insertion points that you specify in an ESAM XML document. Provide the document in the setting SCC XML.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • scte35Esam

      default M2tsSettings.Builder scte35Esam(Consumer<M2tsScte35Esam.Builder> scte35Esam)
      Include this in your job settings to put SCTE-35 markers in your HLS and transport stream outputs at the insertion points that you specify in an ESAM XML document. Provide the document in the setting SCC XML. This is a convenience method that creates an instance of the M2tsScte35Esam.Builder avoiding the need to create one manually via M2tsScte35Esam.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to scte35Esam(M2tsScte35Esam).

      Parameters:
      scte35Esam - a consumer that will call methods on M2tsScte35Esam.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • scte35Pid

      M2tsSettings.Builder scte35Pid(Integer scte35Pid)
      Specify the packet identifier (PID) of the SCTE-35 stream in the transport stream.
      Parameters:
      scte35Pid - Specify the packet identifier (PID) of the SCTE-35 stream in the transport stream.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • scte35Source

      M2tsSettings.Builder scte35Source(String scte35Source)
      For SCTE-35 markers from your input-- Choose Passthrough if you want SCTE-35 markers that appear in your input to also appear in this output. Choose None if you don't want SCTE-35 markers in this output. For SCTE-35 markers from an ESAM XML document-- Choose None. Also provide the ESAM XML as a string in the setting Signal processing notification XML. Also enable ESAM SCTE-35 (include the property scte35Esam).
      Parameters:
      scte35Source - For SCTE-35 markers from your input-- Choose Passthrough if you want SCTE-35 markers that appear in your input to also appear in this output. Choose None if you don't want SCTE-35 markers in this output. For SCTE-35 markers from an ESAM XML document-- Choose None. Also provide the ESAM XML as a string in the setting Signal processing notification XML. Also enable ESAM SCTE-35 (include the property scte35Esam).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • scte35Source

      M2tsSettings.Builder scte35Source(M2tsScte35Source scte35Source)
      For SCTE-35 markers from your input-- Choose Passthrough if you want SCTE-35 markers that appear in your input to also appear in this output. Choose None if you don't want SCTE-35 markers in this output. For SCTE-35 markers from an ESAM XML document-- Choose None. Also provide the ESAM XML as a string in the setting Signal processing notification XML. Also enable ESAM SCTE-35 (include the property scte35Esam).
      Parameters:
      scte35Source - For SCTE-35 markers from your input-- Choose Passthrough if you want SCTE-35 markers that appear in your input to also appear in this output. Choose None if you don't want SCTE-35 markers in this output. For SCTE-35 markers from an ESAM XML document-- Choose None. Also provide the ESAM XML as a string in the setting Signal processing notification XML. Also enable ESAM SCTE-35 (include the property scte35Esam).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • segmentationMarkers

      M2tsSettings.Builder segmentationMarkers(String segmentationMarkers)
      Inserts segmentation markers at each segmentation_time period. rai_segstart sets the Random Access Indicator bit in the adaptation field. rai_adapt sets the RAI bit and adds the current timecode in the private data bytes. psi_segstart inserts PAT and PMT tables at the start of segments. ebp adds Encoder Boundary Point information to the adaptation field as per OpenCable specification OC-SP-EBP-I01-130118. ebp_legacy adds Encoder Boundary Point information to the adaptation field using a legacy proprietary format.
      Parameters:
      segmentationMarkers - Inserts segmentation markers at each segmentation_time period. rai_segstart sets the Random Access Indicator bit in the adaptation field. rai_adapt sets the RAI bit and adds the current timecode in the private data bytes. psi_segstart inserts PAT and PMT tables at the start of segments. ebp adds Encoder Boundary Point information to the adaptation field as per OpenCable specification OC-SP-EBP-I01-130118. ebp_legacy adds Encoder Boundary Point information to the adaptation field using a legacy proprietary format.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • segmentationMarkers

      M2tsSettings.Builder segmentationMarkers(M2tsSegmentationMarkers segmentationMarkers)
      Inserts segmentation markers at each segmentation_time period. rai_segstart sets the Random Access Indicator bit in the adaptation field. rai_adapt sets the RAI bit and adds the current timecode in the private data bytes. psi_segstart inserts PAT and PMT tables at the start of segments. ebp adds Encoder Boundary Point information to the adaptation field as per OpenCable specification OC-SP-EBP-I01-130118. ebp_legacy adds Encoder Boundary Point information to the adaptation field using a legacy proprietary format.
      Parameters:
      segmentationMarkers - Inserts segmentation markers at each segmentation_time period. rai_segstart sets the Random Access Indicator bit in the adaptation field. rai_adapt sets the RAI bit and adds the current timecode in the private data bytes. psi_segstart inserts PAT and PMT tables at the start of segments. ebp adds Encoder Boundary Point information to the adaptation field as per OpenCable specification OC-SP-EBP-I01-130118. ebp_legacy adds Encoder Boundary Point information to the adaptation field using a legacy proprietary format.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • segmentationStyle

      M2tsSettings.Builder segmentationStyle(String segmentationStyle)
      The segmentation style parameter controls how segmentation markers are inserted into the transport stream. With avails, it is possible that segments may be truncated, which can influence where future segmentation markers are inserted. When a segmentation style of "reset_cadence" is selected and a segment is truncated due to an avail, we will reset the segmentation cadence. This means the subsequent segment will have a duration of of $segmentation_time seconds. When a segmentation style of "maintain_cadence" is selected and a segment is truncated due to an avail, we will not reset the segmentation cadence. This means the subsequent segment will likely be truncated as well. However, all segments after that will have a duration of $segmentation_time seconds. Note that EBP lookahead is a slight exception to this rule.
      Parameters:
      segmentationStyle - The segmentation style parameter controls how segmentation markers are inserted into the transport stream. With avails, it is possible that segments may be truncated, which can influence where future segmentation markers are inserted. When a segmentation style of "reset_cadence" is selected and a segment is truncated due to an avail, we will reset the segmentation cadence. This means the subsequent segment will have a duration of of $segmentation_time seconds. When a segmentation style of "maintain_cadence" is selected and a segment is truncated due to an avail, we will not reset the segmentation cadence. This means the subsequent segment will likely be truncated as well. However, all segments after that will have a duration of $segmentation_time seconds. Note that EBP lookahead is a slight exception to this rule.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • segmentationStyle

      M2tsSettings.Builder segmentationStyle(M2tsSegmentationStyle segmentationStyle)
      The segmentation style parameter controls how segmentation markers are inserted into the transport stream. With avails, it is possible that segments may be truncated, which can influence where future segmentation markers are inserted. When a segmentation style of "reset_cadence" is selected and a segment is truncated due to an avail, we will reset the segmentation cadence. This means the subsequent segment will have a duration of of $segmentation_time seconds. When a segmentation style of "maintain_cadence" is selected and a segment is truncated due to an avail, we will not reset the segmentation cadence. This means the subsequent segment will likely be truncated as well. However, all segments after that will have a duration of $segmentation_time seconds. Note that EBP lookahead is a slight exception to this rule.
      Parameters:
      segmentationStyle - The segmentation style parameter controls how segmentation markers are inserted into the transport stream. With avails, it is possible that segments may be truncated, which can influence where future segmentation markers are inserted. When a segmentation style of "reset_cadence" is selected and a segment is truncated due to an avail, we will reset the segmentation cadence. This means the subsequent segment will have a duration of of $segmentation_time seconds. When a segmentation style of "maintain_cadence" is selected and a segment is truncated due to an avail, we will not reset the segmentation cadence. This means the subsequent segment will likely be truncated as well. However, all segments after that will have a duration of $segmentation_time seconds. Note that EBP lookahead is a slight exception to this rule.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • segmentationTime

      M2tsSettings.Builder segmentationTime(Double segmentationTime)
      Specify the length, in seconds, of each segment. Required unless markers is set to _none_.
      Parameters:
      segmentationTime - Specify the length, in seconds, of each segment. Required unless markers is set to _none_.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • timedMetadataPid

      M2tsSettings.Builder timedMetadataPid(Integer timedMetadataPid)
      Packet Identifier (PID) of the ID3 metadata stream in the transport stream.
      Parameters:
      timedMetadataPid - Packet Identifier (PID) of the ID3 metadata stream in the transport stream.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • transportStreamId

      M2tsSettings.Builder transportStreamId(Integer transportStreamId)
      Specify the ID for the transport stream itself in the program map table for this output. Transport stream IDs and program map tables are parts of MPEG-2 transport stream containers, used for organizing data.
      Parameters:
      transportStreamId - Specify the ID for the transport stream itself in the program map table for this output. Transport stream IDs and program map tables are parts of MPEG-2 transport stream containers, used for organizing data.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • videoPid

      M2tsSettings.Builder videoPid(Integer videoPid)
      Specify the packet identifier (PID) of the elementary video stream in the transport stream.
      Parameters:
      videoPid - Specify the packet identifier (PID) of the elementary video stream in the transport stream.
      Returns:
      Returns a reference to this object so that method calls can be chained together.