

Tested with OpenCV 4.3.0 and ffmpeg release/4.2 on RHEL 8. This might clobber any ffmpeg libraries you've installed through your OS package manager. The opencv cmake should then be able to find the ffmpeg libraries. 2) Open the root CMakeLists.txt and insert the line set (HAVE_FFMPEG 1) 3) Download (or the 32 bit build if u fancy it) 4) Edit avformat.h found in the ffmpeg include dir with #define INT64_C. Compile OpenCV with FFmpegġ) Download OpenCV 2.3. Basically, the module provides the cv::VideoCapture and cv::VideoWriter classes as 2-layer interface to many video I/O APIs used as backend. The OpenCV Video I/O module is a set of classes and functions to read and write video or images sequence.

First, modify root CMakeLists.txt in opencv source project to let it support android with ffmpeg.Second, modify OpenCVFindLibsVideo.cmake in cmake directory.Samely, for support android with ffmpeg. These wrappers are also downloaded and used unconditionally under Windows.įor offical opencv doesn't support android with ffmpeg, you can just get opencv without ffmpeg from that. Instead, it requires the opencv_ffmpeg*.dll wrappers to be built first. However, OpenCV does not allow FFmpeg to be used directly as under Linux.
