←
Vanilagy3,179 posts
Vanilagy avatar

Vanilagy

@vanilagy

It's pronounced vanilla-gee | Author of Mediabunny and Marble Blast Web. Love working on technically challenging projects that bring the best out of the web.

◷ Joined July 2014▧ 407 Photos and videos
Vanilagy avatar
Vanilagy@vanilagy·Apr 28

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:

0:24
Vanilagy avatar
Vanilagy@vanilagy·Nov 14

With great bugfixes comes great bundle size increase, apparently Edge case moment

Post attachment

Mediabunny v1.66.0 is out, and it includes a ridiculous 400 fixes and improvements across the entire library! 🚀 It's the result of a multi-week LLM-assisted bug hunt to find and squash every last bug hiding in Mediabunny, from large to small, and before anybody runs into them. Mediabunny has over 20 million monthly downloads at this point, and I feel it's my responsibility to make it as robust and reliable as I can make it. My aspiration is that it has literally zero bugs. I want it to "just work" no matter what people throw at it.

Vanilagy avatar
Vanilagy@vanilagy·Nov 14

You almost gotta put "slomments" (slop comments) everywhere these days explaining why you DIDN'T do something so that other people's AI agents who try to find bugs don't flag the same thing over and over and over again

Vanilagy avatar
Vanilagy@vanilagy·Nov 13

Mediabunny v1.66.0 is out, and it includes a ridiculous 400 fixes and improvements across the entire library! 🚀 It's the result of a multi-week LLM-assisted bug hunt to find and squash every last bug hiding in Mediabunny, from large to small, and before anybody runs into them. Mediabunny has over 20 million monthly downloads at this point, and I feel it's my responsibility to make it as robust and reliable as I can make it. My aspiration is that it has literally zero bugs. I want it to "just work" no matter what people throw at it.

Vanilagy avatar
Vanilagy@vanilagy·Nov 13

Releasing this later today. But, what's been crazy: basically all issues I've gotten since starting this I was able to close with "Thanks, already fixed." I wonder for how long it'll be like that.

The bughunt is DONE!! Finally. Almost 400 fixes and improvements to Mediabunny. Took absolutely forever to review and refine all this, but I think it was worth it. Whoever hits an actual Mediabunny bug in production after I release this update gets some sort of prize from me 😂

Post attachment
Vanilagy avatar
Vanilagy@vanilagy·Nov 12

Note that the ahead-of-time size computation ONLY works because the files in the zip are uncompressed. I could compress them too, but this would either requiring storing the compressed files on disk, or once (for each file) computing its compressed size.

Vanilagy avatar
Vanilagy@vanilagy·Nov 12

I run the custom level sharing site for Marble Blast (called Marbleland, I built it in 2021), and probably my favorite feature of the whole app is its streaming ZIP download to enable bulk level download. The naive way to do ZIP downloads on a server is to either generate them ahead of time (wastes storage) or to generate them in full first when requested, and then to download them. That second approach is way too slow and would require storing an temporary 8 GB .zip file on the server. Instead, the .zip just... gets built as you download it. It includes almost 8000 levels, over 100,000+ files, and the server uses like maybe 20 MB of RAM maximum while sending it all to you. The ZIP generation runs at ~500 MB/s output speed, so the network speed is the only bottleneck. The result is that you can download any arbitrary subset of levels with zero delay. It even computes the exact .zip's size before it starts streaming it so that the server can set Content-Length on the response and the user gets a download progress bar. It's so neat!!

Post attachment
Vanilagy avatar
Vanilagy@vanilagy·Nov 12

The bughunt is DONE!! Finally. Almost 400 fixes and improvements to Mediabunny. Took absolutely forever to review and refine all this, but I think it was worth it. Whoever hits an actual Mediabunny bug in production after I release this update gets some sort of prize from me 😂

Post attachment

Almost... done... just a hundred lines of bug reports left. My brain is fried. But the robustness and correctness improvements from this bug hunt are enourmous. 354 accepted changes so far!!

Post attachment
Vanilagy avatar
Vanilagy@vanilagy·Nov 12

The niche bugs never stop coming. It turned out that my ProRes decoder (TurboRes) was interpreting pixel aspect ratio information incorrectly. This is easy to miss when reading the spec, but values 2 and 3 correspond to an IMAGE with a 4:3 and 16:9 aspect ratio. IMAGE! I treated it as the pixel aspect ratio instead. Thankfully, nobody ever hits this case, because encoders typically don't set this value to anything but 0 (not even FFmpeg handles this field), but for somebody trying to create 100% bug-free software, everything must be patched!

Post attachment
Vanilagy avatar
Vanilagy@vanilagy·Nov 12

I've seen a sharp rise in "speculative fixes" lately in Mediabunny. People raise issues they never even had, and that usually can't even occur. This is different from people fixing random bugs that they themselves didn't encounter, I don't mean that.

Vanilagy avatar
Vanilagy@vanilagy·Nov 11

Almost... done... just a hundred lines of bug reports left. My brain is fried. But the robustness and correctness improvements from this bug hunt are enourmous. 354 accepted changes so far!!

Post attachment
Vanilagy avatar
Vanilagy@vanilagy·Nov 9

League Worlds may be slightly impacting my productivity 🥴