[英]Android get specific frames from video/while filming video
My app is filming a video from which i need to get specific frames. 我的应用正在拍摄视频,我需要从中获取特定的帧。 Is it possible to save specific frames while taking the video or even after saving the video? 可以在拍摄视频时或保存视频后保存特定的帧吗? how? 怎么样?
EDIT: Another option is to take several pictures in a row with no video(moving the camera and taking a picture every second) is this possible? 编辑:另一个选择是连续拍摄几张图片而没有视频(移动相机并每秒拍摄一张图片),这可能吗?
Is it possible to save specific frames while taking the video or even after saving the video? 可以在拍摄视频时或保存视频后保存特定的帧吗? how? 怎么样?
The MediaMetadataRetriever class has a function called getFrameAtTime()
. MediaMetadataRetriever类具有一个名为getFrameAtTime()
的函数。 I think this works only after saving the file. 我认为这仅在保存文件后有效。 You will only get key frames. 您只会得到关键帧。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.