@remotion/media-parser
available from v4.0.190
This is an experimental package that parses video and other media files in order to extract relevant metadata.
warning
Unstable API: This package is experimental. The API may change in the future.
The API for getting video metadata is stable and may be used in production.
Design goals:
- Support as many relevant containers as possible - currently: .mp4,.mov,.webm,.mkv,.avi,.ts,.mp3,.wav,.aacand.flac.
- Work in the browser, and server runtimes (Node.js, Bun, Edge, etc.)
- Enable powerful WebCodecs use cases
- Fine-grained querying, only download as much data as necessary
- Functional TypeScript API
- Be useful when passing unsupported media
- Solve problems that are relevant for Remotion users
Installation
- npm
- yarn
- pnpm
- bun
npm i --save-exact @remotion/media-parser@4.0.252
pnpm i @remotion/media-parser@4.0.252
bun i @remotion/media-parser@4.0.252
yarn --exact add @remotion/media-parser@4.0.252
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.Guide
APIs
The following APIs are available: