sqlgeek
Member
@boatbod I am needing some help if you could take a look at my setup
rx.py
Code:./rx.py --args 'rtl' -N 'LNA:47' -S 250000 -q 0 -v 1 -2 -T trunk.tsv -V -n -M meta.json -w 2> stderr.2
op25.liq
Code:#!/usr/bin/liquidsoap # Example liquidsoap streaming from op25 to icecast # (c) 2019, gnorbury@bondcar.com # set("log.stdout", true) set("log.file", false) set("log.level", 3) # Make the native sample rate compatible with op25 set("frame.audio.samplerate", 8000) input = mksafe(input.external(buffer=0.25, channels=2, samplerate=8000, restart_on_error=false, "./audio.py -x 1.5 -s")) # Consider increasing the buffer value on slow systems such as RPi3. e.g. buffer=0.25 # Longer buffer results in less choppy audio but at the expense of increased latency. # LOCAL AUDIO # Uncomment the appropriate line below to enable local sound # # Default audio subsystem #out (input) # # PulseAudio output.pulseaudio(input) # # ALSA #output.alsa(input) # ICECAST STREAMING # Uncomment to enable output to an icecast server # Change the "host", "password", and "mount" strings appropriately first! # For metadata to work properly, the host address given here MUST MATCH the address in op25's meta.json file # output.icecast(%mp3(bitrate=16, samplerate=22050, stereo=false), description="Spalding County Public Safety", genre="Public Safety", url="", fallible=false, icy_metadata="false", host="audio9.broadcastify.com", port=80, mount="xcjkdymvz0f2", password="mypassword", mean(input))
meta.json
Code:{"icecastPass": "mypassword", "icecastMountpoint": "xcjkdymvz0f2", "icecastServerAddress": "audio9.broadcastify.com:80", "delay": "0.0", "icecastMountExt": ".m3u"}
log on op25.liq - it quits immediately
Code:2019/08/28 20:37:18 >>> LOG START 2019/08/28 20:37:17 [main:3] Liquidsoap 1.3.3 2019/08/28 20:37:17 [main:3] Using: bytes=[distributed with OCaml 4.02 or above] pcre=7.2.3 dtools=0.4.0 duppy=0.7.2 duppy.syntax=0.7.2 cry=0.6.2 mm=0.3.1 xmlplaylist=0.1.3 lastfm=0.3.0 ogg=0.5.2 vorbis=0.7.1 opus=0.1.2 speex=0.2.1 mad=0.4.4 flac=0.1.3 flac.ogg=0.1.3 dynlink=[distributed with Ocaml] lame=0.3.2 shine=0.2.0 gstreamer=0.2.0 frei0r=0.1.0 theora=0.3.1 gavl=0.1.5 bjack=0.1.4 alsa=0.2.3 ao=0.2.0 samplerate=0.1.2 taglib=0.3.1 magic=0.7.3 camomile=0.8.5 yojson=1.3.2 faad=0.4.0 soundtouch=0.1.7 portaudio=0.2.1 pulseaudio=0.1.2 ladspa=0.1.4 dssi=0.1.1 sdl=0.9.1 camlimages=4.2.0 lo=0.1.0 gd=1.0a5 2019/08/28 20:37:17 [gstreamer.loader:3] Loaded GStreamer 1.14.4 0 2019/08/28 20:37:17 [dynamic.loader:3] Could not find dynamic module for fdkaac encoder. 2019/08/28 20:37:18 [frame:3] Using 8000Hz audio, 25Hz video, 8000Hz master. 2019/08/28 20:37:18 [frame:3] Frame size must be a multiple of 320 ticks = 320 audio samples = 1 video samples. 2019/08/28 20:37:18 [frame:3] Targetting 'frame.duration': 0.04s = 320 audio samples = 320 ticks. 2019/08/28 20:37:18 [frame:3] Frames last 0.04s = 320 audio samples = 1 video samples = 320 ticks. 2019/08/28 20:37:18 [threads:3] Created thread "generic queue #1". 2019/08/28 20:37:18 [threads:3] Created thread "generic queue #2". 2019/08/28 20:37:18 [threads:3] Created thread "non-blocking queue #1". 2019/08/28 20:37:18 [threads:3] Created thread "non-blocking queue #2". 2019/08/28 20:37:18 [input.external_7212:3] Starting process 2019/08/28 20:37:18 [clock.wallclock_pulse:2] Error when starting output pulse_out(liquidsoap:): Pulseaudio error: Connection refused! 2019/08/28 20:37:18 [clock.wallclock_pulse:3] Raised by primitive operation at file "pulseaudio.ml" (inlined), line 47, characters 6-67 2019/08/28 20:37:18 [clock.wallclock_pulse:3] Called from file "io/pulseaudio_io.ml", line 83, characters 13-190 2019/08/28 20:37:18 [clock.wallclock_pulse:3] Called from file "tools/start_stop.ml", line 99, characters 6-16 2019/08/28 20:37:18 [clock.wallclock_pulse:3] Called from file "clock.ml", line 237, characters 19-37 2019/08/28 20:37:18 [xcjkdymvz0f2:3] Connecting mount xcjkdymvz0f2 for source@audio9.broadcastify.com... 2019/08/28 20:37:18 [xcjkdymvz0f2:3] Connection setup was successful. 2019/08/28 20:37:18 [threads:3] Created thread "wallclock_pulse" (1 total). 2019/08/28 20:37:18 [clock.wallclock_pulse:3] Streaming loop starts, synchronized by active sources. 2019/08/28 20:37:18 [main:3] Shutdown started! 2019/08/28 20:37:18 [main:3] Waiting for threads to terminate... strange error flushing buffer ... strange error flushing buffer ... 2019/08/28 20:37:18 [xcjkdymvz0f2:3] Closing connection... 2019/08/28 20:37:18 [clock.wallclock_pulse:3] Streaming loop stopped. 2019/08/28 20:37:18 [threads:3] Thread "wallclock_pulse" terminated (0 remaining). 2019/08/28 20:37:18 [main:3] Threads terminated. 2019/08/28 20:37:18 [input.external_7212:3] Cleaning up process 2019/08/28 20:37:18 [threads:3] Shutting down scheduler... 2019/08/28 20:37:18 [threads:3] Scheduler shut down. 2019/08/28 20:37:18 [threads:3] Thread "generic queue #2" terminated. 2019/08/28 20:37:18 [main:3] Cleaning downloaded files... 2019/08/28 20:37:18 [main:3] Freeing memory... 2019/08/28 20:37:18 [threads:3] Thread "non-blocking queue #2" terminated. 2019/08/28 20:37:18 [threads:3] Thread "generic queue #1" terminated. 2019/08/28 20:37:18 >>> LOG END
No issues picking up the signal - just not hearing anything because op25.liq is not starting...
Code:NAC 0xa WACN 0x924b3 SYSID 0xa 852.350000/807.350000 tsbks 10600 voice frequency 851.225000 tgid(s) 10 None 17.2s ago count 116 voice frequency 851.325000 tgid(s) 2 None 13.0s ago count 169 voice frequency 851.600000 tgid(s) 10 None 9.8s ago count 139 voice frequency 852.187500 tgid(s) 10 None 12.5s ago count 1 voice frequency 852.200000 tgid(s) 10 None 7.2s ago count 110 voice frequency 852.812500 tgid(s) 2 None 2.6s ago count 148 voice frequency 853.637500 tgid(s) 10 None 2.6s ago count 116 Frequency 852.350000(0)
Good news - I got it working! I had to kill the pulseaudio, uninstall and reinstall. Started it back up and op25.liq is working like a champ. Streaming is working fairly well. I was wondering if I might be able to use something like this to be able to clean up the audio a little bit - the dynamics are so varied:
ksigWyatt/Pi-Audio-Compressor
This is the link to the feed - would love to get some feedback from other streamers on audio quality. This is not an extremely busy channel:
Spalding County Public Safety Live Audio Feed






