如何在android中获取视频文件的帧 [英] how to get frames of video file in android

查看:81
本文介绍了如何在android中获取视频文件的帧的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将视频文件的帧显示在 android 的图库视图中.以及如何编辑框架,例如

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

选择框架部分

使用选定的部分

删除选定的部分

复制选定的部分

剪切选定的部分

粘贴到头部

粘贴到尾部

推荐答案

您可以使用 MediaMetadataRetriever 类.它有 getFrameAt() 方法,您可以在其中指定要获取的帧的时间.

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

详情请参考MediaMetadataRetriever

这篇关于如何在android中获取视频文件的帧的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆