我尝试使用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:~#
我用:
我使用以下命令编译源代码:
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
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
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 file:/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 / 但问题仍然存在......
我看到其他帖子谈论这个问题,但没有任何帮助我。
有什么想法吗?我该怎么办?