• How to improve audio on demand MP3 duration accuracy

    This article describes how to improve MP3 duration accuracy.

    Note: In most cases, the built-in duration calculation is sufficient and it's not necessary to add the properties described in this article. Only add the properties if you need precise duration.

    Note: Enabling the properties will have a small effect on performance. If you have large MP3 files, the accuracy of the duration will be more apparent.

    Note: Wowza Media Server™ 3.0.5 (patch 1) or later is required.

    1. Download and install the latest version: Development Builds

    2. To calculate more accurate frame sizes, in Application.xml, add the following properties to the MediaReader/Properties container:
           <!-- Properties defined here will override any properties defined in conf/MediaReaders.xml for any MediaReaders loaded by this applications -->

    The calculateMoreAccurateFrameWindow property instructs Wowza Media Server to sample the first 200 frames for more accurate chunk size information.

    Originally Published: 02-29-2012.

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