enduredeprecated

Get accurate duration for local or remote audio files, without needing the entire file.

Usage no npm install needed!

<script type="module">
  import endure from 'https://cdn.skypack.dev/endure';
</script>

README

Endure

Get accurate duration for local or remote audio files, without needing to download or access the entire file.

Dependencies

Requires ffmpeg to be installed, as endure uses the bundled ffprobe tool.

Usage

const endure = require('endure');

endure.getDuration('<file/path/url>', (err, duration) => {
    
    if (err) {
        console.log(err.message);
    };

    console.log(duration);
});