Video composition and rendering kit for Rust, depends on FFmpeg and cairo.
Kantera supports you create simple videos from few Rust code (or Web-UI).
This is my challenging project.💪😬
Process for make video from Rust code:
- Prepare assets (images, videos) on memory if you need.
- Build renderer with
render
trait. - Render it use
render_to_mp4
function.
TODO:
- Import videos
- Import images
- Text rendering with any font
- Output video with audio
- Web-UI as GUI
- Sound composition
- DSL for building renderer
- Multi-thread rendering
- Realtime hosting via WebRTC
- Documentation...
You need install them:
- FFmpeg
- cairo
$ cargo run --release --example demo
After a while, a video named out.mp4
will be output to current directory.
$ cd kantera-web-ui/front
$ yarn install
$ yarn build
$ cd ..
$ cargo run --release
Then open localhost:8080
in your web browser.
e.g. https://twitter.com/carrotflakes/status/1213135191125872642
Docker images for Web UI are available here (now latest only).
- carrotflakes (carrotflakes@gmail.com)
Copyright (c) 2020 carrotflakes (carrotflakes@gmail.com)
Licensed under the MIT License.