Skip to main content

TS input

This input allows you to stream MPEG2-TS data from static files (/.ts), streamed files or named pipes (stream://.ts), streamed over HTTP (http(s)://.ts, http(s)-ts://), standard input (ts-exec:), or multicast/unicast UDP sockets (tsudp://).

TS Core

Every input within MistServer requires a Stream name and Source to understand what these mean exactly we recommend reading up on Stream settings

TS Support Matrix

CategorySupport
Input URLs/*.ts,
/*.m2ts,
stream://*.ts,
tsudp://*,
ts-exec:*,
http://*.ts,
http-ts://*,
https://*.ts,
https-ts://*,
s3+http://*.ts,
s3+https://*.ts,
ts:*
Audio CodecsAAC,AC3,MP2,opus
Video CodecsH264,HEVC,MPEG2
SubtitleNone
MetadataNone
Passthroughrawts

TS Optional configurations

OptionDescriptionTypeDefaultAPICommandline
Buffer time (ms)The target available buffer time for this live stream, in milliseconds. This is the time available to seek around in, and will automatically be extended to fit whole keyframes as well as the minimum duration needed for stable playback.Number (unsigned integer)50000DVRundefined
MPEG Data track parserWhich parser to use for data tracks = None / disabled
json = 2b size-prepended JSON
datatrack--datatrack
debugThe debug level at which messages need to be printed.debugInherited from parent processdebug--debug
Fallback streamAlternative stream to load for playback when there is no active broadcastStringfallback_streamundefined
Maximum live keep-away distanceMaximum distance in milliseconds to fall behind the live point for stable playback.Number (unsigned integer)45000maxkeepawayundefined
Memory page timeoutFor bufferless or live inputs like HLS, set the timeout in seconds for old, inactive pages to be deleted. A longer value results in more memory usage, but ensures that recently buffered data stays in memory for longerNumber (unsigned integer)15pagetimeout--pagetimeout
Raw input modeEnable raw MPEG-TS passthrough modeFlagUnsetraw--raw
Simulated LiveMake this input run as a simulated live streamFlagUnsetrealtime--realtime
Segment size (ms)Target time duration in milliseconds for segments.Number (unsigned integer)1900segmentsizeundefined
Always onAutomatically starts this stream, regardless of viewers requesting it or not. Only available if the source is set to one of:
stream://*.ts,
tsudp://*,
ts-exec:*,
http://*.ts,
http-ts://*,
https://*.ts,
https-ts://*,
s3+http://*.ts,
s3+https://*.ts
Booleanfalsealways_onundefined