Open altunenes opened 1 year ago
It's related to what version of ffmpeg library you use. Currently ffmpeg-next supported FFmpeg versions: 3.4.x through 4.4.x.
Hi!
We just merged some things for ffmpeg 6.1 support - this should work for you now :)
We're always lagging behind a bit for new releases, so that explains why windows (whose build downloads automatically the latest ffmpeg version) sometimes fails to compile. Hopefully we fixed it!
@Polochon-street Do you know if it's possible to statically link ffmpeg for windows in msys2 when using this library? I have static libraries installed but it doesn't link them statically
@thewh1teagle I remember it was a pain, and I'm not even sure I managed. It seems possible, but given that there all whole projects dedicated to that, I'm thinking shipping the dlls might be the easiest
@Polochon-street
It has to be something with bindgen
(build.rs
)
I have the static build files of ffmpeg
already, just need to make rust
use them
@Polochon-street
As I thought the problem with rust-ffmpeg-sys
in this line build.rs#L654C52-L654C63.
It looks for .a
files to link them but in windows it's .dll.a
.
maybe related?
Thank you to both of you! <3 We migrated to GStreamer after encountering this specific issue, so I'm not certain if updating the version could resolve the error. :-(
Again, thank you for this beautiful repo and your time ❤️ (you can close this issue if you want: because I can't confirm if the latest update fix the issue :(( )
TL/DR: https://github.com/zmwangx/rust-ffmpeg/pull/155
First of all, thank you for this beautiful contribution. ❤️
I wanted to use rust-ffmpeg in one of my projects and it compiles on MAC without any problem. But when I try it on Windows 11 I get an error: 😢
I made the following implementations and my problem was solved: 🥳
src/util/format/pixel.rs https://github.com/zmwangx/rust-ffmpeg/blob/6b84927798dade84037450a2b440139abde3a5ce/src/util/format/pixel.rs#L10
I updated the Pixel enum to include all possible pixel formats like so:
Then, I updated the implementation of From for Pixel and From for AVPixelFormat to include these new enumerations.
In the id.rs file, I updated the Id enum and did a similar update for the From for Id and From for AVCodecID implementations:
src/codec/id.rs
https://github.com/zmwangx/rust-ffmpeg/blob/6b84927798dade84037450a2b440139abde3a5ce/src/codec/id.rs#L10
after these implementations, all is okay now
happy coding. 😸