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
Category | Support |
---|---|
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 Codecs | AAC ,AC3 ,MP2 ,opus |
Video Codecs | H264 ,HEVC ,MPEG2 |
Subtitle | None |
Metadata | None |
Passthrough | rawts |
TS Optional configurations
Option | Description | Type | Default | API | Commandline |
---|---|---|---|---|---|
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) | 50000 | DVR | undefined |
MPEG Data track parser | Which parser to use for data tracks | = None / disabled json = 2b size-prepended JSON | datatrack | --datatrack | |
debug | The debug level at which messages need to be printed. | debug | Inherited from parent process | debug | --debug |
Fallback stream | Alternative stream to load for playback when there is no active broadcast | String | fallback_stream | undefined | |
Maximum live keep-away distance | Maximum distance in milliseconds to fall behind the live point for stable playback. | Number (unsigned integer) | 45000 | maxkeepaway | undefined |
Memory page timeout | For 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 longer | Number (unsigned integer) | 15 | pagetimeout | --pagetimeout |
Raw input mode | Enable raw MPEG-TS passthrough mode | Flag | Unset | raw | --raw |
Simulated Live | Make this input run as a simulated live stream | Flag | Unset | realtime | --realtime |
Segment size (ms) | Target time duration in milliseconds for segments. | Number (unsigned integer) | 1900 | segmentsize | undefined |
Always on | Automatically 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 | Boolean | false | always_on | undefined |