New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PyAV does not build with ffmpeg 5.x #817
Comments
@zzjjbb I just build both ffmpeg and pyAV from source, and it works. you can build PyAV from source using the Makefile in the repo |
PR is welcome. |
Hello @dianyo , |
What version was this tested against, FFmpeg 5.x? |
I'm experiencing similar.
|
For those looking to use ffmpeg 4.x under macOS, you can still install it via brew, but you need to tell brew install ffmpeg@4
export PKG_CONFIG_PATH="/opt/homebrew/opt/ffmpeg@4/lib/pkgconfig"
pip3 install av |
That's a slightly different issue. If we had binary wheels for arm64 you would not need to build PyAV yourself. |
FWIW I am getting the same error on x86_64 GNU/Linux with ffmpeg 5.0, sadly blocking a rebuild of mine.
|
@zupatisc not productive, we know PyAV doesn't build with FFmpeg 5. I'm still waiting for someone to step up and provide a pull request. |
see also upstream issue PyAV-Org/PyAV#817
OK, I've had a look and the main breaking change in FFmpeg seems to be that AFAICT this means that in our
|
I have a very rough patch in #910, but there seem to be some unexpected consequences so it might be a while. |
Haven't tested yet, but could this be added to the Documentation?!? For example, in a trouble shooting section? Tested, and works! |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Not stale, see #910. (Sorry for the noise, making stalebot go away.) |
Wait, this was already merged, so I guess this issue can be closed? @jlaine |
Not yet in a release (I've cherry-picked it for Debian for now) |
Has this been updated as yet? |
I was able to install it using this for now, although it'd be nice if it was released.
|
I think we should at least make the changes mentioned in #1007 (comment) before the next release. I'll put together a quick PR. |
I've tagged the release, so the wheels will be hitting PyPI as soon as CI completes (probably in ~4 hours)! |
Overview
av/stream.c uses
__pyx_v_c_stream->codec->codec_type
, but it is deprecated ~4 years ago and will be removed in next ffmpeg version (libavformat>58).In https://trac.ffmpeg.org/wiki/Bump59
Expected behavior
pip install av --no-binary av
works with the latest FFmpeg versionActual behavior
Build failed due to the above compile error
Build report:
Reproduction
build pyAV with latest ffmpeg library
Versions
OS: Linux
FFmpeg:
Research
I have done the following:
The text was updated successfully, but these errors were encountered: