[FFmpeg-devel] I've written a filter in Rust

Tomas Härdin git at haerdin.se
Fri Feb 21 20:02:16 EET 2025


fre 2025-02-21 klockan 14:18 +0100 skrev Lynne:
> On 20/02/2025 14:06, Leandro Santiago wrote:
> 
> > - 1: I managed to reuse lots of high quality code, available on
> > crates (the repository of Rust packages), preventing me of needing
> > to write hairy math heavy code. I personally suck in maths,
> > especially linear algebra. Using the paper and the reference
> > implementation [3] was enough, although I do not understand all the
> > math magic. For instance, I reused an existing crate for Kalman
> > filters that I probably would need to implement by hand, as the
> > alternative in C would probably be using the implementation that
> > OpenCV offers. And I am aware that it's not practical to make
> > OpenCV a dependency of FFmpeg.
> 
> Regardless of the language, I disagree with using crates in the context 
> of FFmpeg, and any use of cargo.

In addition, this almost certainly will create headaches for package
maintainers. The proper way to do this is to use one's OS' package
manager, not go down the godawful path Python and every other modern
language has of rolling their own package managers.

The above said, I'm not against Rust. It has some nice properties. But
it does not seem very "stable" so far. Perhaps this has changed in
recent years..

If we're in the habit of allowing other languages I'd be in favor of
allowing C++, so that we can make use of the STL containers rather than
rolling our own.

/Tomas


More information about the ffmpeg-devel mailing list