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
Build fails with FFmpeg 6.0 #1106
Comments
Seeing same issue on FreeBSD (amd64) using LLVM/Clang:
|
Removed and renamed constants with entry from API changes https://git.ffmpeg.org/gitweb/ffmpeg.git/blob/HEAD:/doc/APIchanges Remove use of AVCodecContext.sub_text_format 2021-09-20 - 176b8d785bf - lavc 59.9.100 - avcodec.h Deprecate AVCodecContext.sub_text_format and the corresponding AVOptions. It is unused since the last major bump. AV_CODEC_CAP_TRUNCATED removed: 2021-09-20 - dd846bc4a91 - lavc 59.8.100 - avcodec.h codec.h Deprecate AV_CODEC_FLAG_TRUNCATED and AV_CODEC_CAP_TRUNCATED, as they are redundant with parsers. AV_CODEC_CAP_AUTO_THREADS renamed to AV_CODEC_CAP_AUTO_THREADS 2021-03-16 - 7d09579190 - lavc 58.132.100 - codec.h Add AV_CODEC_CAP_OTHER_THREADS as a new name for AV_CODEC_CAP_AUTO_THREADS. AV_CODEC_CAP_AUTO_THREADS is now deprecated. AV_CODEC_CAP_INTRA_ONLY removed (use AV_CODEC_PROP_INTRA_ONLY instead): AV_CODEC_CAP_LOSSLESS removed (use AV_CODEC_PROP_LOESSNES instead): 2020-05-21 - 13b1bbff0b - lavc 58.86.101 - avcodec.h Deprecated AV_CODEC_CAP_INTRA_ONLY and AV_CODEC_CAP_LOSSLESS. AV_CODEC_FLAG_TRUNCATED removed: AV_CODEC_CAP_TRUNCATED removed: 2021-09-20 - dd846bc4a91 - lavc 59.8.100 - avcodec.h codec.h Deprecate AV_CODEC_FLAG_TRUNCATED and AV_CODEC_CAP_TRUNCATED, as they are redundant with parsers. AV_CODEC_FLAG2_DROP_FRAME_TIMECODE removed: Not API changelog but was removed in f843460eb790d37e444e5946628f228421916537: avcodec/avcodec: Remove AV_CODEC_FLAG2_DROP_FRAME_TIMECODE It has been deprecated in 94d68a4 and can't be set via AVOptions. The only codecs that use it (the MPEG-1/2 encoders) have private options for this. So remove it. AVFMT_FLAG_PRIV_OPT removed: 2021-03-03 - 2ff40b98ec - lavf 58.70.100 - avformat.h Deprecate AVFMT_FLAG_PRIV_OPT. It will do nothing as soon as av_demuxer_open() is removed. Related to PyAV-Org#1106
jFYI, we hit this error today for our Docker builds. Pinning to Looking forward to compatibility with |
I'm waiting for the update to ffmpeg 6.0 ... |
I have the same issue, hope this will be fixed soon |
Also breaks MacOS 10.9 MacPorts with ffmpeg 6.0 installed, I also tried installing from pip and that fails due to missing Metal Framework, so I’m trying to build from source and that fails due to this issue. update: this waiting PR works on ffmpeg 6.0! |
We've merged the necessary PRs to build ffmpeg 6.0 in the |
Overview
FFmpeg 6.0 was released on February 28th. PyAV currently doesn't build against this version due to removal of several deprecated features, including the flags AV_CODEC_CAP_TRUNCATED, AV_CODEC_CAP_AUTO_THREADS, AV_CODEC_CAP_INTRA_ONLY, AV_CODEC_CAP_LOSSLESS, and AVFMT_FLAG_PRIV_OPT.
Expected behavior
I would expect to be able to successfully build against FFmpeg 6.0.
Actual behavior
The build fails with FFmpeg 6.0.
Build report (full log here):
Investigation
I recently updated to FFmpeg 6.0, and PyAV does not build anymore. I looked into the changes made in FFmpeg 6.0 and it appears that at a minimum, some flags PyAV references have been removed.
Reproduction
python setup.py build
Versions
Research
I have done the following:
The text was updated successfully, but these errors were encountered: