
Import Opencv310 as your module in android project. There has many tutorials to tell you how to compile both in Windows and Linux.Just google it by youself. Tutorials (3 Steps)ĭownload related source project,including ndk, opencv source(from github), ffmpeg (from github). My environments: Windows 10, android studio 2.3.3, android sdk 23, ndk 14r, opencv 310, ffmpeg 3.3(latest, 0). The most important things about how to read video using opencv in android device is compiling opencv with ffmpeg.

This project shows you how to use opencv compiled with ffmpeg to read video, include mp4 ,avi and so on.

Android NDK JNI, use opencv compiled with ffmpeg, so you can use videocapture to decode videos, such as mp4,avi and so on.
