hi Romain

I'm using version 1.3.7

Pascal
________________________________
De : Romain Beauxis <romain.beau...@gmail.com>
Envoyé : mercredi 16 février 2022 18:33
À : savonet-users <savonet-users@lists.sourceforge.net>
Objet : Re: [Savonet-users] scheduling different webstream radio

Hi!

What version of liquidsoap are you using?

Romain

Le mer. 16 févr. 2022 à 02:54, Pascal Delbruyere 
<pdelbruy...@outlook.com<mailto:pdelbruy...@outlook.com>> a écrit :

hi all


I try « simply » to re-broadcast different web radio depending on time and day.

Following is the code I’m using.


It works but :

  1.  I get error message « buffer overrun » (trying to increase max buffer but 
no luck).. what to do ?
  2.  I think the script is always listening to all the webstream in the same 
time, it is not very good for internet/data bandpass.
Is there another way to proceed ? it would be nice to only listen of the 
webstream involved


set("server.telnet", true)

set("server.telnet.port", 1234)

set("server.timeout",-1.0)


set("log.level",4)

set("log.file",false)

set("log.stdout",true)


ParadiseFM = input.http(buffer=30.,max=500.,"http://fmradio.hopto.org:7000";)

ParadiseFM = rewrite_metadata([("artist","Radio 3 1 
9"),("title","ParadiseFM")],ParadiseFM)


MiAmigo = input.http(buffer=30.,max=500.,"http://stan319.radioca.st/stream";)

MiAmigo = rewrite_metadata([("artist","Radio 3 1 
9"),("title","$(filename)")],MiAmigo)


R192 = input.http(buffer=30.,max=500.,"http://194.88.105.64:8192/stream";)

R192 = rewrite_metadata([("artist","Radio 3 1 9"),("title","$(filename)")],R192)


security = nrj(single("/Volumes/Data3/Music-FM/Security/Paradise - 20191119 
0900 .mp3"))


radio = crossfade(start_next=2., fade_out=2., fade_in=2.,

        fallback(track_sensitive = false, [ switch (track_sensitive=false,

                [

                        ({ 0h00-10h00 }, ParadiseFM),

                        ({ 10h00-13h00 }, MiAmigo),

                        ({ 13h00-24h00 }, ParadiseFM),


                        ({ (3w) and  0h00-12h00 }, ParadiseFM),

                        ({ (3w) and 12h00-13h00 }, R192),                       
#Teenager Muziek Express

                        ({ (3w) and 13h00-17h00 }, MiAmigo),

                        ({ (3w) and 17h00-24h00 }, ParadiseFM),


                        ({ (4w) and  0h00-12h00 }, ParadiseFM),

                        ({ (4w) and 12h00-15h00 }, MiAmigo),

                        ({ (4w) and 15h00-21h00 }, ParadiseFM),

                        ({ (4w) and 21h00-22h00 }, R192),                       
#Vinyl Show

                        ({ (4w) and 22h00-24h00 }, ParadiseFM),


                        ({ (6w) and  0h00-12h00 }, ParadiseFM),

                        ({ (6w) and 12h00-15h00 }, MiAmigo),

                        ({ (6w) and 15h00-18h00 }, ParadiseFM),

                        ({ (6w) and 18h00-19h00 }, R192),                       
#Vinyl Show

                        ({ (6w) and 20h00-24h00 }, ParadiseFM),



                        ({ (7w) and  0h00-12h00 }, ParadiseFM),

                        ({ (7w) and 12h00-13h00 }, R192),                       
#Teenager Muziek Express

                        ({ (7w) and 13h00-17h00 }, MiAmigo),

                        ({ (7w) and 17h00-24h00 }, ParadiseFM),



                ]), security]),

                )


# Information de diffusion ==== MAIN   =======

output.icecast(%mp3(bitrate=128),

host = "127.0.0.1", port = 8000,

name = "Radio 3 1 9", description = "Offshore radio, Souvenirs", genre = "Pop", 
url = "Adresse de la radio",

password = « xxxxxx »,

mount = "Radio319", radio)


thanks

Pascal

_______________________________________________
Savonet-users mailing list
Savonet-users@lists.sourceforge.net<mailto:Savonet-users@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/savonet-users
_______________________________________________
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to