Hi there once again,

This time I've got a really weird problem with Liquidsoap.
The script I'm using is:

set("init.daemon.pidfile.path","/etc/liquidsoap/pidfile/pid.pid")
def replaygain_protocol(arg,delay)
    x=get_process_lines("/etc/liquidsoap/replaygain.pl #{quote(arg)}")
    if list.hd(x) != "" then
        ["annotate:replay_gain=\"#{list.hd(x)}\":#{arg}"]
    else
        [arg]
    end
end
add_protocol("replay_gain", replaygain_protocol)

muz = fallback([
    playlist(
        default_duration=30., length=10.,
        conservative=true, timeout=20.,
        mime_type="audio/x-mpegurl",
        "/etc/liquidsoap/muziek/afspeel.txt"
    ),
    blank()
])
muz = amplify(1.,override="replay_gain", muz)

output.icecast.vorbis(
    host="localhost", port=80,
    password="hackme", mount="muziek.ogg",
    stereo=false, quality=0.,
    description="Testing the best thing",
    name="Just_some_testingchannel",
    muz
)

This script does somehow not work.
The corresponding part of the logfile is:

2009/09/26 15:37:48 >>> LOG START
2009/09/26 15:37:48 [protocols.external:3] Didn't find "ufetch"
2009/09/26 15:37:48 [protocols.external:3] Found "/usr/bin/wget"
2009/09/26 15:37:48 [main:3] Liquidsoap 0.9.1
2009/09/26 15:37:48 [lang:3] flac binary not found: flac decoder disabled.
2009/09/26 15:37:48 [lang:3] metaflac binary not found: flac metadata resolver 
disabled.
2009/09/26 15:37:48 [lang:3] faad binary not found: faad decoder disabled.
2009/09/26 15:37:49 [threads:3] Created thread "non-blocking queue #1".
2009/09/26 15:37:49 [threads:3] Created thread "generic queue #1".
2009/09/26 15:37:49 [root:3] Waking up active nodes...
2009/09/26 15:37:49 [afspeel(dot)txt:3] Loading playlist...
2009/09/26 15:37:49 [threads:3] Created thread "root" (1 total).
2009/09/26 15:37:49 [afspeel(dot)txt:3] Playlist treated as format 
audio/x-mpegurl
2009/09/26 15:37:49 [afspeel(dot)txt:3] Successfully loaded a playlist of 10 
tracks.
2009/09/26 15:37:49 [muziek(dot)ogg:3] Connecting mount muziek.ogg for 
sou...@localhost...
2009/09/26 15:37:49 [muziek(dot)ogg:3] Connection setup was successful.
2009/09/26 15:37:49 [root:3] Broadcast starts up!
2009/09/26 15:37:48 [src_4658:3] Switch to src_4657.
2009/09/26 15:37:49 [stderr:3] Tags present; no files processed
2009/09/26 15:37:49 [decoder:3] Decoder OGG chosed for 
"/etc/liquidsoap/muziek/4.ogg"

The stream is sent, however it contains nothing but silence.
However during some experimenting, I decided to change the "blank()" fallback 
thing into "noise()".
I rebooted my server and started listening the stream again. After about two 
seconds of noise, music started!
Just to make sure it was the blank() to noise() that made the stream working 
again, I changed it back, rebooted and... it didn't work anymore.
Then again I used noise() again and Liquidsoap was back in action.

For the working stream, this was written in the logfile:

2009/09/26 15:34:21 >>> LOG START
2009/09/26 15:34:20 [protocols.external:3] Didn't find "ufetch"
2009/09/26 15:34:20 [protocols.external:3] Found "/usr/bin/wget"
2009/09/26 15:34:21 [main:3] Liquidsoap 0.9.1
2009/09/26 15:34:21 [lang:3] flac binary not found: flac decoder disabled.
2009/09/26 15:34:21 [lang:3] metaflac binary not found: flac metadata resolver 
disabled.
2009/09/26 15:34:21 [lang:3] faad binary not found: faad decoder disabled.
2009/09/26 15:34:21 [threads:3] Created thread "non-blocking queue #1".
2009/09/26 15:34:21 [threads:3] Created thread "generic queue #1".
2009/09/26 15:34:21 [root:3] Waking up active nodes...
2009/09/26 15:34:21 [afspeel(dot)txt:3] Loading playlist...
2009/09/26 15:34:21 [threads:3] Created thread "root" (1 total).
2009/09/26 15:34:21 [afspeel(dot)txt:3] Playlist treated as format 
audio/x-mpegurl
2009/09/26 15:34:21 [afspeel(dot)txt:3] Successfully loaded a playlist of 10 
tracks.
2009/09/26 15:34:21 [muziek(dot)ogg:3] Connecting mount muziek.ogg for 
sou...@localhost...
2009/09/26 15:34:21 [muziek(dot)ogg:3] Connection setup was successful.
2009/09/26 15:34:21 [root:3] Broadcast starts up!
2009/09/26 15:34:21 [src_4658:3] Switch to src_4657.
2009/09/26 15:34:22 [stderr:3] Tags present; no files processed
2009/09/26 15:34:23 [decoder:3] Decoder OGG chosed for 
"/etc/liquidsoap/muziek/5.ogg"
2009/09/26 15:34:24 [afspeel(dot)txt:3] Prepared "/etc/liquidsoap/muziek/5.ogg" 
-- RID 1
2009/09/26 15:34:24 [src_4658:3] Switch to afspeel(dot)txt with forgetful 
transition.
2009/09/26 15:34:27 [src_4660:3] Overriding amplification: 0.328095.
2009/09/26 15:34:27 [root:2] We must catchup 4.04 seconds!
2009/09/26 15:34:28 [stderr:3] Tags present; no files processed
2009/09/26 15:34:28 [root:2] We must catchup 3.74 seconds!
2009/09/26 15:34:28 [decoder:3] Decoder OGG chosed for 
"/etc/liquidsoap/muziek/8.ogg"
2009/09/26 15:34:29 [root:2] We must catchup 2.99 seconds!

To me this seems like a really strange bug. Is there a way how I can solve it? 
Or if it's really a bug, can you guys solve it for the next bugfix release or 
has it already been fixed?
Once again, thanks in advance for answering my questions.

Cheers,

Mathijs
2009/09/26 15:34:30 [root:2] We must catchup 1.28 seconds!


                                          
_________________________________________________________________
Krijg updates van je vrienden en blijf op de hoogte
http://home.live.com
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to