java 动画,Java的:请从帧动画/视频

博主正在为一个Java研究项目寻找方法将一系列图形帧保存为动画或视频文件。已经实现了绘制每一帧的功能,但对如何组合帧并保存为动画格式感到困惑。提出了使用QuickTime API或ffmpeg作为可能的解决方案。
摘要由CSDN通过智能技术生成

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!

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.

Thanks a bunch!

解决方案

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

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.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值