mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-09-27 19:03:46 +02:00
Write home page, add logo, configure theme
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# Introduction
|
||||
|
||||
Mediabunny is a JavaScript library for reading, writing, and converting media files (like MP4 or WebM), directly in the browser. It aims to be a complete toolkit for doing high-performance media operations on the web. It's written from scratch in pure TypeScript, has zero dependencies, and is extremely tree-shakable, meaning you only include what you use. You can think of it like [FFmpeg](https://ffmpeg.org/), but built for the web.
|
||||
Mediabunny is a JavaScript library for reading, writing, and converting media files (like MP4 or WebM), directly in the browser. It aims to be a complete toolkit for doing high-performance media operations on the web. It's written from scratch in pure TypeScript, has zero dependencies, and is extremely tree-shakable, meaning you only include what you use. You can think of it kind of like [FFmpeg](https://ffmpeg.org/), but built for the web's needs.
|
||||
|
||||
## Features
|
||||
|
||||
|
||||
@@ -467,7 +467,13 @@ const output = new Output({
|
||||
// ...
|
||||
});
|
||||
|
||||
const conversion = await Conversion.init({ input, output });
|
||||
const conversion = await Conversion.init({
|
||||
input,
|
||||
output,
|
||||
audio: {
|
||||
sampleRate: 16000, // Resample to 16 kHz
|
||||
},
|
||||
});
|
||||
await conversion.execute();
|
||||
// Conversion is complete
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user