本文介绍了节约使用Xuggler和Red5的一种视频和其他音频的两个流的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是RED5服务器。我做使用Flex应用程序中的双向视频会议。我现在的RED5服务器存储两个流为不同的FLV文件。

I am using a red5 server. I am doing a two way video conference using flex application. My current red5 server is storing both streams as different flv files.

现在我已经做了一些编辑和保存这些编辑的文件为一体,具有视频流

now i have done some editing and have saved these edited files as one with video stream

(OutputVideo.flv)

和一个与音频流

(OutputAudio.mp3)

现在我想加入这些视频为一体的flv

Now i want to join these videos into one flv

(Output.flv)

我怎么能做到这一点使用xuggler。

How can i do that using xuggler.

请,如果有人能帮助我,或者至少给我提供一些线索。请注意,我使用Eclispe的java的

Please if anyone can help me or at least provide me some hints. Note that i am using eclispe java

推荐答案

我刚开始寻找到xuggler,所以这个答案是未经测试。从本教程,它看起来像创建一连串的指令:

I am just starting to look into xuggler, so this answer is untested. From this tutorial, it looks like you create a chain of commands:

[...]
// create a tool chain:
// reader -> addStaticImage -> reduceVolume -> writer
mediaReader.addListener(imageMediaTool);
imageMediaTool.addListener(audioVolumeMediaTool);
audioVolumeMediaTool.addListener(mediaWriter);
[...]

这些不必是相同的流,我的理解;他们只需要被链接。很抱歉,我不是更多的帮助,但希望有人能纠正任何错误。

These don't have to be the same streams, as I understand it; they just have to be chained. Sorry I am not more help, but hopefully someone can correct any errors.

这篇关于节约使用Xuggler和Red5的一种视频和其他音频的两个流的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-16 04:08