• Effective immediately we will be deleting, without notice, any negative threads or posts that deal with the use of encryption and streaming of scanner audio.

    We've noticed a huge increase in rants and negative posts that revolve around agencies going to encryption due to the broadcasting of scanner audio on the internet. It's now worn out and continues to be the same recycled rants. These rants hijack the threads and derail the conversation. They no longer have a place anywhere on this forum other than in the designated threads in the Rants forum in the Tavern.

    If you violate these guidelines your post will be deleted without notice and an infraction will be issued. We are not against discussion of this issue. You just need to do it in the right place. For example:
    https://forums.radioreference.com/rants/224104-official-thread-live-audio-feeds-scanners-wait-encryption.html

TwoToneDetect New TwoToneDetect in the works - Python based

DC31

Member
Premium Subscriber
Joined
Feb 19, 2011
Messages
1,083
Location
Massachusetts
IO error

I seem to remember something similar in a previous post, although I can't find it at the moment. If I recall correctly, restarting the program or the computer (can't remember which) seemed to fix it.

Andy
Tried rebooting both with no success. I also changed just about very possible parameter as well as deleting the ffmpeg file and replacing it with a fresh copy.

I don't have much experience with Vista computers snd dislike them anyway. But it is what i have to work with...
 

aaknitt

Member
Premium Subscriber
Joined
Aug 27, 2005
Messages
1,131
Hey Andy

For some reason the ttd didn't work today

I'm assuming its email or internet related
I have attached the end of the debug file
ver52
Thanks
Yeah it looks like a problem with the email server. Any chance you're using Gmail? They had an outage this afternoon that affected some accounts.

Andy
 

aaknitt

Member
Premium Subscriber
Joined
Aug 27, 2005
Messages
1,131
Tried rebooting both with no success. I also changed just about very possible parameter as well as deleting the ffmpeg file and replacing it with a fresh copy.

I don't have much experience with Vista computers snd dislike them anyway. But it is what i have to work with...
Yeah, Vista is horrible. The error you're getting has to do with the sound card. Obviously the program is able to access the sound card to detect the tones, but it's having trouble when trying to kick off the recording. You might try manually changing the audio devices to 0 in the config file, or mess with the sound mixer settings in Vista. I have it running on Vista here, so it can be done.

Andy
 

aliby19

Member
Premium Subscriber
Joined
Mar 10, 2005
Messages
134
Location
McCordsville, IN
I upgraded to v55 some time ago and have noticed that it is not detecting tones, especially stacked pages, as well as earlier versions did.

Does anyone have any idea why this might be? Also, it seems that v55 is worse, at least in my experience, at identifying tones that are close together. For instance, I have one department with two stations that use the following tone sets:

1092.4 / 288.5
1092.4 / 296.5

The order above is the order of these tone sets in my tones.cfg as well.

The station with the tone set of 296.5, is detected, while the one with 288.5 is not. I have checked repeatedly to see if maybe it's detecting both with the 296.5 set, but this does not seem to be the case.

If it helps any, the last time the 1092.4 / 288.5 tone set was detected was on March 18, the same day I upgraded to TTD version 55.

Any thoughts/ideas would be appreciated!

Thanks!
 

aaknitt

Member
Premium Subscriber
Joined
Aug 27, 2005
Messages
1,131
I upgraded to v55 some time ago and have noticed that it is not detecting tones, especially stacked pages, as well as earlier versions did.

Does anyone have any idea why this might be? Also, it seems that v55 is worse, at least in my experience, at identifying tones that are close together. For instance, I have one department with two stations that use the following tone sets:

1092.4 / 288.5
1092.4 / 296.5

The order above is the order of these tone sets in my tones.cfg as well.

The station with the tone set of 296.5, is detected, while the one with 288.5 is not. I have checked repeatedly to see if maybe it's detecting both with the 296.5 set, but this does not seem to be the case.

If it helps any, the last time the 1092.4 / 288.5 tone set was detected was on March 18, the same day I upgraded to TTD version 55.

Any thoughts/ideas would be appreciated!

Thanks!
What version were you using prior to upgrading? With v54 and later, the software has a filter that removes everything below 300Hz, which I'm sure is the problem with your 288.5 Hz tone. I'll have to make a change to lower the cutoff frequency to let that tone pass.

Andy
 

hfpd6120

Newbie
Joined
Apr 18, 2012
Messages
2
Two tone detect v55 ffmpeg not found

I have v55 of ttd I downloaded the latest ffmpeg I run the debug and I do a test page and the debug says ffmpeg not found sending wav Am I missing a program to make this work I can't figure it out I've downloaded older versions I'm running xp on an hp any help would be appreciated
 

hfpd6120

Newbie
Joined
Apr 18, 2012
Messages
2
Hello all I'm new to posting so I'm Prolbly not doing it right but I have v55 of ttd and the latest ffmpeg I run the debug and do a test page debug says ffmpeg not found sending wav I downloaded python to make v55 work correctly am I missing a program for ffmpeg to work I'm not real computer savvy I'm running basic xp on an hp any help greatly appreciated
 

aaknitt

Member
Premium Subscriber
Joined
Aug 27, 2005
Messages
1,131
What version were you using prior to upgrading? With v54 and later, the software has a filter that removes everything below 300Hz, which I'm sure is the problem with your 288.5 Hz tone. I'll have to make a change to lower the cutoff frequency to let that tone pass.

Andy
I just posted v55a, which should allow frequencies down to 250 Hz to pass into the tone detection algorithm.

As for other problems you might be having with 55, just be aware that the tone detection algorithm changed quite a bit after v53, so you may have to play with some of the settings if upgrading from a version prior to that.

Andy
 

aliby19

Member
Premium Subscriber
Joined
Mar 10, 2005
Messages
134
Location
McCordsville, IN
I just posted v55a, which should allow frequencies down to 250 Hz to pass into the tone detection algorithm.

As for other problems you might be having with 55, just be aware that the tone detection algorithm changed quite a bit after v53, so you may have to play with some of the settings if upgrading from a version prior to that.

Andy
Thanks Andy, I'll keep my eye on it and let you know if that helps.

Also, I noticed today that TTD detected both departments in a stacked page, but only sent one email. Any thoughts?

When I check in the audio folder, there is a WAV file for Station 12, and a 0 KB MP3 file as well, which makes me think it had something to do with the conversion process.

Debug output is here:

Code:
A Tone Found! 04:47:44
Checking for B Tone 04:47:44
Checking for B Tone2 04:47:45
Tone Set Found! 04:47:45 
Medics 04:47:45
email1@gmail.com,email2@gmail.com

1113.0 Atone1
delay timer 04:47:46
1113.0Atone2
A Tone Found! 04:47:46
Checking for B Tone 04:47:48
waiting for audio 04:47:48
recording audio 04:47:49
Checking for Long Tone 04:47:52
871.0 Atone1
871.0Atone2
A Tone Found! 04:47:52
Checking for B Tone 04:47:52
Checking for B Tone2 04:47:53
Tone Set Found! 04:47:53
Station 12 04:47:53
email1@gmail.com,email2@gmail.com

delay timer 04:47:53
waiting for audio 04:47:54
recording audio 04:47:54

done writing WAV 04:48:41
done writing WAV 04:48:41
ffmpeg version N-33818-gd049257, Copyright (c) 2000-2011 the FFmpeg developers
  built on Oct 19 2011 22:57:39 with gcc 4.6.1
ffmpeg version N-33818-gd049257, Copyright (c) 2000-2011 the FFmpeg developers
  built on Oct 19 2011 22:57:39 with gcc 4.6.1
  configuration: --enable-gpl --enable-version3 --enable-runtime-cpudetect --ena
ble-avisynth --enable-bzlib --enable-frei0r --enable-libopencore-amrnb --enable-
libopencore-amrwb --enable-libfreetype --enable-libgsm --enable-libmp3lame --ena
ble-libopenjpeg --enable-librtmp --enable-libschroedinger --enable-libspeex --en
able-libtheora --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis
--enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib

  configuration: --enable-gpl --enable-version3 --enable-runtime-cpudetect --ena
ble-avisynth --enable-bzlib --enable-frei0r --enable-libopencore-amrnb --enable-
libopencore-amrwb --enable-libfreetype --enable-libgsm --enable-libmp3lame --ena
ble-libopenjpeg --enable-librtmp --enable-libschroedinger --enable-libspeex --en
able-libtheora --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis
--enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib

  libavutil    51. 22. 0 / 51. 22. 0
  libavcodec   53. 22. 0 / 53. 22. 0
  libavutil    51. 22. 0 / 51. 22. 0
  libavcodec   53. 22. 0 / 53. 22. 0
  libavformat  53. 17. 0 / 53. 17. 0
  libavdevice  53.  4. 0 / 53.  4. 0
  libavformat  53. 17. 0 / 53. 17. 0
  libavdevice  53.  4. 0 / 53.  4. 0
  libavfilter   2. 44. 1 /  2. 44. 1
  libswscale    2.  1. 0 /  2.  1. 0
  libavfilter   2. 44. 1 /  2. 44. 1
  libswscale    2.  1. 0 /  2.  1. 0
  libpostproc  51.  2. 0 / 51.  2. 0
  libpostproc  51.  2. 0 / 51.  2. 0
[wav @ 02019AA0] parser not found for codec pcm_s16le, packets or times may be i
nvalid.
[wav @ 02019AA0] max_analyze_duration 5000000 reached at 5015510
Input #0, wav, from './audio/Medics_2012-04-1904_48_32_652000.wav':
[wav @ 02019AA0] parser not found for codec pcm_s16le, packets or times may be i
nvalid.
  Duration: 00:00:41.79[wav @ 02019AA0] max_analyze_duration 5000000 reached at
5015510
Input #0, wav, from './audio/Station_12_2012-04-1904_48_38_074000
.wav':
, bitrate: 352 kb/s  Duration: 00:00:41.79
    Stream #0:0, bitrate: 352 kb/s: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 11
025 Hz, 2 channels, s16, 352 kb/s

    Stream #0:0Please use -b:a or -b:v, -b is ambiguous
: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 11025 Hz, 2 channels, s16, 352 kb/s
Please use -b:a or -b:v, -b is ambiguous
[mp3 @ 0213D420] Unsupported sample rate.
Output #0, mp3, to './audio/Medics_2012-04-1904_48_32_652000.mp3':
[mp3 @ 0213D420] Unsupported sample rate.
Output #0, mp3, to './audio/Station_12_2012-04-1904_48_38_074000.
mp3':
  Metadata:
    TSSE            : Lavf53.17.0
  Metadata:
    TSSE            : Lavf53.17.0
    Stream #0:0: Audio: mp3, 11025 Hz, 2 channels, s16, 128 kb/s    Stream #0:0:
 Audio: mp3, 11025 Hz, 2 channels, s16, 128 kb/s
Stream mapping:

Stream mapping:
  Stream #0.0 -> #0.0 (pcm_s16le -> libmp3lame)  Stream #0.0 -> #0.0 (pcm_s16le
-> libmp3lame)
Press [q] to stop, [?] for help

Press [q] to stop, [?] for help
size=     327kB time=00:00:41.90 bitrate=  64.0kbits/s
video:0kB audio:327kB global headers:0kB muxing overhead 0.009845%
done converting to MP3 04:49:45
mp3 email sent! 04:50:04
 
Last edited:

aaknitt

Member
Premium Subscriber
Joined
Aug 27, 2005
Messages
1,131
Thanks Andy, I'll keep my eye on it and let you know if that helps.

Also, I noticed today that TTD detected both departments in a stacked page, but only sent one email. Any thoughts?

When I check in the audio folder, there is a WAV file for Station 12, and a 0 KB MP3 file as well, which makes me think it had something to do with the conversion process.

Debug output is here:

Code:
A Tone Found! 04:47:44
Checking for B Tone 04:47:44
Checking for B Tone2 04:47:45
Tone Set Found! 04:47:45 
Medics 04:47:45
email1@gmail.com,email2@gmail.com

1113.0 Atone1
delay timer 04:47:46
1113.0Atone2
A Tone Found! 04:47:46
Checking for B Tone 04:47:48
waiting for audio 04:47:48
recording audio 04:47:49
Checking for Long Tone 04:47:52
871.0 Atone1
871.0Atone2
A Tone Found! 04:47:52
Checking for B Tone 04:47:52
Checking for B Tone2 04:47:53
Tone Set Found! 04:47:53
Station 12 04:47:53
email1@gmail.com,email2@gmail.com

delay timer 04:47:53
waiting for audio 04:47:54
recording audio 04:47:54

done writing WAV 04:48:41
done writing WAV 04:48:41
ffmpeg version N-33818-gd049257, Copyright (c) 2000-2011 the FFmpeg developers
  built on Oct 19 2011 22:57:39 with gcc 4.6.1
ffmpeg version N-33818-gd049257, Copyright (c) 2000-2011 the FFmpeg developers
  built on Oct 19 2011 22:57:39 with gcc 4.6.1
  configuration: --enable-gpl --enable-version3 --enable-runtime-cpudetect --ena
ble-avisynth --enable-bzlib --enable-frei0r --enable-libopencore-amrnb --enable-
libopencore-amrwb --enable-libfreetype --enable-libgsm --enable-libmp3lame --ena
ble-libopenjpeg --enable-librtmp --enable-libschroedinger --enable-libspeex --en
able-libtheora --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis
--enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib

  configuration: --enable-gpl --enable-version3 --enable-runtime-cpudetect --ena
ble-avisynth --enable-bzlib --enable-frei0r --enable-libopencore-amrnb --enable-
libopencore-amrwb --enable-libfreetype --enable-libgsm --enable-libmp3lame --ena
ble-libopenjpeg --enable-librtmp --enable-libschroedinger --enable-libspeex --en
able-libtheora --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis
--enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib

  libavutil    51. 22. 0 / 51. 22. 0
  libavcodec   53. 22. 0 / 53. 22. 0
  libavutil    51. 22. 0 / 51. 22. 0
  libavcodec   53. 22. 0 / 53. 22. 0
  libavformat  53. 17. 0 / 53. 17. 0
  libavdevice  53.  4. 0 / 53.  4. 0
  libavformat  53. 17. 0 / 53. 17. 0
  libavdevice  53.  4. 0 / 53.  4. 0
  libavfilter   2. 44. 1 /  2. 44. 1
  libswscale    2.  1. 0 /  2.  1. 0
  libavfilter   2. 44. 1 /  2. 44. 1
  libswscale    2.  1. 0 /  2.  1. 0
  libpostproc  51.  2. 0 / 51.  2. 0
  libpostproc  51.  2. 0 / 51.  2. 0
[wav @ 02019AA0] parser not found for codec pcm_s16le, packets or times may be i
nvalid.
[wav @ 02019AA0] max_analyze_duration 5000000 reached at 5015510
Input #0, wav, from './audio/Medics_2012-04-1904_48_32_652000.wav':
[wav @ 02019AA0] parser not found for codec pcm_s16le, packets or times may be i
nvalid.
  Duration: 00:00:41.79[wav @ 02019AA0] max_analyze_duration 5000000 reached at
5015510
Input #0, wav, from './audio/Station_12_2012-04-1904_48_38_074000
.wav':
, bitrate: 352 kb/s  Duration: 00:00:41.79
    Stream #0:0, bitrate: 352 kb/s: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 11
025 Hz, 2 channels, s16, 352 kb/s

    Stream #0:0Please use -b:a or -b:v, -b is ambiguous
: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 11025 Hz, 2 channels, s16, 352 kb/s
Please use -b:a or -b:v, -b is ambiguous
[mp3 @ 0213D420] Unsupported sample rate.
Output #0, mp3, to './audio/Medics_2012-04-1904_48_32_652000.mp3':
[mp3 @ 0213D420] Unsupported sample rate.
Output #0, mp3, to './audio/Station_12_2012-04-1904_48_38_074000.
mp3':
  Metadata:
    TSSE            : Lavf53.17.0
  Metadata:
    TSSE            : Lavf53.17.0
    Stream #0:0: Audio: mp3, 11025 Hz, 2 channels, s16, 128 kb/s    Stream #0:0:
 Audio: mp3, 11025 Hz, 2 channels, s16, 128 kb/s
Stream mapping:

Stream mapping:
  Stream #0.0 -> #0.0 (pcm_s16le -> libmp3lame)  Stream #0.0 -> #0.0 (pcm_s16le
-> libmp3lame)
Press [q] to stop, [?] for help

Press [q] to stop, [?] for help
size=     327kB time=00:00:41.90 bitrate=  64.0kbits/s
video:0kB audio:327kB global headers:0kB muxing overhead 0.009845%
done converting to MP3 04:49:45
mp3 email sent! 04:50:04
That's odd. I looks like it stopped the recording for both detections at the exact same time even though they started at different times. I think it then might have tried to call ffmpeg twice at the exact same time and maybe that caused issues? Not sure what's going on here, seems strange.

Andy
 

KC9WWH

Member
Joined
Jan 12, 2010
Messages
11
Location
Wisconsin
So, I'm experiencing something kinda weird. I am using v55 and when I have the scanner hooked up to my computer it wont recognize the tones? But, If on that same computer I open up sound recorder and record the page, then loop back the headphones to the mic and play it, the program will recognize the tones and send an email? I am using the same cable that goes between the scanner headphone jack and into the mic jack to complete the loop when testing with the recorded page and I am not changing any settings, so I'm honestly not sure where the fault is?

Any ideas?
 

aliby19

Member
Premium Subscriber
Joined
Mar 10, 2005
Messages
134
Location
McCordsville, IN
jroskos and hfpd6120, instructions on how to install ffmpeg.exe are available here: TwoToneDetect.exe - radioetcetera

Quoting from the site:
Steps to get up and running:
  1. Download ffmpeg.exe from the internet and put it in the directory with TwoToneDetect
  2. Download from here. You want the latest Windows 32 bit static build. NOTE: Be sure to unzip the downloaded file before putting it into the TwoToneDetect directory!
  3. Open the tones.cfg file using a text editor and change the tone sets to your desired setup. More tone sets can be added using the same format. See the "Editing the tones.cfg file" section below for more information.
  4. Run the program and click on the "Edit Config Info" menu. Set up the config items according to your needs. See "Starting and Configuring the Program" section below
  5. Select the audio input and output devices you want to use from the main screen
  6. Exit the program
  7. Restart TwoToneDetect
 

aliby19

Member
Premium Subscriber
Joined
Mar 10, 2005
Messages
134
Location
McCordsville, IN
I just posted v55a, which should allow frequencies down to 250 Hz to pass into the tone detection algorithm.

As for other problems you might be having with 55, just be aware that the tone detection algorithm changed quite a bit after v53, so you may have to play with some of the settings if upgrading from a version prior to that.

Andy
FYI - 55a fixed the problem of the station with tone set 1092.4 / 288.5 not being detected. Thanks Andy! :)
 

KC9WWH

Member
Joined
Jan 12, 2010
Messages
11
Location
Wisconsin
@aliby19 I've installed the ffmpeg.exe file from the directions on the google sites page, but this is what I am still running into? If i play the test page back through the loop is sends the email as it should as an mp3. Its just not working for whatever reason what connected directly to the scanner? Yet that is how I recorded the page...
 

aliby19

Member
Premium Subscriber
Joined
Mar 10, 2005
Messages
134
Location
McCordsville, IN
@aliby19 I've installed the ffmpeg.exe file from the directions on the google sites page, but this is what I am still running into? If i play the test page back through the loop is sends the email as it should as an mp3. Its just not working for whatever reason what connected directly to the scanner? Yet that is how I recorded the page...
Whoops, sorry about that, I must have misread your post. So, with that scenario, the first thing that comes to mind is that either A) your computer isn't receiving audio from your scanner or B) the audio coming from your scanner is too low and not breaking TwoToneDetect's "squelch." You can adjust this with the little slider in the middle of the main TTD window.

If you are receiving audio from the scanner and it is breaking TTD's squelch, I would open a command prompt (Run > cmd.exe) and then open the TTD debug EXE from within the command prompt. To do this, just drag the TTD debug version (TwoToneDetectv##_debug.exe) onto your cmd.exe window.

Then, run TTD and watch as scanner audio comes in, especially when a dispatch occurs. The debug window should be able to tell you what's going on behind the scenes with TTD. Once you have this info, if you want to post it back here I'm at least a few people could try to help you out with this.

Hope that helps/makes sense!
 

brt

Member
Joined
Dec 2, 2009
Messages
4
Before I try and set up this system to send our page traffic I would like to know if there is also a way to record all the radio traffic in conjunction with the page?

Just some additional radio logging.

Thanks
 

aliby19

Member
Premium Subscriber
Joined
Mar 10, 2005
Messages
134
Location
McCordsville, IN
Before I try and set up this system to send our page traffic I would like to know if there is also a way to record all the radio traffic in conjunction with the page?

Just some additional radio logging.

Thanks
That is the intent and purpose of this software. It detects the tone going off and then records a user specified timeframe of audio, and then emails it to the specified recipients! :)

If you're asking for it to record all audio, and not just the page, unfortunately no, there is no way for the software to do this. It only records however long you ask it to.
 

aliby19

Member
Premium Subscriber
Joined
Mar 10, 2005
Messages
134
Location
McCordsville, IN
Andy, Looks like 55a fixed the problem of a couple departments not being detected. The problem I'm running into now is that in a few cases, the stacked page detection doesn't seem to be working. It is only detecting one set of tones, and not the other.

The most common occurence is when the ambulance service is being dispatched with two specific departments. TwoToneDetect detects ambulance service's tones, but doesn't detect the fire department's.

However, when either of the departments are being dispatched without the ambulance service, it seems to work just fine/no issues. Any thoughts?

Thanks!
 
Top