Hi all.
I’m having a problem recording a live stream. I want the recorder to append rather than version files when a new stream is received. Despite setting the ‘streamRecorderVersioningOption’ to ‘append’ this doesn’t seem to work.
This is is my application XML:
<?xml version="1.0" encoding="UTF-8"?>
<Root version="1">
<Application>
<Name>liverecord</Name>
<AppType>Live</AppType>
<Description></Description>
<Connections>
<AutoAccept>true</AutoAccept>
<AllowDomains></AllowDomains>
</Connections>
<Streams>
<StreamType>live-record</StreamType>
<StorageDir>${com.wowza.wms.AppHome}/applications/liverecord</StorageDir>
<LiveStreamPacketizers></LiveStreamPacketizers>
</Streams>
<Transcoder>
<!-- To turn on transcoder set to: transcoder -->
<LiveStreamTranscoder>transcoder</LiveStreamTranscoder>
<!-- [templatename].xml or ${SourceStreamName}.xml -->
<Templates>audioonly.xml</Templates>
<ProfileDir>${com.wowza.wms.context.VHostConfigHome}/transcoder/profiles</ProfileDir>
<TemplateDir>${com.wowza.wms.context.VHostConfigHome}/transcoder/templates</TemplateDir>
<Properties>
</Properties>
</Transcoder>
<SharedObjects>
<StorageDir></StorageDir>
</SharedObjects>
<Client>
<IdleFrequency>-1</IdleFrequency>
<Access>
<StreamReadAccess>*</StreamReadAccess>
<StreamWriteAccess>*</StreamWriteAccess>
<StreamAudioSampleAccess></StreamAudioSampleAccess>
<StreamVideoSampleAccess></StreamVideoSampleAccess>
<SharedObjectReadAccess>*</SharedObjectReadAccess>
<SharedObjectWriteAccess>*</SharedObjectWriteAccess>
</Access>
</Client>
<RTP>
<!-- RTP/Authentication/Methods defined in Authentication.xml. Default setup includes; none, basic, digest -->
<Authentication>
<Method>digest</Method>
<PlayMethod>block</PlayMethod>
</Authentication>
<!-- RTP/AVSyncMethod. Valid values are: senderreport, systemclock, rtptimecode -->
<AVSyncMethod>senderreport</AVSyncMethod>
<MaxRTCPWaitTime>12000</MaxRTCPWaitTime>
<Properties>
</Properties>
</RTP>
<LiveStreamPacketizer>
<!-- Properties defined here will override any properties defined in conf/LiveStreamPacketizers.xml for any LiveStreamPacketizers loaded by this applications -->
<Properties>
</Properties>
</LiveStreamPacketizer>
<HTTPStreamer>
<!-- Properties defined here will override any properties defined in conf/HTTPStreamers.xml for any HTTPStreamer loaded by this applications -->
<Properties>
</Properties>
</HTTPStreamer>
<MediaCaster>
<RTP>
<RTSP>
<!-- udp, interleave -->
<RTPTransportMode>interleave</RTPTransportMode>
</RTSP>
</RTP>
<!-- Properties defined here will override any properties defined in conf/MediaCasters.xml for any MediaCasters loaded by this application -->
<Properties>
</Properties>
</MediaCaster>
<MediaReader>
<Properties>
</Properties>
</MediaReader>
<Modules>
<Module>
<Name>base</Name>
<Description>Base</Description>
<Class>com.wowza.wms.module.ModuleCore</Class>
</Module>
<Module>
<Name>properties</Name>
<Description>Properties</Description>
<Class>com.wowza.wms.module.ModuleProperties</Class>
</Module>
<Module>
<Name>logging</Name>
<Description>Client Logging</Description>
<Class>com.wowza.wms.module.ModuleClientLogging</Class>
</Module>
<Module>
<Name>flvplayback</Name>
<Description>FLVPlayback</Description>
<Class>com.wowza.wms.module.ModuleFLVPlayback</Class>
</Module>
<Module>
<Name>ModulePushPublish</Name>
<Description>ModulePushPublish</Description>
<Class>com.wowza.wms.pushpublish.module.ModulePushPublish</Class>
</Module>
</Modules>
<Properties>
</Properties>
<TimedText>
<Properties>
</Properties>
<VODTimedTextProviders></VODTimedTextProviders>
</TimedText>
<HTTPStreamers></HTTPStreamers>
<StreamRecorder>
<Properties>
<Property>
<Name>streamRecorderVersioningOption</Name>
<Value>append</Value>
<Type>String</Type>
</Property>
</Properties>
</StreamRecorder>
</Application>
</Root>
And this is the output I’m getting when restarting a ‘test’ stream a couple of times:
-rwxr--r-- 1 nobody nobody 1125544 Mar 4 12:39 test_aac_0.mp4
-rwxr--r-- 1 nobody nobody 1310054 Mar 4 12:39 test_0.mp4
-rwxr--r-- 1 nobody nobody 1619786 Mar 4 12:39 test_aac_1.mp4
-rwxr--r-- 1 nobody nobody 1882723 Mar 4 12:39 test_1.mp4
-rwxr--r-- 1 nobody nobody 1316703 Mar 4 12:40 test.mp4
-rwxr--r-- 1 nobody nobody 1089809 Mar 4 12:40 test_aac.mp4
I’m using Wowza Streaming Engine 4.0.1
Any idea what I’m doing wrong?
Thanks,
Henry