ffmpeg-7 has changed API which causes build to fail: ../src/io/source_avcodec.c: In function ‘new_aubio_source_avcodec’: ../src/io/source_avcodec.c:266:35: error: ‘AVCodecContext’ has no member named ‘channels’ 266 | s->input_channels = avCodecCtx->channels; | ^~ ../src/io/source_avcodec.c: In function ‘aubio_source_avcodec_reset_resampler’: ../src/io/source_avcodec.c:319:28: error: implicit declaration of function ‘av_get_default_channel_layout’ [-Wimplicit-function-declaration] 319 | int64_t input_layout = av_get_default_channel_layout(s->input_channels); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../src/io/source_avcodec.c: In function ‘aubio_source_avcodec_readframe’: ../src/io/source_avcodec.c:376:67: error: ‘AVCodecContext’ has no member named ‘channels’ 376 | int max_out_samples = AUBIO_AVCODEC_MAX_BUFFER_SIZE / avCodecCtx->channels; | ^~ ../src/io/source_avcodec.c:443:14: error: ‘AVFrame’ has no member named ‘channels’ 443 | if (avFrame->channels != (sint_t)s->input_channels) { | ^~ In file included from ../src/io/source_avcodec.c:21: ../src/io/source_avcodec.c:446:16: error: ‘AVFrame’ has no member named ‘channels’ 446 | avFrame->channels, s->input_channels, s->path); | ^~ ../src/aubio_priv.h:240:81: note: in definition of macro ‘AUBIO_WRN’ 240 | #define AUBIO_WRN(...) aubio_log(AUBIO_LOG_WRN, "AUBIO WARNING: " __VA_ARGS__) | ^~~~~~~~~~~ ../src/io/source_avcodec.c:465:63: error: ‘AVCodecContext’ has no member named ‘channels’ 465 | max_out_samples = AUBIO_AVCODEC_MAX_BUFFER_SIZE / avCodecCtx->channels; | ^~ Builds fine against the upstream latest source_avcodec.c (see URL).
Created attachment 908694 [details] aubio-9999.ebuild
aubio-9999 build fine with ffmpeg-7 in my case
Last release is from 2019. Maybe we want a snapshot. See also https://github.com/aubio/aubio/issues/397.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=094fdcf4149ba78197dad438b7545ff4a145cf90 commit 094fdcf4149ba78197dad438b7545ff4a145cf90 Author: Ionen Wolkens <ionen@gentoo.org> AuthorDate: 2025-03-12 00:42:09 +0000 Commit: Ionen Wolkens <ionen@gentoo.org> CommitDate: 2025-03-12 10:11:42 +0000 media-libs/aubio: use ffmpeg-compat Seems already fixed upstream, but not planning to handle a potential snapshot or backports + testing myself. Given no code changes, plans are to sync keywords back with stable when ready. Bug: https://bugs.gentoo.org/942964 Signed-off-by: Ionen Wolkens <ionen@gentoo.org> media-libs/aubio/aubio-0.4.9-r5.ebuild | 182 +++++++++++++++++++++++++++++++++ 1 file changed, 182 insertions(+)