Interface M2tsSettings.Builder

  • Method Details

    • absentInputAudioBehavior

      M2tsSettings.Builder absentInputAudioBehavior(String absentInputAudioBehavior)
      When set to drop, output audio streams will be removed from the program if the selected input audio stream is removed from the input. This allows the output audio configuration to dynamically change based on input configuration. If this is set to encodeSilence, all output audio streams will output encoded silence when not connected to an active input stream.
      Parameters:
      absentInputAudioBehavior - When set to drop, output audio streams will be removed from the program if the selected input audio stream is removed from the input. This allows the output audio configuration to dynamically change based on input configuration. If this is set to encodeSilence, all output audio streams will output encoded silence when not connected to an active input stream.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • absentInputAudioBehavior

      M2tsSettings.Builder absentInputAudioBehavior(M2tsAbsentInputAudioBehavior absentInputAudioBehavior)
      When set to drop, output audio streams will be removed from the program if the selected input audio stream is removed from the input. This allows the output audio configuration to dynamically change based on input configuration. If this is set to encodeSilence, all output audio streams will output encoded silence when not connected to an active input stream.
      Parameters:
      absentInputAudioBehavior - When set to drop, output audio streams will be removed from the program if the selected input audio stream is removed from the input. This allows the output audio configuration to dynamically change based on input configuration. If this is set to encodeSilence, all output audio streams will output encoded silence when not connected to an active input stream.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • arib

      When set to enabled, uses ARIB-compliant field muxing and removes video descriptor.
      Parameters:
      arib - When set to enabled, uses ARIB-compliant field muxing and removes video descriptor.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • arib

      When set to enabled, uses ARIB-compliant field muxing and removes video descriptor.
      Parameters:
      arib - When set to enabled, uses ARIB-compliant field muxing and removes video descriptor.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • aribCaptionsPid

      M2tsSettings.Builder aribCaptionsPid(String aribCaptionsPid)
      Packet Identifier (PID) for ARIB Captions in the transport stream. Can be entered as a decimal or hexadecimal value. Valid values are 32 (or 0x20)..8182 (or 0x1ff6).
      Parameters:
      aribCaptionsPid - Packet Identifier (PID) for ARIB Captions in the transport stream. Can be entered as a decimal or hexadecimal value. Valid values are 32 (or 0x20)..8182 (or 0x1ff6).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • aribCaptionsPidControl

      M2tsSettings.Builder aribCaptionsPidControl(String aribCaptionsPidControl)
      If set to auto, pid number used for ARIB Captions will be auto-selected from unused pids. If set to useConfigured, ARIB Captions will be on the configured pid number.
      Parameters:
      aribCaptionsPidControl - If set to auto, pid number used for ARIB Captions will be auto-selected from unused pids. If set to useConfigured, ARIB Captions will be on the configured pid number.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • aribCaptionsPidControl

      M2tsSettings.Builder aribCaptionsPidControl(M2tsAribCaptionsPidControl aribCaptionsPidControl)
      If set to auto, pid number used for ARIB Captions will be auto-selected from unused pids. If set to useConfigured, ARIB Captions will be on the configured pid number.
      Parameters:
      aribCaptionsPidControl - If set to auto, pid number used for ARIB Captions will be auto-selected from unused pids. If set to useConfigured, ARIB Captions will be on the configured pid number.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • audioBufferModel

      M2tsSettings.Builder audioBufferModel(String audioBufferModel)
      When set to dvb, uses DVB buffer model for Dolby Digital audio. When set to atsc, the ATSC model is used.
      Parameters:
      audioBufferModel - When set to dvb, uses DVB buffer model for Dolby Digital audio. When set to atsc, the ATSC model is used.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • audioBufferModel

      M2tsSettings.Builder audioBufferModel(M2tsAudioBufferModel audioBufferModel)
      When set to dvb, uses DVB buffer model for Dolby Digital audio. When set to atsc, the ATSC model is used.
      Parameters:
      audioBufferModel - When set to dvb, uses DVB buffer model for Dolby Digital audio. When set to atsc, the ATSC model is used.
      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(String audioPids)
      Packet Identifier (PID) of the elementary audio stream(s) in the transport stream. Multiple values are accepted, and can be entered in ranges and/or by comma separation. Can be entered as decimal or hexadecimal values. Each PID specified must be in the range of 32 (or 0x20)..8182 (or 0x1ff6).
      Parameters:
      audioPids - Packet Identifier (PID) of the elementary audio stream(s) in the transport stream. Multiple values are accepted, and can be entered in ranges and/or by comma separation. Can be entered as decimal or hexadecimal values. Each PID specified must be in the range of 32 (or 0x20)..8182 (or 0x1ff6).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • audioStreamType

      M2tsSettings.Builder audioStreamType(String audioStreamType)
      When set to atsc, uses stream type = 0x81 for AC3 and stream type = 0x87 for EAC3. When set to dvb, uses stream type = 0x06.
      Parameters:
      audioStreamType - When set to atsc, uses stream type = 0x81 for AC3 and stream type = 0x87 for EAC3. When set to dvb, uses stream type = 0x06.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • audioStreamType

      M2tsSettings.Builder audioStreamType(M2tsAudioStreamType audioStreamType)
      When set to atsc, uses stream type = 0x81 for AC3 and stream type = 0x87 for EAC3. When set to dvb, uses stream type = 0x06.
      Parameters:
      audioStreamType - When set to atsc, uses stream type = 0x81 for AC3 and stream type = 0x87 for EAC3. When set to dvb, uses stream type = 0x06.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • bitrate

      M2tsSettings.Builder bitrate(Integer bitrate)
      The output bitrate of the transport stream in bits per second. Setting to 0 lets the muxer automatically determine the appropriate bitrate.
      Parameters:
      bitrate - The output bitrate of the transport stream in bits per second. Setting to 0 lets the muxer automatically determine the appropriate bitrate.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • bufferModel

      M2tsSettings.Builder bufferModel(String bufferModel)
      Controls the timing accuracy for output network traffic. Leave as MULTIPLEX to ensure accurate network packet timing. Or set to NONE, which might result in lower latency but will result in more variability in output network packet timing. This variability might cause interruptions, jitter, or bursty behavior in your playback or receiving devices.
      Parameters:
      bufferModel - Controls the timing accuracy for output network traffic. Leave as MULTIPLEX to ensure accurate network packet timing. Or set to NONE, which might result in lower latency but will result in more variability in output network packet timing. This variability might cause interruptions, jitter, or bursty behavior in your playback or receiving devices.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • bufferModel

      M2tsSettings.Builder bufferModel(M2tsBufferModel bufferModel)
      Controls the timing accuracy for output network traffic. Leave as MULTIPLEX to ensure accurate network packet timing. Or set to NONE, which might result in lower latency but will result in more variability in output network packet timing. This variability might cause interruptions, jitter, or bursty behavior in your playback or receiving devices.
      Parameters:
      bufferModel - Controls the timing accuracy for output network traffic. Leave as MULTIPLEX to ensure accurate network packet timing. Or set to NONE, which might result in lower latency but will result in more variability in output network packet timing. This variability might cause interruptions, jitter, or bursty behavior in your playback or receiving devices.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • ccDescriptor

      M2tsSettings.Builder ccDescriptor(String ccDescriptor)
      When set to enabled, generates captionServiceDescriptor in PMT.
      Parameters:
      ccDescriptor - When set to enabled, generates captionServiceDescriptor in PMT.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • ccDescriptor

      M2tsSettings.Builder ccDescriptor(M2tsCcDescriptor ccDescriptor)
      When set to enabled, generates captionServiceDescriptor in PMT.
      Parameters:
      ccDescriptor - When set to enabled, generates captionServiceDescriptor in PMT.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • dvbNitSettings

      M2tsSettings.Builder dvbNitSettings(DvbNitSettings dvbNitSettings)
      Inserts DVB Network Information Table (NIT) at the specified table repetition interval.
      Parameters:
      dvbNitSettings - Inserts DVB Network Information Table (NIT) at the specified table repetition interval.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • dvbNitSettings

      default M2tsSettings.Builder dvbNitSettings(Consumer<DvbNitSettings.Builder> dvbNitSettings)
      Inserts DVB Network Information Table (NIT) at the specified table repetition interval. 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)
      Inserts DVB Service Description Table (SDT) at the specified table repetition interval.
      Parameters:
      dvbSdtSettings - Inserts DVB Service Description Table (SDT) at the specified table repetition interval.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • dvbSdtSettings

      default M2tsSettings.Builder dvbSdtSettings(Consumer<DvbSdtSettings.Builder> dvbSdtSettings)
      Inserts DVB Service Description Table (SDT) at the specified table repetition interval. 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(String dvbSubPids)
      Packet Identifier (PID) for input source DVB Subtitle data to this output. Multiple values are accepted, and can be entered in ranges and/or by comma separation. Can be entered as decimal or hexadecimal values. Each PID specified must be in the range of 32 (or 0x20)..8182 (or 0x1ff6).
      Parameters:
      dvbSubPids - Packet Identifier (PID) for input source DVB Subtitle data to this output. Multiple values are accepted, and can be entered in ranges and/or by comma separation. Can be entered as decimal or hexadecimal values. Each PID specified must be in the range of 32 (or 0x20)..8182 (or 0x1ff6).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • dvbTdtSettings

      M2tsSettings.Builder dvbTdtSettings(DvbTdtSettings dvbTdtSettings)
      Inserts DVB Time and Date Table (TDT) at the specified table repetition interval.
      Parameters:
      dvbTdtSettings - Inserts DVB Time and Date Table (TDT) at the specified table repetition interval.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • dvbTdtSettings

      default M2tsSettings.Builder dvbTdtSettings(Consumer<DvbTdtSettings.Builder> dvbTdtSettings)
      Inserts DVB Time and Date Table (TDT) at the specified table repetition interval. 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(String dvbTeletextPid)
      Packet Identifier (PID) for input source DVB Teletext data to this output. Can be entered as a decimal or hexadecimal value. Valid values are 32 (or 0x20)..8182 (or 0x1ff6).
      Parameters:
      dvbTeletextPid - Packet Identifier (PID) for input source DVB Teletext data to this output. Can be entered as a decimal or hexadecimal value. Valid values are 32 (or 0x20)..8182 (or 0x1ff6).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • ebif

      If set to passthrough, passes any EBIF data from the input source to this output.
      Parameters:
      ebif - If set to passthrough, passes any EBIF data from the input source to this output.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • ebif

      If set to passthrough, passes any EBIF data from the input source to this output.
      Parameters:
      ebif - If set to passthrough, passes any EBIF data from the input source to this output.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • ebpAudioInterval

      M2tsSettings.Builder ebpAudioInterval(String ebpAudioInterval)
      When videoAndFixedIntervals is selected, 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. Only available when EBP Cablelabs segmentation markers are selected. Partitions 1 and 2 will always follow the video interval.
      Parameters:
      ebpAudioInterval - When videoAndFixedIntervals is selected, 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. Only available when EBP Cablelabs segmentation markers are selected. Partitions 1 and 2 will always follow the video interval.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • ebpAudioInterval

      M2tsSettings.Builder ebpAudioInterval(M2tsAudioInterval ebpAudioInterval)
      When videoAndFixedIntervals is selected, 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. Only available when EBP Cablelabs segmentation markers are selected. Partitions 1 and 2 will always follow the video interval.
      Parameters:
      ebpAudioInterval - When videoAndFixedIntervals is selected, 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. Only available when EBP Cablelabs segmentation markers are selected. Partitions 1 and 2 will always follow the video interval.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • ebpLookaheadMs

      M2tsSettings.Builder ebpLookaheadMs(Integer ebpLookaheadMs)
      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:
      ebpLookaheadMs - 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.
    • ebpPlacement

      M2tsSettings.Builder ebpPlacement(String ebpPlacement)
      Controls placement of EBP on Audio PIDs. If set to videoAndAudioPids, EBP markers will be placed on the video PID and all audio PIDs. If set to videoPid, EBP markers will be placed on only the video PID.
      Parameters:
      ebpPlacement - Controls placement of EBP on Audio PIDs. If set to videoAndAudioPids, EBP markers will be placed on the video PID and all audio PIDs. If set to videoPid, EBP markers will be placed on only the video PID.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • ebpPlacement

      M2tsSettings.Builder ebpPlacement(M2tsEbpPlacement ebpPlacement)
      Controls placement of EBP on Audio PIDs. If set to videoAndAudioPids, EBP markers will be placed on the video PID and all audio PIDs. If set to videoPid, EBP markers will be placed on only the video PID.
      Parameters:
      ebpPlacement - Controls placement of EBP on Audio PIDs. If set to videoAndAudioPids, EBP markers will be placed on the video PID and all audio PIDs. If set to videoPid, EBP markers will be placed on only the video PID.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • ecmPid

      M2tsSettings.Builder ecmPid(String ecmPid)
      This field is unused and deprecated.
      Parameters:
      ecmPid - This field is unused and deprecated.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • esRateInPes

      M2tsSettings.Builder esRateInPes(String esRateInPes)
      Include or exclude the ES Rate field in the PES header.
      Parameters:
      esRateInPes - Include or exclude 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)
      Include or exclude the ES Rate field in the PES header.
      Parameters:
      esRateInPes - Include or exclude 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:
    • etvPlatformPid

      M2tsSettings.Builder etvPlatformPid(String etvPlatformPid)
      Packet Identifier (PID) for input source ETV Platform data to this output. Can be entered as a decimal or hexadecimal value. Valid values are 32 (or 0x20)..8182 (or 0x1ff6).
      Parameters:
      etvPlatformPid - Packet Identifier (PID) for input source ETV Platform data to this output. Can be entered as a decimal or hexadecimal value. Valid values are 32 (or 0x20)..8182 (or 0x1ff6).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • etvSignalPid

      M2tsSettings.Builder etvSignalPid(String etvSignalPid)
      Packet Identifier (PID) for input source ETV Signal data to this output. Can be entered as a decimal or hexadecimal value. Valid values are 32 (or 0x20)..8182 (or 0x1ff6).
      Parameters:
      etvSignalPid - Packet Identifier (PID) for input source ETV Signal data to this output. Can be entered as a decimal or hexadecimal value. Valid values are 32 (or 0x20)..8182 (or 0x1ff6).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • 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.
    • klv

      If set to passthrough, passes any KLV data from the input source to this output.
      Parameters:
      klv - If set to passthrough, passes any KLV data from the input source to this output.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • klv

      If set to passthrough, passes any KLV data from the input source to this output.
      Parameters:
      klv - If set to passthrough, passes any KLV data from the input source to this output.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • klvDataPids

      M2tsSettings.Builder klvDataPids(String klvDataPids)
      Packet Identifier (PID) for input source KLV data to this output. Multiple values are accepted, and can be entered in ranges and/or by comma separation. Can be entered as decimal or hexadecimal values. Each PID specified must be in the range of 32 (or 0x20)..8182 (or 0x1ff6).
      Parameters:
      klvDataPids - Packet Identifier (PID) for input source KLV data to this output. Multiple values are accepted, and can be entered in ranges and/or by comma separation. Can be entered as decimal or hexadecimal values. Each PID specified must be in the range of 32 (or 0x20)..8182 (or 0x1ff6).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • nielsenId3Behavior

      M2tsSettings.Builder nielsenId3Behavior(String nielsenId3Behavior)
      If set to passthrough, 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:
      nielsenId3Behavior - If set to passthrough, 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:
    • nielsenId3Behavior

      M2tsSettings.Builder nielsenId3Behavior(M2tsNielsenId3Behavior nielsenId3Behavior)
      If set to passthrough, 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:
      nielsenId3Behavior - If set to passthrough, 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. Valid values are 0, 10..1000.
      Parameters:
      patInterval - The number of milliseconds between instances of this table in the output transport stream. Valid values are 0, 10..1000.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • pcrControl

      M2tsSettings.Builder pcrControl(String pcrControl)
      When set to pcrEveryPesPacket, a Program Clock Reference value is inserted for every Packetized Elementary Stream (PES) header. This parameter is effective only when the PCR PID is the same as the video or audio elementary stream.
      Parameters:
      pcrControl - When set to pcrEveryPesPacket, a Program Clock Reference value is inserted for every Packetized Elementary Stream (PES) header. This parameter 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 pcrEveryPesPacket, a Program Clock Reference value is inserted for every Packetized Elementary Stream (PES) header. This parameter is effective only when the PCR PID is the same as the video or audio elementary stream.
      Parameters:
      pcrControl - When set to pcrEveryPesPacket, a Program Clock Reference value is inserted for every Packetized Elementary Stream (PES) header. This parameter 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:
    • pcrPeriod

      M2tsSettings.Builder pcrPeriod(Integer pcrPeriod)
      Maximum time in milliseconds between Program Clock Reference (PCRs) inserted into the transport stream.
      Parameters:
      pcrPeriod - Maximum time in milliseconds between Program Clock Reference (PCRs) inserted into the transport stream.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • pcrPid

      M2tsSettings.Builder pcrPid(String pcrPid)
      Packet Identifier (PID) of the Program Clock Reference (PCR) in the transport stream. When no value is given, the encoder will assign the same value as the Video PID. Can be entered as a decimal or hexadecimal value. Valid values are 32 (or 0x20)..8182 (or 0x1ff6).
      Parameters:
      pcrPid - Packet Identifier (PID) of the Program Clock Reference (PCR) in the transport stream. When no value is given, the encoder will assign the same value as the Video PID. Can be entered as a decimal or hexadecimal value. Valid values are 32 (or 0x20)..8182 (or 0x1ff6).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • pmtInterval

      M2tsSettings.Builder pmtInterval(Integer pmtInterval)
      The number of milliseconds between instances of this table in the output transport stream. Valid values are 0, 10..1000.
      Parameters:
      pmtInterval - The number of milliseconds between instances of this table in the output transport stream. Valid values are 0, 10..1000.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • pmtPid

      M2tsSettings.Builder pmtPid(String pmtPid)
      Packet Identifier (PID) for the Program Map Table (PMT) in the transport stream. Can be entered as a decimal or hexadecimal value. Valid values are 32 (or 0x20)..8182 (or 0x1ff6).
      Parameters:
      pmtPid - Packet Identifier (PID) for the Program Map Table (PMT) in the transport stream. Can be entered as a decimal or hexadecimal value. Valid values are 32 (or 0x20)..8182 (or 0x1ff6).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • programNum

      M2tsSettings.Builder programNum(Integer programNum)
      The value of the program number field in the Program Map Table.
      Parameters:
      programNum - The value of the program number field in the Program Map Table.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • rateMode

      M2tsSettings.Builder rateMode(String rateMode)
      When vbr, does not insert null packets into transport stream to fill specified bitrate. The bitrate setting acts as the maximum bitrate when vbr is set.
      Parameters:
      rateMode - When vbr, does not insert null packets into transport stream to fill specified bitrate. The bitrate setting acts as the maximum bitrate when vbr is set.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • rateMode

      M2tsSettings.Builder rateMode(M2tsRateMode rateMode)
      When vbr, does not insert null packets into transport stream to fill specified bitrate. The bitrate setting acts as the maximum bitrate when vbr is set.
      Parameters:
      rateMode - When vbr, does not insert null packets into transport stream to fill specified bitrate. The bitrate setting acts as the maximum bitrate when vbr is set.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • scte27Pids

      M2tsSettings.Builder scte27Pids(String scte27Pids)
      Packet Identifier (PID) for input source SCTE-27 data to this output. Multiple values are accepted, and can be entered in ranges and/or by comma separation. Can be entered as decimal or hexadecimal values. Each PID specified must be in the range of 32 (or 0x20)..8182 (or 0x1ff6).
      Parameters:
      scte27Pids - Packet Identifier (PID) for input source SCTE-27 data to this output. Multiple values are accepted, and can be entered in ranges and/or by comma separation. Can be entered as decimal or hexadecimal values. Each PID specified must be in the range of 32 (or 0x20)..8182 (or 0x1ff6).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • scte35Control

      M2tsSettings.Builder scte35Control(String scte35Control)
      Optionally pass SCTE-35 signals from the input source to this output.
      Parameters:
      scte35Control - Optionally pass SCTE-35 signals from the input source to this output.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • scte35Control

      M2tsSettings.Builder scte35Control(M2tsScte35Control scte35Control)
      Optionally pass SCTE-35 signals from the input source to this output.
      Parameters:
      scte35Control - Optionally pass SCTE-35 signals from the input source to this output.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • scte35Pid

      M2tsSettings.Builder scte35Pid(String scte35Pid)
      Packet Identifier (PID) of the SCTE-35 stream in the transport stream. Can be entered as a decimal or hexadecimal value. Valid values are 32 (or 0x20)..8182 (or 0x1ff6).
      Parameters:
      scte35Pid - Packet Identifier (PID) of the SCTE-35 stream in the transport stream. Can be entered as a decimal or hexadecimal value. Valid values are 32 (or 0x20)..8182 (or 0x1ff6).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • segmentationMarkers

      M2tsSettings.Builder segmentationMarkers(String segmentationMarkers)
      Inserts segmentation markers at each segmentationTime period. raiSegstart sets the Random Access Indicator bit in the adaptation field. raiAdapt sets the RAI bit and adds the current timecode in the private data bytes. psiSegstart 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. ebpLegacy adds Encoder Boundary Point information to the adaptation field using a legacy proprietary format.
      Parameters:
      segmentationMarkers - Inserts segmentation markers at each segmentationTime period. raiSegstart sets the Random Access Indicator bit in the adaptation field. raiAdapt sets the RAI bit and adds the current timecode in the private data bytes. psiSegstart 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. ebpLegacy 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 segmentationTime period. raiSegstart sets the Random Access Indicator bit in the adaptation field. raiAdapt sets the RAI bit and adds the current timecode in the private data bytes. psiSegstart 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. ebpLegacy adds Encoder Boundary Point information to the adaptation field using a legacy proprietary format.
      Parameters:
      segmentationMarkers - Inserts segmentation markers at each segmentationTime period. raiSegstart sets the Random Access Indicator bit in the adaptation field. raiAdapt sets the RAI bit and adds the current timecode in the private data bytes. psiSegstart 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. ebpLegacy 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 "resetCadence" 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 $segmentationTime seconds. When a segmentation style of "maintainCadence" 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 $segmentationTime 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 "resetCadence" 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 $segmentationTime seconds. When a segmentation style of "maintainCadence" 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 $segmentationTime 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 "resetCadence" 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 $segmentationTime seconds. When a segmentation style of "maintainCadence" 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 $segmentationTime 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 "resetCadence" 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 $segmentationTime seconds. When a segmentation style of "maintainCadence" 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 $segmentationTime 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)
      The length in seconds of each segment. Required unless markers is set to _none_.
      Parameters:
      segmentationTime - 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.
    • timedMetadataBehavior

      M2tsSettings.Builder timedMetadataBehavior(String timedMetadataBehavior)
      When set to passthrough, timed metadata will be passed through from input to output.
      Parameters:
      timedMetadataBehavior - When set to passthrough, timed metadata will be passed through from input to output.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • timedMetadataBehavior

      M2tsSettings.Builder timedMetadataBehavior(M2tsTimedMetadataBehavior timedMetadataBehavior)
      When set to passthrough, timed metadata will be passed through from input to output.
      Parameters:
      timedMetadataBehavior - When set to passthrough, timed metadata will be passed through from input to output.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • timedMetadataPid

      M2tsSettings.Builder timedMetadataPid(String timedMetadataPid)
      Packet Identifier (PID) of the timed metadata stream in the transport stream. Can be entered as a decimal or hexadecimal value. Valid values are 32 (or 0x20)..8182 (or 0x1ff6).
      Parameters:
      timedMetadataPid - Packet Identifier (PID) of the timed metadata stream in the transport stream. Can be entered as a decimal or hexadecimal value. Valid values are 32 (or 0x20)..8182 (or 0x1ff6).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • transportStreamId

      M2tsSettings.Builder transportStreamId(Integer transportStreamId)
      The value of the transport stream ID field in the Program Map Table.
      Parameters:
      transportStreamId - The value of the transport stream ID field in the Program Map Table.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • videoPid

      M2tsSettings.Builder videoPid(String videoPid)
      Packet Identifier (PID) of the elementary video stream in the transport stream. Can be entered as a decimal or hexadecimal value. Valid values are 32 (or 0x20)..8182 (or 0x1ff6).
      Parameters:
      videoPid - Packet Identifier (PID) of the elementary video stream in the transport stream. Can be entered as a decimal or hexadecimal value. Valid values are 32 (or 0x20)..8182 (or 0x1ff6).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • scte35PrerollPullupMilliseconds

      M2tsSettings.Builder scte35PrerollPullupMilliseconds(Double scte35PrerollPullupMilliseconds)
      Defines the amount SCTE-35 preroll will be increased (in milliseconds) on the output. Preroll is the amount of time between the presence of a SCTE-35 indication in a transport stream and the PTS of the video frame it references. Zero means don't add pullup (it doesn't mean set the preroll to zero). Negative pullup is not supported, which means that you can't make the preroll shorter. Be aware that latency in the output will increase by the pullup amount.
      Parameters:
      scte35PrerollPullupMilliseconds - Defines the amount SCTE-35 preroll will be increased (in milliseconds) on the output. Preroll is the amount of time between the presence of a SCTE-35 indication in a transport stream and the PTS of the video frame it references. Zero means don't add pullup (it doesn't mean set the preroll to zero). Negative pullup is not supported, which means that you can't make the preroll shorter. Be aware that latency in the output will increase by the pullup amount.
      Returns:
      Returns a reference to this object so that method calls can be chained together.