Media Duration

Get duration for audio and video files


Inspect a video or audio files metadata and return the duration. The duration will then be passed to downstream Actions to set their length and how long they should play for, for example when playing an entire video file in a Studio template.

How to use this Action

Pass the Action a URL to a file and it will inspect the metadata and return the duration for use in downstream Actions.

Workflow Action's

Actions are used to process inputs, perform tasks and return an output. Inputs are typically media file URLs, text, prompts and template merge fields.

The Action will then perform some kind of task on the inputs - such as rendering a template using the provided merge field values, generating an image or video from a text prompt or converting a video to a different format.

Finally the Action will return an output, such as a video URL or body of text. The output can then be used as an input for another downstream Action.

The input values that can be passed to the module.
The output values returned by the module.
The options and settings for the module.
File URLThe URL of the video or audio file to inspect, select from an upstream va
DurationReturns the duration in seconds of the video or audio file