如何合并一个音频和视频文件 -- Xuggler
我想使用 Xuggler 将没有音频的视频文件 (flv)
与音频文件 (mp3)
结合起来。目前,我已经拍摄了两个流,并将这些流的视频和音频部分分别组合起来,就像画中画一样。现在我想将音频和视频文件相互组合。任何建议或提示将不胜感激。我使用的是red5服务器。谢谢。
I want to combine a video file (flv)
with no audio with an audio file (mp3)
using Xuggler. At the moment I have taken two streams and combined the video and audio parts of those streams separately like picture in picture. Now i want to combine the audio and video files with each other.. Any suggestion or hints will be appreciated. I am using red5 server. Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我开发了一个类,它将接受两个输入,一个音频文件和第二个视频文件,并将它们合并到一个音频视频文件中。
希望它能帮助你。
I developed a class that will take two inputs, one audio file and second video file and will merge them to a single audio video file.
Hope it will help u.
我知道这个线程很旧,但提供的解决方案对我不起作用,我想我应该在这里分享我的解决方案...
我将以下依赖项添加到我的 pom.xml
然后我使用 ProcessBuilder 执行 FFMPEG 命令。要合并音频和视频,我使用以下命令:
I know this thread is very old but the provided solution did not work for me and I figured I'd share my solution here...
I added the following dependencies to my pom.xml
Then I use ProcessBuilder to execute FFMPEG commands. To merge audio and video, I use the following command:
使用 MediaConcatenator。请参阅示例代码 "连接音频和视频"
Use a MediaConcatenator. See example code "Concatenate Audio And Video"