Re: [Savonet-users] switch or fallback problem with 0.3.6svn+ ?

2008-06-17 Thread Benoït Leudet

Here is a log.

I have the same error if I remove fallback.skip() and if I use

radio = fallback( track_sensitive=false,
   [mplive, scheduler, ccmp3 ])



If it can help, there is only 3h of music and the playlist is reloaded 
every 24h. Once again, it works very well with 0.3.6 stable since 15 
days on another server. So, I've tried with 0.3.7 rev5671 and it stops with

this "queue" error too.

Only apache and teamspeak are running on the server.

Thanks.





2008/06/14 19:25:30 >>> LOG START
2008/06/14 19:25:30 [protocols.external:3] Didn't find "ufetch"
2008/06/14 19:25:30 [protocols.external:3] Found "/usr/bin/wget"
2008/06/14 19:25:30 [main:3] Liquidsoap 0.3.7+svn
2008/06/14 19:25:30 [harbor:3] Adding mountpoint '/live.mp3' to list...
2008/06/14 19:25:30 [harbor:3] Adding mountpoint '/live2.mp3' to list...
2008/06/14 19:25:30 [harbor:3] Adding mountpoint '/live3.mp3' to list...
2008/06/14 19:25:30 [harbor:3] Adding mountpoint '/live4.mp3' to list...
2008/06/14 19:25:30 [harbor:3] Adding mountpoint '/live5.mp3' to list...
2008/06/14 19:25:30 [decoder:4] Trying WAV decoder for 
"/home/nvradio/mp3/emis/horlogep/1337.mp3"
2008/06/14 19:25:30 [decoder:4] Trying VORBIS decoder for 
"/home/nvradio/mp3/emis/horlogep/1337.mp3"
2008/06/14 19:25:30 [decoder:4] Trying MP3 decoder for 
"/home/nvradio/mp3/emis/horlogep/1337.mp3"
2008/06/14 19:25:30 [format.mp3:4] open 
"/home/nvradio/mp3/emis/horlogep/1337.mp3"
2008/06/14 19:25:30 [format.mp3:4] close 
"/home/nvradio/mp3/emis/horlogep/1337.mp3"
2008/06/14 19:25:30 [single:3] "/home/nvradio/mp3/emis/horlogep/1337.mp3" is 
static, resolving once for all...
2008/06/14 19:25:30 [decoder:4] Trying WAV decoder for 
"/home/nvradio/links/emis1ONAIR.mp3"
2008/06/14 19:25:30 [decoder:4] Trying VORBIS decoder for 
"/home/nvradio/links/emis1ONAIR.mp3"
2008/06/14 19:25:30 [decoder:4] Trying MP3 decoder for 
"/home/nvradio/links/emis1ONAIR.mp3"
2008/06/14 19:25:30 [format.mp3:4] open "/home/nvradio/links/emis1ONAIR.mp3"
2008/06/14 19:25:30 [format.mp3:4] close "/home/nvradio/links/emis1ONAIR.mp3"
2008/06/14 19:25:30 [single:3] "/home/nvradio/links/emis1ONAIR.mp3" is static, 
resolving once for all...
2008/06/14 19:25:30 [decoder:4] Trying WAV decoder for 
"/home/nvradio/links/emis2ONAIR.mp3"
2008/06/14 19:25:30 [decoder:4] Trying VORBIS decoder for 
"/home/nvradio/links/emis2ONAIR.mp3"
2008/06/14 19:25:30 [decoder:4] Trying MP3 decoder for 
"/home/nvradio/links/emis2ONAIR.mp3"
2008/06/14 19:25:30 [format.mp3:4] open "/home/nvradio/links/emis2ONAIR.mp3"
2008/06/14 19:25:30 [format.mp3:4] close "/home/nvradio/links/emis2ONAIR.mp3"
2008/06/14 19:25:30 [single:3] "/home/nvradio/links/emis2ONAIR.mp3" is static, 
resolving once for all...
2008/06/14 19:25:30 [decoder:4] Trying WAV decoder for 
"/home/nvradio/links/emis3ONAIR.mp3"
2008/06/14 19:25:30 [decoder:4] Trying VORBIS decoder for 
"/home/nvradio/links/emis3ONAIR.mp3"
2008/06/14 19:25:30 [decoder:4] Trying MP3 decoder for 
"/home/nvradio/links/emis3ONAIR.mp3"
2008/06/14 19:25:30 [format.mp3:4] open "/home/nvradio/links/emis3ONAIR.mp3"
2008/06/14 19:25:30 [format.mp3:4] close "/home/nvradio/links/emis3ONAIR.mp3"
2008/06/14 19:25:30 [single:3] "/home/nvradio/links/emis3ONAIR.mp3" is static, 
resolving once for all...
2008/06/14 19:25:30 [decoder:4] Trying WAV decoder for 
"/home/nvradio/links/emis4ONAIR.mp3"
2008/06/14 19:25:30 [decoder:4] Trying VORBIS decoder for 
"/home/nvradio/links/emis4ONAIR.mp3"
2008/06/14 19:25:30 [decoder:4] Trying MP3 decoder for 
"/home/nvradio/links/emis4ONAIR.mp3"
2008/06/14 19:25:30 [format.mp3:4] open "/home/nvradio/links/emis4ONAIR.mp3"
2008/06/14 19:25:30 [format.mp3:4] close "/home/nvradio/links/emis4ONAIR.mp3"
2008/06/14 19:25:30 [single:3] "/home/nvradio/links/emis4ONAIR.mp3" is static, 
resolving once for all...
2008/06/14 19:25:30 [decoder:4] Trying WAV decoder for 
"/home/nvradio/links/emis5ONAIR.mp3"
2008/06/14 19:25:30 [decoder:4] Trying VORBIS decoder for 
"/home/nvradio/links/emis5ONAIR.mp3"
2008/06/14 19:25:30 [decoder:4] Trying MP3 decoder for 
"/home/nvradio/links/emis5ONAIR.mp3"
2008/06/14 19:25:30 [format.mp3:4] open "/home/nvradio/links/emis5ONAIR.mp3"
2008/06/14 19:25:30 [format.mp3:4] close "/home/nvradio/links/emis5ONAIR.mp3"
2008/06/14 19:25:30 [single:3] "/home/nvradio/links/emis5ONAIR.mp3" is static, 
resolving once for all...
2008/06/14 19:25:30 [threads:3] Created thread "non-blocking queue #1" (1 total)
2008/06/14 19:25:30 [threads:3] Created thread "generic queue #1" (2 total)
2008/06/14 19:25:30 [threads:3] Created thread "root" (3 total)
2008/06/14 19:25:30 [root:3] Waking up active nodes...
2008/06/14 19:25:30 [source:4] src_3571 gets up
2008/06/14 19:25:30 [source:4] src_3568 gets up
2008/06/14 19:25:30 [source:4] src_3565 gets up
2008/06/14 19:25:30 [source:4] src_3563 gets up
2008/06/14 19:25:30 [source:4] src_3561 gets up
2008/06/14 19:25:30 [source:4] src_3469 gets up
2008/06/14 19:25:30 [source:4] src_3477 gets up
2008/06/14 19:25:30 [sourc

Re: [Savonet-users] Error on output.icecast.mp3

2008-06-17 Thread Romain Beauxis
Le Tuesday 17 June 2008 18:11:31 Никита Бакланов, vous avez écrit :
> Hello.

Hi !

(...)
>  Files of playlists is local, I have placed them in directory
> /home/syfer/radio/music/ There is code of file new-radio.liq:
(...)
> Please help me, probably, there is already ready decision. Explain please
> in detail, how solve this problem? In case of my example. I have little
> experiences.

The issue that is mentioned in the mail you linked is related to the 
filesystem where the files are stored.

In the case of the previous similar issue, the files were stored in a distant 
server, and mounted locally using NFS or another network file system.

If this is your case, which you may check using the 'df' command, then the 
files should be copied to a real local place before being sent to liq. David 
was then proposing to do this automatically by setting up a new prococol.

But before explaining this, are you in the same situation ?


Romain


-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users


[Savonet-users] Error on output.icecast.mp3

2008-06-17 Thread Никита Бакланов
Hello. 

I am from Russia. Apologize for my english, he is far from perfect, but i try.

I have written small program for liquidsoap. She solves following tasks:
 - play two playlists depending on time of the day
 - inserts jingle through each two track
 - adds one special jingle at the beginning of each hour
 - switch to a live show as soon as one is available

 Files of playlists is local, I have placed them in directory 
/home/syfer/radio/music/
 There is code of file new-radio.liq:

%include "config.liq"
 
day = playlist.safe(mode = "normal", reload = 50, reload_mode = "seconds", 
"/home/syfer/radio/playlists/day.m3u")
night   = playlist.safe(mode = "normal", reload = 50, reload_mode = "seconds", 
"/home/syfer/radio/playlists/night.m3u")
jingles = playlist("/home/syfer/radio/playlists/jingles.m3u")
clock   = single("/home/syfer/radio/jingles/BEN SHERMAN.mp3")

radio = fallback([switch([({ 6h-22h }, day), ({ 22h-6h }, night)]), default])
radio = random(weights=[1,2],[ jingles, radio ])
radio = add([radio, switch([({0m0s},clock)])])

full = fallback(track_sensitive=false, 
[input.http("http://xx.xxx.xx.xxx:8000/live.m3u";), radio])

output.icecast.mp3(host = syshost, port = sysport, password = syspass, mount = 
"MyNewRadio", genre = "Just Music", description = "MyRadiostation", full)

On beginning all work well. After 25 - 30 minutes liquidsoap uses 100% of the 
CPU and I get much messages of the following contents:

2008/06/17 19:20:37 [decoder:3] Unable to decode "file_play1.mp3"!
2008/06/17 19:20:37 [decoder:3] Unable to decode "file_play3.mp3"!
2008/06/17 19:20:37 [decoder:3] Unable to decode "file_play7.mp3"!
2008/06/17 19:20:37 [decoder:3] Unable to decode "file_play4.mp3"!
2008/06/17 19:20:37 [decoder:3] Unable to decode "file_play3.mp3"!
2008/06/17 19:20:37 [decoder:3] Unable to decode "file_play1.mp3"!
2008/06/17 19:20:37 [decoder:3] Unable to decode "file_play5.mp3"!
2008/06/17 19:20:37 [decoder:3] Unable to decode "file_play4.mp3"!
2008/06/17 19:20:37 [decoder:3] Unable to decode "file_play7.mp3"!

After this liquidsoap is destroyed.

Such problem appeared here 
http://www.mail-archive.com/savonet-users@lists.sourceforge.net/msg00017.html. 
I suppose, decision of this problem here 
http://www.mail-archive.com/savonet-users@lists.sourceforge.net/msg00034.html
I don`t understand how works add_protocol()

Please help me, probably, there is already ready decision. Explain please in 
detail, how solve this problem? In case of my example. I have little 
experiences.

Other way?

Thanks in advance.

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users


Re: [Savonet-users] Liquidsoap: fallback from one source to another with transition: clearing source?

2008-06-17 Thread Romain Beauxis
Le Monday 16 June 2008 21:12:18 polemon, vous avez écrit :
> Hi!

Hi Polemon !

> I have the following setup:
>
> A playlist that streams constantly, and a live mount point, where
> Liquidsoap fades to, when a DJ has connected there.
> When the DJ goes off the stream, liquidsoap fades back to the playlist.
>
> That works very well and all, except one thing:
> When another DJ connects on that mount point, you hear the last few
> seconds of the previous DJs data! After about 4 or 5 seconds, you hear
> the DJ that just connected.
>
> Now is there a way to clear whatever is left after the DJ got off the
> mount point?

Yes, this is a common issue. I guess this is related to the fact that the 
buffer is not freed when the source becomes unavailable.

David may have a better knowledge on this, but I can propose a possible fix 
that we did for fallback.skip: define a transition that way:
def eat_remaining(a,b) = 
  add(normalize=false,[b,a])
end

That transition will add the remaining audio data from a at the begining of b.

And then use it in the fallback:
fallback((...),transitions=[eat_remaining,eat_remaining],[live,source])
You may even use this transition only when switching back from live (here it's 
for any transition..).

Please tell me if it works for you.

Of course, there is still the possibility that the remaining data is caused by 
shoucast, but I have no clue about this..

Romain

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users


[Savonet-users] Liquidsoap: fallback from one source to another with transition: clearing source?

2008-06-17 Thread polemon
Hi!

I have the following setup:

A playlist that streams constantly, and a live mount point, where 
Liquidsoap fades to, when a DJ has connected there.
When the DJ goes off the stream, liquidsoap fades back to the playlist.

That works very well and all, except one thing:
When another DJ connects on that mount point, you hear the last few 
seconds of the previous DJs data! After about 4 or 5 seconds, you hear 
the DJ that just connected.

Now is there a way to clear whatever is left after the DJ got off the 
mount point?

I'm using Liquidsoap 0.3.7 with SHOUTcast DNAS as the aforementioned 
mount point.

System is Debian 4.1

cheers,

--polemon
-- 
-EOF-

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users