3

我正在尝试使用 Darkice 进行流式传输。控制台显示:

root@raspberrypi:~# darkice
Using config file: /etc/darkice.cfg
Using ALSA DSP input device: hw:1,0
Using POSIX real-time scheduling, priority 98
Buffer overrun!
Buffer overrun!
...
Buffer overrun!
Buffer overrun!
DarkIce: AlsaDspSource.cpp:265: Input/output error [0]
root@raspberrypi:~#

我用:

  • 树莓派 B
  • Raspbian Soft-float Debian “wheezy”(我需要使用 Java 做其他事情)
  • 黑冰 1.2

我使用以下命令编译源代码:

编解码器 vorbis

cd /opt/
tar -zxvf libvorbis-1.3.3.tar.gz
tar -zxvf libogg-1.3.1.tar.gz
cd ./libogg-1.3.1/
./configure
make
make install

cd ../libvorbis-1.3.3
./configure
make
make install

编解码器 aacplus

cd ..
tar -zxvf libaacplus-2.0.2.tar.gz
cd ./libaacplus-2.0.2/
apt-get install autoconf #I need the utility "autoconf" for the installation
apt-get install libtool #and the library "libtool"
./autogen.sh
./configure
make
make install

编解码器蹩脚/ mp3

cd ..
tar -zxvf lame-3.99.5.tar.gz
cd ./lame-3.99.5/
./configure
make
make install

这个我不确定我需要

wget http://www.mega-nerd.com/SRC/libsamplerate-0.1.8.tar.gz
tar -zxvf darkice-1.2.tar.gz
cd ./libsamplerate-0.1.8
./configure
make
make check
make install
ldconfig -v
sndfile-resample

黑冰

cd ..
tar -zxvf darkice-1.2.tar.gz
cd ./darkice-1.2/
apt-get install libasound2-dev
./configure --with-vorbis-prefix=/usr/local/lib/ --with-lame-prefix=/usr/local/lib/ --with-aacplus-prefix=/usr/local/lib/ --with-alsa-prefix=/usr/lib/arm-linux-gnueabi/ --with-samplerate-prefix=/usr/local/lib --with-jack-prefix=/usr/lib/arm-linux-gnueabi/
make
make install

所有软件包的安装都很好。

de 文件:/etc/darkice.cfg 的参数为:

[general]
duration = 0
bufferSecs = 1
reconnect = yes

[input]
device= hw:1,0
sampleRate = 44100
bitsPerSample = 16
channel= 2

[shoutcast-0]
bitrateMode = cbr
bitrate = 56
format = mp3
quality = 1.0
...

设备 hw:1,0 是正确的,因为当我使用 Audacity 时,我记录得很好。

我按照以下说明操作:http ://www.t3node.com/blog/live-streami ... pberry-pi/ 但问题仍然存在...

我看到其他帖子谈论这个问题,但没有任何帮助。

任何想法?我能做些什么?

4

0 回答 0