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.