Video Frame by Frame seeking

帅比萌擦擦* 提交于 2019-12-03 08:33:43

The default behaviour in stagefright media framework is always to seek to key frame. (As opposed to the earlier framework's - opencore whose default seeking behaviour was to seek to time.)

You cannot do frame by frame seeking by using the MediaPlayer API's provided by Android.

If you really want implement frame by frame seeking then you will have to use a 3rd party multimedia framework like FFMPEG or you will need to implement your own.

Have you looked at MediaMetadataRetriever ? There you can use getFrameAtTime(long timeUs, int option) and return a Bitmap.

Depending of the use, maybe it's what you need.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!