Auto record specific streams

This module allows you to specify a comma delimited list of streams (as a property) and it will auto record them when published (Requires Wowza Streaming Engine 4.1.1 or greater).  You can specify a variety of other parameters as well.  Here are the main configuration items (Only required parameter is autoRecordStreams):

Define which stream names to record:

<Property>
<Name>autoRecordStreams</Name>
<Value>stream1,stream2</Value>
</Property>

Define the record type (mp4 or flv default is mp4):

<Property>
<Name>autoRecordType</Name>
<Value>mp4</Value>
</Property>

Define whether it’ll overwrite or append (default overwrite):

<Property>
<Name>autoRecordOverwrite</Name>
<Value>append</Value>
</Property>

Define the segment type (size, schedule, none – default size):

<Property>
<Name>autoRecordSegment</Name>
<Value>size</Value>
</Property>

If segment=size, define the size (Default 3000L);

<Property>
<Name>autoRecordSegmentSize</Name>
<Value>30000</Value>
</Property>

If segment=schedule, define the size (Default 0 1 * * * *);

<Property>
<Name>autoRecordSegmentSchedule</Name>
<Value>0 1 * * * *</Value>
</Property>

If segment=duration, define the size (Default 3000L);

<Property>
<Name>autoRecordSegmentDuration</Name>
<Value>3600000</Value>
</Property>

Set the date format:

<Property>
<Name>autoRecordDateFormat</Name>
<Value>yyyyMMddHHmmss</Value>
</Property>

Lastly, define the module in your Application.xml Application/Modules section:

<Module>
<Name>AutoRecordStreams</Name>
<Description>AutoRecordStreams</Description>
<Class>guru.thewowza.AutoRecordStreams</Class>
</Module>

Download the module here: AutoRecordStreamsProject


Comments are closed.