I have one problem:
I'm using code on this site: android-er to make a gif.
Problem: When I make a video and try to convert it to a GIF (Video is 10 sec.) I can get only max. 10 frames from the video. When i change this:
for(int i=0; i<100; i+=10){
long frameTime = maxDur * i/100;
bmFrame = mediaMetadataRetriever.getFrameAtTime(frameTime);
animatedGifEncoder.addFrame(bmFrame);
publishProgress(i);
}
to make more frames: (for i=0;i<100;i+=2)
It doesn't show me 50 frames. It only show 10 and the rest 40 are coppies of that 10 frames. It only takes key frames, I tried with getFrameAtTime(frameTime, OPTION_CLOSEST) and it was same.
I hope you understand my problem.
Thanks