Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How exactly do I build OpenCV for Android with an FFMPEG/GStreamer backend?

I've built OpenCV for Android several times from source using CMake's GUI, but my current project needs me to have an FFMPEG/GStreamer (either opens MP4 files, right?) backend for its videoio. This got me stumped even now.

My FFMPEG isn't exactly installed, but unzipped in F:/, while my GStreamer (Windows binary install) is in E:/

Every time I add the WITH_FFMPEG entry to the CMakeconfig, it disappears when I configure it again. The WITH_GSTREAMER_0_10 flag doesn't seem to do anything either, as the Video I/O part of the config remains blank.

What exactly am I supposed to do here? I've been searching all over Google and no one's saying anything about this. Am I supposed to provide the path to either FFMPEG or GStreamer into the OpenCV CMake config? Because I don't see the option to do so anywhere.