The settings for your rolling buffers are stored in a separate configuration file. This is so that you can share the rolling buffer configuration between multiple Media Servers . For example, you might have one Media Server writing video to a rolling buffer and another generating playlists.
A default rolling buffer configuration file is included with Media Server in the /encoding/rollingBuffer
folder.
In rollingBuffer.cfg
, you can control the following settings:
Apart from the settings in the [Defaults]
section, do not edit the rolling buffer configuration file in a text editor. To add or modify rolling buffers, use the ACI actions provided by Media Server.
To set the path to the rolling buffer configuration file
[Paths]
section.Ensure that the path to the rolling buffer configuration file is set, for example:
[Paths] RollingBufferConfigPath=./encoding/rollingBuffer/rollingBuffer.cfg
Relative paths must be relative to the Media Server working directory. If you share a rolling buffer configuration file between multiple Media Servers, specify a UNC path.
To configure default settings for rolling buffers
Open the rolling buffer configuration file.
In the [Defaults]
section, set the following parameters:
RootPath
|
The path of the directory to store the rolling buffer files in. Relative paths must be relative to the rolling buffer configuration file. |
MaxFiles
|
The maximum number of files for each rolling buffer. |
MaxFileSizeMB
|
The maximum size in MB for each file. |
MediaSegmentTemplate
|
(Optional) A template to use to construct the URL of every media segment in a playlist. |
VariantSegmentTemplate
|
(Optional) A template to use to construct the URL of every GetPlaylist action that is produced by Media Server. |
For example:
[Defaults] RootPath=C:\VideoRecording\ MaxFiles=10 MaxFileSizeMB=100
For more information about these configuration parameters, refer to the Media Server Reference.
To add a new rolling buffer
Use the ACI action AddStream
, for example:
/action=AddStream&Stream=NewsChannel&MaxFiles=10&MaxFileSize=100
where the Stream
parameter is required and specifies the name of the rolling buffer. The other parameters are optional and override the default rolling buffer settings.
To remove a rolling buffer
This deletes all video that has been stored in the rolling buffer.
Use the ACI action RemoveStream
, for example:
/action=RemoveStream&Stream=NewsChannel
where the Stream
parameter is required and specifies the name of the rolling buffer to remove.
For more information about the actions that you can use to configure rolling buffers, refer to the Media Server Reference.
|