Hi again,

I'm trying the script and have this error : 



And the Log :

2014/09/23 16:02:05 >>> LOG START
2014/09/23 16:02:05 [protocols.external:3] Found "/usr/bin/wget".
2014/09/23 16:02:05 [main:3] Liquidsoap 1.1.1
2014/09/23 16:02:05 [main:3] Using: graphics=[distributed with Ocaml] 
pcre=7.0.2 dtools=0.3.1 duppy=0.5.1 duppy.syntax=0.5.1 cry=0.2.2 mm=0.2.1 
xmlplaylist=0.1.3 lastfm=0.3.0 ogg=0.4.5 vorbis=0.6.1 opus=0.1.0 speex=0.2.0 
mad=0.4.4 flac=0.1.1 flac.ogg=0.1.1 dynlink=[distributed with Ocaml] lame=0.3.2 
shine=0.1.1 gstreamer=0.2.0 frei0r=0.1.0 voaacenc=0.1.0 theora=0.3.0 
schroedinger=0.1.0 gavl=0.1.5 bjack=0.1.4 alsa=0.2.1 ao=0.2.0 samplerate=0.1.2 
taglib=0.3.1 magic=0.7.3 camomile=0.8.4 inotify=1.0 faad=0.3.2 soundtouch=0.1.7 
portaudio=0.2.0 pulseaudio=0.1.2 ladspa=0.1.4 dssi=0.1.1 sdl=0.9.1 
camlimages=4.0.0 lo=0.1.0 yojson=1.1.7 gd=1.0a5
2014/09/23 16:02:05 [dynamic.loader:3] Could not find dynamic module for fdkaac 
encoder.
2014/09/23 16:02:05 [dynamic.loader:3] Could not find dynamic module for 
aacplus encoder.
2014/09/23 16:02:05 [dynamic.loader:2] Loaded plugin file 
/usr/lib/liquidsoap/1.1.1/plugins/alsa.cmxs.
2014/09/23 16:02:05 [dynamic.loader:2] Loaded plugin file 
/usr/lib/liquidsoap/1.1.1/plugins/mad.cmxs.
2014/09/23 16:02:05 [dynamic.loader:2] Loaded plugin file 
/usr/lib/liquidsoap/1.1.1/plugins/pulseaudio.cmxs.
2014/09/23 16:02:05 [dynamic.loader:2] Loaded plugin file 
/usr/lib/liquidsoap/1.1.1/plugins/ogg.cmxs.
2014/09/23 16:02:05 [dynamic.loader:2] Loaded plugin file 
/usr/lib/liquidsoap/1.1.1/plugins/vorbis.cmxs.
2014/09/23 16:02:05 [dynamic.loader:2] Loaded plugin file 
/usr/lib/liquidsoap/1.1.1/plugins/flac_ogg.cmxs.
2014/09/23 16:02:05 [dynamic.loader:2] Loaded plugin file 
/usr/lib/liquidsoap/1.1.1/plugins/taglib.cmxs.
2014/09/23 16:02:05 [dynamic.loader:2] Loaded plugin file 
/usr/lib/liquidsoap/1.1.1/plugins/cry.cmxs.
2014/09/23 16:02:05 [dynamic.loader:2] Loaded plugin file 
/usr/lib/liquidsoap/1.1.1/plugins/shine.cmxs.
2014/09/23 16:02:05 [dynamic.loader:2] Loaded plugin file 
/usr/lib/liquidsoap/1.1.1/plugins/lame.cmxs.
2014/09/23 16:02:05 [dynamic.loader:2] Loaded plugin file 
/usr/lib/liquidsoap/1.1.1/plugins/flac.cmxs.
2014/09/23 16:02:05 [dynamic.loader:2] Loaded plugin file 
/usr/lib/liquidsoap/1.1.1/plugins/voaacenc.cmxs.
2014/09/23 16:02:05 [dynamic.loader:2] Loaded plugin file 
/usr/lib/liquidsoap/1.1.1/plugins/faad.cmxs.
2014/09/23 16:02:05 [frame:3] Using 44100Hz audio, 25Hz video, 44100Hz master.
2014/09/23 16:02:05 [frame:3] Frame size must be a multiple of 1764 ticks = 
1764 audio samples = 1 video samples.
2014/09/23 16:02:05 [frame:3] Targetting 'frame.duration': 0.04s = 1764 audio 
samples = 1764 ticks.
2014/09/23 16:02:05 [frame:3] Frames last 0.04s = 1764 audio samples = 1 video 
samples = 1764 ticks.
2014/09/23 16:02:05 [threads:3] Created thread "generic queue #1".
2014/09/23 16:02:05 [threads:3] Created thread "generic queue #2".
2014/09/23 16:02:05 [threads:3] Created thread "input.alsa_4874" (1 total).
2014/09/23 16:02:05 [input.alsa_4874:3] Using ALSA 1.0.27.2.
2014/09/23 16:02:05 [maradio(dot)ogg:3] Connecting mount maradio.ogg for 
[email protected]...
2014/09/23 16:02:05 [threads:1] Thread "input.alsa_4874" aborts with exception 
Alsa error: Invalid argument!
2014/09/23 16:02:05 [maradio(dot)ogg:3] Connection setup was successful.
2014/09/23 16:02:05 [maradio(dot)mp3:3] Connecting mount maradio.mp3 for 
[email protected]...
2014/09/23 16:02:05 [maradio(dot)mp3:3] Connection setup was successful.
2014/09/23 16:02:05 [threads:3] Created thread "wallclock_alsa" (1 total).
2014/09/23 16:02:05 [clock.wallclock_alsa:3] Streaming loop starts, 
synchronized by active sources.
2014/09/23 16:02:05 [main:3] Shutdown started!
2014/09/23 16:02:05 [main:3] Waiting for threads to terminate...
2014/09/23 16:02:05 [maradio(dot)ogg:3] Closing connection...
2014/09/23 16:02:05 [maradio(dot)mp3:3] Closing connection...
2014/09/23 16:02:05 [clock.wallclock_alsa:3] Streaming loop stopped.
2014/09/23 16:02:05 [threads:3] Thread "wallclock_alsa" terminated (0 
remaining).
2014/09/23 16:02:05 [main:3] Cleaning downloaded files...
2014/09/23 16:02:05 [main:3] Freeing memory...
2014/09/23 16:02:05 >>> LOG END

Have you any ideas ?

----- Mail original -----
De: "Albert Bruc" <[email protected]>
À: "Lars Kruse" <[email protected]>
Cc: [email protected]
Envoyé: Mardi 23 Septembre 2014 10:26:28
Objet: Re: [Savonet-users] using liquidsoap as darkice

Thanks a lot !

----- Mail original -----
De: "Lars Kruse" <[email protected]>
À: [email protected], "Albert Bruc" <[email protected]>
Envoyé: Lundi 22 Septembre 2014 14:31:10
Objet: Re: [Savonet-users] using liquidsoap as darkice

Hi Albert,

> I'm searching an easy way to use liquidsoap as darkice
> streaming a sound from the input or output of a soundcard
> and send the stream to icecast in mp3/ogg/aac for example

The following liquidsoap script does that for me:

<start>
input_stream = input.alsa(device="pcm.radio_stream")
external_server = output.icecast(host="stream.example.org",
    port=8000, password="_secret_")

vorbis_encoding = %vorbis.abr(bitrate=320, channels=2)
flac_encoding = %ogg(%flac)

external_server(vorbis_encoding, input_stream, mount="stream")
external_server(flac_encoding, input_stream, mount="stream_flac.ogg")
<end>


Other codecs can easily be added. Just go through the documentation on the
website.


Btw: the above human-readable alsa device name requires the following content of
the /etc/asound.conf file:

pcm.radio_stream {
        type plug
        slave { pcm "hw:1,0" }
}

I hope this helps,
Lars

------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to