Question

I want to get the frames of a video file to show in a gallery view in android. and how to edit frames, for example

Select frame sections

use selected sections

delete selected sections

copy selected sections

cut selected sections

paste into the head

paste into the tail

Was it helpful?

Solution

You can use the MediaMetadataRetriever class. It has getFrameAt() method wherein you can specify the time of the frame that you want to get.

For details refer to MediaMetadataRetriever

OTHER TIPS

Actually, MediaMetadataRetriever.getFrameAtTime uses microseconds as a parameter, not milliseconds. Once you make that change, you can get the correct frames from the video.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top