问题
I have successfully compiled and build ffmpeg library in android after 3,4 days research work.
Now I want to grab frames from video. But I don't know which ffmpeg method with command to be called from java class to grab the all frames. Any one have idea about it? or I want to overlay 2 videos. Is there any direct method available in ffmpeg to merge two videos one over another? If yes, how to call it from java class?
回答1:
compile ffmpeg.c
and invoke its main()
via jni.
For more details see how to Use FFMPEG on Android .
Also refer this github project. And this tutorial too will help you.
I hope this will help you.
来源:https://stackoverflow.com/questions/16890072/how-to-get-video-frames-from-mp4-video-using-ffmpeg-in-android