Red5 Documentation

Codec Configuration

red5pro-activation.xml

As of Red5 Pro version 14.0, additional codecs can be configured in the red5pro-activation.xml file. This allows for the prioritization of codecs for both publishing and subscribing. Changing these settings should only be done if you have specific requirements that require that only certain codec support be enabled. The default codec configuration is as follows:

    <bean class="org.springframework.beans.factory.config.MethodInvokingFactoryBean">
        <property name="staticMethod">
            <value>com.red5pro.plugin.Red5ProPlugin.setProStreamVideoCodecs</value>
        </property>
        <!-- List of video codecs which have AMF container support -->
        <property name="arguments">
            <list>
                <value>H264</value>
                <value>H265</value>
                <!--
                <value>VP8</value>
                <value>VP9</value>
                <value>AV1</value>
                -->
            </list>
        </property>
    </bean>

webrtc-plugin.properties

In webrtc-plugin.properties the priority of the codecs can be configured. Changing these settings should only be done if you have specific requirements that change the priority of the codecs. The default priority configuration is as follows:

# available video codecs (identified by enum name H264,H265,VP8,AV1 etc)
rtc.video.codecs=H264,H265