Hi,
I found a snippet of code which works not exactly what I after but it
works. Mind you once started Ctrl "C" does not cease the application,
had to kill the process.
Initial tests
I can get the graphics to display ok but have lost audio from the
stream itself
see below for possible explanation. Log file attached.
#!/usr/bin/liquidsoap
# Define a Log file to monitor output
set("log.file.path","./soslug_alsa.log")
# Not used but this would define audio file to record a stream
recording = "soslug_jack.mp3"
# Define the stream input source
stream = mksafe(audio_to_stereo(input.alsa()))
# Define the icecast oput format etc..
output.icecast(%mp3(bitrate=128),
host = "soslug.org", port = 8008,
user = "<username>", password = "<password>", mount = "soslug_alsa.mp3",
description = "Liquid Soap application Streaming by Southend on
Sea Linux User Group",
url = "http://soslug.org:8008/soslug_alsa.mp3",
stream)
# This portion of the code does indeed supply the graphics however it
also kills # the stream test indicate that the graphic display itself
is intermittent
# speeding up and slowing down. I am guessing it is output.dummy which
might be # the problem here. Either I need to move the output.dummy to
after output.file or incorporate visu.volume into output.file and drop
output.dummy altogether. I will try these tomorrow.
output.dummy(visu.volume(smooth_add(special=delay(3.,blank(duration=4.)),normal=stream)))
# Defines output format for stream to be recorded
output.file(%mp3(bitrate=192), recording,
fallible=true,
on_stop=shutdown, stream)
Derek
2012/07/08 19:59:47 >>> LOG START
2012/07/08 19:59:47 [protocols.external:3] Didn't find "ufetch".
2012/07/08 19:59:47 [protocols.external:3] Found "/usr/bin/wget".
2012/07/08 19:59:47 [main:3] Liquidsoap 1.0.0
2012/07/08 19:59:47 [main:3] Using: graphics=[distributed with Ocaml] pcre=6.2.2 dtools=0.2.2 duppy=0.4.2 duppy.syntax=0.4.2 cry=0.2.2 mm=0.2.0 xmlplaylist=0.1.3 lastfm=0.3.0 ogg=0.4.3 vorbis=0.6.1 speex=0.2.0 mad=0.4.4 flac=0.1.0 flac.ogg=0.1.0 dynlink=[distributed with Ocaml] lame=0.3.1 gstreamer=0.1.0 voaacenc=0.1.0 theora=0.3.0 schroedinger=0.1.0 gavl=0.1.4 bjack=0.1.3 alsa=0.2.1 ao=0.2.0 samplerate=0.1.1 taglib=0.2.0 magic=0.7.3 camomile=0.8.3 faad=0.3.0 soundtouch=0.1.7 portaudio=0.2.0 pulseaudio=0.1.2 ladspa=0.1.4 dssi=0.1.0 sdl=0.8.0 camlimages=4.0.0 lo=0.1.0 yojson=1.0.2 gd=1.0a5
2012/07/08 19:59:47 [dynamic.loader:3] Could not find dynamic module for aacplus encoder.
2012/07/08 19:59:47 [dynamic.loader:2] Loaded plugin file /usr/lib/liquidsoap/1.0.0/plugins/ogg.cmxs.
2012/07/08 19:59:47 [dynamic.loader:2] Loaded plugin file /usr/lib/liquidsoap/1.0.0/plugins/lame.cmxs.
2012/07/08 19:59:47 [dynamic.loader:2] Loaded plugin file /usr/lib/liquidsoap/1.0.0/plugins/portaudio.cmxs.
2012/07/08 19:59:47 [dynamic.loader:2] Loaded plugin file /usr/lib/liquidsoap/1.0.0/plugins/flac.cmxs.
2012/07/08 19:59:47 [dynamic.loader:2] Loaded plugin file /usr/lib/liquidsoap/1.0.0/plugins/bjack.cmxs.
2012/07/08 19:59:47 [dynamic.loader:2] Loaded plugin file /usr/lib/liquidsoap/1.0.0/plugins/ladspa.cmxs.
2012/07/08 19:59:47 [dynamic.loader:2] Loaded plugin file /usr/lib/liquidsoap/1.0.0/plugins/sdl.cmxs.
2012/07/08 19:59:47 [dynamic.loader:2] Loaded plugin file /usr/lib/liquidsoap/1.0.0/plugins/dssi.cmxs.
2012/07/08 19:59:47 [dynamic.loader:2] Loaded plugin file /usr/lib/liquidsoap/1.0.0/plugins/samplerate.cmxs.
2012/07/08 19:59:47 [dynamic.loader:2] Loaded plugin file /usr/lib/liquidsoap/1.0.0/plugins/xmlplaylist.cmxs.
2012/07/08 19:59:47 [dynamic.loader:2] Loaded plugin file /usr/lib/liquidsoap/1.0.0/plugins/soundtouch.cmxs.
2012/07/08 19:59:47 [dynamic.loader:2] Loaded plugin file /usr/lib/liquidsoap/1.0.0/plugins/schroedinger.cmxs.
2012/07/08 19:59:47 [dynamic.loader:2] Loaded plugin file /usr/lib/liquidsoap/1.0.0/plugins/taglib.cmxs.
2012/07/08 19:59:47 [dynamic.loader:2] Loaded plugin file /usr/lib/liquidsoap/1.0.0/plugins/flac_ogg.cmxs.
2012/07/08 19:59:47 [dynamic.loader:2] Loaded plugin file /usr/lib/liquidsoap/1.0.0/plugins/gavl.cmxs.
2012/07/08 19:59:47 [dynamic.loader:2] Loaded plugin file /usr/lib/liquidsoap/1.0.0/plugins/cry.cmxs.
2012/07/08 19:59:47 [dynamic.loader:2] Loaded plugin file /usr/lib/liquidsoap/1.0.0/plugins/gd.cmxs.
2012/07/08 19:59:47 [dynamic.loader:2] Loaded plugin file /usr/lib/liquidsoap/1.0.0/plugins/lo.cmxs.
2012/07/08 19:59:47 [dynamic.loader:2] Loaded plugin file /usr/lib/liquidsoap/1.0.0/plugins/faad.cmxs.
2012/07/08 19:59:47 [dynamic.loader:2] Loaded plugin file /usr/lib/liquidsoap/1.0.0/plugins/graphics.cmxs.
2012/07/08 19:59:47 [dynamic.loader:2] Loaded plugin file /usr/lib/liquidsoap/1.0.0/plugins/theora.cmxs.
2012/07/08 19:59:47 [dynamic.loader:2] Loaded plugin file /usr/lib/liquidsoap/1.0.0/plugins/ao.cmxs.
2012/07/08 19:59:47 [dynamic.loader:2] Loaded plugin file /usr/lib/liquidsoap/1.0.0/plugins/pulseaudio.cmxs.
2012/07/08 19:59:47 [dynamic.loader:2] Loaded plugin file /usr/lib/liquidsoap/1.0.0/plugins/camlimages.cmxs.
2012/07/08 19:59:47 [dynamic.loader:2] Loaded plugin file /usr/lib/liquidsoap/1.0.0/plugins/voaacenc.cmxs.
2012/07/08 19:59:47 [dynamic.loader:2] Loaded plugin file /usr/lib/liquidsoap/1.0.0/plugins/mad.cmxs.
2012/07/08 19:59:47 [dynamic.loader:2] Loaded plugin file /usr/lib/liquidsoap/1.0.0/plugins/oss.cmxs.
2012/07/08 19:59:47 [dynamic.loader:2] Loaded plugin file /usr/lib/liquidsoap/1.0.0/plugins/vorbis.cmxs.
2012/07/08 19:59:47 [dynamic.loader:2] Loaded plugin file /usr/lib/liquidsoap/1.0.0/plugins/alsa.cmxs.
2012/07/08 19:59:47 [dynamic.loader:2] Loaded plugin file /usr/lib/liquidsoap/1.0.0/plugins/speex.cmxs.
2012/07/08 19:59:47 [dynamic.loader:2] Loaded plugin file /usr/lib/liquidsoap/1.0.0/plugins/lastfm.cmxs.
2012/07/08 19:59:47 [dynamic.loader:2] Could not load plugin file /usr/lib/liquidsoap/1.0.0/plugins/gstreamer.cmxs: error loading shared library: /usr/lib/liquidsoap/1.0.0/plugins/gstreamer.cmxs: undefined symbol: camlidl_malloc.
2012/07/08 19:59:47 [frame:3] Using 44100Hz audio, 25Hz video, 44100Hz master.
2012/07/08 19:59:47 [frame:3] Frame size must be a multiple of 1764 ticks = 1764 audio samples = 1 video samples.
2012/07/08 19:59:47 [frame:3] Targetting 'frame.duration': 0.04s = 1764 audio samples = 1764 ticks.
2012/07/08 19:59:47 [frame:3] Frames last 0.04s = 1764 audio samples = 1 video samples = 1764 ticks.
2012/07/08 19:59:47 [threads:3] Created thread "generic queue #1".
2012/07/08 19:59:47 [threads:3] Created thread "generic queue #2".
2012/07/08 19:59:47 [threads:3] Created thread "src_5538" (1 total).
2012/07/08 19:59:47 [soslug_alsa(dot)mp3:3] Connecting mount soslug_alsa.mp3 for sou...@soslug.org...
2012/07/08 19:59:47 [src_5538:3] Using ALSA 1.0.25.
2012/07/08 19:59:47 [src_5538:2] Falling back on interleaved S16LE
2012/07/08 19:59:50 [soslug_alsa(dot)mp3:3] Connection setup was successful.
2012/07/08 19:59:50 [threads:3] Created thread "wallclock_alsa" (2 total).
2012/07/08 19:59:50 [clock.wallclock_alsa:3] Streaming loop starts, synchronized by active sources.
2012/07/08 19:59:50 [mksafe:3] Switch to src_5542.
2012/07/08 19:59:50 [fallback_5549:3] Switch to src_5548.
2012/07/08 20:00:17 [fallback_5549:3] Switch to mksafe with forgetful transition.
2012/07/08 20:00:20 [fallback_5549:3] Switch to src_5548 with transition.
2012/07/08 20:00:25 [fallback_5549:3] Switch to mksafe with transition.
2012/07/08 20:00:28 [fallback_5549:3] Switch to src_5548 with transition.
2012/07/08 20:00:36 [fallback_5549:3] Switch to mksafe with transition.
2012/07/08 20:00:39 [fallback_5549:3] Switch to src_5548 with transition.
2012/07/08 20:00:44 [fallback_5549:3] Switch to mksafe with transition.
2012/07/08 20:00:47 [fallback_5549:3] Switch to src_5548 with transition.
2012/07/08 20:00:48 [fallback_5549:3] Switch to mksafe with transition.
2012/07/08 20:00:51 [fallback_5549:3] Switch to src_5548 with transition.
2012/07/08 20:00:52 [fallback_5549:3] Switch to mksafe with transition.
2012/07/08 20:00:55 [fallback_5549:3] Switch to src_5548 with transition.
2012/07/08 20:00:59 [fallback_5549:3] Switch to mksafe with transition.
2012/07/08 20:01:02 [fallback_5549:3] Switch to src_5548 with transition.
2012/07/08 20:01:06 [fallback_5549:3] Switch to mksafe with transition.
2012/07/08 20:01:09 [fallback_5549:3] Switch to src_5548 with transition.
2012/07/08 20:01:13 [fallback_5549:3] Switch to mksafe with transition.
2012/07/08 20:01:16 [fallback_5549:3] Switch to src_5548 with transition.
2012/07/08 20:01:20 [fallback_5549:3] Switch to mksafe with transition.
2012/07/08 20:01:23 [fallback_5549:3] Switch to src_5548 with transition.
2012/07/08 20:01:27 [fallback_5549:3] Switch to mksafe with transition.
2012/07/08 20:01:27 [clock.wallclock_alsa:2] Source soslug_jack(dot)mp3 failed while streaming: Graphics.Graphic_failure("fatal I/O error")!
2012/07/08 20:01:27 [main:3] Shutdown started!
2012/07/08 20:01:27 [main:3] Waiting for threads to terminate...
2012/07/08 20:01:27 [soslug_alsa(dot)mp3:3] Closing connection...
2012/07/08 20:01:27 [clock.wallclock_alsa:3] Streaming loop stopped.
2012/07/08 20:01:27 [threads:3] Thread "wallclock_alsa" terminated (1 remaining).
2012/07/08 21:20:32 >>> LOG START
2012/07/08 21:20:31 [protocols.external:3] Didn't find "ufetch".
2012/07/08 21:20:31 [protocols.external:3] Found "/usr/bin/wget".
2012/07/08 21:20:31 [main:3] Liquidsoap 1.0.0
2012/07/08 21:20:31 [main:3] Using: graphics=[distributed with Ocaml] pcre=6.2.2 dtools=0.2.2 duppy=0.4.2 duppy.syntax=0.4.2 cry=0.2.2 mm=0.2.0 xmlplaylist=0.1.3 lastfm=0.3.0 ogg=0.4.3 vorbis=0.6.1 speex=0.2.0 mad=0.4.4 flac=0.1.0 flac.ogg=0.1.0 dynlink=[distributed with Ocaml] lame=0.3.1 gstreamer=0.1.0 voaacenc=0.1.0 theora=0.3.0 schroedinger=0.1.0 gavl=0.1.4 bjack=0.1.3 alsa=0.2.1 ao=0.2.0 samplerate=0.1.1 taglib=0.2.0 magic=0.7.3 camomile=0.8.3 faad=0.3.0 soundtouch=0.1.7 portaudio=0.2.0 pulseaudio=0.1.2 ladspa=0.1.4 dssi=0.1.0 sdl=0.8.0 camlimages=4.0.0 lo=0.1.0 yojson=1.0.2 gd=1.0a5
2012/07/08 21:20:31 [dynamic.loader:3] Could not find dynamic module for aacplus encoder.
2012/07/08 21:20:31 [dynamic.loader:2] Loaded plugin file /usr/lib/liquidsoap/1.0.0/plugins/ogg.cmxs.
2012/07/08 21:20:31 [dynamic.loader:2] Loaded plugin file /usr/lib/liquidsoap/1.0.0/plugins/lame.cmxs.
2012/07/08 21:20:31 [dynamic.loader:2] Loaded plugin file /usr/lib/liquidsoap/1.0.0/plugins/portaudio.cmxs.
2012/07/08 21:20:31 [dynamic.loader:2] Loaded plugin file /usr/lib/liquidsoap/1.0.0/plugins/flac.cmxs.
2012/07/08 21:20:31 [dynamic.loader:2] Loaded plugin file /usr/lib/liquidsoap/1.0.0/plugins/bjack.cmxs.
2012/07/08 21:20:31 [dynamic.loader:2] Loaded plugin file /usr/lib/liquidsoap/1.0.0/plugins/ladspa.cmxs.
2012/07/08 21:20:31 [dynamic.loader:2] Loaded plugin file /usr/lib/liquidsoap/1.0.0/plugins/sdl.cmxs.
2012/07/08 21:20:31 [dynamic.loader:2] Loaded plugin file /usr/lib/liquidsoap/1.0.0/plugins/dssi.cmxs.
2012/07/08 21:20:31 [dynamic.loader:2] Loaded plugin file /usr/lib/liquidsoap/1.0.0/plugins/samplerate.cmxs.
2012/07/08 21:20:31 [dynamic.loader:2] Loaded plugin file /usr/lib/liquidsoap/1.0.0/plugins/xmlplaylist.cmxs.
2012/07/08 21:20:31 [dynamic.loader:2] Loaded plugin file /usr/lib/liquidsoap/1.0.0/plugins/soundtouch.cmxs.
2012/07/08 21:20:31 [dynamic.loader:2] Loaded plugin file /usr/lib/liquidsoap/1.0.0/plugins/schroedinger.cmxs.
2012/07/08 21:20:31 [dynamic.loader:2] Loaded plugin file /usr/lib/liquidsoap/1.0.0/plugins/taglib.cmxs.
2012/07/08 21:20:31 [dynamic.loader:2] Loaded plugin file /usr/lib/liquidsoap/1.0.0/plugins/flac_ogg.cmxs.
2012/07/08 21:20:31 [dynamic.loader:2] Loaded plugin file /usr/lib/liquidsoap/1.0.0/plugins/gavl.cmxs.
2012/07/08 21:20:31 [dynamic.loader:2] Loaded plugin file /usr/lib/liquidsoap/1.0.0/plugins/cry.cmxs.
2012/07/08 21:20:31 [dynamic.loader:2] Loaded plugin file /usr/lib/liquidsoap/1.0.0/plugins/gd.cmxs.
2012/07/08 21:20:31 [dynamic.loader:2] Loaded plugin file /usr/lib/liquidsoap/1.0.0/plugins/lo.cmxs.
2012/07/08 21:20:31 [dynamic.loader:2] Loaded plugin file /usr/lib/liquidsoap/1.0.0/plugins/faad.cmxs.
2012/07/08 21:20:31 [dynamic.loader:2] Loaded plugin file /usr/lib/liquidsoap/1.0.0/plugins/graphics.cmxs.
2012/07/08 21:20:31 [dynamic.loader:2] Loaded plugin file /usr/lib/liquidsoap/1.0.0/plugins/theora.cmxs.
2012/07/08 21:20:31 [dynamic.loader:2] Loaded plugin file /usr/lib/liquidsoap/1.0.0/plugins/ao.cmxs.
2012/07/08 21:20:31 [dynamic.loader:2] Loaded plugin file /usr/lib/liquidsoap/1.0.0/plugins/pulseaudio.cmxs.
2012/07/08 21:20:31 [dynamic.loader:2] Loaded plugin file /usr/lib/liquidsoap/1.0.0/plugins/camlimages.cmxs.
2012/07/08 21:20:31 [dynamic.loader:2] Loaded plugin file /usr/lib/liquidsoap/1.0.0/plugins/voaacenc.cmxs.
2012/07/08 21:20:31 [dynamic.loader:2] Loaded plugin file /usr/lib/liquidsoap/1.0.0/plugins/mad.cmxs.
2012/07/08 21:20:31 [dynamic.loader:2] Loaded plugin file /usr/lib/liquidsoap/1.0.0/plugins/oss.cmxs.
2012/07/08 21:20:31 [dynamic.loader:2] Loaded plugin file /usr/lib/liquidsoap/1.0.0/plugins/vorbis.cmxs.
2012/07/08 21:20:31 [dynamic.loader:2] Loaded plugin file /usr/lib/liquidsoap/1.0.0/plugins/alsa.cmxs.
2012/07/08 21:20:31 [dynamic.loader:2] Loaded plugin file /usr/lib/liquidsoap/1.0.0/plugins/speex.cmxs.
2012/07/08 21:20:31 [dynamic.loader:2] Loaded plugin file /usr/lib/liquidsoap/1.0.0/plugins/lastfm.cmxs.
2012/07/08 21:20:31 [dynamic.loader:2] Could not load plugin file /usr/lib/liquidsoap/1.0.0/plugins/gstreamer.cmxs: error loading shared library: /usr/lib/liquidsoap/1.0.0/plugins/gstreamer.cmxs: undefined symbol: camlidl_malloc.
2012/07/08 21:20:32 [frame:3] Using 44100Hz audio, 25Hz video, 44100Hz master.
2012/07/08 21:20:32 [frame:3] Frame size must be a multiple of 1764 ticks = 1764 audio samples = 1 video samples.
2012/07/08 21:20:32 [frame:3] Targetting 'frame.duration': 0.04s = 1764 audio samples = 1764 ticks.
2012/07/08 21:20:32 [frame:3] Frames last 0.04s = 1764 audio samples = 1 video samples = 1764 ticks.
2012/07/08 21:20:32 [threads:3] Created thread "generic queue #1".
2012/07/08 21:20:32 [threads:3] Created thread "generic queue #2".
2012/07/08 21:20:32 [threads:3] Created thread "src_5538" (1 total).
2012/07/08 21:20:32 [soslug_alsa(dot)mp3:3] Connecting mount soslug_alsa.mp3 for sou...@soslug.org...
2012/07/08 21:20:32 [src_5538:3] Using ALSA 1.0.25.
2012/07/08 21:20:32 [src_5538:2] Falling back on interleaved S16LE
2012/07/08 21:20:37 [soslug_alsa(dot)mp3:3] Connection setup was successful.
2012/07/08 21:20:37 [threads:3] Created thread "wallclock_alsa" (2 total).
2012/07/08 21:20:37 [clock.wallclock_alsa:3] Streaming loop starts, synchronized by active sources.
2012/07/08 21:20:37 [mksafe:3] Switch to src_5542.
2012/07/08 21:20:37 [fallback_5549:3] Switch to src_5548.
2012/07/08 21:20:45 [fallback_5549:3] Switch to mksafe with forgetful transition.
2012/07/08 21:20:48 [fallback_5549:3] Switch to src_5548 with transition.
2012/07/08 21:21:08 [fallback_5549:3] Switch to mksafe with transition.
2012/07/08 21:21:11 [fallback_5549:3] Switch to src_5548 with transition.
2012/07/08 21:21:19 [fallback_5549:3] Switch to mksafe with transition.
2012/07/08 21:21:22 [fallback_5549:3] Switch to src_5548 with transition.
2012/07/08 21:21:29 [fallback_5549:3] Switch to mksafe with transition.
2012/07/08 21:21:32 [fallback_5549:3] Switch to src_5548 with transition.
2012/07/08 21:21:43 [fallback_5549:3] Switch to mksafe with transition.
2012/07/08 21:21:47 [fallback_5549:3] Switch to src_5548 with transition.
2012/07/08 21:21:50 [fallback_5549:3] Switch to mksafe with transition.
2012/07/08 21:21:54 [fallback_5549:3] Switch to src_5548 with transition.
2012/07/08 21:22:01 [fallback_5549:3] Switch to mksafe with transition.
2012/07/08 21:22:04 [fallback_5549:3] Switch to src_5548 with transition.
2012/07/08 21:22:15 [fallback_5549:3] Switch to mksafe with transition.
2012/07/08 21:22:18 [fallback_5549:3] Switch to src_5548 with transition.
2012/07/08 21:22:26 [fallback_5549:3] Switch to mksafe with transition.
2012/07/08 21:22:31 [fallback_5549:3] Switch to src_5548 with transition.
2012/07/08 21:22:55 [fallback_5549:3] Switch to mksafe with transition.
2012/07/08 21:22:59 [fallback_5549:3] Switch to src_5548 with transition.
2012/07/08 21:23:24 [fallback_5549:3] Switch to mksafe with transition.
2012/07/08 21:23:27 [fallback_5549:3] Switch to src_5548 with transition.
2012/07/08 21:23:47 [fallback_5549:3] Switch to mksafe with transition.
2012/07/08 21:23:50 [fallback_5549:3] Switch to src_5548 with transition.
2012/07/08 21:24:00 [main:3] Shutdown started!
2012/07/08 21:24:00 [main:3] Waiting for threads to terminate...
2012/07/08 21:24:00 [soslug_alsa(dot)mp3:3] Closing connection...
2012/07/08 21:24:00 [clock.wallclock_alsa:3] Streaming loop stopped.
2012/07/08 21:24:00 [threads:3] Thread "wallclock_alsa" terminated (1 remaining).
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users