xuchong / android-opencv-ffmpeg

android NDK JNI, use opencv compiled with ffmpeg, so you can use videocapture to decode videos, such as mp4,avi and so on
MIT License
69 stars 21 forks source link

opencv cmake changes #2

Closed adennie closed 6 years ago

adennie commented 6 years ago

Hi, can you clarify the changes needed to the opencv cmake files?

I assume that the change to the root CMakeLists.txt is to change

OCV_OPTION(WITH_FFMPEG "Include FFMPEG support" ON IF (NOT ANDROID AND NOT IOS)) to OCV_OPTION(WITH_FFMPEG "Include FFMPEG support" ON IF (NOT IOS))

But the needed change to OpenCVFindLibsVideo.cmake is not as obvious to me. Thanks!

xuchong commented 6 years ago

@adennie This is my changes in opencv source when i build opencv with ffmpeg for android.

Wish it can help you.

The details you can found here: https://gist.github.com/xuchong/31426c624bffd8802ecf17a830bfef53

You can also download the diff files. diff.patch.txt