mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-10-02 21:33:52 +02:00
Update codec soup and docs
This commit is contained in:
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'` | | ✓ | | | | | ✓ | | | |
|
| `'alaw'` | | ✓ | | | | | ✓ | | | |
|
||||||
| `'webvtt'`[^webvtt] | (✓) | | (✓) | (✓) | | | | | | |
|
| `'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.
|
[^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.
|
[^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.
|
[^flac]: FLAC encoding is not supported by WebCodecs. You can polyfill it with the [`@mediabunny/flac-encoder`](./extensions/flac-encoder) extension package.
|
||||||
|
|||||||
+1
-1
@@ -186,7 +186,7 @@ npm install mediabunny
|
|||||||
```ts
|
```ts
|
||||||
const input = new Input({
|
const input = new Input({
|
||||||
source: new UrlSource('./bigbuckbunny.mp4'),
|
source: new UrlSource('./bigbuckbunny.mp4'),
|
||||||
formats: ALL_FORMATS, // .mp4, .webm, .wav, ...
|
formats: ALL_FORMATS, // .mp4, .webm, .wav, .m3u8, ...
|
||||||
});
|
});
|
||||||
|
|
||||||
const duration = await input.computeDuration();
|
const duration = await input.computeDuration();
|
||||||
|
|||||||
Reference in New Issue
Block a user