Stream Recording - Storm Streaming Server

The Storm streaming server allows for the recording of incoming streams in MP4 (fMP4) format. Recording can be configured automatically for each published stream, but it can also be enabled from the control panel.

Automatic Recording

Automatic recording is possible for live and origin type applications. In both cases, it is necessary to activate the option in the preferences.xml file and configure it appropriately:

                        
<RecordingSettings enabled="true">
    <SavePath>/Users/szymon/Desktop</SavePath>
    <CacheSize>1</CacheSize>
    <MaxFileSize>15</MaxFileSize>
    <MaxFileDuration>0</MaxFileDuration>
    <RemoveOldFiles>true</RemoveOldFiles>
    <MaxStorageSize>1500</MaxStorageSize>
</RecordingSettings>
                    

Configuration Explanation

RecordingSettings:enabledDefines whenever recording is enabled.
SavePathPath were MP4 files should be saved.
CacheSizeDefines how much of a video stream should be kept in memory before being flushed to a file.
MaxStorageSizeStorm will calculate sum of all saved video files in particular folder and either stop saving new ones, or it'll start overwriting older files if RemoveOldFiles is set to true. This parameter is optional and if not present or set to 0 no limitation will be added.
RemoveOldFilesIf set to true and combined with MaxStorageSize, older video files will be removed to make space for new ones.
MaxFileSizeMaximum video file size. If a stream reaches this size, it will be split into additional files. This parameter is optional, and if not present or set to zero, no limit will be in effect.
MaxFileDurationMaximum video file duration (time). If a stream exceeds this duration, it will be split into multiple files. This parameter is optional, and if not specified or set to zero, there will be no limit in effect.
Table 1. Configuration Explanation table

Manual Recording

In cases where the automatic recording option is not enabled, it is possible to manually start recording a stream. To do this, we need to log into the control panel of the Storm Streaming Server - this is available at http://.../cpanel (you must select a host with HTTP support and optionally specify a port). After logging in, go to /stream-list and select the stream you are interested in. Then from the list of options, click "Start recording". The recording settings will be based on the parameters described in <RecordingSettings>, even if the option itself is not enabled.

Support Needed?

Create a free ticket and our support team will provide you necessary assistance.