---
id: gh-mediabunny
name: "mediabunny"
url: https://skills.yangsir.net/skill/gh-mediabunny
author: remotion-dev
domain: multimedia
tags: ["audio", "video", "multimedia", "browser", "duration"]
install_count: 20800
rating: 4.60 (120 reviews)
github: https://github.com/remotion-dev/skills/tree/main/skills/mediabunny
---

# mediabunny

> 此技能通过 Mediabunny 库在浏览器中处理音频和视频多媒体文件，支持获取音频时长、视频尺寸和时长等操作，适用于前端多媒体开发、视频编辑、音频处理等场景，大幅提升开发效率。

**Stats**: 20,800 installs · 4.6/5 (120 reviews)

## Before / After 对比

### 获取音频时长耗时对比

**Before**:

在没有此技能之前，开发者需要手动编写复杂代码或使用其他库来获取音频文件的时长，通常需要30分钟左右完成，且容易出错。

**After**:

有了此技能后，开发者可以直接使用简洁的API获取音频时长，只需2分钟即可完成，准确无误。

| Metric | Before | After | Change |
|---|---|---|---|
| 获取时长耗时 | 30分钟 | 2分钟 | -93% |

## Readme

Mediabunny is a multimedia library for dealing with audio and video in the browser.
Here is a compact overview of it's capabilities: https://mediabunny.dev/llms.txt

## Getting audio duration

See [get-audio-duration.md](get-audio-duration.md) for getting the duration of an audio file in seconds with Mediabunny.

## Getting video dimensions

See [get-video-dimensions.md](get-video-dimensions.md) for getting the width and height of a video file with Mediabunny.

## Getting video duration

See [get-video-duration.md](get-video-duration.md) for getting the duration of a video file in seconds with Mediabunny.


---
*Source: https://skills.yangsir.net/skill/gh-mediabunny*
*Markdown mirror: https://skills.yangsir.net/api/skill/gh-mediabunny/markdown*