Question

I'm trying to find a way to extract video into frames. The main goal is to change the image using openGl and construct the video again.

the problem is that I can't find a desent way to extract the video. I saw that lots of familiar questions were answered with the use of MediaMetadataRetriever but I don't want to use it because it works really slow.

I did a little research about libraries like - jcodec, ffmpeg ,openCV and mp4parser.

jcodec - works fine but really slow, every getFrame() costs 1 second.

ffmpeg - under GPL license which means that you'll have to publish your code.

openCV - complicated. Maybe I can accomplish what I need with it but it looks too complicate and I'm looking for a simpler solution.

mp4parser - extracts decoded frames but doesn't support encoding them to jpg/png.

Would be wonderful to get some help on that one. tnx

Was it helpful?

Solution

No, ffmpeg libraries are licensed with LGPL, and don't require opening all your code. The android build of avcodec include an interface to libstagefright, which provides hardware codecs for h264 (avc). This is as fast as you can get on Android.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top