Hi all,
I'm trying to create an android application that will frame-by-frame process video files taken with a phone camera (.mp4) with openCV. Having looked at previous questions on this subject, I know that the android version of openCV doesn't include ffmpeg backend for decoding files of this format, so the videocapture won't be able to open them.
However, in some answers to previous questions, it has been stated that there is no way of opening any kind of video files with videocapture on android, and in another couple that the videocapture just needs a very specific file format (MJPEG in an AVI container) and then will work as usual.
If there is no way whatsoever of doing this, please let me know so I can stop spending time on it. However, if there is a specific format that definitely DOES work, would it be possible to get some more details about this? I've made several attempts at using various different conversion methods, including ffmpeg, to convert my mp4 files to MJPEGs in AVI contaniers, but still haven't produced anything that the videocapture will accept.
Any information about correct ffmpeg commands to use (ones from a previous question haven't worked for me - http://answers.opencv.org/question/126732/loading-video-files-using-videocapture-in-android/) would be most appreciated. Otherwise, just more specifics about the required format would be good, then I can ask somewhere else about how to get there from an mp4.
As for other alternatives, so far I'm aware of ffmpegmediadataretriever (https://github.com/wseemann/FFmpegMediaMetadataRetriever), which appears to be far too slow for these purposes, and the ffmpegframegrabber class from javaCV, which appears to have numerous issues working on android devices. If anyone knows any other alternatives I'd be extremely grateful.
Thanks very much!