zodac
zodac

Reputation: 357

Change keyframe interval using android camera

Is there a way of changing the frequency of a keyframe when using the android camera? I'm using an intent to record video, and then the MediaMetaDataRetriever class to extract frames, but the keyframes are too far apart for my liking.

Upvotes: 2

Views: 871

Answers (1)

Gonzalo Solera
Gonzalo Solera

Reputation: 1192

You can use getFrameAtTime (long timeUs, int option) using OPTION_CLOSEST to get a frame that is not a key frame, so you can access any frame you want.

The only problem is that this frame is not a key frame so it can be pixelated.

Upvotes: 1

Related Questions