Categories

Audio Duration Checker

Get the exact duration of an audio file

Uses ffprobe to return precise length (seconds, milliseconds, and formatted time) plus per-stream timing info.

Click to upload file or drag and drop file here

Maximum file size: 200MB Supported formats: audio/*

Key Facts

Category
Media
Input Types
file
Output Type
json
Sample Coverage
4
API Ready
Yes

Overview

The Audio Duration Checker uses ffprobe to accurately measure the length of any audio file, providing duration in seconds, milliseconds, and formatted time, along with per-stream timing details.

When to Use

  • When you need to verify an audio file's duration before uploading to platforms with time limits.
  • When editing audio and require precise timing for synchronization with other media.
  • When cataloging audio files and want to include accurate duration metadata.

How It Works

  • Upload your audio file using the file input field.
  • The tool processes the file with ffprobe to extract duration data.
  • Results are displayed in JSON format, showing total duration and stream-specific timings.
  • You can copy or use the JSON output for further processing or reference.

Use Cases

Podcast producers checking episode lengths to meet hosting platform requirements.
Music producers verifying track durations for album compilations or streaming services.
Audio engineers ensuring files meet specific timing standards for broadcasts or edits.

Examples

1. Verifying Podcast Episode Length

Podcast Host
Background
A podcast host records episodes and needs to ensure they are within the 60-minute limit for their hosting platform.
Problem
Manually timing the audio is inaccurate and time-consuming.
How to Use
Upload the podcast episode MP3 file to the Audio Duration Checker.
Outcome
The tool returns the exact duration, confirming it is 58 minutes and 30 seconds, within the limit.

2. Syncing Audio for Video Editing

Video Editor
Background
A video editor has an audio track that must be precisely synced with video footage in the timeline.
Problem
The audio file's duration needs to be known to align it correctly without guesswork.
How to Use
Use the tool to get the duration of the audio file in milliseconds.
Outcome
The JSON output shows the duration is 120.456 seconds, allowing for accurate synchronization in the editing software.

Try with Samples

audio, file

Related Hubs

FAQ

What audio formats are supported?

Common formats like MP3, WAV, AAC, and others that ffprobe can read are supported.

How accurate is the duration measurement?

It provides precise measurements down to milliseconds using ffprobe.

Is there a file size limit?

Yes, the maximum file size is 200 MB as per the tool's configuration.

Can this tool be used for video files?

No, it is designed specifically for audio files; video files require a different tool.

What does the JSON output include?

It includes duration in seconds, milliseconds, formatted time, and details for each audio stream.

API Documentation

Request Endpoint

POST /en/api/tools/audio-duration-checker

Request Parameters

Parameter Name Type Required Description
audioFile file (Upload required) Yes -

File type parameters need to be uploaded first via POST /upload/audio-duration-checker to get filePath, then pass filePath to the corresponding file field.

Response Format

{
  "key": {...},
  "metadata": {
    "key": "value"
  },
  "error": "Error message (optional)",
  "message": "Notification message (optional)"
}
JSON Data: JSON Data

AI MCP Documentation

Add this tool to your MCP server configuration:

{
  "mcpServers": {
    "elysiatools-audio-duration-checker": {
      "name": "audio-duration-checker",
      "description": "Get the exact duration of an audio file",
      "baseUrl": "https://elysiatools.com/mcp/sse?toolId=audio-duration-checker",
      "command": "",
      "args": [],
      "env": {},
      "isActive": true,
      "type": "sse"
    }
  }
}

You can chain multiple tools, e.g.: `https://elysiatools.com/mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp`, max 20 tools.

Supports URL file links or Base64 encoding for file parameters.

If you encounter any issues, please contact us at [email protected]