Author Topic: Use Raspberry Pi with DarkIce and Icecast2  (Read 14862 times)

Offline Totte

  • Newbie
  • *
  • Posts: 14
Use Raspberry Pi with DarkIce and Icecast2
« on: July 15, 2015, 06:46:28 PM »
Hi!

I have just bought a RPi. Now I want to stream some air traffic from my scanner with RPi to the internet instead of using laptop with winamp and shoutcast.
I have installed Raspbian and it works. I have also tried my soundcard and it works.
Now i try to follow the guide https://stmllr.net/blog/live-mp3-streaming-from-audio-in-with-darkice-and-icecast2-on-raspberry-pi/index.html.
I am complete new to use RPi, so I have a question.

I have came to the point "Change the compile configuration to match Raspbian environment:" (see also picture),
Code: [Select]
$ vi debian/rules
and this should be used:

Code: [Select]
#!/usr/bin/make -f

%:
dh $@

.PHONY: override_dh_auto_configure
override_dh_auto_configure:
ln -s /usr/share/misc/config.guess .
ln -s /usr/share/misc/config.sub .
dh_auto_configure -- --prefix=/usr --sysconfdir=/usr/share/doc/darkice/examples --with-vorbis-prefix=/usr/lib/arm-linux-gnueabihf/ --with-jack-prefix=/usr/lib/arm-linux-gnueabihf/ --with-alsa-prefix=/usr/lib/arm-linux-gnueabihf/ --with-faac-prefix=/usr/lib/arm-linux-gnueabihf/ --with-aacplus-prefix=/usr/lib/arm-linux-gnueabihf/ --with-samplerate-prefix=/usr/lib/arm-linux-gnueabihf/ --with-lame-prefix=/usr/lib/arm-linux-gnueabihf/ CFLAGS='-march=armv6 -mfpu=vfp -mfloat-abi=hard'

Is it a file that should be saved, or how does it work?



Offline dave

  • Site Founder
  • Administrator
  • Hero Member
  • *****
  • Posts: 4597
    • LiveATC.net
Re: Use Raspberry Pi with DarkIce and Icecast2
« Reply #1 on: July 15, 2015, 08:19:38 PM »
I'll save you some time.  :-)

Just grab this build of darkice (latest version 1.2) as follows:

sudo wget -O /usr/bin/darkice http://dl.liveatc.net/darkice.pi

Then make sure you install the libraries it depends on:

sudo apt-get install libmp3lame-dev libtwolame-dev libasound2-dev libsamplerate-dev

If you are looking to provide a feed to LiveATC open up a ticket here and we will set you up with a darkice.cfg file:
http://www.liveatc.net/ct/fcontact.php

Thanks!
Dave

Offline Totte

  • Newbie
  • *
  • Posts: 14
Re: Use Raspberry Pi with DarkIce and Icecast2
« Reply #2 on: July 16, 2015, 04:55:28 AM »
Hi!

Thanks. Is it just this two steps?

Code: [Select]
sudo wget -O /usr/bin/darkice http://dl.liveatc.net/darkice.pi
sudo apt-get install libmp3lame-dev libtwolame-dev libasound2-dev libsamplerate-dev

I assume that it is some more to do? Some setup.
Is there any guide?
I am complete new with RPi and Raspbian.
Yes, I am intrested of set up a feed to LiveATC.

Offline dave

  • Site Founder
  • Administrator
  • Hero Member
  • *****
  • Posts: 4597
    • LiveATC.net
Re: Use Raspberry Pi with DarkIce and Icecast2
« Reply #3 on: July 16, 2015, 09:50:38 AM »
Hi!

Thanks. Is it just this two steps?

Code: [Select]
sudo wget -O /usr/bin/darkice http://dl.liveatc.net/darkice.pi
sudo apt-get install libmp3lame-dev libtwolame-dev libasound2-dev libsamplerate-dev

I assume that it is some more to do? Some setup.
Is there any guide?
I am complete new with RPi and Raspbian.
Yes, I am intrested of set up a feed to LiveATC.

There are some additional steps, and we send them via the tech support system.  So go to:

http://www.liveatc.net/ct/fcontact.php

and fill out a request.  We track all requests through that system, not here on the forum.

Once you do that we will send you:
/etc/darkice.cfg
and a reference to a better startup script for darkice - for those interested it is here:
http://dl.liveatc.net/darkice.init.pi

Offline Totte

  • Newbie
  • *
  • Posts: 14
Re: Use Raspberry Pi with DarkIce and Icecast2
« Reply #4 on: July 16, 2015, 03:59:38 PM »
Ok, thanks!

Offline Totte

  • Newbie
  • *
  • Posts: 14
Re: Use Raspberry Pi with DarkIce and Icecast2
« Reply #5 on: July 21, 2015, 05:51:34 AM »
Hi!

I have tried to install on my RPi  to send a stream from a Raspberry Pi to LiveATC. It went well until the last step:
sudo dpkg -i ../darkice_1.0-999~mp3+1_armhf.deb

It says:
dpkg: error processing .../darkice_1.0-999~mp3+1_armhf.deb (--install):
cannot access archive: No such file or directory
Errors were encountered while processing:
..darkice_1.0-999~mp3+1_armhf.deb (--install)

I am in  /src/darkice-1.0 directory.

How to continue?

I have sent a mail, but no answer, so I try here instead.

Offline dave

  • Site Founder
  • Administrator
  • Hero Member
  • *****
  • Posts: 4597
    • LiveATC.net
Re: Use Raspberry Pi with DarkIce and Icecast2
« Reply #6 on: July 21, 2015, 07:30:53 AM »
Sounds like your compile failed.  I got your email but I am working at an air show this week so email responses will be a little slow.