How to move recordings from live streams (ModuleMediaWriterFileMover)

This article describes how to use the built-in ModuleMediaWriterFileMover module with the Wowza media server to automatically copy or move files after they have been written/recorded to disk.

To add the module to your application, add the following module definition to the end of the <Modules> list in [install-dir]/conf/[application]/Application.xml:

Note: If you need to control the post-recording process programmatically, you can use IMediaWriterActionNotify.

Then add the following application level properties to the <Properties> container at the bottom of [install-dir]/conf/[application]/Application.xml to control where to copy the file after recording is complete:

<!-- Value should be: mp4 or flv -->
  • fileMoverDestinationPath: The destination path of the file. This property supports the following variables:
    ${com.wowza.wms.context.VHost}: vhost name
    ${com.wowza.wms.context.VHostConfigHome}: vhost folder
    ${com.wowza.wms.context.Application}: application name
    ${com.wowza.wms.context.ApplicationInstance}: appInstance name
    ${com.wowza.wms.context.StreamName}: stream name
  • fileMoverDeleteOriginal: If true, the original file is deleted after it's copied to the new location.
  • fileMoverVersionFile: If true, the target location file is versioned if it exists (if not, it's deleted).
  • fileMoverFileExtension: By default, the file mover uses an appropriate extension for the file type. Uncomment this property to force the extension to be different from the default extension.

Originally Published: 03-28-2011.

If you're having problems or want to discuss this article, post in our forum.