WebCodecs API - interest for native support? #25327
caseymanos
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The WebCodecs API gives frame-level video encode/decode in JavaScript. It's one of the few browser APIs with no server-side equivalent.
Why it matters:
Video editors need server export (Descript, Veed, Runway all hit this)
AI video tools output frames that need encoding
WebRTC servers need real-time transcode
FFmpeg subprocess = string templating, no backpressure, no frame inspection
Current state:
I have a working N-API implementation using FFmpeg: https://github.com/caseymanos/node-webcodecs
https://node-webcodecs.com
It works on Bun today! :
Questions for the team/community:
Is WebCodecs something Bun would consider implementing natively? Seems aligned with browser API parity goals.
If so, would Zig + FFmpeg make sense, or different approach?
Beta Was this translation helpful? Give feedback.
All reactions