I have Liquidsoap 1.3.1 up and running with a cirrus logic audio card
(plughw:1,0). However I am getting an Underrun error that will continue
despite the input. Any ideas? I have attempted a buffer around the
"input.alsa(device="plughw:1,0")" with no luck. (Maybe I just got some
syntax incorrect with buffering, any suggestions?)
*/etc/liquidsoap/testing.liq:*
#!/usr/bin/liquidsoap -v
set("log.file.path","/tmp/testing.log")
#Input from Microphone
radio = input.alsa(device="plughw:1,0")
#Output to Headphones
output.alsa(device="hw:0,0",radio)
#Stream
output.shoutcast(%mp3(bitrate=64, samplerate=44100)
,host="xxx", port=xxx, password="xxx"
,name="xxxx", url="xxxx", genre="xxxx"
,radio)
*Log:*
2017/08/03 19:51:18 >>> LOG START
2017/08/03 19:51:17 [main:3] Liquidsoap 1.3.1
2017/08/03 19:51:17 [main:3] Using: bytes=[OCaml strictly before 4.02]
pcre=7.2.3 dtools=0.3.3 duppy=0.6.0 duppy.syntax=0.6.0 cry=0.5.0 mm=0.3.0
mad=0.4.5 dynlink=[distributed with Ocaml] lame=0.3.3 alsa=0.2.3
taglib=0.3.3 camomile=0.8.5 pulseaudio=0.1.3
2017/08/03 19:51:17 [dynamic.loader:3] Could not find dynamic module for
fdkaac encoder.
2017/08/03 19:51:18 [frame:3] Using 44100Hz audio, 25Hz video, 44100Hz
master.
2017/08/03 19:51:18 [frame:3] Frame size must be a multiple of 1764 ticks =
1764 audio samples = 1 video samples.
2017/08/03 19:51:18 [frame:3] Targetting 'frame.duration': 0.04s = 1764
audio samples = 1764 ticks.
2017/08/03 19:51:18 [frame:3] Frames last 0.04s = 1764 audio samples = 1
video samples = 1764 ticks.
2017/08/03 19:51:18 [threads:3] Created thread "generic queue #1".
2017/08/03 19:51:18 [threads:3] Created thread "generic queue #2".
2017/08/03 19:51:18 [threads:3] Created thread "non-blocking queue #1".
2017/08/03 19:51:18 [threads:3] Created thread "non-blocking queue #2".
2017/08/03 19:51:18 [threads:3] Created thread "input.alsa_5796" (1 total).
2017/08/03 19:51:18 [threads:3] Created thread "alsa_out(plughw:1,0)" (2
total).
2017/08/03 19:51:18 [output(dot)shoutcast:3] Connecting mount sid#1 for
@xxxxx...
2017/08/03 19:51:18 [input.alsa_5796:3] Using ALSA 1.0.28.
2017/08/03 19:51:18 [output(dot)shoutcast:3] Connection setup was
successful.
2017/08/03 19:51:18 [threads:3] Created thread "wallclock_alsa" (3 total).
2017/08/03 19:51:18 [clock.wallclock_alsa:3] Streaming loop starts,
synchronized by active sources.
2017/08/03 19:51:18 [map_metadata_5802:3] Inserting missing metadata.
2017/08/03 19:51:18 [alsa_out(plughw:1,0):3] Using ALSA 1.0.28.
2017/08/03 19:51:18 [alsa_out(plughw:1,0):3] Samplefreq=44100Hz,
Bufsize=65536B, Frame=4B, Periods=2048
2017/08/03 19:51:18 [output(dot)shoutcast:3] Metadata update may have
failed with error: bad answer
2017/08/03 19:51:18 [alsa_out(plughw:1,0):2] Underrun!
2017/08/03 19:51:18 [alsa_out(plughw:1,0):2] Trying to recover..
2017/08/03 19:51:26 [alsa_out(plughw:1,0):2] Underrun!
2017/08/03 19:51:26 [alsa_out(plughw:1,0):2] Trying to recover..
Ctrl + C
2017/08/03 19:51:31 [main:3] Shutdown started!
2017/08/03 19:51:31 [main:3] Waiting for threads to terminate...
2017/08/03 19:51:31 [output(dot)shoutcast:3] Closing connection...
2017/08/03 19:51:31 [threads:3] Thread "alsa_out(plughw:1,0)" terminated (2
remaining).
2017/08/03 19:51:31 [threads:3] Thread "input.alsa_5796" terminated (1
remaining).
2017/08/03 19:51:31 [clock.wallclock_alsa:3] Streaming loop stopped.
2017/08/03 19:51:31 [threads:3] Thread "wallclock_alsa" terminated (0
remaining).
2017/08/03 19:51:31 [main:3] Threads terminated.
2017/08/03 19:51:31 [threads:3] Shutting down scheduler...
2017/08/03 19:51:31 [threads:3] Scheduler shut down.
2017/08/03 19:51:31 [threads:3] Thread "generic queue #1" terminated.
2017/08/03 19:51:31 [main:3] Cleaning downloaded files...
2017/08/03 19:51:31 [main:3] Freeing memory...
2017/08/03 19:51:31 >>> LOG END
Thank you for your help!
Garrett
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users