Update codec soup and docs

This commit is contained in:
Vanilagy
2026-04-28 14:41:20 +02:00
parent ff46a274b1
commit aa4966a5f1
3 changed files with 13 additions and 9 deletions
File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 141 KiB

After

Width:  |  Height:  |  Size: 148 KiB

@@ -99,6 +99,8 @@ Not all codecs can be used with all containers. The following table specifies th
| `'alaw'` | | ✓ | | | | | ✓ | | | |
| `'webvtt'`[^webvtt] | (✓) | | (✓) | (✓) | | | | | | |
For HLS, the supported codecs depend on the segment format chosen.
[^aac]: In some browsers, AAC encoding is not supported by WebCodecs. You can polyfill it with the [`@mediabunny/aac-encoder`](./extensions/aac-encoder) extension package.
[^mp3]: MP3 encoding is not supported by WebCodecs. You can polyfill it with the [`@mediabunny/mp3-encoder`](./extensions/mp3-encoder) extension package.
[^flac]: FLAC encoding is not supported by WebCodecs. You can polyfill it with the [`@mediabunny/flac-encoder`](./extensions/flac-encoder) extension package.
+1 -1
View File
@@ -186,7 +186,7 @@ npm install mediabunny
```ts
const input = new Input({
source: new UrlSource('./bigbuckbunny.mp4'),
formats: ALL_FORMATS, // .mp4, .webm, .wav, ...
formats: ALL_FORMATS, // .mp4, .webm, .wav, .m3u8, ...
});
const duration = await input.computeDuration();