Extract Video frames in Android

android, extract, video

Solution

You can use MediaMetadataRetriever:

I'm currently using it, by calling:

mediaMetadataRetriever.getFrameAtTime(timeUs,MediaMetadataRetriever.OPTION_CLOSEST);

I get the frame's `bitmap`.

Note that it's only supported since: `API Level 10`.

Problem

I wanted to know if it is possible to extract frames from a running Video in Android? I need to extract frames at regular intervals and send them for further processing. Would someone be able to find an answer for me? Thanks, Abhi

Original source

Related problems