Skip navigation
Mediabunny 1.42.0 is now out, adding THE most requested feature: full read/write support for HLS! 🚀
0:00 / 0:24

Mediabunny 1.42.0 is now out, adding THE most requested feature: full read/write support for HLS! 🚀

Vanilagy

4.3K followers

Visit on X
321 likesDownloadOriginal post

73,087 views

Mediabunny 1.42.0 is now out, adding THE most requested feature: full read/write support for HLS! 🚀 It's truly a game changer for client-side media processing. Here, I'm creating 5 renditions from a 40-second video in ~10 seconds, fully client-side, without a transcode server:

19 Comments

Comments from the original post on X (Twitter)

  • Vanilagy's profile picture

    @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's profile picture

    @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's profile picture

    @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's profile picture

    @hirbod

    This is nuts!!!

    3 likes

  • Simon Halimonov's profile picture

    @SimonHalimonov

    is there a mediabunny for images? i think we might need that ...

    2 likes

  • Vanilagy's profile picture

    @vanilagy

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

    2 likes

  • Tequila Funk's profile picture

    @tequilafunks

    Ayyy congrats man!! It was great to follow your journey of building this 💪

    2 likes

  • Kevin Lewis's profile picture

    @kevinlewis4801

    The Demo videos are gonna be crazy now!!!

    1 like

  • Amir Mirmoeini's profile picture

    @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

  • Brandon Goodyear's profile picture

    @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

  • CodeCode.Me's profile picture

    @CodeCodeMe

    Very good, supported m3u8

    1 like

  • Varad's profile picture

    @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

  • Iván Olivares Rojas's profile picture

    @ivolivares

    wow! this is huge! Congrats @vanilagy 👏👏 awesome release!

    1 like

  • sam's profile picture

    @bhopping_

    dash with CENC decryption capabilities next….. pleaseee

    1 like

  • Vanilagy's profile picture

    @vanilagy

    Bro let me chill Also, 1.42.0 already ships with CENC decryption support for ISOBMFF

    2 likes

  • sam's profile picture

    @bhopping_

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

  • Alexander von Studnitz's profile picture

    @jvstudnitz

    „Half-Life: Source“ has been finally achieved

    1 like

  • Tristan Rhodes's profile picture

    @tristanbob

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

    1 like

  • fos's profile picture

    @fosbix

    This is gods work