【问题标题】:Mixing two icecast stream with liquidsoap and stream it to icecast server将两个icecast流与liquidsoap混合并将其流式传输到icecast服务器
【发布时间】:2014-11-30 16:37:47
【问题描述】:

我试图将两个流与液体皂混合,一个在左侧,另一个在右侧,如何混合并将其流式传输到 icecast 服务器。 我已经用 darkice 流式传输了这两个流

这是我的伪代码

stream1 = 'localhost/stream1' " streamed with darkice on my localmachine 
stream2 = 'localhost/stream2' " streamed with darkice on my localmachine

stream3 = mix(stream1[on the left], stream2[on the right])

output.icecast(stream3)

有人知道吗?我是这类问题的新手。

【问题讨论】:

    标签: icecast liquidsoap


    【解决方案1】:

    您可以使用input.harbor 将水流放入液体皂中,然后将它们混合在一起。

    source_1 = input.harbor('source1',port=9000)
    source_2 = input.harbor('source2',port=9001)
    
    mixed = add([source_1,source_2])
    
    output.icecast(%vorbis,id="icecast",                                                                                                                                     
                   mount="mystream.ogg",                                                                                                                                   
                   host="localhost", password="hackme",                                                                                                                 
                   icy_metadata="true",description="",                                                                                                          
                   url="",                                                                                                                               
                   mixed)                                                                                                                                                   
    

    如果流已经被左/右平移,这应该可以工作。否则,liquidsoap 确实有 stereo.pan 函数。

    【讨论】:

    • 太棒了!如果您需要更多帮助,请告诉我。
    【解决方案2】:

    liquidsoap 有一个内置的crossfade 函数,可以满足您的需求。对于更高级的淡入淡出,有smart crossfade 函数。

    【讨论】:

    • 听起来更像是他希望流同时播放,而不是交叉淡入淡出?
    猜你喜欢
    • 2012-08-12
    • 1970-01-01
    • 1970-01-01
    • 2011-05-20
    • 2019-06-02
    • 1970-01-01
    • 2017-02-10
    • 2013-07-23
    • 1970-01-01
    相关资源
    最近更新 更多