#!/bin/bash config=имя файла конфига, с которым запущено мыльце pid=$(cat /var/run/liquidsoap/$config.pid) kill $pid echo 'Liquidsoap has been stopped'
set("log.file",false) set("log.stdout",true) set("log.level",4) song = mksafe(playlist(reload = 30, "/var/www/music/nonstop/2014/")) #папка где лежат основные треки jingle = mksafe(playlist(reload = 6000, "/war/www/music/jingls/")) #папка с джинглами radio = rotate(weights = [1, 12],[jingle, song])#определяет ротацию, 1 джингл после 12-и треков radio = mksafe(radio) radio = crossfade( fade_out = 4.0, fade_in = 3.0, start_next = 3.0, radio ) #плавный переход между треками #выход потока на айскаст output.icecast(%mp3, mount="/listen", host="localhost", port=8000, password="hackme", genre="Electronic", url="http://site.ru/", description="XXX", name="Radio", radio )
find . -type d -exec chmod 755 {} \;
find . -type f -exec chmod 644 {} \;
2014/07/19 03:42:48 >>> LOG START 2014/07/19 03:42:48 [protocols.external:3] Found "/usr/bin/wget". 2014/07/19 03:42:48 [main:3] Liquidsoap 1.1.1 2014/07/19 03:42:48 [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/07/19 03:42:48 [dynamic.loader:3] Could not find dynamic module for fdkaac encoder. 2014/07/19 03:42:48 [dynamic.loader:3] Error while loading dynamic aacplus encoder at /usr/lib/ocaml/aacplus 2014/07/19 03:42:48 [dynamic.loader:3] Could not find dynamic module for aacplus encoder. 2014/07/19 03:42:48 [dynamic.loader:2] Loaded plugin file /usr/lib/liquidsoap/1.1.1/plugins/flac.cmxs. 2014/07/19 03:42:48 [dynamic.loader:2] Loaded plugin file /usr/lib/liquidsoap/1.1.1/plugins/ogg.cmxs. 2014/07/19 03:42:48 [dynamic.loader:2] Loaded plugin file /usr/lib/liquidsoap/1.1.1/plugins/lame.cmxs. 2014/07/19 03:42:48 [dynamic.loader:2] Loaded plugin file /usr/lib/liquidsoap/1.1.1/plugins/voaacenc.cmxs. 2014/07/19 03:42:48 [dynamic.loader:2] Loaded plugin file /usr/lib/liquidsoap/1.1.1/plugins/mad.cmxs. 2014/07/19 03:42:48 [dynamic.loader:2] Loaded plugin file /usr/lib/liquidsoap/1.1.1/plugins/pulseaudio.cmxs. 2014/07/19 03:42:48 [dynamic.loader:2] Loaded plugin file /usr/lib/liquidsoap/1.1.1/plugins/faad.cmxs. 2014/07/19 03:42:48 [dynamic.loader:2] Loaded plugin file /usr/lib/liquidsoap/1.1.1/plugins/cry.cmxs. 2014/07/19 03:42:48 [dynamic.loader:2] Loaded plugin file /usr/lib/liquidsoap/1.1.1/plugins/vorbis.cmxs. 2014/07/19 03:42:48 [dynamic.loader:2] Loaded plugin file /usr/lib/liquidsoap/1.1.1/plugins/taglib.cmxs. 2014/07/19 03:42:48 [dynamic.loader:2] Loaded plugin file /usr/lib/liquidsoap/1.1.1/plugins/flac_ogg.cmxs. 2014/07/19 03:42:48 [frame:3] Using 44100Hz audio, 25Hz video, 44100Hz master. 2014/07/19 03:42:48 [frame:3] Frame size must be a multiple of 1764 ticks = 1764 audio samples = 1 video samples. 2014/07/19 03:42:48 [frame:3] Targetting 'frame.duration': 0.04s = 1764 audio samples = 1764 ticks. 2014/07/19 03:42:48 [frame:3] Frames last 0.04s = 1764 audio samples = 1 video samples = 1764 ticks. 2014/07/19 03:42:48 [video.converter:4] Couldn't find preferred video converter: gavl. 2014/07/19 03:42:48 [audio.converter:4] Couldn't find preferred samplerate converter: libsamplerate. 2014/07/19 03:42:48 [audio.converter:4] Using native samplerate converter 2014/07/19 03:42:48 [threads:3] Created thread "generic queue #1". 2014/07/19 03:42:48 [threads:3] Created thread "generic queue #2". 2014/07/19 03:42:48 [threads:3] Created thread "non-blocking queue #1". 2014/07/19 03:42:48 [threads:3] Created thread "non-blocking queue #2". 2014/07/19 03:42:48 [clock:4] Currently 1 clocks allocated. 2014/07/19 03:42:48 [clock.wallclock_main:4] Starting 1 sources... 2014/07/19 03:42:48 [source:4] Source output.icecast_4766 gets up. 2014/07/19 03:42:48 [source:4] Source quota_4764 gets up. 2014/07/19 03:42:48 [source:4] Source mksafe gets up. 2014/07/19 03:42:48 [source:4] Source playlist_4760 gets up. 2014/07/19 03:42:48 [jingls:3] Loading playlist... 2014/07/19 03:42:48 [request:3] Nonexistent file or ill-formed URI "/war/www/music/jingls/"! 2014/07/19 03:42:48 [jingls:2] Failed when resolving playlist URI "/war/www/music/jingls/"! 2014/07/19 03:42:48 [jingls:3] Got an empty list: keeping the old one. 2014/07/19 03:42:48 [jingls:4] Content kind is {audio=2;video=0;midi=0}. 2014/07/19 03:42:48 [jingls:4] Activations changed: static=[], dynamic=[mksafe:quota_4764:/live:/live]. 2014/07/19 03:42:48 [source:4] Source safe_blank gets up. 2014/07/19 03:42:48 [safe_blank:4] Content kind is {audio=2;video=0;midi=0}. 2014/07/19 03:42:48 [safe_blank:4] Activations changed: static=[], dynamic=[mksafe:quota_4764:/live:/live]. 2014/07/19 03:42:48 [mksafe:4] Activations changed: static=[], dynamic=[quota_4764:/live:/live]. 2014/07/19 03:42:48 [source:4] Source mksafe gets up. 2014/07/19 03:42:48 [source:4] Source playlist_4756 gets up. 2014/07/19 03:42:48 [2013:3] Loading playlist... 2014/07/19 03:42:48 [2013:3] Playlist is a directory. 2014/07/19 03:42:48 [2013:3] Successfully loaded a playlist of 298 tracks. 2014/07/19 03:42:48 [2013:4] Content kind is {audio=2;video=0;midi=0}. 2014/07/19 03:42:48 [2013:4] Activations changed: static=[], dynamic=[mksafe:quota_4764:/live:/live]. 2014/07/19 03:42:48 [source:4] Source safe_blank gets up. 2014/07/19 03:42:48 [safe_blank:4] Content kind is {audio=2;video=0;midi=0}. 2014/07/19 03:42:48 [safe_blank:4] Activations changed: static=[], dynamic=[mksafe:quota_4764:/live:/live]. 2014/07/19 03:42:48 [mksafe:4] Activations changed: static=[], dynamic=[quota_4764:/live:/live]. 2014/07/19 03:42:48 [quota_4764:4] Activations changed: static=[/live:/live], dynamic=[]. 2014/07/19 03:42:48 [/live:4] Activations changed: static=[/live], dynamic=[]. 2014/07/19 03:42:48 [/live:4] Enabling caching mode: active source. 2014/07/19 03:42:48 [/live:3] Connecting mount /live for source@localhost... 2014/07/19 03:42:48 [decoder:4] Trying method "META" for "/var/www/music/nonstop/2013//Marco V And Doctors In Florence - Lotus (Limitless) (Single Mix).mp3"... 2014/07/19 03:42:48 [decoder:4] Trying method "WAV" for "/var/www/music/nonstop/2013//Marco V And Doctors In Florence - Lotus (Limitless) (Single Mix).mp3"... 2014/07/19 03:42:48 [decoder.wav:4] Invalid MIME type for "/var/www/music/nonstop/2013//Marco V And Doctors In Florence - Lotus (Limitless) (Single Mix).mp3": application/octet-stream! 2014/07/19 03:42:48 [decoder.wav:4] Invalid file extension for "/var/www/music/nonstop/2013//Marco V And Doctors In Florence - Lotus (Limitless) (Single Mix).mp3"! 2014/07/19 03:42:48 [decoder:4] Trying method "MIDI" for "/var/www/music/nonstop/2013//Marco V And Doctors In Florence - Lotus (Limitless) (Single Mix).mp3"... 2014/07/19 03:42:48 [decoder:4] Trying method "IMAGE" for "/var/www/music/nonstop/2013//Marco V And Doctors In Florence - Lotus (Limitless) (Single Mix).mp3"... 2014/07/19 03:42:48 [decoder:4] Trying method "FLAC" for "/var/www/music/nonstop/2013//Marco V And Doctors In Florence - Lotus (Limitless) (Single Mix).mp3"... 2014/07/19 03:42:48 [decoder.flac:4] Invalid MIME type for "/var/www/music/nonstop/2013//Marco V And Doctors In Florence - Lotus (Limitless) (Single Mix).mp3": application/octet-stream! 2014/07/19 03:42:48 [decoder.flac:4] Invalid file extension for "/var/www/music/nonstop/2013//Marco V And Doctors In Florence - Lotus (Limitless) (Single Mix).mp3"! 2014/07/19 03:42:48 [decoder:4] Trying method "OGG" for "/var/www/music/nonstop/2013//Marco V And Doctors In Florence - Lotus (Limitless) (Single Mix).mp3"... 2014/07/19 03:42:48 [decoder.ogg:4] Invalid MIME type for "/var/www/music/nonstop/2013//Marco V And Doctors In Florence - Lotus (Limitless) (Single Mix).mp3": application/octet-stream! 2014/07/19 03:42:48 [decoder.ogg:4] Invalid file extension for "/var/www/music/nonstop/2013//Marco V And Doctors In Florence - Lotus (Limitless) (Single Mix).mp3"! 2014/07/19 03:42:48 [decoder:4] Trying method "MAD" for "/var/www/music/nonstop/2013//Marco V And Doctors In Florence - Lotus (Limitless) (Single Mix).mp3"... 2014/07/19 03:42:48 [decoder.mad:4] Libmad recognizes "/var/www/music/nonstop/2013//Marco V And Doctors In Florence - Lotus (Limitless) (Single Mix).mp3" as mpeg audio (layer III, 128kbps, 44100Hz, 2 channels). 2014/07/19 03:42:48 [decoder:3] Method "MAD" accepted "/var/www/music/nonstop/2013//Marco V And Doctors In Florence - Lotus (Limitless) (Single Mix).mp3". 2014/07/19 03:42:48 [metadata.flac:4] Invalid MIME type for "/var/www/music/nonstop/2013//Marco V And Doctors In Florence - Lotus (Limitless) (Single Mix).mp3": application/octet-stream! 2014/07/19 03:42:48 [metadata.flac:4] Invalid file extension for "/var/www/music/nonstop/2013//Marco V And Doctors In Florence - Lotus (Limitless) (Single Mix).mp3"! 2014/07/19 03:42:48 [decoder.ogg:4] Invalid MIME type for "/var/www/music/nonstop/2013//Marco V And Doctors In Florence - Lotus (Limitless) (Single Mix).mp3": application/octet-stream! 2014/07/19 03:42:48 [decoder.ogg:4] Invalid file extension for "/var/www/music/nonstop/2013//Marco V And Doctors In Florence - Lotus (Limitless) (Single Mix).mp3"! 2014/07/19 03:42:48 [metadata.mp4:4] Invalid MIME type for "/var/www/music/nonstop/2013//Marco V And Doctors In Florence - Lotus (Limitless) (Single Mix).mp3": application/octet-stream! 2014/07/19 03:42:48 [metadata.mp4:4] Invalid file extension for "/var/www/music/nonstop/2013//Marco V And Doctors In Florence - Lotus (Limitless) (Single Mix).mp3"! 2014/07/19 03:42:48 [/live:3] Connection setup was successful. 2014/07/19 03:42:48 [threads:3] Created thread "wallclock_main" (1 total). 2014/07/19 03:42:48 [clock:4] Main phase starts. 2014/07/19 03:42:48 [clock.wallclock_main:3] Streaming loop starts, synchronized with wallclock. 2014/07/19 03:42:48 [2013:4] Remaining: 0.0s, queued: 0.0s, adding: 30.0s (RID 2) 2014/07/19 03:42:49 [quota_4764:3] Switch to mksafe. 2014/07/19 03:42:49 [mksafe:4] Activations changed: static=[quota_4764:/live:/live], dynamic=[quota_4764:/live:/live]. 2014/07/19 03:42:49 [mksafe:3] Switch to safe_blank. 2014/07/19 03:42:49 [safe_blank:4] Activations changed: static=[mksafe:quota_4764:/live:/live], dynamic=[mksafe:quota_4764:/live:/live].
playlist = switch([({1w}, playlist_monday), ({2w}, playlist_tuesday), ({3w}, playlist_wednesday), ({4w}, playlist_thursday), ({5w}, playlist_friday), ({6w or 7w}, playlist_weekend)])
2014/07/19 03:42:48 [request:3] Nonexistent file or ill-formed URI "/war/www/music/jingls/"! 2014/07/19 03:42:48 [jingls:2] Failed when resolving playlist URI "/war/www/music/jingls/"! 2014/07/19 03:42:48 [decoder:4] Trying method "META" for "/var/www/music/nonstop/2013//Marco V And Doctors In Florence - Lotus (Limitless) (Single Mix).mp3"... 2014/07/19 03:42:48 [decoder:4] Trying method "WAV" for "/var/www/music/nonstop/2013//Marco V And Doctors In Florence - Lotus (Limitless) (Single Mix).mp3"... 2014/07/19 03:42:48 [decoder.wav:4] Invalid MIME type for "/var/www/music/nonstop/2013//Marco V And Doctors In Florence - Lotus (Limitless) (Single Mix).mp3": application/octet-stream! 2014/07/19 03:42:48 [decoder.wav:4] Invalid file extension for "/var/www/music/nonstop/2013//Marco V And Doctors In Florence - Lotus (Limitless) (Single Mix).mp3"! 2014/07/19 03:42:48 [decoder:4] Trying method "MIDI" for "/var/www/music/nonstop/2013//Marco V And Doctors In Florence - Lotus (Limitless) (Single Mix).mp3"... 2014/07/19 03:42:48 [decoder:4] Trying method "IMAGE" for "/var/www/music/nonstop/2013//Marco V And Doctors In Florence - Lotus (Limitless) (Single Mix).mp3"... 2014/07/19 03:42:48 [decoder:4] Trying method "FLAC" for "/var/www/music/nonstop/2013//Marco V And Doctors In Florence - Lotus (Limitless) (Single Mix).mp3"... 2014/07/19 03:42:48 [decoder.flac:4] Invalid MIME type for "/var/www/music/nonstop/2013//Marco V And Doctors In Florence - Lotus (Limitless) (Single Mix).mp3": application/octet-stream! 2014/07/19 03:42:48 [decoder.flac:4] Invalid file extension for "/var/www/music/nonstop/2013//Marco V And Doctors In Florence - Lotus (Limitless) (Single Mix).mp3"! 2014/07/19 03:42:48 [decoder:4] Trying method "OGG" for "/var/www/music/nonstop/2013//Marco V And Doctors In Florence - Lotus (Limitless) (Single Mix).mp3"... 2014/07/19 03:42:48 [decoder.ogg:4] Invalid MIME type for "/var/www/music/nonstop/2013//Marco V And Doctors In Florence - Lotus (Limitless) (Single Mix).mp3": application/octet-stream! 2014/07/19 03:42:48 [decoder.ogg:4] Invalid file extension for "/var/www/music/nonstop/2013//Marco V And Doctors In Florence - Lotus (Limitless) (Single Mix).mp3"! 2014/07/19 03:42:48 [decoder:4] Trying method "MAD" for "/var/www/music/nonstop/2013//Marco V And Doctors In Florence - Lotus (Limitless) (Single Mix).mp3"... 2014/07/19 03:42:48 [decoder.mad:4] Libmad recognizes "/var/www/music/nonstop/2013//Marco V And Doctors In Florence - Lotus (Limitless) (Single Mix).mp3" as mpeg audio (layer III, 128kbps, 44100Hz, 2 channels). 2014/07/19 03:42:48 [decoder:3] Method "MAD" accepted "/var/www/music/nonstop/2013//Marco V And Doctors In Florence - Lotus (Limitless) (Single Mix).mp3". 2014/07/19 03:42:48 [metadata.flac:4] Invalid MIME type for "/var/www/music/nonstop/2013//Marco V And Doctors In Florence - Lotus (Limitless) (Single Mix).mp3": application/octet-stream! 2014/07/19 03:42:48 [metadata.flac:4] Invalid file extension for "/var/www/music/nonstop/2013//Marco V And Doctors In Florence - Lotus (Limitless) (Single Mix).mp3"! 2014/07/19 03:42:48 [decoder.ogg:4] Invalid MIME type for "/var/www/music/nonstop/2013//Marco V And Doctors In Florence - Lotus (Limitless) (Single Mix).mp3": application/octet-stream! 2014/07/19 03:42:48 [decoder.ogg:4] Invalid file extension for "/var/www/music/nonstop/2013//Marco V And Doctors In Florence - Lotus (Limitless) (Single Mix).mp3"! 2014/07/19 03:42:48 [metadata.mp4:4] Invalid MIME type for "/var/www/music/nonstop/2013//Marco V And Doctors In Florence - Lotus (Limitless) (Single Mix).mp3": application/octet-stream! 2014/07/19 03:42:48 [metadata.mp4:4] Invalid file extension for "/var/www/music/nonstop/2013//Marco V And Doctors In Florence - Lotus (Limitless) (Single Mix).mp3"!