From 51059c4b82ab5357bb4a334b24cc8654d208a3a6 Mon Sep 17 00:00:00 2001 From: Vanilagy <1696106+Vanilagy@users.noreply.github.com> Date: Sun, 10 Aug 2025 13:48:34 +0200 Subject: [PATCH 1/2] Add donation link --- packages/mp3-encoder/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/mp3-encoder/README.md b/packages/mp3-encoder/README.md index 4251d05..4746b17 100644 --- a/packages/mp3-encoder/README.md +++ b/packages/mp3-encoder/README.md @@ -10,7 +10,7 @@ Browsers typically have no support for MP3 encoding in their WebCodecs implementations. Given the ubiquity of the format, this extension package provides an MP3 encoder for use with [Mediabunny](https://github.com/Vanilagy/mediabunny). It is implemented using Mediabunny's [custom coder API](https://mediabunny.dev/guide/supported-formats-and-codecs#custom-coders) and uses a highly-performant WASM build of the [LAME MP3 Encoder](https://lame.sourceforge.io/) under the hood. -> This package, like the rest of Mediabunny, is enabled by its [sponsors](https://mediabunny.dev/#sponsors) and their donations. If you've derived value from this package, please consider leaving a donation! 💘 +> This package, like the rest of Mediabunny, is enabled by its [sponsors](https://mediabunny.dev/#sponsors) and their donations. If you've derived value from this package, please consider [leaving a donation](https://github.com/sponsors/Vanilagy)! 💘 ## Installation From 230f02fffcd3ad19408f6972ad2a5f43721e8981 Mon Sep 17 00:00:00 2001 From: Vanilagy <1696106+Vanilagy@users.noreply.github.com> Date: Sun, 10 Aug 2025 14:36:47 +0200 Subject: [PATCH 2/2] Clarify latencyMode --- docs/guide/media-sources.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/guide/media-sources.md b/docs/guide/media-sources.md index 5fc1097..5889b30 100644 --- a/docs/guide/media-sources.md +++ b/docs/guide/media-sources.md @@ -42,7 +42,7 @@ while (notDone) { ### Video encoding config -All video sources that handle encoding internally require you to specify a `VideoEncodingConfiguration`, specifying the codec configuration to use: +All video sources that handle encoding internally require you to specify a `VideoEncodingConfig`, specifying the codec configuration to use: ```ts type VideoEncodingConfig = { codec: VideoCodec; @@ -62,7 +62,7 @@ type VideoEncodingConfig = { ``` - `codec`: The [video codec](./supported-formats-and-codecs#video-codecs) used for encoding. - `bitrate`: The target number of bits per second. Alternatively, this can be a [subjective quality](#subjective-qualities). -- `latencyMode`: The latency mode as specified by the WebCodecs API. Media stream-driven video sources will automatically use the `realtime` setting. +- `latencyMode`: The latency mode as specified by the WebCodecs API. Browsers default to `quality`. Media stream-driven video sources will automatically use the `realtime` setting. - `keyFrameInterval`: The maximum interval in seconds between two adjacent key frames. Defaults to 5 seconds. More frequent key frames improve seeking behavior but increase file size. When using multiple video tracks, this value should be set to the same value for all tracks. - `fullCodecString`: Allows you to optionally specify the full codec string used by the video encoder, as specified in the [WebCodecs Codec Registry](https://www.w3.org/TR/webcodecs-codec-registry/). For example, you may set it to `'avc1.42001f'` when using AVC. Keep in mind that the codec string must still match the codec specified in `codec`. If you don't set this field, a codec string will be generated automatically. - `onEncodedPacket`: Called for each successfully encoded packet. Useful for determining encoding progress. @@ -70,7 +70,7 @@ type VideoEncodingConfig = { ### Audio encoding config -All audio sources that handle encoding internally require you to specify an `AudioEncodingConfiguration`, specifying the codec configuration to use: +All audio sources that handle encoding internally require you to specify an `AudioEncodingConfig`, specifying the codec configuration to use: ```ts type AudioEncodingConfig = { codec: AudioCodec;