To resolve unaligned video and audio in a Wowza Streaming Engine™ media server software live application stream, create and configure a server-side sort buffer.
You can configure the sort buffer properties in Wowza Streaming Engine Manager or by editing [install-dir]/conf/[application]/Application.xml. If you make changes to Application.xml, any supported settings are displayed in Wowza Streaming Engine Manager the next time it's started.
Configure a server-side sort buffer in Wowza Streaming Engine Manager
- Click the Applications tab at the top of the page.
- In the Applications contents panel, click the name of your live application.
- On the application page Properties tab, click Streams in the Quick Links bar.
Note: Access to the Properties tab is limited to administrators with advanced permissions. For more information, see Manage credentials. - Click Edit in the Streams properties area.
- Select the Enabled check box next to sortPackets and set the value to true.
- Select the Enabled check box next to sortBufferSize and set the value to 750.
- Click Save, and then restart the application when prompted to apply the changes.
Configure a server-side sort buffer in Application.xml
- Use a text editor to open the [install-dir]/conf/[application]/Application.xml file for your live application and add the following property to the <Streams>/<Properties> container. Be sure to add the properties to the correct <Properties> container in Application.xml as there are several in the file.
<Property> <Name>sortPackets</Name> <Value>true</Value> <Type>Boolean</Type> </Property> <Property> <Name>sortBufferSize</Name> <Value>750</Value> <Type>Integer</Type> </Property>
- Restart Wowza Streaming Engine to apply the changes.
Verify the sort buffer configuration
After the stream is first published, check the access log file in [install-dir]/logs to verify that the sorting buffer is configured properly. You should see a statement that looks like this:
sortPackets[1]: sortBufferSize:750
You can also search for the keyword sortPackets in the Logs feature in Wowza Streaming Engine Manager to confirm proper configuration.
If you don't see this in the logs, make sure that you put the properties in the correct <Properties> container and that they're not commented out.