RemotionUI

Waveform Line

Audio waveform line visualization.

PrimitiveData & mediaAdvanced

waveform-line30fps · 960×540
Install
$ npx remotion-ui@latest add waveform-line

Mirrored amplitude envelope powered by @remotion/media-utils, with the played portion tinted. Pass variant="line" for the raw oscilloscope trace.

Advanced. Installs @remotion/media-utils.

Agent notes

Install first, then import the copied source component locally. AI guide →

Import
@/remotion/primitives/waveform-line
  • Use when: audio-first videos, podcast clips, and waveform visuals.
  • Customize: src, width, height, variant, plus copied source for timing, layout, colors, and typography.
  • Rule: do not import this component from the remotion-ui npm package; it is copied into your project.

Usage

Example
import { WaveformLine } from "@/remotion/primitives/waveform-line"; <WaveformLine src={staticFile("voice.wav")} />

API Reference

PropTypeDescription
src*stringAudio source.
widthnumberDrawing width. Defaults to the composition width — pass the slot width inside padding.
heightnumberSVG waveform height.
variant"envelope" | "line"Mirrored amplitude band, or the raw oscilloscope trace.
samplesnumberEnvelope buckets (88) or trace samples (128).
windowInSecondsnumberAudio window drawn around the current frame.
mirrorbooleanReflected copy of the trace. Ignored by the envelope variant, which is already mirrored.
progressnumberOptional 0-1 played progress override.
amplitudeScalenumberVertical gain — envelope default 0.94, line default 0.48.
normalizebooleanNormalize the visible window for readable quiet audio.
showBaselinebooleanRender the center baseline.

Related