zmwangx / rust-ffmpeg-sys

FFmpeg bindings for Rust.
125 stars 86 forks source link

Support ffmpeg 5.0.0 #36

Closed svenstaro closed 2 years ago

svenstaro commented 2 years ago

ffmpeg 5 has been released and I think this crate should support it. In Arch Linux, we're currently performing the ffmpeg 5 rebuild and we're getting blocked by Rust packages that need this crate.

Would be great if this crate could add support for that new ffmpeg release as otherwise we'd have to provide a compatibility build of ffmpeg.

Polochon-street commented 2 years ago

Hi,

I'm currently trying to make the crate work for ffmpeg 5.0.0. There's a slight problem wrt. libavresample that was apparently removed from 5.0.0 and onward, but other than that it should be doable.

AdrianEddy commented 2 years ago

I'm also interested in ffmpeg 5.0.0, looking forward to the updated Rust bindings

Polochon-street commented 2 years ago

I've made a first tentative PR that uses ffmpeg 5.0 on the CI, and the build finally turned green today (https://github.com/zmwangx/rust-ffmpeg/pull/90) However, I've been a bit trigger-happy with the removal of deprecated functions, and I will have to fix that and some other stuff before releasing a new version

Polochon-street commented 2 years ago

Hi guys, I've published the new version, so ffmpeg-next should build for ffmpeg 5.0.

It has a few breaking changes seems upstream ffmpeg deleted some deprecated functions, but they should be documented in the examples/.

I'm closing this issue, but don't hesitate to report eventual bugs :)