TsOutputSettings interface
Signature:
export interface TsOutputSettings
Properties
| Property | Type | Description |
|---|---|---|
number |
(Optional) PES packing of audio frames (where applicable). Lower values reduce audio latency, but increase bandwidth due to encapsulation overhead - interplay with PCR delay applies for larger values. Minimum 1, applicable maximum bounded by byte size of PES packets. If omitted a default packing value will apply, currently default is 16. |
|
(Optional) Character set used when emitting CTA-708 P16 (16-bit) captions — for producing East-Asian captions in a legacy DBCS rather than Unicode. Does not affect Latin/ASCII text. Defaults to |
||
(Optional) TS encoder settings. A broadcast encode specifies a bitrate and will produce a stream with accurate PCR spacing, null padding etc. A simple encode (default) is acceptable for many use cases. |
||
boolean |
(Optional) Send each chunk’s leftover TS packets immediately instead of holding them back until there are enough to fill a whole 7 × 188 = 1316-byte payload. By default an output only ever hands the socket full 1316-byte payloads, so the last few packets of a chunk wait for the next one — and on a stream with a low byte rate, waiting for 1316 bytes takes a while. On audio-only output at 128 kbps it is about 70 ms, whatever TsOutputSettings.audioFramesPerPes is set to, because the wait is for bytes and not for frames. Setting this to Worth setting on a low-bitrate or audio-only output where latency matters; there is little to gain on a stream with real video bitrate, where 1316 bytes arrive in a millisecond or two anyway. Only valid with the |
|
number |
(Optional) Pid to assign as PMT pid (for the first program, if there are multiple), if unspecified a default pid will be chosen |