@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
- yarn
- pnpm
- bun
npm i --save-exact @remotion/media-utils@4.0.241
npm i --save-exact @remotion/media-utils@4.0.241
pnpm i @remotion/media-utils@4.0.241
pnpm i @remotion/media-utils@4.0.241
bun i @remotion/media-utils@4.0.241
bun i @remotion/media-utils@4.0.241
yarn --exact add @remotion/media-utils@4.0.241
yarn --exact add @remotion/media-utils@4.0.241
Also update
remotion
and all `@remotion/*`
packages to the same version.Remove all
^
character in front of the version numbers of it as it can lead to a version conflict.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 hookuseWindowedAudioData()
Optimized for fetching only current data, works only with
.wav
visualizeAudio()
Processes a waveform for visualization
License
MIT