airtime 1.9.3 and external icecast server
  • hi, I've installed airtime 1.9.3 on a debian 6, and I want to stream to an external server. AFAIK i should change the settings in /etc/airtime/liquidsoap.cfg, and is what I did... this is what it looks like now:

    
    ###########################################
    # Liquidsoap config file                  #
    ###########################################
    
    ###########################################
    # Output settings                         #
    ###########################################
    output_sound_device = false
    output_icecast_vorbis = false
    output_icecast_mp3 = true
    output_shoutcast = false
    
    output_bitrate = 64
    output_samplerate = 22050
    #output_stereo = true
    
    ###########################################
    # Logging settings                        #
    ###########################################
    log_file = "/var/log/airtime/pypo-liquidsoap/<script>.log"
    #log_level = 3
    
    ###########################################
    # Icecast Stream settings                 #
    ###########################################
    icecast_host = "stream.yamsproject.org"
    icecast_port = 8000
    icecast_pass = "password"
    
    # Icecast mountpoint names
    mount_point_mp3 = "prova.mp3"
    mount_point_vorbis = "airtime.ogg"
    
    # Webstream metadata settings
    icecast_url = "http://www.radiomatria.org"
    icecast_description = "Radio Matria"
    icecast_genre = "broadcast"
    
    # Audio stream metadata for vorbis/ogg is disabled by default
    # due to a number of client media players that disconnect
    # when the metadata changes to a new track. Some versions of
    # mplayer and VLC have this problem. Enable this option at your
    # own risk!
    output_icecast_vorbis_metadata = false
    
    ###########################################
    # Shoutcast Stream settings               #
    ###########################################
    shoutcast_host = "127.0.0.1"
    shoutcast_port = 9000
    shoutcast_pass = "testing"
    
    # Webstream metadata settings
    shoutcast_url = "http://airtime.sourcefabric.org"
    shoutcast_genre = "genre"
    


    but running airtime-check-system I get:

    root@airtime:~# airtime-check-system 
    CPU                            = AMD Sempron(tm) 145 Processor
    Total RAM                      = 902932 kB
    Free RAM                       = 667232 kB
    OS                             = 6.0.2 Intel 80386
    AIRTIME_CONFIG_FILES           = OK
    POSTGRESQL_DATABASE            = OK
    PYTHON_KOMBU_VERSION           = 1.2.0
    PYTHON_POSTER_VERSION          = 0.8.1
    PYTHON_MUTAGEN_VERSION         = 1.20
    PYTHON_PYINOTIFY_VERSION       = 0.9.2
    RABBITMQ_SERVER                = OK
    AIRTIME_VERSION_URL            = http://localhost:80/api/version/api_key/%%api_key%%
    APACHE_CONFIGURED              = YES
    AIRTIME_VERSION                = 1.9.3
    PLAYOUT_ENGINE_PROCESS_ID      = 2122
    PLAYOUT_ENGINE_RUNNING_SECONDS = 26
    LIQUIDSOAP_PROCESS_ID          = 
    LIQUIDSOAP_RUNNING_SECONDS     = 0
      -- WARNING! It looks like the Liquidsoap engine is continually restarting.
      -- 2011/09/26 16:31:47 [airtime(dot)ogg:3] Connection failed, will try again in 5 sec.
      -- 2011/09/26 16:31:53 [airtime(dot)ogg:3] Connecting mount airtime.ogg for source@127.0.0.1...
      -- 2011/09/26 16:31:53 [airtime(dot)ogg:2] Connection failed: could not connect to host: Connection refused in connect()!
      -- 2011/09/26 16:31:53 [airtime(dot)ogg:3] Connection failed, will try again in 5 sec.
      -- 2011/09/26 16:31:55 [main:3] Shutdown started!
      -- 2011/09/26 16:31:55 [main:3] Waiting for threads to terminate...
      -- 2011/09/26 16:31:55 [clock.wallclock_main:3] Streaming loop stopped.
      -- 2011/09/26 16:31:55 [threads:3] Thread "wallclock_main" terminated (0 remaining).
      -- 2011/09/26 16:31:55 [main:3] Cleaning downloaded files...
      -- 2011/09/26 16:31:55 >>> LOG END
    MEDIA_MONITOR_PROCESS_ID       = 1623
    MEDIA_MONITOR_RUNNING_SECONDS  = 37
    SHOW_RECORDER_PROCESS_ID       = 1607
    SHOW_RECORDER_RUNNING_SECONDS  = 37
    ICECAST_PROCESS_ID             = FAILED
    
      -- There appears to be problems with your setup. Please visit
      -- http://wiki.sourcefabric.org/x/HABQ for troubleshooting info.
    
    root@airtime:~# 
    


    showing that liquidsoap tries to connect to localhost... what can I do? I tried this command:

    ./liquidsoap 'output.icecast(%mp3, mount="test.ogg", host="stream.yamsproject.org", password="password", sine())'
    


    from /usr/lib/airtime/pypo/bin/liquidsoap_bin/ folder, and it works, I simply can't change default settings I think... any suggestion?
  • 14 Comments sorted by
  • Did you restart liquidsoap after changing config file?
  • I rebooted the machine. many times Smile
  • Can you please email me following files:
    1. /var/log/airtime/pypo-liquidsoap/ls_script.log
    2. /etc/airtime/liquidsoap.cfg

    to james.moon@sourcefabric.org?

    Thanks.
  • Vote Up0Vote Down Andrey PodshivalovAndrey Podshivalov
    Posts: 1,526Member, Administrator, Sourcefabric Team
    my be some problem with name resolving. Try to change icecast_host = "stream.yamsproject.org" to icecast_host = "ip_address"
  • Andrey Podshivalov wrote on Mon, 26 September 2011 15:39
    my be some problem with name resolving. Try to change icecast_host = "stream.yamsproject.org" to icecast_host = "ip_address"


    I tried, it is not.

    @james:

    this is the ls_script.log

    2011/09/26 15:54:30 >>> LOG START
    2011/09/26 15:54:30 [protocols.external:3] Didn't find "ufetch".
    2011/09/26 15:54:30 [protocols.external:3] Found "/usr/bin/wget".
    2011/09/26 15:54:30 [main:3] Liquidsoap 1.0.0-beta2
    2011/09/26 15:54:30 [main:3] Using: pcre=6.0.1 dtools=0.2.2 duppy=0.4.0 duppy.syntax=0.4.0 cry=0.2.0 mm=0.1.0 xmlplaylist=0.1.2 ogg=0.4.2 vorbis=0.6.0 mad=0.4.2 flac=0.1.0 flac.ogg=0.1.0 lame=0.3.0 alsa=0.2.1 samplerate=0.1.1 taglib=0.1.4 camomile=0.7.1 portaudio=@VERSION ladspa=0.1.2
    2011/09/26 15:54:30 [dynamic.loader:2] Could not load plugins in directory /usr/local/lib/liquidsoap/1.0.0-beta2/plugins.
    2011/09/26 15:54:30 [lang:3] Lastfm/audioscrobbler support was not compiled.
    2011/09/26 15:54:30 [frame:3] Using 44100Hz audio, 25Hz video, 44100Hz master.
    2011/09/26 15:54:30 [frame:3] Frame size must be a multiple of 1764 ticks = 1764 audio samples = 1 video samples.
    2011/09/26 15:54:30 [frame:3] Targetting 'frame.duration': 0.04s = 1764 audio samples = 1764 ticks.
    2011/09/26 15:54:30 [frame:3] Frames last 0.04s = 1764 audio samples = 1 video samples = 1764 ticks.
    2011/09/26 15:54:30 [threads:3] Created thread "generic queue #1".
    2011/09/26 15:54:30 [threads:3] Created thread "non-blocking queue #1".
    2011/09/26 15:54:30 [airtime(dot)ogg:3] Connecting mount airtime.ogg for source@127.0.0.1...
    2011/09/26 15:54:30 [airtime(dot)ogg:2] Connection failed: could not connect to host: Connection refused in connect()!
    2011/09/26 15:54:30 [airtime(dot)ogg:3] Connection failed, will try again in 5 sec.
    2011/09/26 15:54:30 [threads:3] Created thread "wallclock_main" (1 total).
    2011/09/26 15:54:30 [clock.wallclock_main:3] Streaming loop starts, synchronized with wallclock.
    2011/09/26 15:54:30 [fallback_4725:3] Switch to src_4723.
    2011/09/26 15:54:30 [src_4723:3] Inserting missing metadata.
    2011/09/26 15:54:36 [airtime(dot)ogg:3] Connecting mount airtime.ogg for source@127.0.0.1...
    2011/09/26 15:54:36 [airtime(dot)ogg:2] Connection failed: could not connect to host: Connection refused in connect()!
    2011/09/26 15:54:36 [airtime(dot)ogg:3] Connection failed, will try again in 5 sec.
    2011/09/26 15:54:42 [airtime(dot)ogg:3] Connecting mount airtime.ogg for source@127.0.0.1...
    2011/09/26 15:54:42 [airtime(dot)ogg:2] Connection failed: could not connect to host: Connection refused in connect()!
    2011/09/26 15:54:42 [airtime(dot)ogg:3] Connection failed, will try again in 5 sec.
    2011/09/26 15:54:48 [airtime(dot)ogg:3] Connecting mount airtime.ogg for source@127.0.0.1...
    2011/09/26 15:54:48 [airtime(dot)ogg:2] Connection failed: could not connect to host: Connection refused in connect()!
    
    [...]
    
    2011/09/26 16:21:24 [airtime(dot)ogg:3] Connection failed, will try again in 5 sec.
    2011/09/26 16:21:30 [airtime(dot)ogg:3] Connecting mount airtime.ogg for source@127.0.0.1...
    2011/09/26 16:21:30 [airtime(dot)ogg:2] Connection failed: could not connect to host: Connection refused in connect()!
    2011/09/26 16:21:30 [airtime(dot)ogg:3] Connection failed, will try again in 5 sec.
    2011/09/26 16:21:34 [main:3] Shutdown started!
    2011/09/26 16:21:34 [main:3] Waiting for threads to terminate...
    2011/09/26 16:21:34 [clock.wallclock_main:3] Streaming loop stopped.
    2011/09/26 16:21:34 [threads:3] Thread "wallclock_main" terminated (0 remaining).
    2011/09/26 16:21:34 [main:3] Cleaning downloaded files...
    2011/09/26 16:21:34 >>> LOG END
    2011/09/26 16:22:11 >>> LOG START
    2011/09/26 16:22:10 [protocols.external:3] Didn't find "ufetch".
    2011/09/26 16:22:10 [protocols.external:3] Found "/usr/bin/wget".
    2011/09/26 16:22:10 [main:3] Liquidsoap 1.0.0-beta2
    2011/09/26 16:22:10 [main:3] Using: pcre=6.0.1 dtools=0.2.2 duppy=0.4.0 duppy.syntax=0.4.0 cry=0.2.0 mm=0.1.0 xmlplaylist=0.1.2 ogg=0.4.2 vorbis=0.6.0 mad=0.4.2 flac=0.1.0 flac.ogg=0.1.0 lame=0.3.0 alsa=0.2.1 samplerate=0.1.1 taglib=0.1.4 camomile=0.7.1 portaudio
    =@VERSION ladspa=0.1.2
    2011/09/26 16:22:10 [dynamic.loader:2] Could not load plugins in directory /usr/local/lib/liquidsoap/1.0.0-beta2/plugins.
    2011/09/26 16:22:11 [lang:3] Lastfm/audioscrobbler support was not compiled.
    2011/09/26 16:22:11 [frame:3] Using 44100Hz audio, 25Hz video, 44100Hz master.
    2011/09/26 16:22:11 [frame:3] Frame size must be a multiple of 1764 ticks = 1764 audio samples = 1 video samples.
    2011/09/26 16:22:11 [frame:3] Targetting 'frame.duration': 0.04s = 1764 audio samples = 1764 ticks.
    2011/09/26 16:22:11 [frame:3] Frames last 0.04s = 1764 audio samples = 1 video samples = 1764 ticks.
    2011/09/26 16:22:11 [threads:3] Created thread "generic queue #1".
    2011/09/26 16:22:11 [threads:3] Created thread "non-blocking queue #1".
    2011/09/26 16:22:11 [airtime(dot)ogg:3] Connecting mount airtime.ogg for source@127.0.0.1...
    2011/09/26 16:22:11 [airtime(dot)ogg:2] Connection failed: could not connect to host: Connection refused in connect()!
    2011/09/26 16:22:11 [airtime(dot)ogg:3] Connection failed, will try again in 5 sec.
    2011/09/26 16:22:11 [threads:3] Created thread "wallclock_main" (1 total).
    2011/09/26 16:22:11 [clock.wallclock_main:3] Streaming loop starts, synchronized with wallclock.
    2011/09/26 16:22:11 [fallback_4725:3] Switch to src_4723.
    2011/09/26 16:22:11 [src_4723:3] Inserting missing metadata.
    2011/09/26 16:22:17 [airtime(dot)ogg:3] Connecting mount airtime.ogg for source@127.0.0.1...
    2011/09/26 16:22:17 [airtime(dot)ogg:2] Connection failed: could not connect to host: Connection refused in connect()!
    2011/09/26 16:22:17 [airtime(dot)ogg:3] Connection failed, will try again in 5 sec.
    2011/09/26 16:22:23 [airtime(dot)ogg:3] Connecting mount airtime.ogg for source@127.0.0.1...
    2011/09/26 16:22:23 [airtime(dot)ogg:2] Connection failed: could not connect to host: Connection refused in connect()!
    2011/09/26 16:22:23 [airtime(dot)ogg:3] Connection failed, will try again in 5 sec.
    2011/09/26 16:22:29 [airtime(dot)ogg:3] Connecting mount airtime.ogg for source@127.0.0.1...
    2011/09/26 16:22:29 [airtime(dot)ogg:2] Connection failed: could not connect to host: Connection refused in connect()!
    2011/09/26 16:22:29 [airtime(dot)ogg:3] Connection failed, will try again in 5 sec.
    2011/09/26 16:22:35 [airtime(dot)ogg:3] Connecting mount airtime.ogg for source@127.0.0.1...
    2011/09/26 16:22:35 [airtime(dot)ogg:2] Connection failed: could not connect to host: Connection refused in connect()!
    2011/09/26 16:22:35 [airtime(dot)ogg:3] Connection failed, will try again in 5 sec.
    2011/09/26 16:22:41 [airtime(dot)ogg:3] Connecting mount airtime.ogg for source@127.0.0.1...
    2011/09/26 16:22:41 [airtime(dot)ogg:2] Connection failed: could not connect to host: Connection refused in connect()!
    
    [...]
    
    2011/09/26 16:25:29 [airtime(dot)ogg:3] Connection failed, will try again in 5 sec.
    2011/09/26 16:25:35 [airtime(dot)ogg:3] Connecting mount airtime.ogg for source@127.0.0.1...
    2011/09/26 16:25:35 [airtime(dot)ogg:2] Connection failed: could not connect to host: Connection refused in connect()!
    2011/09/26 16:25:35 [airtime(dot)ogg:3] Connection failed, will try again in 5 sec.
    2011/09/26 16:25:36 [server:3] New client: localhost
    2011/09/26 16:25:36 [server:3] New client: localhost
    2011/09/26 16:25:41 [airtime(dot)ogg:3] Connecting mount airtime.ogg for source@127.0.0.1...
    2011/09/26 16:25:41 [airtime(dot)ogg:2] Connection failed: could not connect to host: Connection refused in connect()!
    2011/09/26 16:25:41 [airtime(dot)ogg:3] Connection failed, will try again in 5 sec.
    2011/09/26 16:25:47 [airtime(dot)ogg:3] Connecting mount airtime.ogg for source@127.0.0.1...
    2011/09/26 16:25:47 [airtime(dot)ogg:2] Connection failed: could not connect to host: Connection refused in connect()!
    
    [...]
    
    2011/09/26 16:31:47 [airtime(dot)ogg:3] Connection failed, will try again in 5 sec.
    2011/09/26 16:31:53 [airtime(dot)ogg:3] Connecting mount airtime.ogg for source@127.0.0.1...
    2011/09/26 16:31:53 [airtime(dot)ogg:2] Connection failed: could not connect to host: Connection refused in connect()!
    2011/09/26 16:31:53 [airtime(dot)ogg:3] Connection failed, will try again in 5 sec.
    2011/09/26 16:31:55 [main:3] Shutdown started!
    2011/09/26 16:31:55 [main:3] Waiting for threads to terminate...
    2011/09/26 16:31:55 [clock.wallclock_main:3] Streaming loop stopped.
    2011/09/26 16:31:55 [threads:3] Thread "wallclock_main" terminated (0 remaining).
    2011/09/26 16:31:55 [main:3] Cleaning downloaded files...
    2011/09/26 16:31:55 >>> LOG END
    
    


    for some reason it continues to use the default options...

    2011/09/26 16:22:10 [dynamic.loader:2] Could not load plugins in directory /usr/local/lib/liquidsoap/1.0.0-beta2/plugins.
    


    is this a problem?
  • bon, i'll try to reinstall this night from home, maybe i messed up something...
  • Are you sure you're editing the correct file?

    2011/09/26 16:21:30 [airtime(dot)ogg:3] Connecting mount airtime.ogg for source@127.0.0.1...


    This should be


    2011/09/26 16:21:30 [airtime(dot)ogg:3] Connecting mount airtime.ogg for source@stream.yamsproject.org...


    instead.

    Airtime Pro Hosting: http://airtime.pro
  • Martin Konecny wrote on Tue, 27 September 2011 03:52
    Are you sure you're editing the correct file?

    2011/09/26 16:21:30 [airtime(dot)ogg:3] Connecting mount airtime.ogg for source@127.0.0.1...


    This should be


    2011/09/26 16:21:30 [airtime(dot)ogg:3] Connecting mount airtime.ogg for source@stream.yamsproject.org...


    instead.



    yes, I know. this is why I'm writing here, I suppose...
  • Ok please tell me step-by-step what you are doing. There must be something obvious that is missing.
    Airtime Pro Hosting: http://airtime.pro
  • hey I noticed this in the config file that was posted

    shoutcast_host = "127.0.0.1"

    if you say connecting to icecast works manually as you tried in that instruction could it be that airtime is looking at incorrect config data somehow? Maybe it's using this shoutcast data?
  • Martin Konecny wrote on Tue, 27 September 2011 16:25
    Ok please tell me step-by-step what you are doing. There must be something obvious that is missing.


    I followed the instructions in the "manual install" page for 1.9.x [1] except for the apache vhost (I set a vhost for both localhost and a domain pointing to airtime www folder), sorry but i had no time in these days, I only tried updating to the version in github (thinking it was 2.0dev, but once installed it says it's 1.9.3) and then updating to 1.9.4 but I got the same issue. It is a test server, so I'll try with a fresh install, I can't see where I'm wrong...


    [1] http://wiki.sourcefabric.org/display/CC/Manual+Install+1.9.X
  • Vote Up0Vote Down Paul BaranowskiPaul Baranowski
    Posts: 389Member, Administrator, Sourcefabric Team
    Please use the tarball from :

    http://sourceforge.net/projects/airtime/files/

  • I realize that you have probably moved on and fixed this problem, but i think i have found a the source of my problem.

    When i had this problem i had installed icecast after, my installation of airtime. I think that the airtime installation must change the icecast2 file here

    sudo nano /etc/default/icecast2


    To look like this.

    # Defaults for icecast2 initscript
    # sourced by /etc/init.d/icecast2
    # installed at /etc/default/icecast2 by the maintainer scripts
    
    #
    # This is a POSIX shell fragment
    #
    
    # Full path to the server configuration file
    CONFIGFILE="/etc/icecast2/icecast.xml"
    
    # Name or ID of the user and group the daemon should run under
    USERID=icecast2
    GROUPID=icecast
    
    # Edit /etc/icecast2/icecast.xml and change at least the passwords.
    # Change this to true when done to enable the init.d script
    ENABLE=true
    


    I got my server back up and that file is the only one that i know of that changed.
  • hi, two days ago i moved to ubuntu server 11.04 and tried to use the "expert install" (i.e. install from apt, what do you mean with expert? Smile ), set up the external icecast server and it worked (i had no way to mess up anything... Smile ). now i have some other issues but these go into other topics Smile

    p.s. no, the problem was not to start the local icecast server, i intetionally disabled it, cause we use a vps for streaming_to_the_masses.