TsCommonOutputSettings

Field

Type

Repeated

Description

encoder

TsCommonOutputSettings.TsEncoder

ts_broadcast_bitrate

int32

first_pmt_pid

OptionalInt

pcr_interval

OptionalInt

PCR interval (broadcast ts - in ms)

table_interval

OptionalInt

PAT/PMT table interval (broadcast ts - in ms)

pcr_delay_ms

OptionalInt

PCR delay in milliseconds - note if this is insufficient the stream will be invalid, beware

audio_frames_per_pes

OptionalInt

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.

cta708_charset

Cta708Charset

Charset used when emitting CTA-708 P16 (16-bit) captions, for producing East-Asian captions in a legacy DBCS rather than Unicode. Defaults to Unicode.

flush_partial_packets

bool

When true, the egress packet queue stops holding a sub-packet tail while it waits for the next chunk to fill a 7 x 188 = 1316-byte payload: at every chunk boundary it sends whatever whole TS packets it has, as a shorter payload. Removes up to 1316-bytes-worth of delay between the muxer and the socket, which on a low-bitrate audio-only stream is tens of milliseconds; costs the extra per-payload headers.

Simple encoder only — rejected with the broadcast encoder, whose whole point is a constant rate the muxer has already paced. No effect on the file output, which does not queue.