需要在Android上将图像编码为视频
我们需要一个可以将图像文件夹编码为视频的 Android 应用程序。我已经寻找解决方案有一段时间了,但找不到任何好的解决方案。 Android API 不支持它。我们正在尝试 ffmpeg,但无法让它工作。我们需要一个可行的解决方案,使用 ffmpeg 不是强制性的。完整的 Android Java 解决方案也是一种可能性,因为这可以在所有 Android 设备上运行,但可能会牺牲一些性能。
如果用户选择这样做,应用程序还需要能够向电影添加音轨。
任何帮助将不胜感激。
亲切的问候,
亚伦
We need an Android app that can encode a folder of images to a video. I have been looking for solutions a while now, but cannot find anything good. The Android API does not support it. We are trying ffmpeg, but cannot get it to work. We need a working solution, using ffmpeg is not mandatory. A full Android Java solution is also a possibility, since this would work on all Android devices, possibly at the cost of some performance.
The app also needs to be able to add an audio track to the movie if the user chooses to do this.
Any help would be appreciated.
Kind regards,
Aäron
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
来自 FFmpeg 常见问题解答条目“如何对单个图像进行编码图片变成电影?”:
添加音轨应该只涉及添加另一个输入(例如,
-i audio.mp3
),但也可能需要对旧版本进行显式-map
。From the FFmpeg FAQ entry "How do I encode single pictures into movies?":
Adding an audio track should just involve add another input (e.g.,
-i audio.mp3
), but could also require explicit-map
ing with older versions.