我有一个FM收音机using (硅芯片),我已经设法通过icecast传输无线电接收,使用以下配置:
这很好,但是如果有第二个FM收音机USB安装在/dev/无线电台1上,我希望同时有第二个流。是否有可能ices2可以直接从/dev/放0和/dev/放1分别接收音频数据并流不同的频道?
还有其他解决方案吗,比如Pulse音频为每个软件源提供不同的录音输入?
发布于 2014-02-05 14:46:46
好的。答案很简单。正如您在图片中所看到的,PulseAudio允许为每个记录软件提供不同的捕获输入(在我们的例子中,对于每个ices2 Alsa捕获模块)。

因此,需要用一个单独的配置文件启动ices2两次
每个ices2都应该定义一个新的alse脉冲源:
<input>
<module>alsa</module>
<param name="device">pulse</param>
<!-- Read metadata (from stdin by default, or -->
<!-- filename defined below (if the latter, only on SIGUSR1) -->
<param name="metadata">1</param>
<param name="metadatafilename">test</param>
</input>和两个不同的例子
例如,用于第一个ices2
<instance>
<!-- Server details.
You define hostname and port for the server here, along
with the source password and mountpoint. -->
<hostname>localhost</hostname>
<port>4888</port>
<username>source</username>
<password>pasword</password>
<mount>/radio1.ogg</mount>
</instance>对于第二个ices2
<instance>
<!-- Server details.
You define hostname and port for the server here, along
with the source password and mountpoint. -->
<hostname>localhost</hostname>
<port>4888</port>
<username>source</username>
<password>pasword</password>
<mount>/radio2.ogg</mount>
</instance>https://unix.stackexchange.com/questions/113668
复制相似问题