LiquidSoap can't play music, just noise and sin....
  • Hello,
    I'm trying to configure Liquidsoap to play music when nothing is sheduled on airtime.
    But i don't understand, i can have noise and sine, but when i want to play a song or a playlist, liquidsoap is off...

    Do you have an idea of the problem ? 

    Thhaankks

    R0main.
  • 6 Comments sorted by
  • Hey Romain

    Can you post  the change you made to ls_script.liq?
    Post edited by Guytrance at 2012-08-20 06:09:15
  • I've just changed this :

    default = amplify(0.00001, noise())
    default = rewrite_metadata([("artist","Airtime"), ("title", "offline")],default)

    into this

    default = playlist(mode='random', "/home/unilinux/bureau/music/")

    Liquidoap work for airtime, noise, sin etc... 
    but not when i want to play a song.

    Icecast work with noise, etc... but not when it's a song...

    Error from files permissions ?
  • unilinux@unilinux:~$ sudo -u pypo /usr/lib/airtime/pypo/bin/airtime-liquidsoap

    2012/08/20 12:43:10 >>> LOG START
    2012/08/20 12:43:10 [protocols.external:3] Didn't find "ufetch".
    2012/08/20 12:43:10 [protocols.external:3] Found "/usr/bin/wget".
    2012/08/20 12:43:10 [main:3] Liquidsoap 1.0.1
    2012/08/20 12:43:10 [main:3] Using: graphics=[distributed with Ocaml] pcre=6.2.3 dtools=0.3.0 duppy=0.4.2 duppy.syntax=0.4.2 cry=0.2.2 mm=0.2.0 xmlplaylist=0.1.3 ogg=0.4.3 vorbis=0.6.1 mad=0.4.4 flac=0.1.1 flac.ogg=0.1.1 dynlink=[distributed with Ocaml] lame=0.3.1 alsa=0.2.1 ao=0.2.0 taglib=0.2.0 camomile=0.8.3 portaudio=0.2.0 pulseaudio=0.1.2 ladspa=0.1.4 camlimages=4.0.0
    2012/08/20 12:43:10 [dynamic.loader:3] Could not find dynamic module for aacplus encoder.
    2012/08/20 12:43:10 [dynamic.loader:2] Could not load plugins in directory /usr/local/lib/liquidsoap/1.0.1/plugins.
    2012/08/20 12:43:10 [frame:3] Using 44100Hz audio, 25Hz video, 44100Hz master.
    2012/08/20 12:43:10 [frame:3] Frame size must be a multiple of 1764 ticks = 1764 audio samples = 1 video samples.
    2012/08/20 12:43:10 [frame:3] Targetting 'frame.duration': 0.04s = 1764 audio samples = 1764 ticks.
    2012/08/20 12:43:10 [frame:3] Frames last 0.04s = 1764 audio samples = 1 video samples = 1764 ticks.
    2012/08/20 12:43:10 [lang:3] ALSA
    init: exception encountered during start phase:
      Failure("port 1234 already taken")

  • Is it an error from codecs ?
  • Hi Romain,

    That error is happening because port 1234 is not available on your machine. I'm assuming airtime is running on your machine, so LS that is running with airtime is already using port 1234 and your command line LS is trying to get that port again. That's why you see the error msg.

    For your original problem, what do you mean by LS is off? how did you confirm it is actually off?

    Thank you.
  • Thanks James,

    When there is default = amplify(0.9, noise()). I can hear the noise, airtime works, and listeners can listen the Icecast server.

    When there is :

    default = playlist(mode='random', "/srv/music/")

    I can't hear music and listeners can't listen the Icecast server, however they can listen when it play sheduled playlists with Airtime.

    The directory is good, but I hear no sound... Is it necessary to have specious permissions on the directory ?

    If you can help me, thanks !! It could be urgent ;) (it is...)

    Thx
    Romain.