Android: What is the best way to decode H264 encoded mp4 files and get the necessary frames to create an animation?
-
Standard Media Metadata Retriever doesn't help. If often can't decode frames.
-
Answer:
You may use android.media.MediaCodec to get frame data, suggest to decode into a SurfaceTexture, render in OpenGL ES and glReadPixels back or just use shader to render the animation on fly. Another way is to use JNI to invoke FFmpeg lib which is a little over-killing.
Wu Yang at Quora Visit the source
Related Q & A:
- What's the best way to get into the Graphic Design industry?Best solution by Yahoo! Answers
- What is the best way to get from Denver to Fort Collins?Best solution by Yahoo! Answers
- What is the best way to get a job on cruise ships without spending money?Best solution by cruiseserver.net
- What is the best way to get website traffic?Best solution by Yahoo! Answers
- What's the best way to get a job in a restaurant?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.