Mediabunny 1.42.0 is now out, adding THE most requested feature: full read/write support for HLS! 🚀
4.3K followers
73,087 views
19 Comments
Comments from the original post on X (Twitter)

@vanilagy
Like the rest of Mediabunny, all of it was implemented from scratch and uses zero dependencies. The above example has a total bundle size of under 100 kB. The API is also incredibly terse. Here's all that's needed to download a remote HLS playlist as an MP4 locally:
26 likes

@vanilagy
Unlike libraries like hls.js that focus solely on playback, Mediabunny is general-purpose: you can use it to build an HLS player, but also extract thumbnails, download a clip from a live stream, stream HLS directly *from* the client, extract metadata, and much more!
23 likes

@vanilagy
This took around three months of work to get right, and I'm super proud of where it ended up. It wouldn't have been possible without all of the generous people and companies sponsoring Mediabunny! ❤️ For more information, check out the blog post:
26 likes

@hirbod
This is nuts!!!
3 likes

@SimonHalimonov
is there a mediabunny for images? i think we might need that ...
2 likes

@vanilagy
Reading and writing images is natively supported by browser APIs! No need for a library here.
2 likes

@tequilafunks
Ayyy congrats man!! It was great to follow your journey of building this 💪
2 likes

@kevinlewis4801
The Demo videos are gonna be crazy now!!!
1 like

@creative_fctr
I was working on the same thing a long time ago... To speed things up, I wrote a shader to do quick RGB to YUV420 colour conversion on the GPU using WebGL pixel shaders; it gave me a huge boost in mp4 video encoding performance!
1 like

@Brandongoodyear
That’s wild! it’s fascinating because I took a different approach to building an AI assisted clipping app to make the files smaller for server side processing (token cost down from like $5/video to $.25/video) The next 6 months of video tools are going to be fun to watch.
1 like

@CodeCodeMe
Very good, supported m3u8
1 like

@opentestudox
Very cool i have been exploring the opposite side of the pipeline with an in browser HLS → MP4 workflow it is fascinating how much media processing is moving into the browser now from HLS generation to downloading muxing and transcoding curious how MediaBunny handles memory pressure for large files and low-RAM devices
1 like

@ivolivares
wow! this is huge! Congrats @vanilagy 👏👏 awesome release!
1 like

@bhopping_
dash with CENC decryption capabilities next….. pleaseee
1 like

@vanilagy
Bro let me chill Also, 1.42.0 already ships with CENC decryption support for ISOBMFF
2 likes

@bhopping_
i’m just joking😭 but dash support would be amazing

@jvstudnitz
„Half-Life: Source“ has been finally achieved
1 like

@tristanbob
Will this be used by Remotion client side rendering? I’m using that feature.
1 like

@fosbix
This is gods work