视频一帧一帧求 [英] Video Frame by Frame seeking

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

问题描述

有没有办法来逐步通过画面的视频文件的框架?我使用的是VideoView尝试和我有轻微的成功。我能得到通过视频关键帧而不是单个帧的步骤。我想这将是默认的设置,尤其是与路视频融为一体pression作品。有没有一种方法来覆盖此默认行为或配置,我可以改变吗?

Is there a way to step through a video file frame by frame? I've tried using a VideoView and I've had minor success. I can get the video the step through key frames but not individual frames. I figured this would be the default settings, especially with the way video compression works. Is there a way to override this default behavior or a configuration I can change?

推荐答案

在stagefright媒体框架的默认行为是始终寻求关键帧。 (相对于前面的框架的 - 的OpenCore其默认搜索行为是寻求到时间)

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.)

您不能使用MediaPlayer的API的搭载Android提供做一帧一帧搜索。

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

如果你真的想实​​现逐帧求,那么你将不得不使用第三方的多媒体框架,比如FFmpeg中或者需要实现自己的。

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.

这篇关于视频一帧一帧求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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