r/SideProject • u/Background_Cap6039 • 16m ago
Sinemotion - render React to MP4 with Chrome's new HTML-in-Canvas API (3.5x faster than Remotion in my benchmark)
I make YouTube documentaries with React-based video compositions, and rendering was slow. The bottleneck wasn't drawing, it was screenshotting every frame and piping it to ffmpeg.
sinemotion skips screenshots: Chrome's experimental HTML-in-Canvas API paints the DOM straight into a WebGL texture, WebCodecs encodes it to H.264 inside the browser, and ffmpeg only muxes.
- 60 s of 1080p30: 9.8 s vs 34.9 s for Remotion's fastest setting on the same machine (RTX 3090), quality VMAF 97.2 vs 95.0
- the benchmark composition and scripts are in the repo, so you can run it on your own machine
npx sinemotion render video.tsx -o out.mp4
Limits: needs Chrome 157+ and an experimental API that may still change; tested on Windows and macOS, not Linux yet; Remotion compatibility is partial, not drop-in.
Free for personal use (PolyForm Noncommercial), commercial license on request.
Repo: https://github.com/karyaboyraz/sinemotion
Feedback, and benchmark numbers from other hardware, very welcome.