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
  #261 (permalink)  
Old 03-14-2014, 5:35 AM
Member
  Audio Feed Provider
Audio Feed Provider
 
Join Date: Feb 2011
Location: Massachusetts
Posts: 948
Default

Quote:
Originally Posted by davidVT View Post
Jim
I have been thinking about the multiple radio / sound card question.
At $35 should it just be one slice of PI per radio?
I think I will try one of my cheap SDR USB as a radio input for my 2nd PI. maybe that will remove the sound card completely???
David
David,

Did you ever have any luck using the SDR as a radio source? I have been trying for about a month now with no luck. I have been able to get crackle or choppy audio out of it, but nothing better from the pi. Running GQRX on the laptop it works perfectly.

Jim
Reply With Quote
Sponsored links
  #262 (permalink)  
Old 04-03-2014, 11:42 AM
Member
   
Join Date: Oct 2013
Location: Atikokan, Ontario
Posts: 18
Default Version differences

Hey,

Are there differences between version 60a and 65c that would require me to change my config files?

Warren, VE3FYN
Atikokan Fire & Rescue
Reply With Quote
  #263 (permalink)  
Old 04-03-2014, 12:09 PM
Member
  Premium Subscriber
Premium Subscriber
 
Join Date: Aug 2005
Posts: 1,089
Default

Quote:
Originally Posted by VE3FYN View Post
Hey,

Are there differences between version 60a and 65c that would require me to change my config files?

Warren, VE3FYN
Atikokan Fire & Rescue
I don't think so, you should be able to use the same config files.

Andy
__________________
Using TwoToneDetect? Show us where! Add yourself to the user map here or PM me with your location and I'll add you.

If you need help with TwoToneDetect please read this post first
Reply With Quote
  #264 (permalink)  
Old 04-03-2014, 6:10 PM
Member
   
Join Date: Oct 2013
Location: Atikokan, Ontario
Posts: 18
Default

Andy,

Yes, it works. I upgraded it last night. We had a page this afternoon to rescue a snowmobiler, and it worked flawlessly as usual. Three of us only received the page on our phones, due to pagers not working or not nearby. Good backup.

Warren
Reply With Quote
  #265 (permalink)  
Old 04-05-2014, 10:21 AM
Kirk's Avatar
DB Admin
  RadioReference Database Admininstrator
Database Admin
 
Join Date: Dec 2002
Posts: 776
Default

Thanks very much to DC31 for the image file. I purchased a Pi, downloaded his image, SSHed in and was decoding tones in an hour or so. Awesome.

Question about the time... I've set the system time on the Pi, and it returns the correct date and time when I issue the "date" command. However, the timestamps on my emails are on East Coast time, and I'm in the Pacific timezone. Any ideas?
Reply With Quote
Sponsored links
  #266 (permalink)  
Old 04-05-2014, 10:29 AM
Member
  Audio Feed Provider
Audio Feed Provider
 
Join Date: Jan 2009
Location: Ottawa Illinois
Posts: 920
Default TwoToneDetect on a Raspberry Pi - How To

Quote:
Originally Posted by Kirk View Post
Thanks very much to DC31 for the image file. I purchased a Pi, downloaded his image, SSHed in and was decoding tones in an hour or so. Awesome.

Question about the time... I've set the system time on the Pi, and it returns the correct date and time when I issue the "date" command. However, the timestamps on my emails are on East Coast time, and I'm in the Pacific timezone. Any ideas?

Go to the command line and execute this for time zone switching.

Sudo dpkg-reconfigure tzdata
Reply With Quote
  #267 (permalink)  
Old 04-05-2014, 10:30 AM
Member
  Audio Feed Provider
Audio Feed Provider
 
Join Date: Jan 2009
Location: Ottawa Illinois
Posts: 920
Default TwoToneDetect on a Raspberry Pi - How To

Quote:
Originally Posted by nick223 View Post
Go to the command line and execute this for time zone switching.

Sudo dpkg-reconfigure tzdata

After you follow the prompts sudo reboot and your good to go
Reply With Quote
  #268 (permalink)  
Old 04-05-2014, 10:33 AM
Kirk's Avatar
DB Admin
  RadioReference Database Admininstrator
Database Admin
 
Join Date: Dec 2002
Posts: 776
Default

Thanks!
Reply With Quote
  #269 (permalink)  
Old 04-10-2014, 7:06 AM
Member
   
Join Date: Oct 2013
Location: Atikokan, Ontario
Posts: 18
Default TwoToneDetect periodically quits

Hey,

TwoToneDetect has been running flawlessly on one of my Pi's for some time now, with one exception: every week or so, it exits back to the Linux prompt for no apparent reason. I reboot, and all is good for another week. I'm thinking of setting up a Crontab to have it reboot periodically (I've set it up to automatically run TwoToneDetect on bootup), but that is an inelegant solution for Linux.

I'm running Version 65c.

Any ideas where I can look for the problem?

Warren
Reply With Quote
  #270 (permalink)  
Old 04-10-2014, 2:06 PM
Member
   
Join Date: Apr 2013
Posts: 3
Default File Size.

Version 65c

I just moved my TTD from a windows system to a RPI. I did notice that the file size seems to be double what it was on the windows machine.

Windows was about 120K, RPI is about 240. I am missing the silence detection, or is it recording stereo ( i set it to mono)

My Audio index run from about 300 to 24,000.

Config file:
record_seconds = 30
record_delay = 2
tone_tolerance = .005
input_device_index = 12500
output_device_index = 12500
audio_threshold = 400
tone_offset = 0
mp3_bitrate = 24000

Example record. They seem to be about double that of the windows box with the same or less mp3 rate.

Done recording UNKN 919-591 14:49:00 on 04/10/14
done writing WAV UNKN 919-591 14:49:00 on 04/10/14
ffmpeg version 0.8.10-6:0.8.10-1+rpi1, Copyright (c) 2000-2013 the Libav developers
built on Mar 22 2014 02:13:15 with gcc 4.6.3
*** THIS PROGRAM IS DEPRECATED ***
This program is only provided for compatibility and will be removed in a future release. Please use avconv instead.
[wav @ 0x16c6440] max_analyze_duration reached
Input #0, wav, from './audio/UNKN_919-591_2014-04-1014_49_00_135181.wav':
Duration: 00:00:35.10, bitrate: 176 kb/s
Stream #0.0: Audio: pcm_s16le, 11025 Hz, 1 channels, s16, 176 kb/s
[mp3 @ 0x16c6c60] Unsupported sample rate.
Output #0, mp3, to './audio/UNKN_919-591_2014-04-1014_49_00_135181.mp3':
Metadata:
TSSE : Lavf53.21.1
Stream #0.0: Audio: libmp3lame, 11025 Hz, 1 channels, s16, 200 kb/s
Stream mapping:
Stream #0.0 -> #0.0
Press ctrl-c to stop encoding
size= 275kB time=35.21 bitrate= 64.0kbits/s
Reply With Quote
  #271 (permalink)  
Old 04-10-2014, 5:29 PM
Member
  Audio Feed Provider
Audio Feed Provider
 
Join Date: Feb 2011
Location: Massachusetts
Posts: 948
Default

Quote:
Originally Posted by VE3FYN View Post
Hey,

TwoToneDetect has been running flawlessly on one of my Pi's for some time now, with one exception: every week or so, it exits back to the Linux prompt for no apparent reason. I reboot, and all is good for another week. I'm thinking of setting up a Crontab to have it reboot periodically (I've set it up to automatically run TwoToneDetect on bootup), but that is an inelegant solution for Linux.

I'm running Version 65c.

Any ideas where I can look for the problem?

Warren
when i ran my pi wireless i had problems with it failing. are you wifi? even though i am now wired i still have a crontab that reboots daily. no more problems.
Reply With Quote
  #272 (permalink)  
Old 04-10-2014, 7:40 PM
Member
   
Join Date: Oct 2013
Location: Atikokan, Ontario
Posts: 18
Default

Quote:
Originally Posted by DC31 View Post
when i ran my pi wireless i had problems with it failing. are you wifi? even though i am now wired i still have a crontab that reboots daily. no more problems.
I am wired, but I do have a wireless USB keyboard. I think I'll just run a crontab to reboot daily. Thanks for the input.
Reply With Quote
  #273 (permalink)  
Old 04-10-2014, 10:06 PM
Member
  Audio Feed Provider
Audio Feed Provider
 
Join Date: Feb 2011
Location: Massachusetts
Posts: 948
Default

Quote:
Originally Posted by VE3FYN View Post
I am wired, but I do have a wireless USB keyboard. I think I'll just run a crontab to reboot daily. Thanks for the input.
i also have a script that checks every two minutes to see that TTD is still running and restarts it if it is not running. Is that something that you would like?
Reply With Quote
  #274 (permalink)  
Old 04-11-2014, 4:56 AM
Member
  Audio Feed Provider
Audio Feed Provider
 
Join Date: Feb 2011
Location: Massachusetts
Posts: 948
Default

[QUOTE=aes256;2170848]Version 65c

I just moved my TTD from a windows system to a RPI. I did notice that the file size seems to be double what it was on the windows machine.

Windows was about 120K, RPI is about 240. I am missing the silence detection, or is it recording stereo ( i set it to mono)

My Audio index run from about 300 to 24,000.

Config file:
record_seconds = 30
record_delay = 2
tone_tolerance = .005
input_device_index = 12500
output_device_index = 12500
audio_threshold = 400
tone_offset = 0
mp3_bitrate = 24000



try adding a line to your config.cfg:

release_time=4

then it will stop recording after 4 seconds of silence.

how long are the actual recordings attached to your emails? you have it set for 30 secs. are they all 30 secs long?

i'm not sure about your device_index settings. all the pi's i have worked on use index=3.
Reply With Quote
  #275 (permalink)  
Old 04-11-2014, 8:36 AM
Member
   
Join Date: Apr 2013
Posts: 3
Default

Sorry looks like my config got cut off... I do have release time set to 3. but the recording go a full 30 seconds . oddly on windows they were half the size. 120k vs 240k on the PI. I did goof on the index but your right it should have been 3.

[Section1]
email_user = XXX
email_pwd = XXX
email_server = smtp.gmail.com
email_port = 587
record_seconds = 30
record_delay = 2
tone_tolerance = .005
input_device_index = 3
output_device_index = 3
audio_threshold = 400
tone_offset = 0
mp3_bitrate = 24000
BCC = 0
email_priority = 3
release_time=3
Reply With Quote
  #276 (permalink)  
Old 04-11-2014, 10:19 AM
Member
   
Join Date: Apr 2013
Posts: 3
Default

Quote:
Originally Posted by DC31 View Post
Thanks, Andy. Not sure what it was that turned things around but using your config.cfg, both TTD and RR feed are now working in tandem on my pi. Now that is the way to do it!
care to share the darkice config ?

getting the same thing and cant figure it out... using device = pulse

sudo /usr/bin/darkice
DarkIce 1.0 live audio streamer, darkice - DarkIce is a live audio streamer. - Google Project Hosting
Copyright (c) 2000-2007, Tyrell Hungary, Tyrell Hungary Corporation
Copyright (c) 2008-2010, 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.cfg
Using ALSA DSP input device: pulse
Using POSIX real-time scheduling, priority 98
ALSA lib pulse.c:243pulse_connect) PulseAudio: Unable to connect: Connection refused

DarkIce: DarkIce.cpp:1187: can't open connector [0]
Reply With Quote
  #277 (permalink)  
Old 04-11-2014, 11:37 AM
Member
   
Join Date: Oct 2013
Location: Atikokan, Ontario
Posts: 18
Default

Quote:
Originally Posted by DC31 View Post
i also have a script that checks every two minutes to see that TTD is still running and restarts it if it is not running. Is that something that you would like?
Yes, that would be super! Is it short enough that you can post it here?

Warren
Reply With Quote
  #278 (permalink)  
Old 04-11-2014, 8:49 PM
Member
  Audio Feed Provider
Audio Feed Provider
 
Join Date: Feb 2011
Location: Massachusetts
Posts: 948
Default

Here is the script:
pi@raspberrypi ~ $ cat launch.sh
#!/bin/sh


ps auxw | grep TwoToneDetect | grep -v grep |grep -v SCREEN >> /dev/null



if [ $? != 0 ]

then

date >> launch.log

cd TTD63

screen -dmS TTD python TwoToneDetect64Pi.pyc & > /dev/null

fi


I will have to assume that you can edit it to point toward the correct files and directories on your pi. And then make the script executable.

Here is the crontab line that runs it every two minutes:

*/2 * * * * (cd /home/pi/; ./launch.sh > /dev/null 2>&1)
Reply With Quote
  #279 (permalink)  
Old 04-12-2014, 9:28 PM
Member
  Premium Subscriber
Premium Subscriber
 
Join Date: Aug 2005
Posts: 1,089
Default

Quote:
Originally Posted by aes256 View Post
Sorry looks like my config got cut off... I do have release time set to 3. but the recording go a full 30 seconds . oddly on windows they were half the size. 120k vs 240k on the PI. I did goof on the index but your right it should have been 3.

[Section1]
email_user = XXX
email_pwd = XXX
email_server = smtp.gmail.com
email_port = 587
record_seconds = 30
record_delay = 2
tone_tolerance = .005
input_device_index = 3
output_device_index = 3
audio_threshold = 400
tone_offset = 0
mp3_bitrate = 24000
BCC = 0
email_priority = 3
release_time=3
If you have release_time set to three and it's still recording for 30 seconds every time, you probably need to increase the audio_threshold value. You can use the LevelMeter.pyc utility to find out what kind of numbers your sound card produces with no audio, and then set the audio_threshold above that with a bit of margin.

Andy
__________________
Using TwoToneDetect? Show us where! Add yourself to the user map here or PM me with your location and I'll add you.

If you need help with TwoToneDetect please read this post first
Reply With Quote
  #280 (permalink)  
Old 04-13-2014, 8:11 AM
Member
  Audio Feed Provider
Audio Feed Provider
 
Join Date: Feb 2011
Location: Massachusetts
Posts: 948
Default

[QUOTE=aes256;2171266]care to share the darkice config ?

Here is what my darkice.cfg looks like:

# sample DarkIce configuration file, edit for your needs before using
# see the darkice.cfg man page for details

# this section describes general aspects of the live streaming session
[general]
duration = 0 # duration of encoding, in seconds. 0 means forever
bufferSecs = 5 # size of internal slip buffer, in seconds
reconnect = yes # reconnect to the server(s) if disconnected

# this section describes the audio input that will be streamed
[input]
device = pulse # OSS DSP soundcard device for the audio input
sampleRate = 11025 # sample rate in Hz. try 11025, 22050 or 44100
bitsPerSample = 16 # bits per sample. try 16
channel = 1 # 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
[icecast2-0]
bitrateMode = cbr # constant bit rate
bitrate = 16
format = mp3 # format of the stream: mp3
quality = .1 # quality of the stream sent to the server
lowpass = 3000 # low pass filter to save bandwidth
server = audioX.radioreference.com # host name of the server
port = 80 # 8000 port of the IceCast2 server, usually 8000
password = XXXXXX # stream631 # source password to the IceCast2 server
mountPoint = XXXXXXXX #EMR1 # mount point of this stream on the IceCast2 server
name = Fire # name of the stream
description = Fire Dispatc # description of the stream
url = RadioReference.com - Scanner Frequencies and Radio Frequency Reference # URL related to the stream
genre = Public Safety # genre of the stream
public = yes # advertise this stream?
#localDumpFile = recording.mp3 # local dump file
#fileAddDate = yes

Replace the XXXXX with your credentials. At RR the Mount point shows a / at the start. Make sure that you DO NOT put the / in the darkice.cfg.
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 9:42 AM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2018, 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