########################################### # 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"
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:~#
./liquidsoap 'output.icecast(%mp3, mount="test.ogg", host="stream.yamsproject.org", password="password", sine())'
my be some problem with name resolving. Try to change icecast_host = "stream.yamsproject.org" to icecast_host = "ip_address"
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
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: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:3] Connecting mount airtime.ogg for source@stream.yamsproject.org...
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.
Ok please tell me step-by-step what you are doing. There must be something obvious that is missing.
sudo nano /etc/default/icecast2
# 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
It looks like you're new here. If you want to get involved, click one of these buttons!