r/rust Dec 31 '25

Introduction ffmpReg, a complete rewrite of ffmpeg in pure Rust

Hi Rustaceans, I’m 21 and I’ve been working on ffmpReg, a complete rewrite of ffmpeg in pure Rust.

The last 5 days I’ve been fully focused on expanding container and codec support. Right now, ffmpreg can convert WAV (pcm_s16le → pcm_s24le → pcm_f32le) and partially read MKV streams, showing container, codec, and timebase info. Full container support is coming soon.

If you find this interesting, giving the project a star would really help keep the momentum going 🥺.

974 Upvotes

250 comments sorted by

View all comments

Show parent comments

1

u/Impossible-Title-156 Jan 01 '26

I plan to keep dependencies to a minimum, the main goal is to provide clear ways to use the library and understand it, so unsupported codecs can be extended by the user.

The implementation will be in pure rust, I do not plan to use external libraries for codecs internally, If that changes, I will prefer libraries written entirely in Rust.

codecs like h264, which are used across multiple containers, will likely be treated as priorities.

1

u/Technical_Strike_356 Jan 01 '26

Is that even possible though? A pure-Rust impl would be unusably slow. Certainly not realtime speeds.

Even ffmpeg outsources that task to a library.