Bug#1004718: opencv: FTBFS with ffmpeg 5.0
Sebastian Ramacher
sramacher at debian.org
Tue Feb 1 07:53:10 GMT 2022
Source: opencv
Version: 4.5.4+dfsg-9
Severity: important
X-Debbugs-Cc: sramacher at debian.org
Tags: sid bookworm ftbfs
Usertags: ftbfs5.0
opencv FTBFS with ffmpeg 5.0 (available in experimental):
| [569/1071] /usr/lib/ccache/c++ -DCVAPI_EXPORTS -DENABLE_PLUGINS -DHAVE_CAMV4L2 -DHAVE_DC1394_2 -DHAVE_FFMPEG -DHAVE_GPHOTO2 -DHAVE_GSTREAMER -D_USE_MATH_DEFINES -D__OPENCV_BUILD=1 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu -I/<<PKGBUILDDIR>>/modules/videoio/include -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/modules/videoio -I/<<PKGBUILDDIR>>/modules/core/include -I/<<PKGBUILDDIR>>/modules/imgproc/include -I/<<PKGBUILDDIR>>/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/x86_64-linux-gnu/glib-2.0/include -isystem /usr/include/orc-0.4 -isystem /usr/include/CL -isystem /usr/include/gphoto2 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-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 -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -fvisibility=hidden -fvisibility-inlines-hidden -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -DNDEBUG -fPIC -std=c++11 -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 /<<PKGBUILDDIR>>/modules/videoio/src/cap_ffmpeg.cpp
| FAILED: modules/videoio/CMakeFiles/opencv_videoio.dir/src/cap_ffmpeg.cpp.o
| /usr/lib/ccache/c++ -DCVAPI_EXPORTS -DENABLE_PLUGINS -DHAVE_CAMV4L2 -DHAVE_DC1394_2 -DHAVE_FFMPEG -DHAVE_GPHOTO2 -DHAVE_GSTREAMER -D_USE_MATH_DEFINES -D__OPENCV_BUILD=1 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu -I/<<PKGBUILDDIR>>/modules/videoio/include -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/modules/videoio -I/<<PKGBUILDDIR>>/modules/core/include -I/<<PKGBUILDDIR>>/modules/imgproc/include -I/<<PKGBUILDDIR>>/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/x86_64-linux-gnu/glib-2.0/include -isystem /usr/include/orc-0.4 -isystem /usr/include/CL -isystem /usr/include/gphoto2 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-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 -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -fvisibility=hidden -fvisibility-inlines-hidden -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -DNDEBUG -fPIC -std=c++11 -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 /<<PKGBUILDDIR>>/modules/videoio/src/cap_ffmpeg.cpp
| In file included from /<<PKGBUILDDIR>>/modules/videoio/src/cap_ffmpeg.cpp:50:
| /<<PKGBUILDDIR>>/modules/videoio/src/cap_ffmpeg_impl.hpp:537:5: error: ‘AVBSFContext’ does not name a type; did you mean ‘AVIOContext’?
| 537 | AVBSFContext* bsfc;
| | ^~~~~~~~~~~~
| | AVIOContext
| /<<PKGBUILDDIR>>/modules/videoio/src/cap_ffmpeg_impl.hpp: In member function ‘void CvCapture_FFMPEG::init()’:
| /<<PKGBUILDDIR>>/modules/videoio/src/cap_ffmpeg_impl.hpp:583:5: error: ‘bsfc’ was not declared in this scope
| 583 | bsfc = NULL;
| | ^~~~
| /<<PKGBUILDDIR>>/modules/videoio/src/cap_ffmpeg_impl.hpp: In member function ‘void CvCapture_FFMPEG::close()’:
| /<<PKGBUILDDIR>>/modules/videoio/src/cap_ffmpeg_impl.hpp:613:34: error: ‘AVStream’ {aka ‘struct AVStream’} has no member named ‘codec’
| 613 | avcodec_close( video_st->codec );
| | ^~~~~
| /<<PKGBUILDDIR>>/modules/videoio/src/cap_ffmpeg_impl.hpp:648:9: error: ‘bsfc’ was not declared in this scope
| 648 | if (bsfc)
| | ^~~~
| /<<PKGBUILDDIR>>/modules/videoio/src/cap_ffmpeg_impl.hpp:651:9: error: ‘av_bsf_free’ was not declared in this scope; did you mean ‘av_opt_free’?
| 651 | av_bsf_free(&bsfc);
| | ^~~~~~~~~~~
| | av_opt_free
| /<<PKGBUILDDIR>>/modules/videoio/src/cap_ffmpeg_impl.hpp: At global scope:
| /<<PKGBUILDDIR>>/modules/videoio/src/cap_ffmpeg_impl.hpp:796:39: error: ‘AVLockOp’ has not been declared
| 796 | static int LockCallBack(void **mutex, AVLockOp op)
| | ^~~~~~~~
| /<<PKGBUILDDIR>>/modules/videoio/src/cap_ffmpeg_impl.hpp: In function ‘int LockCallBack(void**, int)’:
| /<<PKGBUILDDIR>>/modules/videoio/src/cap_ffmpeg_impl.hpp:801:14: error: ‘AV_LOCK_CREATE’ was not declared in this scope; did you mean ‘AV_LOG_TRACE’?
| 801 | case AV_LOCK_CREATE:
| | ^~~~~~~~~~~~~~
| | AV_LOG_TRACE
| /<<PKGBUILDDIR>>/modules/videoio/src/cap_ffmpeg_impl.hpp:810:14: error: ‘AV_LOCK_OBTAIN’ was not declared in this scope
| 810 | case AV_LOCK_OBTAIN:
| | ^~~~~~~~~~~~~~
| /<<PKGBUILDDIR>>/modules/videoio/src/cap_ffmpeg_impl.hpp:814:14: error: ‘AV_LOCK_RELEASE’ was not declared in this scope
| 814 | case AV_LOCK_RELEASE:
| | ^~~~~~~~~~~~~~~
| /<<PKGBUILDDIR>>/modules/videoio/src/cap_ffmpeg_impl.hpp:818:14: error: ‘AV_LOCK_DESTROY’ was not declared in this scope
| 818 | case AV_LOCK_DESTROY:
| | ^~~~~~~~~~~~~~~
| /<<PKGBUILDDIR>>/modules/videoio/src/cap_ffmpeg_impl.hpp: In constructor ‘InternalFFMpegRegister::InternalFFMpegRegister()’:
| /<<PKGBUILDDIR>>/modules/videoio/src/cap_ffmpeg_impl.hpp:871:9: error: ‘av_register_all’ was not declared in this scope
| 871 | av_register_all();
| | ^~~~~~~~~~~~~~~
| /<<PKGBUILDDIR>>/modules/videoio/src/cap_ffmpeg_impl.hpp:874:9: error: ‘av_lockmgr_register’ was not declared in this scope
| 874 | av_lockmgr_register(&LockCallBack);
| | ^~~~~~~~~~~~~~~~~~~
| /<<PKGBUILDDIR>>/modules/videoio/src/cap_ffmpeg_impl.hpp: In destructor ‘InternalFFMpegRegister::~InternalFFMpegRegister()’:
| /<<PKGBUILDDIR>>/modules/videoio/src/cap_ffmpeg_impl.hpp:878:9: error: ‘av_lockmgr_register’ was not declared in this scope
| 878 | av_lockmgr_register(NULL);
| | ^~~~~~~~~~~~~~~~~~~
| In file included from /<<PKGBUILDDIR>>/modules/videoio/src/cap_ffmpeg.cpp:50:
| /<<PKGBUILDDIR>>/modules/videoio/src/cap_ffmpeg_impl.hpp: In member function ‘bool CvCapture_FFMPEG::open(const char*, const cv::VideoCaptureParameters&)’:
| /<<PKGBUILDDIR>>/modules/videoio/src/cap_ffmpeg_impl.hpp:986:42: error: invalid conversion from ‘const AVInputFormat*’ to ‘AVInputFormat*’ [-fpermissive]
| 986 | input_format = av_find_input_format(entry->value);
| | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
| | |
| | const AVInputFormat*
| /<<PKGBUILDDIR>>/modules/videoio/src/cap_ffmpeg_impl.hpp:1005:47: error: ‘AVStream’ {aka ‘struct AVStream’} has no member named ‘codec’
| 1005 | AVCodecContext* enc = ic->streams[i]->codec;
| | ^~~~~
| /<<PKGBUILDDIR>>/modules/videoio/src/cap_ffmpeg_impl.hpp:1091:53: error: invalid conversion from ‘const AVCodec*’ to ‘AVCodec*’ [-fpermissive]
| 1091 | codec = avcodec_find_decoder(enc->codec_id);
| | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
| | |
| | const AVCodec*
| /<<PKGBUILDDIR>>/modules/videoio/src/cap_ffmpeg_impl.hpp:1100:61: error: invalid conversion from ‘const AVCodec*’ to ‘AVCodec*’ [-fpermissive]
| 1100 | codec = avcodec_find_decoder_by_name(video_codec_param->value);
| | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
| | |
| | const AVCodec*
| /<<PKGBUILDDIR>>/modules/videoio/src/cap_ffmpeg_impl.hpp: In member function ‘bool CvCapture_FFMPEG::processRawPacket()’:
| /<<PKGBUILDDIR>>/modules/videoio/src/cap_ffmpeg_impl.hpp:1220:19: error: ‘AVBitStreamFilter’ does not name a type
| 1220 | const AVBitStreamFilter * bsf = av_bsf_get_by_name(filterName);
| | ^~~~~~~~~~~~~~~~~
| /<<PKGBUILDDIR>>/modules/videoio/src/cap_ffmpeg_impl.hpp:1221:18: error: ‘bsf’ was not declared in this scope
| 1221 | if (!bsf)
| | ^~~
| /<<PKGBUILDDIR>>/modules/videoio/src/cap_ffmpeg_impl.hpp:1226:36: error: ‘bsf’ was not declared in this scope
| 1226 | int err = av_bsf_alloc(bsf, &bsfc);
| | ^~~
| /<<PKGBUILDDIR>>/modules/videoio/src/cap_ffmpeg_impl.hpp:1226:42: error: ‘bsfc’ was not declared in this scope
| 1226 | int err = av_bsf_alloc(bsf, &bsfc);
| | ^~~~
| /<<PKGBUILDDIR>>/modules/videoio/src/cap_ffmpeg_impl.hpp:1226:23: error: ‘av_bsf_alloc’ was not declared in this scope; did you mean ‘av_max_alloc’?
| 1226 | int err = av_bsf_alloc(bsf, &bsfc);
| | ^~~~~~~~~~~~
| | av_max_alloc
| /<<PKGBUILDDIR>>/modules/videoio/src/cap_ffmpeg_impl.hpp:1233:19: error: ‘av_bsf_init’ was not declared in this scope; did you mean ‘av_uninit’?
| 1233 | err = av_bsf_init(bsfc);
| | ^~~~~~~~~~~
| | av_uninit
| /<<PKGBUILDDIR>>/modules/videoio/src/cap_ffmpeg_impl.hpp:1249:9: error: ‘bsfc’ was not declared in this scope
| 1249 | if (bsfc)
| | ^~~~
| /<<PKGBUILDDIR>>/modules/videoio/src/cap_ffmpeg_impl.hpp:1257:19: error: ‘av_bsf_send_packet’ was not declared in this scope; did you mean ‘avcodec_send_packet’?
| 1257 | int err = av_bsf_send_packet(bsfc, &packet);
| | ^~~~~~~~~~~~~~~~~~
| | avcodec_send_packet
| /<<PKGBUILDDIR>>/modules/videoio/src/cap_ffmpeg_impl.hpp:1263:15: error: ‘av_bsf_receive_packet’ was not declared in this scope; did you mean ‘avcodec_receive_packet’?
| 1263 | err = av_bsf_receive_packet(bsfc, &packet_filtered);
| | ^~~~~~~~~~~~~~~~~~~~~
| | avcodec_receive_packet
| /<<PKGBUILDDIR>>/modules/videoio/src/cap_ffmpeg_impl.hpp: In member function ‘bool CvCapture_FFMPEG::grabFrame()’:
| /<<PKGBUILDDIR>>/modules/videoio/src/cap_ffmpeg_impl.hpp:1307:45: error: ‘AVStream’ {aka ‘struct AVStream’} has no member named ‘codec’
| 1307 | valid = avcodec_receive_frame(video_st->codec, picture) >= 0;
| | ^~~~~
| /<<PKGBUILDDIR>>/modules/videoio/src/cap_ffmpeg_impl.hpp:1357:43: error: ‘AVStream’ {aka ‘struct AVStream’} has no member named ‘codec’
| 1357 | if (avcodec_send_packet(video_st->codec, &packet) < 0) {
| | ^~~~~
| /<<PKGBUILDDIR>>/modules/videoio/src/cap_ffmpeg_impl.hpp:1360:47: error: ‘AVStream’ {aka ‘struct AVStream’} has no member named ‘codec’
| 1360 | ret = avcodec_receive_frame(video_st->codec, picture);
| | ^~~~~
| /<<PKGBUILDDIR>>/modules/videoio/src/cap_ffmpeg_impl.hpp:1369:40: error: ‘AVFrame’ {aka ‘struct AVFrame’} has no member named ‘pkt_pts’; did you mean ‘pkt_dts’?
| 1369 | picture_pts = picture->pkt_pts != AV_NOPTS_VALUE_ && picture->pkt_pts != 0 ? picture->pkt_pts : picture->pkt_dts;
| | ^~~~~~~
| | pkt_dts
| /<<PKGBUILDDIR>>/modules/videoio/src/cap_ffmpeg_impl.hpp:1369:79: error: ‘AVFrame’ {aka ‘struct AVFrame’} has no member named ‘pkt_pts’; did you mean ‘pkt_dts’?
| 1369 | picture_pts = picture->pkt_pts != AV_NOPTS_VALUE_ && picture->pkt_pts != 0 ? picture->pkt_pts : picture->pkt_dts;
| | ^~~~~~~
| | pkt_dts
| /<<PKGBUILDDIR>>/modules/videoio/src/cap_ffmpeg_impl.hpp:1369:103: error: ‘AVFrame’ {aka ‘struct AVFrame’} has no member named ‘pkt_pts’; did you mean ‘pkt_dts’?
| 1369 | picture_pts = picture->pkt_pts != AV_NOPTS_VALUE_ && picture->pkt_pts != 0 ? picture->pkt_pts : picture->pkt_dts;
| | ^~~~~~~
| | pkt_dts
| /<<PKGBUILDDIR>>/modules/videoio/src/cap_ffmpeg_impl.hpp: In member function ‘bool CvCapture_FFMPEG::retrieveFrame(int, unsigned char**, int*, int*, int*, int*)’:
| /<<PKGBUILDDIR>>/modules/videoio/src/cap_ffmpeg_impl.hpp:1405:23: error: ‘bsfc’ was not declared in this scope
| 1405 | AVPacket& p = bsfc ? packet_filtered : packet;
| | ^~~~
| /<<PKGBUILDDIR>>/modules/videoio/src/cap_ffmpeg_impl.hpp:1431:34: error: ‘AVStream’ {aka ‘struct AVStream’} has no member named ‘codec’
| 1431 | frame.width != video_st->codec->width ||
| | ^~~~~
| /<<PKGBUILDDIR>>/modules/videoio/src/cap_ffmpeg_impl.hpp:1432:35: error: ‘AVStream’ {aka ‘struct AVStream’} has no member named ‘codec’
| 1432 | frame.height != video_st->codec->height ||
| | ^~~~~
| /<<PKGBUILDDIR>>/modules/videoio/src/cap_ffmpeg_impl.hpp:1437:38: error: ‘AVStream’ {aka ‘struct AVStream’} has no member named ‘codec’
| 1437 | int buffer_width = video_st->codec->coded_width, buffer_height = video_st->codec->coded_height;
| | ^~~~~
| /<<PKGBUILDDIR>>/modules/videoio/src/cap_ffmpeg_impl.hpp:1441:31: error: ‘buffer_height’ was not declared in this scope; did you mean ‘buffer_width’?
| 1441 | buffer_width, buffer_height,
| | ^~~~~~~~~~~~~
| | buffer_width
| /<<PKGBUILDDIR>>/modules/videoio/src/cap_ffmpeg_impl.hpp:1471:33: error: ‘AVStream’ {aka ‘struct AVStream’} has no member named ‘codec’
| 1471 | frame.width = video_st->codec->width;
| | ^~~~~
| /<<PKGBUILDDIR>>/modules/videoio/src/cap_ffmpeg_impl.hpp:1472:34: error: ‘AVStream’ {aka ‘struct AVStream’} has no member named ‘codec’
| 1472 | frame.height = video_st->codec->height;
| | ^~~~~
| /<<PKGBUILDDIR>>/modules/videoio/src/cap_ffmpeg_impl.hpp:1482:26: error: ‘AVStream’ {aka ‘struct AVStream’} has no member named ‘codec’
| 1482 | 0, video_st->codec->coded_height,
| | ^~~~~
| /<<PKGBUILDDIR>>/modules/videoio/src/cap_ffmpeg_impl.hpp: In member function ‘bool CvCapture_FFMPEG::retrieveHWFrame(cv::OutputArray)’:
| /<<PKGBUILDDIR>>/modules/videoio/src/cap_ffmpeg_impl.hpp:1511:44: error: ‘AVStream’ {aka ‘struct AVStream’} has no member named ‘codec’
| 1511 | return hw_copy_frame_to_umat(video_st->codec->hw_device_ctx, picture, output);
| | ^~~~~
| /<<PKGBUILDDIR>>/modules/videoio/src/cap_ffmpeg_impl.hpp: In member function ‘double CvCapture_FFMPEG::getProperty(int) const’:
| /<<PKGBUILDDIR>>/modules/videoio/src/cap_ffmpeg_impl.hpp:1547:30: error: ‘AVStream’ {aka ‘struct AVStream’} has no member named ‘codec’
| 1547 | codec_id = video_st->codec->codec_id;
| | ^~~~~
| /<<PKGBUILDDIR>>/modules/videoio/src/cap_ffmpeg_impl.hpp:1548:40: error: ‘AVStream’ {aka ‘struct AVStream’} has no member named ‘codec’
| 1548 | codec_tag = (double) video_st->codec->codec_tag;
| | ^~~~~
| /<<PKGBUILDDIR>>/modules/videoio/src/cap_ffmpeg_impl.hpp:1568:43: error: ‘AVStream’ {aka ‘struct AVStream’} has no member named ‘codec’
| 1568 | AVPixelFormat pix_fmt = video_st->codec->pix_fmt;
| | ^~~~~
| /<<PKGBUILDDIR>>/modules/videoio/src/cap_ffmpeg_impl.hpp: In member function ‘double CvCapture_FFMPEG::get_fps() const’:
| /<<PKGBUILDDIR>>/modules/videoio/src/cap_ffmpeg_impl.hpp:1642:52: error: ‘AVStream’ {aka ‘struct AVStream’} has no member named ‘codec’
| 1642 | fps = 1.0 / r2d(ic->streams[video_stream]->codec->time_base);
| | ^~~~~
| /<<PKGBUILDDIR>>/modules/videoio/src/cap_ffmpeg_impl.hpp: In member function ‘void CvCapture_FFMPEG::seek(int64_t)’:
| /<<PKGBUILDDIR>>/modules/videoio/src/cap_ffmpeg_impl.hpp:1699:58: error: ‘AVStream’ {aka ‘struct AVStream’} has no member named ‘codec’
| 1699 | avcodec_flush_buffers(ic->streams[video_stream]->codec);
| | ^~~~~
| /<<PKGBUILDDIR>>/modules/videoio/src/cap_ffmpeg_impl.hpp: In function ‘bool icv_configure_video_stream_FFMPEG(AVFormatContext*, AVStream*, const AVCodec*, int, int, int, double, AVPixelFormat)’:
| /<<PKGBUILDDIR>>/modules/videoio/src/cap_ffmpeg_impl.hpp:1934:29: error: ‘AVStream’ {aka ‘struct AVStream’} has no member named ‘codec’
| 1934 | AVCodecContext *c = st->codec;
| | ^~~~~
| /<<PKGBUILDDIR>>/modules/videoio/src/cap_ffmpeg_impl.hpp:1942:5: error: ‘avcodec_get_context_defaults3’ was not declared in this scope
| 1942 | avcodec_get_context_defaults3(c, codec);
| | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| /<<PKGBUILDDIR>>/modules/videoio/src/cap_ffmpeg_impl.hpp: In function ‘int icv_av_write_frame_FFMPEG(AVFormatContext*, AVStream*, uint8_t*, uint32_t, AVFrame*, int)’:
| /<<PKGBUILDDIR>>/modules/videoio/src/cap_ffmpeg_impl.hpp:2049:35: error: ‘AVStream’ {aka ‘struct AVStream’} has no member named ‘codec’
| 2049 | AVCodecContext* c = video_st->codec;
| | ^~~~~
| /<<PKGBUILDDIR>>/modules/videoio/src/cap_ffmpeg_impl.hpp: In member function ‘bool CvVideoWriter_FFMPEG::writeFrame(const unsigned char*, int, int, int, int, int)’:
| /<<PKGBUILDDIR>>/modules/videoio/src/cap_ffmpeg_impl.hpp:2148:35: error: ‘AVStream’ {aka ‘struct AVStream’} has no member named ‘codec’
| 2148 | AVCodecContext* c = video_st->codec;
| | ^~~~~
| /<<PKGBUILDDIR>>/modules/videoio/src/cap_ffmpeg_impl.hpp:2226:19: error: ‘AVStream’ {aka ‘struct AVStream’} has no member named ‘codec’
| 2226 | if (video_st->codec->hw_device_ctx) {
| | ^~~~~
| /<<PKGBUILDDIR>>/modules/videoio/src/cap_ffmpeg_impl.hpp:2233:45: error: ‘AVStream’ {aka ‘struct AVStream’} has no member named ‘codec’
| 2233 | if (av_hwframe_get_buffer(video_st->codec->hw_frames_ctx, hw_frame, 0) < 0) {
| | ^~~~~
| /<<PKGBUILDDIR>>/modules/videoio/src/cap_ffmpeg_impl.hpp: In member function ‘bool CvVideoWriter_FFMPEG::writeHWFrame(cv::InputArray)’:
| /<<PKGBUILDDIR>>/modules/videoio/src/cap_ffmpeg_impl.hpp:2262:20: error: ‘AVStream’ {aka ‘struct AVStream’} has no member named ‘codec’
| 2262 | if (!video_st->codec->hw_frames_ctx)
| | ^~~~~
| /<<PKGBUILDDIR>>/modules/videoio/src/cap_ffmpeg_impl.hpp:2270:41: error: ‘AVStream’ {aka ‘struct AVStream’} has no member named ‘codec’
| 2270 | if (av_hwframe_get_buffer(video_st->codec->hw_frames_ctx, hw_frame, 0) < 0) {
| | ^~~~~
| /<<PKGBUILDDIR>>/modules/videoio/src/cap_ffmpeg_impl.hpp:2276:42: error: ‘AVStream’ {aka ‘struct AVStream’} has no member named ‘codec’
| 2276 | if (!hw_copy_umat_to_frame(video_st->codec->hw_device_ctx, input, hw_frame)) {
| | ^~~~~
| /<<PKGBUILDDIR>>/modules/videoio/src/cap_ffmpeg_impl.hpp: In member function ‘void CvVideoWriter_FFMPEG::close()’:
| /<<PKGBUILDDIR>>/modules/videoio/src/cap_ffmpeg_impl.hpp:2351:19: error: ‘AVStream’ {aka ‘struct AVStream’} has no member named ‘codec’
| 2351 | if( video_st->codec->pix_fmt != input_pix_fmt)
| | ^~~~~
| /<<PKGBUILDDIR>>/modules/videoio/src/cap_ffmpeg_impl.hpp:2363:29: error: ‘AVStream’ {aka ‘struct AVStream’} has no member named ‘codec’
| 2363 | avcodec_close(video_st->codec);
| | ^~~~~
| /<<PKGBUILDDIR>>/modules/videoio/src/cap_ffmpeg_impl.hpp: In member function ‘bool CvVideoWriter_FFMPEG::open(const char*, int, double, int, int, const cv::VideoWriterParameters&)’:
| /<<PKGBUILDDIR>>/modules/videoio/src/cap_ffmpeg_impl.hpp:2490:26: error: invalid conversion from ‘const AVOutputFormat*’ to ‘AVOutputFormat*’ [-fpermissive]
| 2490 | fmt = av_guess_format(NULL, filename, NULL);
| | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
| | |
| | const AVOutputFormat*
| /<<PKGBUILDDIR>>/modules/videoio/src/cap_ffmpeg_impl.hpp:2570:18: error: ‘AVFormatContext’ {aka ‘struct AVFormatContext’} has no member named ‘filename’
| 2570 | snprintf(oc->filename, sizeof(oc->filename), "%s", filename);
| | ^~~~~~~~
| /<<PKGBUILDDIR>>/modules/videoio/src/cap_ffmpeg_impl.hpp:2570:39: error: ‘AVFormatContext’ {aka ‘struct AVFormatContext’} has no member named ‘filename’
| 2570 | snprintf(oc->filename, sizeof(oc->filename), "%s", filename);
| | ^~~~~~~~
| /<<PKGBUILDDIR>>/modules/videoio/src/cap_ffmpeg_impl.hpp:2686:58: error: ‘AVFormatContext’ {aka ‘struct AVFormatContext’} has no member named ‘filename’
| 2686 | codec_id = av_guess_codec(oc->oformat, NULL, oc->filename, NULL, AVMEDIA_TYPE_VIDEO);
| | ^~~~~~~~
| /<<PKGBUILDDIR>>/modules/videoio/src/cap_ffmpeg_impl.hpp:2704:35: error: ‘AVStream’ {aka ‘struct AVStream’} has no member named ‘codec’
| 2704 | AVCodecContext *c = video_st->codec;
| | ^~~~~
| /<<PKGBUILDDIR>>/modules/videoio/src/cap_ffmpeg_impl.hpp:2737:41: error: invalid conversion from ‘const AVCodec*’ to ‘AVCodec*’ [-fpermissive]
| 2737 | codec = avcodec_find_encoder(codec_id);
| | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
| | |
| | const AVCodec*
| In file included from /<<PKGBUILDDIR>>/modules/videoio/src/cap_ffmpeg_impl.hpp:100,
| from /<<PKGBUILDDIR>>/modules/videoio/src/cap_ffmpeg.cpp:50:
| /<<PKGBUILDDIR>>/modules/videoio/src/cap_ffmpeg_hw.hpp: At global scope:
| /<<PKGBUILDDIR>>/modules/videoio/src/cap_ffmpeg_hw.hpp:846:1: warning: ‘bool hw_copy_umat_to_frame(AVBufferRef*, cv::InputArray, AVFrame*)’ defined but not used [-Wunused-function]
| 846 | hw_copy_umat_to_frame(AVBufferRef* ctx, cv::InputArray input, AVFrame* hw_frame) {
| | ^~~~~~~~~~~~~~~~~~~~~
| /<<PKGBUILDDIR>>/modules/videoio/src/cap_ffmpeg_hw.hpp:794:1: warning: ‘bool hw_copy_frame_to_umat(AVBufferRef*, AVFrame*, cv::OutputArray)’ defined but not used [-Wunused-function]
| 794 | hw_copy_frame_to_umat(AVBufferRef* ctx, AVFrame* hw_frame, cv::OutputArray output) {
| | ^~~~~~~~~~~~~~~~~~~~~
| ninja: build stopped: subcommand failed.
| dh_auto_build: error: cd obj-x86_64-linux-gnu && LC_ALL=C.UTF-8 ninja -j7 -v returned exit code 1
Cheers
--
Sebastian Ramacher
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/debian-science-maintainers/attachments/20220201/ba239858/attachment-0001.sig>
More information about the debian-science-maintainers
mailing list