Menu

Post image 1
Post image 2
Post image 3
Post image 4
1 / 4
0

Mediabunny, complete media toolkit.

DEV Community·Ramu Narasinga·about 1 month ago
#HKDdglbz
Reading 0:00
15s threshold

In this article, we review Mediabunny. You will learn: What is Mediabunny? Mediabunny usage in Supersplat What is Mediabunny? Mediabunny is a JavaScript library for reading, writing, and converting video and audio files. Directly in the browser, and faster than anybunny else. Read any media file Mediabunny allows you efficiently read data from any video or audio file, no matter the size: duration, resolution, rotation, tracks, codecs and other metadata, as well as raw or decoded media data from anywhere in the file. Load only what you need. const input = new Input ({ source : new UrlSource ( ' ./bigbuckbunny.mp4 ' ), formats : ALL_FORMATS , // .mp4, .webm, .wav, ... }); const duration = await input . computeDuration (); const videoTrack = await input . getPrimaryVideoTrack (); const { displayWidth , displayHeight , rotation } = videoTrack ; const audioTrack = await input .…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More