Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

This problem appears only if you build OpenCV as static library with CUDA and FFmpeg.

To fix the problem replace the following lines in opencv/modules/gpu/src/ffmpeg_video_source.cpp

#ifdef HAVE_FFMPEG
    #include "cap_ffmpeg_impl.hpp"
#else
    #include "cap_ffmpeg_api.hpp"
#endif

with

#if defined(HAVE_FFMPEG) && defined(BUILD_SHARED_LIBS)
    #include "cap_ffmpeg_impl.hpp"
#else
    #include "cap_ffmpeg_api.hpp"
#endif