M2tsSettings class
M2ts Settings
Constructors
- M2tsSettings({M2tsAbsentInputAudioBehavior? absentInputAudioBehavior, M2tsArib? arib, String? aribCaptionsPid, M2tsAribCaptionsPidControl? aribCaptionsPidControl, M2tsAudioBufferModel? audioBufferModel, int? audioFramesPerPes, String? audioPids, M2tsAudioStreamType? audioStreamType, int? bitrate, M2tsBufferModel? bufferModel, M2tsCcDescriptor? ccDescriptor, DvbNitSettings? dvbNitSettings, DvbSdtSettings? dvbSdtSettings, String? dvbSubPids, DvbTdtSettings? dvbTdtSettings, String? dvbTeletextPid, M2tsEbifControl? ebif, M2tsAudioInterval? ebpAudioInterval, int? ebpLookaheadMs, M2tsEbpPlacement? ebpPlacement, String? ecmPid, M2tsEsRateInPes? esRateInPes, String? etvPlatformPid, String? etvSignalPid, double? fragmentTime, M2tsKlv? klv, String? klvDataPids, M2tsNielsenId3Behavior? nielsenId3Behavior, double? nullPacketBitrate, int? patInterval, M2tsPcrControl? pcrControl, int? pcrPeriod, String? pcrPid, int? pmtInterval, String? pmtPid, int? programNum, M2tsRateMode? rateMode, String? scte27Pids, M2tsScte35Control? scte35Control, String? scte35Pid, M2tsSegmentationMarkers? segmentationMarkers, M2tsSegmentationStyle? segmentationStyle, double? segmentationTime, M2tsTimedMetadataBehavior? timedMetadataBehavior, String? timedMetadataPid, int? transportStreamId, String? videoPid})
-
M2tsSettings.fromJson(Map<
String, dynamic> json) -
factory
Properties
- absentInputAudioBehavior → M2tsAbsentInputAudioBehavior?
-
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.
final
- arib → M2tsArib?
-
When set to enabled, uses ARIB-compliant field muxing and removes video
descriptor.
final
- aribCaptionsPid → String?
-
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).
final
- aribCaptionsPidControl → M2tsAribCaptionsPidControl?
-
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.
final
- audioBufferModel → M2tsAudioBufferModel?
-
When set to dvb, uses DVB buffer model for Dolby Digital audio. When set to
atsc, the ATSC model is used.
final
- audioFramesPerPes → int?
-
The number of audio frames to insert for each PES packet.
final
- audioPids → String?
-
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).
final
- audioStreamType → M2tsAudioStreamType?
-
When set to atsc, uses stream type = 0x81 for AC3 and stream type = 0x87 for
EAC3. When set to dvb, uses stream type = 0x06.
final
- bitrate → int?
-
The output bitrate of the transport stream in bits per second. Setting to 0
lets the muxer automatically determine the appropriate bitrate.
final
- bufferModel → M2tsBufferModel?
-
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.
final
- ccDescriptor → M2tsCcDescriptor?
-
When set to enabled, generates captionServiceDescriptor in PMT.
final
- dvbNitSettings → DvbNitSettings?
-
Inserts DVB Network Information Table (NIT) at the specified table
repetition interval.
final
- dvbSdtSettings → DvbSdtSettings?
-
Inserts DVB Service Description Table (SDT) at the specified table
repetition interval.
final
- dvbSubPids → String?
-
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).
final
- dvbTdtSettings → DvbTdtSettings?
-
Inserts DVB Time and Date Table (TDT) at the specified table repetition
interval.
final
- dvbTeletextPid → String?
-
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).
final
- ebif → M2tsEbifControl?
-
If set to passthrough, passes any EBIF data from the input source to this
output.
final
- ebpAudioInterval → M2tsAudioInterval?
-
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.
final
- ebpLookaheadMs → int?
-
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.
final
- ebpPlacement → M2tsEbpPlacement?
-
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.
final
- ecmPid → String?
-
This field is unused and deprecated.
final
- esRateInPes → M2tsEsRateInPes?
-
Include or exclude the ES Rate field in the PES header.
final
- etvPlatformPid → String?
-
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).
final
- etvSignalPid → String?
-
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).
final
- fragmentTime → double?
-
The length in seconds of each fragment. Only used with EBP markers.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- klv → M2tsKlv?
-
If set to passthrough, passes any KLV data from the input source to this
output.
final
- klvDataPids → String?
-
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).
final
- nielsenId3Behavior → M2tsNielsenId3Behavior?
-
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.
final
- nullPacketBitrate → double?
-
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.
final
- patInterval → int?
-
The number of milliseconds between instances of this table in the output
transport stream. Valid values are 0, 10..1000.
final
- pcrControl → M2tsPcrControl?
-
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.
final
- pcrPeriod → int?
-
Maximum time in milliseconds between Program Clock Reference (PCRs) inserted
into the transport stream.
final
- pcrPid → String?
-
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).
final
- pmtInterval → int?
-
The number of milliseconds between instances of this table in the output
transport stream. Valid values are 0, 10..1000.
final
- pmtPid → String?
-
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).
final
- programNum → int?
-
The value of the program number field in the Program Map Table.
final
- rateMode → M2tsRateMode?
-
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.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scte27Pids → String?
-
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).
final
- scte35Control → M2tsScte35Control?
-
Optionally pass SCTE-35 signals from the input source to this output.
final
- scte35Pid → String?
-
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).
final
- segmentationMarkers → M2tsSegmentationMarkers?
-
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.
final
- segmentationStyle → M2tsSegmentationStyle?
-
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.
final
- segmentationTime → double?
-
The length in seconds of each segment. Required unless markers is set to
none.
final
- timedMetadataBehavior → M2tsTimedMetadataBehavior?
-
When set to passthrough, timed metadata will be passed through from input to
output.
final
- timedMetadataPid → String?
-
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).
final
- transportStreamId → int?
-
The value of the transport stream ID field in the Program Map Table.
final
- videoPid → String?
-
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).
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited