RadioReference on Facebook   RadioReference on Twitter   RadioReference Blog
 

Go Back   The RadioReference.com Forums > Computer Aided Monitoring and Programming > Streaming / Broadcasting / Audio Recording


Streaming / Broadcasting / Audio Recording - Interested in putting your scanner online for others to hear? Want to listen to other radios on the internet. This forum is here for you to discuss these topics related to streaming scanners online.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-17-2017, 11:38 PM
Bellingham_Scanner's Avatar
Member
  Shack Photos
Shack photos
Premium Subscriber
Premium Subscriber
Amateur Radio Operator
Amateur Radio
 
Join Date: Mar 2010
Location: Bellingham Washington
Posts: 233
Default Darkice multiple feeds audio mixing and echo

I have been running three feeds on a Raspberry Pi2 for quite some time.

I have to admit I rarely listen to my own feed anymore.

Occasionally I would get feed reports that the airport was heard on the police feed. I thought I had it fixed by using a separate antenna for the airport. But last night a "regular listener" contacted me and said the fire and police feeds have been mixed together for a few months.

I have been listening and sure enough all three of my feeds are being mixed together.

Go listen to any of my feeds and you will hear all three feeds mixed together.

I forgot to mention the echo, earlier today on listening to the police feed I could hear two repeats of everything.
Reply With Quote
Sponsored links
  #2 (permalink)  
Old 06-17-2017, 11:57 PM
Member
  Premium Subscriber
Premium Subscriber
 
Join Date: Dec 2016
Location: Milpitas, CA
Posts: 263
Default

What are the details of your hardware setup? Are you actually feeding all three feeds for that county on a single Rpi2?
Reply With Quote
  #3 (permalink)  
Old 06-18-2017, 12:02 AM
Bellingham_Scanner's Avatar
Member
  Shack Photos
Shack photos
Premium Subscriber
Premium Subscriber
Amateur Radio Operator
Amateur Radio
 
Join Date: Mar 2010
Location: Bellingham Washington
Posts: 233
Default

Yes all three feeds are on the one pi.

There are three USB soundcards and three instances of darkice running

I set it up a while ago following instructions I found on the forum here somwhere.


Last edited by Bellingham_Scanner; 06-18-2017 at 12:11 AM..
Reply With Quote
  #4 (permalink)  
Old 06-18-2017, 3:19 AM
Member
  Premium Subscriber
Premium Subscriber
 
Join Date: Dec 2016
Location: Milpitas, CA
Posts: 263
Default

That's impressive. What are you using for the radio signal sources?

Last edited by JACK26; 06-18-2017 at 3:25 AM..
Reply With Quote
  #5 (permalink)  
Old 06-18-2017, 11:29 PM
Bellingham_Scanner's Avatar
Member
  Shack Photos
Shack photos
Premium Subscriber
Premium Subscriber
Amateur Radio Operator
Amateur Radio
 
Join Date: Mar 2010
Location: Bellingham Washington
Posts: 233
Default

I see this was moved to a more appropriate forum.

Here is more detail:

Three separate scanners each have their audio out connected to the Mic input of the Generic USB audio adapter, all plugged into one Raspberry Pi 2 maybe Pi3. As you can see from the picture in my previous post. I am pretty sure it is running Jessie as at the time I set it up that was the latest instructions and maybe even image I found here. There is a start up script that starts darkice and one that checks every minute and relaunches darkice.

I replicated that setup and the script to launch three instances of darkice and can see three instances of darkice running.

I have three separate darkice config files:
Code:
# darkice configuration file
#
# Copy this configuration file to /etc/darkice#.cfg

[general]

duration      = 0     # 0 means forever
bufferSecs    = 10
reconnect      = yes     

[input]

# this can be used if darkice is the sole user of audio capture device:

# Import notes for the "device =" setting on this preconfigured image
#
# Most configurations with one additional USB sound card added will 
# use "plughw:1,0" as the setting for the device.
#
# When adding 2 or more USB sound cards, your first USB sound card will
# start at plughw:0,0 and work it's way up n+1 (hw:1,0 hw:2,0 hw:3,0 and so on
#
# If adding just a single USB sound card for a broadcast, simply use the following:
# device = plughw:1,0
#
# You can verify card and device numbers by running the arecord -l command

device        = plughw:1,0    # hw:0,0 then hw:1,0 then hw:2,0 etc
sampleRate     = 22050     
bitsPerSample      = 16         
channel      = 1         # 1 for mono, 2 for stereo

[icecast2-0]

bitrateMode      = cbr 
format         = mp3
bitrate      = 16 
quality      = 0.1       
channel      = 1     
lowpass      = 4000
sampleRate      = 22050

server         = audio3.broadcastify.com     # Your Master Server Name
port         = 80                  # 80 or 8080
password     = XXXXXXX               # Your Feed Password
mountPoint     = 442650946             # Your Feed Mount Point (Leave out the "/")
name         = Bellingham International - KBLI and Victoria - CYYJ Airports
Code:
# darkice configuration file
#
# Copy this configuration file to /etc/darkice#.cfg

[general]

duration      = 0     # 0 means forever
bufferSecs    = 10
reconnect      = yes     

[input]

# this can be used if darkice is the sole user of audio capture device:

# Import notes for the "device =" setting on this preconfigured image
#
# Most configurations with one additional USB sound card added will 
# use "plughw:1,0" as the setting for the device.
#
# When adding 2 or more USB sound cards, your first USB sound card will
# start at plughw:0,0 and work it's way up n+1 (hw:1,0 hw:2,0 hw:3,0 and so on
#
# If adding just a single USB sound card for a broadcast, simply use the following:
# device = plughw:1,0
#
# You can verify card and device numbers by running the arecord -l command

device        = plughw:2,0    # hw:0,0 then hw:1,0 then hw:2,0 etc
sampleRate     = 22050     
bitsPerSample      = 16         
channel      = 1         # 1 for mono, 2 for stereo

[icecast2-0]

bitrateMode      = cbr 
format         = mp3
bitrate      = 16 
quality      = 0.1       
channel      = 1     
lowpass      = 4000
sampleRate      = 22050

server         = audio9.broadcastify.com     # Your Master Server Name
port         = 80                  # 80 or 8080
password     = XXXXXXX               # Your Feed Password
mountPoint     = 155224334             # Your Feed Mount Point (Leave out the "/")
name         = Bellingham and Whatcom County Fire
Code:
# darkice configuration file
#
# Copy this configuration file to /etc/darkice#.cfg

[general]

duration      = 0     # 0 means forever
bufferSecs    = 10
reconnect      = yes     

[input]

# this can be used if darkice is the sole user of audio capture device:

# Import notes for the "device =" setting on this preconfigured image
#
# Most configurations with one additional USB sound card added will 
# use "plughw:1,0" as the setting for the device.
#
# When adding 2 or more USB sound cards, your first USB sound card will
# start at plughw:0,0 and work it's way up n+1 (hw:1,0 hw:2,0 hw:3,0 and so on
#
# If adding just a single USB sound card for a broadcast, simply use the following:
# device = plughw:1,0
#
# You can verify card and device numbers by running the arecord -l command

device        = plughw:0,0    # hw:0,0 then hw:1,0 then hw:2,0 etc
sampleRate     = 22050     
bitsPerSample      = 16         
channel      = 1         # 1 for mono, 2 for stereo

[icecast2-0]

bitrateMode      = cbr 
format         = mp3
bitrate      = 16 
quality      = 0.1       
channel      = 1     
lowpass      = 4000
sampleRate      = 22050

server         = audio3.broadcastify.com     # Your Master Server Name
port         = 80                  # 80 or 8080
password     = XXXXXXXX               # Your Feed Password
mountPoint     = 120801025             # Your Feed Mount Point (Leave out the "/")
name         = Whatcom County Sheriff, Bellingham Police and Washington State Patrol
Is anyone running a similar setup?

I have turned off the scanners on my fire and air feeds, listen to one of them and you will hear everything from the police feed.
Reply With Quote
Sponsored links
  #6 (permalink)  
Old 06-19-2017, 8:30 PM
Bellingham_Scanner's Avatar
Member
  Shack Photos
Shack photos
Premium Subscriber
Premium Subscriber
Amateur Radio Operator
Amateur Radio
 
Join Date: Mar 2010
Location: Bellingham Washington
Posts: 233
Default

I am using the Raspberry Pi Broadcastify Build

You can see three instances of darkice running.
Attached Images
 
Reply With Quote
  #7 (permalink)  
Old 06-23-2017, 2:44 PM
Bellingham_Scanner's Avatar
Member
  Shack Photos
Shack photos
Premium Subscriber
Premium Subscriber
Amateur Radio Operator
Amateur Radio
 
Join Date: Mar 2010
Location: Bellingham Washington
Posts: 233
Default

Nothing? Really? C'mon there has to at least one other person running multiple feeds on one computer.

It does not have to be a Raspberry Pi, just has to be using Darkice.
Reply With Quote
  #8 (permalink)  
Old 06-23-2017, 9:06 PM
Member
  Audio Feed Provider
Audio Feed Provider
 
Join Date: Feb 2011
Location: Massachusetts
Posts: 828
Default

Quote:
Originally Posted by Bellingham_Scanner View Post
Nothing? Really? C'mon there has to at least one other person running multiple feeds on one computer.

It does not have to be a Raspberry Pi, just has to be using Darkice.
My multiple feed experience is using old original model B RPi's. Using the current pi3 or 2 in your case (yes, my eyes are good enough to make out the pi2 in your photo) i would suspect some involvement with pulseaudio but haven't tested it at all. Pixel runs pulse, the older os doesn't.
Reply With Quote
  #9 (permalink)  
Old 06-27-2017, 5:12 AM
Member
  Premium Subscriber
Premium Subscriber
 
Join Date: Dec 2016
Location: Milpitas, CA
Posts: 263
Default

Not sure what the problem is since I'm not using a real scanner and using ezstream with a usb rtl2832 type sdr instead but my guess is that there is something wrong with the darkice config files on the rpi. Are you sure the 3 separate usb sound cards are using separate parameters for the different feeds? I would try going through the "method 1" steps again and make sure you have the correct sound card pointing to the correct darkice(n).cfg config file.

PS: What is your startup command sequence?
There is some info here to get details on attached sound cards:
http://www.instructables.com/id/Test...-Raspberry-Pi/

Try this command and make sure the card id's agree with the .cfg file parameters:

cat /proc/asound/modules

Last edited by JACK26; 06-27-2017 at 5:52 AM..
Reply With Quote
  #10 (permalink)  
Old 07-09-2017, 11:30 PM
Newbie
  Audio Feed Provider
Audio Feed Provider
Amateur Radio Operator
Amateur Radio
 
Join Date: Mar 2017
Location: Dupont, PA
Posts: 1
Default

I am considering a similar setup. Have you discovered what is causing the audio mixing?
Reply With Quote
  #11 (permalink)  
Old 07-10-2017, 12:11 AM
Bellingham_Scanner's Avatar
Member
  Shack Photos
Shack photos
Premium Subscriber
Premium Subscriber
Amateur Radio Operator
Amateur Radio
 
Join Date: Mar 2010
Location: Bellingham Washington
Posts: 233
Default

Well yes and no. It's gone but I don't know why for sure. Must have been some kind of ground loop. Right now I have everything separated running two raspberry pi's and let one of my feeds die...
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 1:52 AM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
All information here is Copyright 2012 by RadioReference.com LLC and Lindsay C. Blanton III.Ad Management by RedTyger
Copyright 2015 by RadioReference.com LLC Privacy Policy  |  Terms and Conditions