Skip to content

🎥 Make videos programmatically with React

support WAV

Jonny Burgera5e7d7c01646
diff --git a/packages/docs/docs/media-parser/index.mdx b/packages/docs/docs/media-parser/index.mdx
index 3846fcfc72..0f962e9fb8 100644
--- a/packages/docs/docs/media-parser/index.mdx
+++ b/packages/docs/docs/media-parser/index.mdx
@@ -18,7 +18,7 @@ This is an experimental package that parses video and other media files in order
Design goals:
-- Support as many relevant containers as possible - currently: `.mp4`, `.mov`, `.webm`, `.mkv`, `.avi`, `.ts`, `.mp3`
+- Support as many relevant containers as possible - currently: `.mp4`, `.mov`, `.webm`, `.mkv`, `.avi`, `.ts`, `.mp3`, `.wav`
- [Work in the browser, and server runtimes (Node.js, Bun, Edge, etc.)](/docs/media-parser/support)
- [Enable powerful WebCodecs use cases](/docs/media-parser/webcodecs)
- [Fine-grained querying, only download as much data as necessary](/docs/media-parser/fast-and-slow)
diff --git a/packages/docs/docs/media-parser/tags.mdx b/packages/docs/docs/media-parser/tags.mdx
index a4707861ae..4e5608e7a7 100644
--- a/packages/docs/docs/media-parser/tags.mdx
+++ b/packages/docs/docs/media-parser/tags.mdx
@@ -102,6 +102,12 @@ Use the [`container`](/docs/media-parser/parse-media#container) field to get the
See [here](https://exiftool.org/TagNames/ID3.html) for a list of tags that can be returned.
The `APIC` tag will not be returned as part of the `metadata` field, but separately as elements in the [`images`](/docs/media-parser/parse-media#images) array.
+### WAV
+
+| Field | Description | Example value |
+| ------ | ------------------------------------ | ------------------------------------- |
+| `ISFT` | Software used to encode stream/Video | `"Lavf60.16.100 (libsndfile-1.0.31)"` |
+
## Fields are not unique
Some fields may appear multiple times per video, such as `encoder`, `comment` or `duration`.
diff --git a/packages/media-parser/src/errors.ts b/packages/media-parser/src/errors.ts
index 1f5c50797d..a7225537cd 100644
--- a/packages/media-parser/src/errors.ts
+++ b/packages/media-parser/src/errors.ts
@@ -121,7 +121,7 @@ export class IsAnUnsupportedFileTypeError extends Error {
}
}
-type UnsupportedAudioType = 'mp3' | 'wav' | 'aac';
+type UnsupportedAudioType = 'aac';
export class IsAnUnsupportedAudioTypeError extends Error {
public mimeType: string | null;