在 Java 中生成照片幻灯片并导出为视频
我想创建一个跨平台幻灯片制作桌面应用程序(主要是 Windows 和 Mac),幻灯片将使用一组带有背景音乐、字幕/说明文字的图像生成,并且每个幻灯片/图像之间会有过渡。
我已经在 swing 中完成了所有 UI,并且在 Windows 和 Windows 上都运行得非常好。苹果。现在唯一的“小”问题是
如何从一组具有“过渡”和“过渡”的图像生成视频java中的“字幕”使用本机java库/框架并在背景中添加一些音乐;-)
我希望视频输出格式至少为avi和amp; mov,过渡如下:
1) 褪色
2) 缩放(图像将从 64x64 等放大到完整视频尺寸)
3)多个(多个图像将出现在单张幻灯片中)
我已经使用JMF示例从.jpeg图像生成.mov,这是有问题的,但如果我可以添加过渡,可能会工作?但看来 JMF 主要用于媒体播放,它只支持几种媒体格式(用于输出)。
我还阅读了 jffmpeg 的一些文档,但它似乎也不支持转换。 我也尝试过 FMJ 但没有用,现在我陷入困境并需要帮助,了解如何在 java 中完成此任务。
如果有人能指导我正确的方向,我将非常感激。
--
非常感谢
I want to create a cross platform SlideShow maker desktop-application (mainly Windows & Mac), the SlideShow will be generated using a set of images with background music, subtitles/captions and there will be a transition between each slide/image.
I have done all the UI in swing and it all works superb on Windows & Mac. Now the only "little" problem is
How to generate a video from a set of images with "transitions" & "subtitles" in java using native java libs/frameworks and add some music in background ;-)
I want the video output format to be at least in avi & mov, with transitions like:
1) fade
2) Zoom (images will zoom-in from e.g. 64x64 to full video size)
3) Multiple (multiple images will appear in single slide)
I have used JMF example to generate .mov from .jpeg images it was buggy but may work if I can add transitions?? But it appears JMF is mainly for media playback it only supports a few media formats (for output).
I have also read a few docs of jffmpeg but it appears it too does not support transitions.
I have also tried FMJ but no use, now I am stuck and need assistance, on how this task can be done in java.
I would be immensely thankful if anyone can guide me in right direction.
--
many thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为你可以用 xuggler 完成这个任务。一探究竟。它可能适合您的需求。
Xuggler
I think you can accomplish this task with xuggler. Check it out. It might fit you needs.
Xuggler