Java的:请从帧动画/视频 [英] Java: Make an animation/video from frames

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

问题描述

您好!对于(在Java中)的一个研究项目,我必须找到某种方式来保存图形的动画到某些文件格式。现在,我已经有了计划做工精细绘制每一帧。问题是,短的学习整个GIF或AVI文件格式的,我不知道如何将帧组装编程成某种动画或视频文件。文件格式不真正的问题 - 输入或输出。我只是需要一些方法来把帧时,省钱!

Howdy! For a research project (in Java), I've got to find some way to save an animation of a graph into some file format. Now I've already got the program working fine drawing each frame. The problem is, short of learning the whole GIF or AVI file format, I have no idea how to assemble the frames programmatically into some sort of animation or video file. File formats don't really matter--input or output. I just need some way to put the frames together and save!

现在我想最简单的形式是,要么动画GIF或AVI。再次,虽然,它其实并不重要,只要它的作品。

Right now I'm thinking the easiest format would be either animated GIF or AVI. Again, though, it really doesn't matter so long as it works.

感谢一大堆!

推荐答案

他们可能不是最好的选择,但我只是想这些:

They might not be the best options, but I just thought of these:


  • 您可能能够使用一些的QuickTime的API。我知道他们正在使用相当频繁的网络摄像头输入,并且他们还可以生成视频。

  • 您还可以生成每个帧,然后用的ffmpeg 装配它们。

  • You might be able to use some QuickTime APIs. I know they're used fairly often for webcam input, and that they can also generate video.
  • You could also generate each frame and then assemble them with ffmpeg.

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

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