如何以编程方式将多个 RTP 音频流混合在一起?
我有多个来自网络的 RTP 流,并且由于 RTP 只能处理每个方向上的一个流,因此我需要能够合并一对流以发送回另一个客户端(可能是已经发送 RTP 流的客户端,或者不...那部分并不重要)。
我的猜测是有一些混合音频字节的算法。
RTP Stream 1 ---------------------
\_____________________ (1 MUXED 2) RTP Stream Out
/
RTP Stream 2 ---------------------
I have several RTP streams coming to from the network, and since RTP can only handle one stream in each direction, I need to able to merge a couple to send back to another client (could be one that is already sending an RTP stream, or not... that part isn't important).
My guess is that there is some algorithm for mixing audio bytes.
RTP Stream 1 ---------------------
\_____________________ (1 MUXED 2) RTP Stream Out
/
RTP Stream 2 ---------------------
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
有一个关于 RTP 流复用的 IETF 草案,它可能会帮助您,链接在这里 http://www.cs.columbia.edu/~hgs/rtp/drafts/draft-tanikawa-rtp- Multiplex-01.txt
如果您只想使用一个流,然后可能通过此链接从多个流作为不同通道发送数据概述了如何在 WAV 文件中复用音频通道。您可以采取类似的策略
There is an IETF draft for RTP stream Muxing which might help you the link is here http://www.cs.columbia.edu/~hgs/rtp/drafts/draft-tanigawa-rtp-multiplex-01.txt
In case you want to use only one stream, then perhaps send data from multiple streams as different channles this link gives an overview how Audio channels are multiplexed in WAV files. You can adopt similar strategy
我认为您正在谈论 VoIP 会议。
我认为 mediastreamer2 库支持会议过滤器。
I think you are talking about VoIP conference.
mediastreamer2 library I think supports conference filter.