I need to read an AVI file in Android and process its frames. I know its C++ way but not the android one! Can someone help me and give a start point. I'm using opencv 2.4.5.
Asked
Active
Viewed 2,301 times
4 Answers
2
You can try to compile OpenCV with FFMPEG for Android.
Video IO is not officially supported but if I remember correctly this patch worked: http://code.opencv.org/issues/2546 At least you can use it as a good starting point.

Andrey Kamaev
- 29,582
- 6
- 94
- 88
-
1Do you know any tutorials about compiling OpenCV with FFMPEG for Android? – s4eed Jun 26 '13 at 05:39
-
https://gist.github.com/jayrambhia/4ede34930c9a067ea3f8 <- it could be useful. It is the necessary configuration to compile the FFMPEG – carlos.baez Nov 16 '15 at 11:52
-
It seems you have to download ffmpeg source code and put in the correct folder in order to include correct dependencies for Android (ARM arquitecture) – carlos.baez Nov 16 '15 at 12:02
1
I don't think that it is implemented yet (at least it wasn't six months ago). You might want to split you video into frames and open those frames instead of the video file (have a look at this thread).

Community
- 1
- 1

JonasVautherin
- 7,297
- 6
- 49
- 95
1
i'm not sure if it's useful , but take a look at this:
http://www.stanford.edu/class/ee368/Android/Tutorial-2-OpenCV-for-Android-Setup-Macintosh-API11.pdf

pouyan
- 3,445
- 4
- 26
- 44