Skip to main content

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

CategorySupport
Input URLspush://*,
buffer:*

Buffer 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)50000DVR--buffer
Cut time (ms)Any timestamps before this will be cut from the live buffer.Number (unsigned integer)0cut--cut
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)45000maxkeepaway--resume
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
Resume supportIf 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
0resume--resume
Segment size (ms)Target time duration in milliseconds for segments.Number (unsigned integer)1900segmentsize--segment-size