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
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
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With