/

Server Configuration


red5-common.xml

The writer post processor used by FLVWriter is configured in the server's common configuration file: (red5pro)/conf/red5-common.xml. The example below displays the configuration with the TranscodePostProcessor (note - this bean exists in the file, you just need to modify & add the writer post processor value):

<bean id="flv.impl" class="org.red5.io.flv.impl.FLV">
  <property name="cache">
    <ref bean="object.cache"/>
  </property>
  <property name="writerPostProcessors">
    <set>
      <value>com.red5pro.media.processor.OrientationPostProcessor</value>
    </set>
  </property>
</bean>

This configuration indicates the orientation writerPostProcessor which implements IPostProcessor, and will be executed after a file is finalized by the FLVWriter.

If you choose to use both the S3UploaderPostProcessor and the OrientationPostProcessor methods, then the bean should look like:

<bean id="flv.impl" class="org.red5.io.flv.impl.FLV">
  <property name="cache">
    <ref bean="object.cache"/>
  </property>
  <property name="writerPostProcessors">
    <set>
      <value>com.red5pro.media.processor.OrientationPostProcessor</value>
      <value>com.red5pro.media.processor.S3UploaderPostProcessor</value>
    </set>
  </property>
</bean>

cloudstorage-plugin.properties

If you are using local (or nfs-mounted) storage for your recordings, then make sure that the {red5pro}/conf/cloudstorage-plugin.properties file has nothing specified for Plugin Services.

# Plugin Services
# for Orientation Postprocessor without cloudstorage
services=

If you are using cloudstorage in addition to post-processing, then comment that line out, and uncomment the AWS S3 or Google Cloud Storage services.

Make sure that the ffmpeg.path is pointing to your ffmpeg install - type in (it will be /usr/bin/ffmpeg if you install ffmpeg per the instructions above).


Additional FFMpeg compilation detail may be found here: Ubuntu FFMpeg Compilation Guide