Skip to content
UniKit

Audio trim range

Convert a start and end time into an audio sample range and trim plan without reading device audio.

Runs in your browserEvery computation happens in your browser — your data never leaves this device.

Audio metadata

Plan

Samples or duration

Enter data to see results

Stat: 0 · Stat 2: 0

What this tool does

  • Check parameters before transcoding
  • Convert time into samples or filters

Example

Input

{"duration":10,"sampleRate":48000}

Output

{"operation":"trim","start":1,"end":4,"duration":3,"startSample":48000,"endSample":192000,"samples":144000}

Computes an assertable plan or sample range. It does not touch devices or transcode files.

Frequently asked questions

Does it process the file?

No. It returns a plan, command, or sample range and never decodes media.

May numbers be strings?

Yes. Numeric strings from text controls are parsed as numbers.

Does it match ffmpeg exactly?

Times, filters, and bitrate formulas are deterministic; container overhead can still differ.

Keywords:音频裁剪采样点trimaudioffmpeg

Related tools