on the TTD main page, you should select the sabrent microphone as your input, and do the same for the scannerI just got a Raspberry Pi 4 that I set up my Broadcastify feed on. I'm now trying to get TTD to work on it and I'm having no success. I've tried downloading the 73g version and copying it to the Pi and that didn't work. I've tried following the directions in the manual to the letter and that's not working at all. I can't even get 73g to load. I did finally get 73f to load but I can't figure out how to configure the audio.
I'm brand new to Pi's and I'm not very good with Terminal stuff. I've tried using the Pulse audio GUI and TTD GUI's and nothing is making sense. Is there someone out there that might be able to help me through this. I'm generally pretty tech savy and enjoy figuring this stuff out, but I'm at a loss right now. Thanks!
I'm using the Sabrenet USB audio adapter to feed the scanner audio in and was wanting to use the same audio to feed the TTD for myself.
So nothing really to upgrade to from 73g
So nothing really to upgrade to from 73g
Waiting for Silence Webster County EMS 12:44:38 on 05/03/21
Done recording Webster County EMS 12:44:41 on 05/03/21
./audio/Webster_County_EMS_2021_05_03_12_44_23.wav
done writing WAV Webster County EMS 12:44:41 on 05/03/21
done converting to MP3 Webster County EMS 12:44:42 on 05/03/21
done converting to AMR Webster County EMS 12:44:42 on 05/03/21
2021-05-03 00:00:00
2021-05-03 00:00:00
2021-05-03 12:44:42.526186
entry
['Tone1', 'Webster County EMS', 1620063863.4330165, 0]
Traceback (most recent call last):
File "TwoToneDetect73g.py", line 1400, in mail
FileNotFoundError: [Errno 2] No such file or directory: './audio/Webster_County_EMS_2021_05_03_12_44_23.amr'
Email not sent via smtp.gmail.com on port 587 using STARTTLS on attempt 1 trying again in five seconds for Webster County EMS Page Received at 12:44:23 on 05/03/21
Traceback (most recent call last):
File "TwoToneDetect73g.py", line 1400, in mail
FileNotFoundError: [Errno 2] No such file or directory: './audio/Webster_County_EMS_2021_05_03_12_44_23.amr'
Email not sent via smtp.gmail.com on port 587 using STARTTLS on attempt 2 trying again in five seconds for Webster County EMS Page Received at 12:44:23 on 05/03/21
{0: 'bcm2835 HDMI 1: - (hw:0,0)', 1: 'bcm2835 Headphones: - (hw:1,0)', 2: 'USB Audio Device: - (hw:2,0)', 3: 'sysdefault', 4: 'lavrate', 5: 'samplerate', 6: 'speexrate', 7: 'pulse', 8: 'upmix', 9: 'vdownmix', 10: 'dmix', 11: 'default'}
pulse
{0: 'bcm2835 HDMI 1: - (hw:0,0)', 1: 'bcm2835 Headphones: - (hw:1,0)', 2: 'USB Audio Device: - (hw:2,0)', 3: 'sysdefault', 4: 'lavrate', 5: 'samplerate', 6: 'speexrate', 7: 'pulse', 8: 'upmix', 9: 'vdownmix', 10: 'dmix', 11: 'default'}
pulse
Traceback (most recent call last):
File "TwoToneDetect73g.py", line 1400, in mail
FileNotFoundError: [Errno 2] No such file or directory: './audio/Webster_County_EMS_2021_05_03_12_44_23.amr'
Email not sent via smtp.gmail.com on port 587 using STARTTLS on attempt 3 trying again in five seconds for Webster County EMS Page Received at 12:44:23 on 05/03/21
window closed or reloaded,checking for exit criteria in 2 seconds
max retries exceeded, failed to send email
RETURNING AND REMOVING STUFF HERE
[]
window closed or reloaded,checking for exit criteria in 2 seconds
[('index.html', <geventwebsocket.websocket.WebSocket object at 0xaafe8b58>)]
[('index.html', <geventwebsocket.websocket.WebSocket object at 0xaafe8b58>)]
Adding Webster County EMS back to detection list after 60.0 second delay
I'm not sure if it matters, but TTD is installed in /home/pi/TTD and in it's audio folder there IS the expected audio file.
/home/pi/TTD/audio is where the audio file is.That is exactly why it won’t send. the log shows it not being able to find the folder audio inside of /home/pi/TTD
it should exist here
/home/pi/TTD/audio
Turned out to be an issue with the radio, not the program or even my computer for once. I have mysterious static zones in my office I wasn't aware of, and it was in one of those. So it didn't trigger the program.
On a different system, a Raspberry Pi I'm trying to get to work, I've got it up and running, and it recognized the tones. But it didn't send the page. I found this section in the Log, and was wondering if the FileNotFoundError could be the problem, and if so how I fix it.
I'm not sure if it matters, but TTD is installed in /home/pi/TTD and in it's audio folder there IS the expected audio file.
cd ~
git clone git://source.ffmpeg.org/ffmpeg.git ffmpeg
cd ffmpeg;
sudo apt-get install libopencore-amrnb-dev
sudo apt-get install libmp3lame-dev
sudo apt-get install libfdk-aac-dev
sudo apt-get install libass-dev
sudo apt-get install libopus-dev
sudo apt-get install libpulse-dev
./configure --pkg-config-flags=--static --bindir=/home/pi/bin --enable-gpl --enable-libass --enable-nonfree --enable-libmp3lame --enable-libopencore-amrnb --enable-version3 --enable-libopus
make
sudo make install
Finally install some required audio codecs:
sudo apt-get install libavcodec-extra58
Are there mp3 files in the /audio folder? If there are mp3 files but not AMR files, it's an issue with ffmpeg. Newer versions of ffmpeg have removed support for AMR, so it needs to be built from source with AMR support included. Steps for doing that are in the TTD setup guide PDF:
Are there mp3 files in the /audio folder? If there are mp3 files but not AMR files, it's an issue with ffmpeg. Newer versions of ffmpeg have removed support for AMR, so it needs to be built from source with AMR support included. Steps for doing that are in the TTD setup guide PDF:
pi@raspberrypi:~ $ git clone git://source.ffmpeg.org/ffmpeg.git ffmpeg
fatal: destination path 'ffmpeg' already exists and is not an empty directory.
pi@raspberrypi:~ $ cd ffmpeg;
pi@raspberrypi:~/ffmpeg $ sudo apt-get install libopencore-amrnb-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
libopencore-amrnb-dev is already the newest version (0.1.3-2.1).
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
pi@raspberrypi:~/ffmpeg $ sudo apt-get install libmp3lame-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
libmp3lame-dev is already the newest version (3.100-2+b1).
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
pi@raspberrypi:~/ffmpeg $ sudo apt-get install libfdk-aac-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libfdk-aac-dev
pi@raspberrypi:~/ffmpeg $ sudo apt-get install libass-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
libass-dev is already the newest version (1:0.14.0-2).
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
pi@raspberrypi:~/ffmpeg $ sudo apt-get install libopus-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
libopus-dev is already the newest version (1.3-1).
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
pi@raspberrypi:~/ffmpeg $ sudo apt-get install libpulse-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
libpulse-dev is already the newest version (12.2-4+deb10u1+rpi3).
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
pi@raspberrypi:~/ffmpeg $ ./configure --pkg-config-flags=--static --bindir=/home/pi/bin --enable-gpl --enable-libass --enable-nonfree --enable-libmp3lame --enable-libopencore-amrnb --enable-version3 --enable-libopus
install prefix /usr/local
source path .
C compiler gcc
C library glibc
ARCH arm (armv6)
big-endian no
runtime cpu detection yes
ARMv5TE enabled yes
ARMv6 enabled yes
ARMv6T2 enabled yes
VFP enabled yes
NEON enabled yes
THUMB enabled no
debug symbols yes
strip symbols yes
optimize for size no
optimizations yes
static yes
shared no
postprocessing support yes
network support yes
threading support pthreads
safe bitstream reader yes
texi2html enabled no
perl enabled yes
pod2man enabled yes
makeinfo enabled no
makeinfo supports HTML no
External libraries:
iconv libass libmp3lame libopencore_amrnb libopus zlib
External libraries providing hardware acceleration:
v4l2_m2m
Libraries:
avcodec avfilter avutil swresample
avdevice avformat postproc swscale
Programs:
ffmpeg ffprobe
Enabled decoders:
aac atrac3p fits mp2float pcx tiertexseqvideo
aac_fixed atrac3pal flac mp3 pfm tiff
aac_latm atrac9 flashsv mp3adu pgm tmv
aasc aura flashsv2 mp3adufloat pgmyuv truehd
ac3 aura2 flic mp3float pgssub truemotion1
ac3_fixed av1 flv mp3on4 pgx truemotion2
acelp_kelvin avrn fmvc mp3on4float photocd truemotion2rt
adpcm_4xm avrp fourxm mpc7 pictor truespeech
adpcm_adx avs fraps mpc8 pixlet tscc
adpcm_afc avui frwu mpeg1_v4l2m2m pjs tscc2
adpcm_agm ayuv g2m mpeg1video png tta
adpcm_aica bethsoftvid g723_1 mpeg2_v4l2m2m ppm twinvq
adpcm_argo bfi g729 mpeg2video prores txd
adpcm_ct bink gdv mpeg4 prosumer ulti
adpcm_dtk binkaudio_dct gif mpeg4_v4l2m2m psd utvideo
adpcm_ea binkaudio_rdft gremlin_dpcm mpegvideo ptx v210
adpcm_ea_maxis_xa bintext gsm mpl2 qcelp v210x
adpcm_ea_r1 bitpacked gsm_ms msa1 qdm2 v308
adpcm_ea_r2 bmp h261 mscc qdmc v408
adpcm_ea_r3 bmv_audio h263 msmpeg4v1 qdraw v410
adpcm_ea_xas bmv_video h263_v4l2m2m msmpeg4v2 qpeg vb
adpcm_g722 brender_pix h263i msmpeg4v3 qtrle vble
adpcm_g726 c93 h263p msp2 r10k vc1
adpcm_g726le cavs h264 msrle r210 vc1_v4l2m2m
adpcm_ima_acorn ccaption h264_v4l2m2m mss1 ra_144 vc1image
adpcm_ima_alp cdgraphics hap mss2 ra_288 vcr1
adpcm_ima_amv cdtoons hca msvideo1 ralf vmdaudio
adpcm_ima_apc cdxl hcom mszh rasc vmdvideo
adpcm_ima_apm cfhd hevc mts2 rawvideo vmnc
adpcm_ima_cunning cinepak hevc_v4l2m2m mv30 realtext vorbis
adpcm_ima_dat4 clearvideo hnm4_video mvc1 rl2 vp3
adpcm_ima_dk3 cljr hq_hqa mvc2 roq vp4
adpcm_ima_dk4 cllc hqx mvdv roq_dpcm vp5
adpcm_ima_ea_eacs comfortnoise huffyuv mvha rpza vp6
adpcm_ima_ea_sead cook hymt mwsc rscc vp6a
adpcm_ima_iss cpia iac mxpeg rv10 vp6f
adpcm_ima_moflex cri idcin nellymoser rv20 vp7
adpcm_ima_mtf cscd idf notchlc rv30 vp8
adpcm_ima_oki cyuv iff_ilbm nuv rv40 vp8_v4l2m2m
adpcm_ima_qt dca ilbc on2avc s302m vp9
adpcm_ima_rad dds imc opus sami vp9_v4l2m2m
adpcm_ima_smjpeg derf_dpcm imm4 paf_audio sanm vplayer
adpcm_ima_ssi dfa imm5 paf_video sbc vqa
adpcm_ima_wav dirac indeo2 pam scpr wavpack
adpcm_ima_ws dnxhd indeo3 pbm screenpresso wcmv
adpcm_ms dolby_e indeo4 pcm_alaw sdx2_dpcm webp
adpcm_mtaf dpx indeo5 pcm_bluray sga webvtt
adpcm_psx dsd_lsbf interplay_acm pcm_dvd sgi wmalossless
adpcm_sbpro_2 dsd_lsbf_planar interplay_dpcm pcm_f16le sgirle wmapro
adpcm_sbpro_3 dsd_msbf interplay_video pcm_f24le sheervideo wmav1
adpcm_sbpro_4 dsd_msbf_planar ipu pcm_f32be shorten wmav2
adpcm_swf dsicinaudio jacosub pcm_f32le simbiosis_imx wmavoice
adpcm_thp dsicinvideo jpeg2000 pcm_f64be sipr wmv1
adpcm_thp_le dss_sp jpegls pcm_f64le siren wmv2
adpcm_vima dst jv pcm_lxf smackaud wmv3
adpcm_xa dvaudio kgv1 pcm_mulaw smacker wmv3image
adpcm_yamaha dvbsub kmvc pcm_s16be smc wnv1
adpcm_zork dvdsub lagarith pcm_s16be_planar smvjpeg wrapped_avframe
agm dvvideo libopencore_amrnb pcm_s16le snow ws_snd1
aic dxa libopus pcm_s16le_planar sol_dpcm xan_dpcm
alac dxtory loco pcm_s24be sonic xan_wc3
alias_pix dxv lscr pcm_s24daud sp5x xan_wc4
als eac3 m101 pcm_s24le speedhq xbin
amrnb eacmv mace3 pcm_s24le_planar srgc xbm
amrwb eamad mace6 pcm_s32be srt xface
amv eatgq magicyuv pcm_s32le ssa xl
anm eatgv mdec pcm_s32le_planar stl xma1
ansi eatqi metasound pcm_s64be subrip xma2
ape eightbps microdvd pcm_s64le subviewer xpm
apng eightsvx_exp mimic pcm_s8 subviewer1 xsub
aptx eightsvx_fib mjpeg pcm_s8_planar sunrast xwd
aptx_hd escape124 mjpegb pcm_sga svq1 y41p
arbc escape130 mlp pcm_u16be svq3 ylc
argo evrc mmvideo pcm_u16le tak yop
ass exr mobiclip pcm_u24be targa yuv4
asv1 fastaudio motionpixels pcm_u24le targa_y216 zero12v
asv2 ffv1 movtext pcm_u32be tdsc zerocodec
atrac1 ffvhuff mp1 pcm_u32le text zlib
atrac3 ffwavesynth mp1float pcm_u8 theora zmbv
atrac3al fic mp2 pcm_vidc thp
Enabled indevs:
fbdev lavfi oss v4l2
Enabled outdevs:
fbdev oss v4l2
License: nonfree and unredistributable
config.h is unchanged
libavutil/avconfig.h is unchanged
libavfilter/filter_list.c is unchanged
libavcodec/codec_list.c is unchanged
libavcodec/parser_list.c is unchanged
libavcodec/bsf_list.c is unchanged
libavformat/demuxer_list.c is unchanged
libavformat/muxer_list.c is unchanged
libavdevice/indev_list.c is unchanged
libavdevice/outdev_list.c is unchanged
libavformat/protocol_list.c is unchanged
ffbuild/config.sh is unchanged
pi@raspberrypi:~/ffmpeg $ make
POD doc/ffmpeg.pod
POD doc/ffprobe.pod
POD doc/ffmpeg-all.pod
POD doc/ffprobe-all.pod
MAN doc/ffmpeg.1
MAN doc/ffprobe.1
MAN doc/ffmpeg-all.1
MAN doc/ffprobe-all.1
LD ffmpeg_g
/usr/bin/ld: libavformat/libavformat.a(fifo.o): in function `fifo_init':
/home/pi/ffmpeg/libavformat/fifo.c:519: undefined reference to `__atomic_store_8'
/usr/bin/ld: libavformat/libavformat.a(fifo.o): in function `fifo_write_trailer':
/home/pi/ffmpeg/libavformat/fifo.c:624: undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: /home/pi/ffmpeg/libavformat/fifo.c:631: undefined reference to `__atomic_store_8'
/usr/bin/ld: libavformat/libavformat.a(fifo.o): in function `fifo_thread_write_packet':
/home/pi/ffmpeg/libavformat/fifo.c:188: undefined reference to `__atomic_fetch_sub_8'
/usr/bin/ld: libavformat/libavformat.a(fifo.o): in function `fifo_consumer_thread':
/home/pi/ffmpeg/libavformat/fifo.c:457: undefined reference to `__atomic_load_8'
/usr/bin/ld: libavformat/libavformat.a(fifo.o): in function `fifo_write_packet':
/home/pi/ffmpeg/libavformat/fifo.c:597: undefined reference to `__atomic_fetch_add_8'
collect2: error: ld returned 1 exit status
make: *** [Makefile:123: ffmpeg_g] Error 1
pi@raspberrypi:~/ffmpeg $ sudo make install
INSTALL doc/ffmpeg.1
INSTALL doc/ffprobe.1
INSTALL doc/ffmpeg-all.1
INSTALL doc/ffprobe-all.1
INSTALL doc/ffmpeg-utils.1
INSTALL doc/ffmpeg-scaler.1
INSTALL doc/ffmpeg-resampler.1
INSTALL doc/ffmpeg-codecs.1
INSTALL doc/ffmpeg-bitstream-filters.1
INSTALL doc/ffmpeg-formats.1
INSTALL doc/ffmpeg-protocols.1
INSTALL doc/ffmpeg-devices.1
INSTALL doc/ffmpeg-filters.1
INSTALL doc/libavutil.3
INSTALL doc/libswscale.3
INSTALL doc/libswresample.3
INSTALL doc/libavcodec.3
INSTALL doc/libavformat.3
INSTALL doc/libavdevice.3
INSTALL doc/libavfilter.3
INSTALL doc/ffmpeg.1
INSTALL doc/ffprobe.1
INSTALL doc/ffmpeg-all.1
INSTALL doc/ffprobe-all.1
INSTALL doc/ffmpeg-utils.1
INSTALL doc/ffmpeg-scaler.1
INSTALL doc/ffmpeg-resampler.1
INSTALL doc/ffmpeg-codecs.1
INSTALL doc/ffmpeg-bitstream-filters.1
INSTALL doc/ffmpeg-formats.1
INSTALL doc/ffmpeg-protocols.1
INSTALL doc/ffmpeg-devices.1
INSTALL doc/ffmpeg-filters.1
INSTALL doc/libavutil.3
INSTALL doc/libswscale.3
INSTALL doc/libswresample.3
INSTALL doc/libavcodec.3
INSTALL doc/libavformat.3
INSTALL doc/libavdevice.3
INSTALL doc/libavfilter.3
LD ffmpeg_g
/usr/bin/ld: libavformat/libavformat.a(fifo.o): in function `fifo_init':
/home/pi/ffmpeg/libavformat/fifo.c:519: undefined reference to `__atomic_store_8'
/usr/bin/ld: libavformat/libavformat.a(fifo.o): in function `fifo_write_trailer':
/home/pi/ffmpeg/libavformat/fifo.c:624: undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: /home/pi/ffmpeg/libavformat/fifo.c:631: undefined reference to `__atomic_store_8'
/usr/bin/ld: libavformat/libavformat.a(fifo.o): in function `fifo_thread_write_packet':
/home/pi/ffmpeg/libavformat/fifo.c:188: undefined reference to `__atomic_fetch_sub_8'
/usr/bin/ld: libavformat/libavformat.a(fifo.o): in function `fifo_consumer_thread':
/home/pi/ffmpeg/libavformat/fifo.c:457: undefined reference to `__atomic_load_8'
/usr/bin/ld: libavformat/libavformat.a(fifo.o): in function `fifo_write_packet':
/home/pi/ffmpeg/libavformat/fifo.c:597: undefined reference to `__atomic_fetch_add_8'
collect2: error: ld returned 1 exit status
make: *** [Makefile:123: ffmpeg_g] Error 1
Nothing on the TTD side should need to change except the port number. However, if your server/host uses different login info for SFTP vs. FTP then you may need to make those changes to accommodate.Is there anything special that needs to be done in the config file to use SFTP or is at as simple as change the port from 21 to 22? Any changes to the server or username format?