@remotion/media-utils
A package providing utility functions for getting information about video and audio, and for visualizing audio.
Except for useAudioData()
, all functions can also be used outside of Remotion.
- npm
- pnpm
- yarn
bash
npm i @remotion/media-utils
bash
npm i @remotion/media-utils
bash
pnpm i @remotion/media-utils
bash
pnpm i @remotion/media-utils
bash
yarn add @remotion/media-utils
bash
yarn add @remotion/media-utils
Functions
audioBufferToDataUrl()
Serialize an audio buffer
getAudioData()
Get metadata of an audio source
getAudioDurationInSeconds()
Get the duration of an audio source
getVideoMetadata()
Get metadata of a video source
getWaveformPortion()
Trims audio data into a waveform
useAudioData()
getAudioData()
as a hookvisualizeAudio()
Processes a waveform for visualization
License
MIT