Convert image::ImageBuffer vector to video

Hello everyone. So I have a vector of image::ImageBuffer, and I need to output a video from it? What is the best way for me to achive this task? Please be specific if you can because I am still quite new to Rust. Thank you.

1 Like

I'm not an expert in this, but this code from @kornel's cavif crate looks like a good example of encoding an image as a single frame using the rav1e encoder:

https://github.com/kornelski/cavif-rs/blob/main/ravif/src/av1encoder.rs

1 Like

That's for AVIF, which isn't quite a video.

I have a bigger example for VP9 video:

2 Likes

I am working on Windows so the build wouldn't work sadly.

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.