Buffer input
This input type is both used for push- and pull-based streams. It provides a buffer for live media data. The push://[host][@password] style source allows all enabled protocols that support push input to accept a push into MistServer, where you can accept incoming streams from everyone, based on a set password, and/or use hostname/IP whitelisting.
Buffer Core
Every input within MistServer requires a Stream name
and Source
to understand what these mean exactly we recommend reading up on Stream settings
Buffer Support Matrix
Category | Support |
---|---|
Input URLs | push://* ,buffer:* |
Buffer 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 | --buffer |
Cut time (ms) | Any timestamps before this will be cut from the live buffer. | Number (unsigned integer) | 0 | cut | --cut |
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 | --resume |
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 |
Resume support | If enabled, the buffer will linger after source disconnect to allow resuming the stream later. If disabled, the buffer will instantly close on source disconnect. | 0 = Disabled 1 = Enabled | 0 | resume | --resume |
Segment size (ms) | Target time duration in milliseconds for segments. | Number (unsigned integer) | 1900 | segmentsize | --segment-size |