Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/cdaein/canvas-mp4-stream

A basic example to export canvas animation to mp4 video
https://github.com/cdaein/canvas-mp4-stream

canvas creative-coding export generative-art mp4 video

Last synced: 23 days ago
JSON representation

A basic example to export canvas animation to mp4 video

Awesome Lists containing this project

README

        

# Canvas to mp4 video

A barebone minimal example of saving HTML5 Canvas to mp4 video using ffmpeg process via Vite dev server plugin (Node.js). It can handle very high resolution canvas (tested up to 7k resolution). There is no dependency other than using Vitejs server and having ffmpeg installed.

The same technique is used in [Ssam](https://github.com/cdaein/ssam) creative coding helper package.

## Notes

It is not yet perfect. I've noticed some difference between the frame being processed by ffmpeg and the frame that is being sent from the client.

# License

MIT