Skip to main content
MindStudio
Pricing
Blog About
My Workspace
Video Editing

Trim Media

The Trim Media block cuts an audio or video file to a defined segment, taking an input URL pointing to the source media and producing a trimmed version saved to a destination variable.

Trim audio or video clips to a specified duration

The Trim Media block cuts an audio or video file to a defined segment, taking an input URL pointing to the source media and producing a trimmed version saved to a destination variable. You can specify where the trim begins using a start time in seconds and optionally define a duration to control where it ends — if no duration is provided, the clip runs to the end of the source file. The output URL of the trimmed media is stored in the variable you designate via the destinationVar field.

Key configuration options include the start parameter, which accepts either a number or a string representing seconds, and the duration parameter, which determines the length of the output clip. There is also an intermediateAsset flag: when set to true, the resulting file is created but kept hidden from the gallery, which is useful when the trimmed clip is an intermediate step rather than a final deliverable.

This block fits into workflows that involve processing recorded audio or video before further use — for example, extracting a relevant segment from a longer recording, preparing a clip for transcription, or isolating a portion of media before passing it to another editing or analysis block. It is suited for any pipeline where media needs to be scoped to a specific time range before downstream processing.

What you can build

Real-world workflows powered by the Trim Media block.

Clip Podcast Highlights

Trim a specific segment from a full podcast recording to extract a highlight clip for sharing or further processing.

Prepare Audio for Transcription

Cut a long audio file down to the relevant portion before passing it to a transcription block, reducing processing time.

Extract Video Segments

Isolate a defined time range from a longer video recording to create a focused clip for review or publishing.

Remove Silence or Intros

Trim the beginning of a recorded session to skip over silence, countdowns, or intro segments before downstream use.

Generate Preview Clips

Produce short preview clips from longer media files as intermediate assets hidden from the gallery for use in automated pipelines.

Segment Interview Recordings

Break a multi-part interview recording into individual answer segments by trimming to specific start times and durations.

Ready to add Trim Media to your workflow?

Get Started Free

Common questions about Trim Media

What are the required parameters for the Trim Media block?

The required parameters are inputUrl, which points to the source audio or video file, and destinationVar, which specifies the variable where the output URL of the trimmed media will be saved. The start and duration fields are optional.

What does the block return?

The block saves the URL of the trimmed media file to the variable specified in the destinationVar field. This URL can then be referenced by subsequent blocks in the workflow.

What happens if I leave the duration field blank?

If no duration is provided, the trim runs from the specified start time to the end of the source media file.

What is the intermediateAsset option used for?

When intermediateAsset is set to true, the trimmed file is created and accessible within the workflow but is hidden from the gallery. This is useful when the trimmed clip is a processing step rather than a final output intended for end users.

What kinds of workflows commonly use the Trim Media block?

This block is commonly used in workflows that process audio or video before transcription, analysis, or further editing — such as extracting relevant segments from recordings, preparing clips for downstream AI blocks, or generating intermediate media assets as part of a larger pipeline.

Add Trim Media to your workflow

Build powerful AI workflows with drag-and-drop blocks. No coding required.