From aa4966a5f1af5ffb8033886f03f029dd172e54ef Mon Sep 17 00:00:00 2001 From: Vanilagy <1696106+Vanilagy@users.noreply.github.com> Date: Tue, 28 Apr 2026 14:41:20 +0200 Subject: [PATCH] Update codec soup and docs --- docs/assets/codec-soup.svg | 18 ++++++++++-------- docs/guide/supported-formats-and-codecs.md | 2 ++ docs/index.md | 2 +- 3 files changed, 13 insertions(+), 9 deletions(-) diff --git a/docs/assets/codec-soup.svg b/docs/assets/codec-soup.svg index 08c2b7d..22969f2 100644 --- a/docs/assets/codec-soup.svg +++ b/docs/assets/codec-soup.svg @@ -7,14 +7,14 @@ - - - - + + + + - - + + @@ -33,8 +33,8 @@ - - + + @@ -45,6 +45,8 @@ + + diff --git a/docs/guide/supported-formats-and-codecs.md b/docs/guide/supported-formats-and-codecs.md index ee90f31..cb825f3 100644 --- a/docs/guide/supported-formats-and-codecs.md +++ b/docs/guide/supported-formats-and-codecs.md @@ -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. diff --git a/docs/index.md b/docs/index.md index bfebf1d..7c1491d 100644 --- a/docs/index.md +++ b/docs/index.md @@ -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();