已解决 - 调试 Darkice 以了解为什么没有连接到 Shotcast

如何解决已解决 - 调试 Darkice 以了解为什么没有连接到 Shotcast


我正在尝试从使用 Ubuntu 的 darkice 客户端连接到 shoutcast 服务器。这是我的配置:

#this section describes general aspects of the live streaming session
[general]
duration        = 0        # duration of encoding,in seconds. 0 means forever
bufferSecs      = 10          # size of internal slip buffer,in seconds
reconnect       = yes       # reconnect to the server(s) if disconnected
realtime        = no       # run the encoder with POSIX realtime priority
rtprio          = 3         # scheduling priority for the realtime threads

# this section describes the audio input that will be streamed
[input]
device           = hw:CARD=PCH,DEV=0
sampleRate      = 44100                 # sample rate in Hz. try 11025,22050 or 44100
bitsPerSample   = 16                    # bits per sample. try 16
channel         = 2                     # channels. 1 = mono,2 = stereo

# this section describes a streaming connection to an IceCast2 server
# there may be up to 8 of these sections,named [icecast2-0] ... [icecast2-7]
# these can be mixed with [icecast-x] and [shoutcast-x] sections
[shoutcast-0]
bitrateMode     = cbr
format          = mp3
bitrate         = 96
quality         = 1.0
server          = xxxxxxxxxxxxxxx
port            = 8020
password        = xxxxxxxxxxxxxxx
name            = Radio website
url             = https://www.mywebsite.it
genre           = live
public          = no

但是当我跑步时

darkice -v 10 -c /etc/darkice-shoutcast.cfg

它只显示这个,没有错误或类似的,但在 url 上没有流。使用 BUTT 就可以了。我还使用 8021 而不是 8020 进行了端口测试(8020 是提供商提供的端口号),但没有成功。

DarkIce 1.4 live audio streamer,http://code.google.com/p/darkice/
copyright (c) 2000-2007,Tyrell Hungary,http://tyrell.hu/
copyright (c) 2008-2013,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: /etc/darkice-shoutcast.cfg
18-May-2021 12:02:28 Using ALSA DSP input device: hw:CARD=PCH,DEV=0
18-May-2021 12:02:28 buffer size:  1764000
18-May-2021 12:02:28 encoding
18-May-2021 12:02:28 MultiThreadedConnector :: transfer,bytes 0
18-May-2021 12:02:28 MultiThreadedConnector :: ThreadData :: threadFunction,was (thread,priority,type):  0x5568a502c010 0 SCHED_OTHER
18-May-2021 12:02:28 MultiThreadedConnector :: ThreadData :: threadFunction,Now is (thread,type):  0x5568a502c010 0 SCHED_OTHER

附录 我已经使用 tcpdump 来了解可能是什么,我只看到类似于“无效密码”的内容

: Flags [P.],cksum 0xc379 (correct),seq 1:19,ack 3090,win 294,options [nop,nop,TS val 3348978428 ecr 531576376],length 18
E..F1O@.1.3'.}.......T.Jq.k.D......&.y.....
..Z...68Invalid Passwor

有关如何更好地调试或修复此问题的建议?

解决 看来这个错误与密码和配置文件错误解析有关,所以我写的时候没有空格

[shoutcast-0]
bitrateMode     = cbr
format          = mp3
bitrate         = 96
quality         = 1.0
server          = xxxxxxxxxxxxxxx
port            = 8020
password=xxxxxxxxxxxxxxx
name            = Radio website
url             = https://www.mywebsite.it
genre           = live
public          = no

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐


Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其他元素将获得点击?
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。)
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbcDriver发生异常。为什么?
这是用Java进行XML解析的最佳库。
Java的PriorityQueue的内置迭代器不会以任何特定顺序遍历数据结构。为什么?
如何在Java中聆听按键时移动图像。
Java“Program to an interface”。这是什么意思?
Java在半透明框架/面板/组件上重新绘画。
Java“ Class.forName()”和“ Class.forName()。newInstance()”之间有什么区别?
在此环境中不提供编译器。也许是在JRE而不是JDK上运行?
Java用相同的方法在一个类中实现两个接口。哪种接口方法被覆盖?
Java 什么是Runtime.getRuntime()。totalMemory()和freeMemory()?
java.library.path中的java.lang.UnsatisfiedLinkError否*****。dll
JavaFX“位置是必需的。” 即使在同一包装中
Java 导入两个具有相同名称的类。怎么处理?
Java 是否应该在HttpServletResponse.getOutputStream()/。getWriter()上调用.close()?
Java RegEx元字符(。)和普通点?