#1144031 opencv: FTBFS with ffmpeg 9.0

Package:
src:opencv
Source:
src:opencv
Submitter:
Sebastian Ramacher
Date:
2026-08-15 08:09:06 UTC
Severity:
normal
Tags:
#1144031#5
Date:
2026-08-09 22:34:34 UTC
From:
To:
Source: opencv
Version: 4.10.0+dfsg-8
Severity: important
Tags: ftbfs sid forky
X-Debbugs-Cc: sramacher@debian.org
Usertags: ffmpeg-9.0

Dear maintainer,

opencv FTBFS with ffmpeg 9.0 (available in experimental).

FAILED: [code=1] modules/videoio/CMakeFiles/opencv_videoio.dir/src/cap_ffmpeg.cpp.o
/usr/bin/aarch64-linux-gnu-g++ -DCVAPI_EXPORTS -DENABLE_PLUGINS -DHAVE_CAMV4L2 -DHAVE_DC1394_2 -DHAVE_FFMPEG -DHAVE_GPHOTO2 -DHAVE_GSTREAMER -DHAVE_OBSENSOR -DHAVE_OBSENSOR_V4L2 -D_USE_MATH_DEFINES -D__OPENCV_BUILD=1 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/build/reproducible-path/opencv-4.10.0+dfsg/obj-aarch64-linux-gnu -I/build/reproducible-path/opencv-4.10.0+dfsg/modules/videoio/include -I/build/reproducible-path/opencv-4.10.0+dfsg/obj-aarch64-linux-gnu/modules/videoio -I/build/reproducible-path/opencv-4.10.0+dfsg/modules/core/include -I/build/reproducible-path/opencv-4.10.0+dfsg/modules/imgproc/include -I/build/reproducible-path/opencv-4.10.0+dfsg/modules/imgcodecs/include -isystem /usr/include/gdal -isystem /usr/include/eigen3 -isystem /usr/include/gstreamer-1.0 -isystem /usr/include/glib-2.0 -isystem /usr/lib/aarch64-linux-gnu/glib-2.0/include -isystem /usr/include/sysprof-6 -isystem /usr/include/orc-0.4 -isystem /usr/include/libdrm -isystem /usr/include/CL -isystem /usr/include/gphoto2 -g -O2 -ffile-prefix-map=/build/reproducible-path/opencv-4.10.0+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2   -fsigned-char -W -Wall -Wreturn-type -Wnon-virtual-dtor -Waddress -Wsequence-point -Wformat -Wformat-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Wsuggest-override -Wno-delete-non-virtual-dtor -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections    -fvisibility=hidden -fvisibility-inlines-hidden -g -O2 -ffile-prefix-map=/build/reproducible-path/opencv-4.10.0+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard  -DNDEBUG -std=c++11 -fPIC -MD -MT modules/videoio/CMakeFiles/opencv_videoio.dir/src/cap_ffmpeg.cpp.o -MF modules/videoio/CMakeFiles/opencv_videoio.dir/src/cap_ffmpeg.cpp.o.d -o modules/videoio/CMakeFiles/opencv_videoio.dir/src/cap_ffmpeg.cpp.o -c /build/reproducible-path/opencv-4.10.0+dfsg/modules/videoio/src/cap_ffmpeg.cpp
In file included from /build/reproducible-path/opencv-4.10.0+dfsg/modules/videoio/src/cap_ffmpeg_impl.hpp:175,
                 from /build/reproducible-path/opencv-4.10.0+dfsg/modules/videoio/src/cap_ffmpeg.cpp:50:
/build/reproducible-path/opencv-4.10.0+dfsg/modules/videoio/src/cap_ffmpeg_hw.hpp: In function ‘AVCodec* hw_find_codec(AVCodecID, AVHWDeviceType, int (*)(const AVCodec*), const char*, AVPixelFormat*)’:
/build/reproducible-path/opencv-4.10.0+dfsg/modules/videoio/src/cap_ffmpeg_hw.hpp:741:82: error: ‘AVCodec’ {aka ‘struct AVCodec’} has no member named ‘pix_fmts’
  741 |             if (av_codec_is_encoder(c) && hw_native_fmt != AV_PIX_FMT_NONE && c->pix_fmts) {
      |                                                                                  ^~~~~~~~
/build/reproducible-path/opencv-4.10.0+dfsg/modules/videoio/src/cap_ffmpeg_hw.hpp:742:36: error: ‘AVCodec’ {aka ‘struct AVCodec’} has no member named ‘pix_fmts’
  742 |                 for (int i = 0; c->pix_fmts[i] != AV_PIX_FMT_NONE; i++) {
      |                                    ^~~~~~~~
/build/reproducible-path/opencv-4.10.0+dfsg/modules/videoio/src/cap_ffmpeg_hw.hpp:743:28: error: ‘AVCodec’ {aka ‘struct AVCodec’} has no member named ‘pix_fmts’
  743 |                     if (c->pix_fmts[i] == hw_native_fmt) {
      |                            ^~~~~~~~
/build/reproducible-path/opencv-4.10.0+dfsg/modules/videoio/src/cap_ffmpeg_impl.hpp: In function ‘AVCodecContext* icv_configure_video_stream_FFMPEG(AVFormatContext*, AVStream*, const AVCodec*, int, int, int, double, AVPixelFormat, int, AVCodecID)’:
/build/reproducible-path/opencv-4.10.0+dfsg/modules/videoio/src/cap_ffmpeg_impl.hpp:2295:24: error: ‘const AVCodec’ {aka ‘const struct AVCodec’} has no member named ‘supported_framerates’
 2295 |     if(codec && codec->supported_framerates){
      |                        ^~~~~~~~~~~~~~~~~~~~
/build/reproducible-path/opencv-4.10.0+dfsg/modules/videoio/src/cap_ffmpeg_impl.hpp:2296:37: error: ‘const AVCodec’ {aka ‘const struct AVCodec’} has no member named ‘supported_framerates’
 2296 |         const AVRational *p= codec->supported_framerates;
      |                                     ^~~~~~~~~~~~~~~~~~~~

See the attached build log for more details.

Cheers