This writes the metadata in the log file, if I get don't use smart_crossfade then I get all the metadata, otherwise just 20% of them.
Another consequence of not using smart_crossfade is some strange noice at the end/beginning of mp3 files. What could that be? The radio's URL is: http://studiosvetilnik.net/ and http://studiosvetilnik.net:8000 Here is my complete .liq file. THX for help! Matej ---------------------------------------- #!/usr/bin/liquidsoap set("log.file.path", "/var/log/liquidsoap.log") set("init.daemon.pidfile.path", "/var/run/liquidsoap/radio.pid") set("tag.encodings",["UTF-8","ISO-8859-1"]) def f(m) = list.iter(fun(x)-> log("#{x}"),m) end # A transition # which does a cross-fading from A to B # and adds a jingle def transition(j,a,b) add(normalize=false, [ fade.initial(b), sequence(merge=true, [blank(duration=1.),j,fallback([])]), fade.final(a) ]) end # my playlist autmatically generated with cron, # is here reloaded every hour hvalnice = playlist(mode="normal", "/mp3/hvalnice/hvalnice") vecernice = playlist(mode="normal", "/mp3/hvalnice/vecernice") rv1 = playlist (mode="normal", "/mp3/rozni_venec/rozni_venec1") rv2 = playlist (mode="normal", "/mp3/rozni_venec/rozni_venec2") rv3 = playlist (mode="normal", "/mp3/rozni_venec/rozni_venec3") rv4 = playlist (mode="normal", "/mp3/rozni_venec/rozni_venec4") bible = playlist (reload=3600, mode="normal", "/mp3/bible/playlist_rand") background = playlist (mode="randomize", reload=3600,"/mp3/background/playlist") mp3 = playlist(reload=3600,"/mp3/mp3/playlist") security = single("/mp3/security.mp3") # THIS CORRUPTS the METADATA #mp3 = smart_crossfade(normalize(mp3)) # THIS WORKS OK mp3 = normalize(mp3) mp3 = on_metadata(f,mp3) #mp3 = normalize(skip_blank(random([mp3]))) ro = strip_blank(input.http(autostart=true, "http://real.ognjisce.si:8000/ognjisce.mp3")) # dve vrsti jingla clock = single ("/mp3/jingles/clock.mp3"); # dodaj jingle za uro bible = add(normalize = true, weights = [4,1], [bible,background]) mp3 = add(normalize = false, weights = [1,3], [mp3,switch([({59m55s},clock)])]) #### METADATA ro=rewrite_metadata([("artist","Radio Svetilnik"), ("title","vklop v Radio Ognjisce"), ("comment","http://studiosvetilnik.net")],ro) radio=fallback ([ switch(track_sensitive = false, transitions=[ transition(clock), transition(clock), transition(clock), transition(clock), transition(clock), transition(clock), transition(clock), transition(clock), transition(clock), transition(clock), transition(clock), transition(clock), transition(clock), transition(clock), transition(clock), transition(clock) ], [ ({ 5h-6h }, ro), ({ 8h-8h22 }, hvalnice), ({ 10h-10h30 }, bible), ({ 15h-16h }, ro), ({ 16h50-17h }, ro), ({ 19h-19h20}, vecernice), ({ 20h-20h20 }, ro), ({ 1w21h-1w21h30}, rv1), ({ 2w21h-2w21h30}, rv2), ({ 3w21h-3w21h30}, rv4), ({ 4w21h-4w21h30}, rv3), ({ 5w21h-5w21h30}, rv2), ({ 6w21h-6w21h30}, rv1), ({ 7w21h-7w21h30}, rv4), ({ 23h-23h30 }, bible), ({ true }, mp3) ]), security]) pattern = '$(if $(title),"$(title)","$(filename) (FN)")' radio = rewrite_metadata([("title",pattern), ("comment","http://studiosvetilnik.net")],radio) # Stream it out output.icecast.mp3(description = "Radio Svetilnik", name = "Radio Svetilnik", url = "http://studiosvetilnik.net", host = "localhost", port = 8000, password = "source", mount = "play.mp3", radio) ---------------------------------------- Any idea? Matej > I can't reproduce this issue here with this test script, so perhaps there > might be something more > to look for... > > Script: > set("log.file",false) > set("log.stdout",true) > > def f(m) = > list.iter(fun(x)-> log("#{x}"),m) > end > > s = mksafe(smart_crossfade(playlist("/home/toots/son"))) > s = on_metadata(f,s) > > output.dummy(s) > > > Romain > > -- Mir in dobro! br. Matej http://matej.nastran.net ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Savonet-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/savonet-users
