audio-streaming - 对第二个流的 Darkice 配置 - 密码无效
问题描述
在 Ubuntu 14.04LTS 上运行 Darkice,音频源通过麦克风输入连接,来自混音器板,允许我使用麦克风和音频源播放音乐。
配置单个流后,它可以工作:
[shoutcast-0]
bitrateMode = cbr
bitrate = 224
quality = 1
server = XXX.XXX.XXX.XX
port = 8000
password = theP4ssw0RdisF4k3
name = My Radio Station
url = http://urltowebsite
genre = rock
public = no
以上,当我运行darkice作品时,登录没有问题。
我正在尝试将第二个流配置到同一台服务器,但我无法连接到它。因此,我在 darkice.cfg 文件的 [shoutcast-0] 下方添加了以下内容:
[shoutcast-1]
bitrateMode = cbr
bitrate = 224
quality = 1
server = XXX.XXX.XXX.XXX
port = 8000
password = PassW0rdToSecondStream
format = mp3
name = Hawkwynd Radio - LIVE from The Greystone
url = http://stream.hawkwynd.com
genre = Classic Rock
public = no
现在,当尝试运行时sudo darkice -c darkice.cfg -v 10
:
DarkIce 1.0 live audio streamer, http://code.google.com/p/darkice/
Copyright (c) 2000-2007, Tyrell Hungary, http://tyrell.hu/
Copyright (c) 2008-2010, Akos Maroy and Rafael Diniz
This is free software, and you are welcome to redistribute it
under the terms of The GNU General Public License version 3 or
any later version.
Using config file: darkice.cfg
23-Feb-2019 10:08:03 Using ALSA DSP input device: hw:1,0
23-Feb-2019 10:08:03 encoding
23-Feb-2019 10:08:03 scheduler high priority 99
23-Feb-2019 10:08:03 Using POSIX real-time scheduling, priority 98
Home directory not accessible: Permission denied
23-Feb-2019 10:08:03 server response length: 20
23-Feb-2019 10:08:03 server response: OK2
icy-caps:11
X#n ( o
23-Feb-2019 10:08:03 set lame mode 1
23-Feb-2019 10:08:03 set lame channels 2
23-Feb-2019 10:08:03 set lame in sample rate 44100
23-Feb-2019 10:08:03 set lame out sample rate 44100
23-Feb-2019 10:08:03 set lame bit rate 224
23-Feb-2019 10:08:03 set lame quality 0
23-Feb-2019 10:08:03 set lame lowpass frequency 0
23-Feb-2019 10:08:03 set lame highpass frequency 0
23-Feb-2019 10:08:03 set lame psycho acoustic model 1
23-Feb-2019 10:08:03 set lame error protection 1
LAME 3.99.5 32bits (http://lame.sf.net)
CPU features: MMX (ASM used), SSE (ASM used), SSE2
Using polyphase lowpass filter, transition band: 19383 Hz - 19916 Hz
23-Feb-2019 10:08:03 server response length: 18
23-Feb-2019 10:08:03 server response: Invalid Password
S
? o ??o
DarkIce: LameLibEncoder.cpp:75: lame lib opening underlying sink error [0]
最后两行“无效密码”很可能假设 [shoutcast-1] 流拒绝密码,我已确认这是正确的。
我使用 BUTT 连接到第 2 个流,而第 1 个流使用仅配置了 [shoutcast-0] 部分的 darkice 运行,并且 BUTT 使用旧密码正常连接。无法在 darkice.cfg 文件中指示旧密码“password#1”。
所以,我的问题是,如何配置我的 darkice.cfg 以成功连接到两个流?
解决方案
推荐阅读
- sql - MS Access SQL 员工培训数据库
- c# - 从 TextBox 中提取部分字符串以替换同一 TextBox 的文本
- hyperledger-fabric - 如何检查密钥是否已经存在于 Hyperledger Fabric 中?
- c# - 仅在不为空时才从列表中获取对象
- javascript - 当嵌套对象的属性值更改时,Angular 7 [禁用] 未检测到更改
- java - Firebase onDataChange - 值事件侦听器不侦听更改
- go - cmd/go: go:binary-only-package 在 go 1.10 #24318 中不起作用
- signals - Godot - 任何跟踪信号的方法?
- php - 如何在内容创世纪主题后添加一段 HTML
- linux - for, do, done 在 linux 中将 txt 转换为 biom 格式