在 Java 中将视频帧保存为静态图像
我想将视频(例如 catch.avi)转换为 Java 中的帧(作为图像),以便我可以制作我家的地图视图。我想我会得到大约一百帧,我想将它们放入 ArrayList
中。这样,我可以遍历列表来生成我的地图外观。
给我带来麻烦的是将视频文件转换为其组成帧。我研究过 Java Media Framework,但不知道如何做到这一点。请指导我。
I want to convert a video, say catch.avi, into its frames (as images) in Java so that I can make a Map view of my house. I suppose I'll get about a hundred frames, which I'll want to put into an ArrayList
. That way, I can traverse the list to generate my Map Look.
The thing that's giving me trouble is converting the video file into its constituent frames. I've studied the Java Media Framework, but haven't got any idea how to do this. Please guide me.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
JMF 并未过时。这里有一些教程,肯定会对您有所帮助。输入链接描述这里
JMF is not obslete.here are some tutorials that will definitely hep u.enter link description here