mediabunny 1.0.1 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -5,7 +5,7 @@
5
5
  [![](https://img.shields.io/npm/dm/mediabunny)](https://www.npmjs.com/package/mediabunny)
6
6
 
7
7
  <div align="center">
8
- <img src="./docs/public/mediabunny-logo.svg" height="180">
8
+ <img src="./docs/public/mediabunny-logo.svg" width="180" height="180">
9
9
  </div>
10
10
 
11
11
  Mediabunny is a JavaScript library for reading, writing, and converting media files (like MP4, WebM, MP3), directly in the browser. It aims to be a complete toolkit for high-performance media operations on the web. It's written from scratch in pure TypeScript, has zero dependencies, is very performant, and is extremely tree-shakable, meaning you only include what you use. You can think of it a bit like [FFmpeg](https://ffmpeg.org/), but built from the ground up for the web.
@@ -16,11 +16,11 @@ Mediabunny is a JavaScript library for reading, writing, and converting media fi
16
16
 
17
17
  <div align="center">
18
18
  <a href="https://www.gling.ai/" target="_blank">
19
- <img src="./docs/public/sponsors/gling.svg" height="60" alt="Gling AI">
19
+ <img src="./docs/public/sponsors/gling.svg" width="60" height="60" alt="Gling AI">
20
20
  </a>
21
21
  &nbsp;&nbsp;&nbsp;&nbsp;
22
22
  <a href="https://diffusion.studio/" target="_blank">
23
- <img src="./docs/public/sponsors/diffusionstudio.png" height="60" alt="Diffusion Studio">
23
+ <img src="./docs/public/sponsors/diffusionstudio.png" width="60" height="60" alt="Diffusion Studio">
24
24
  </a>
25
25
  </div>
26
26
 
@@ -10293,7 +10293,7 @@ ${cue.notes ?? ""}`;
10293
10293
  const support = await VideoEncoder.isConfigSupported(encoderConfig);
10294
10294
  if (!support.supported) {
10295
10295
  throw new Error(
10296
- "This specific encoder configuration is not supported by this browser. Consider using another codec or changing your video parameters."
10296
+ `This specific encoder configuration (${encoderConfig.codec}, ${encoderConfig.bitrate} bps, ${encoderConfig.width}x${encoderConfig.height}) is not supported by this browser. Consider using another codec or changing your video parameters.`
10297
10297
  );
10298
10298
  }
10299
10299
  this.encoder = new VideoEncoder({
@@ -10688,7 +10688,7 @@ ${cue.notes ?? ""}`;
10688
10688
  const support = await AudioEncoder.isConfigSupported(encoderConfig);
10689
10689
  if (!support.supported) {
10690
10690
  throw new Error(
10691
- "This specific encoder configuration not supported by this browser. Consider using another codec or changing your audio parameters."
10691
+ `This specific encoder configuration (${encoderConfig.codec}, ${encoderConfig.bitrate} bps, ${encoderConfig.numberOfChannels} channels, ${encoderConfig.sampleRate} Hz) is not supported by this browser. Consider using another codec or changing your audio parameters.`
10692
10692
  );
10693
10693
  }
10694
10694
  this.encoder = new AudioEncoder({