Hi all, I am wondering something. I have been using liquidsoap for quite a
while and have got things working exactly how I'd like it to, with one small
issue. It is this issue I am hoping to get some help with here. I can't seem
to get smart_crossfade to crossfade at all. there is always some silence
between tracks. I'm guessing, I might be doing something wrong, so if
someone could point out my error I'd be grateful. :)
My script with passwords and such edited out follows:
#Including this manually, as for some reason it isn't doing so
automatically.
%include "/usr/local/lib/liquidsoap/scm/pervasives.liq"
#Various settings.
set("log.stdout", false)
set("log.file.path", "/var/log/liquidsoap/public.log")
set("init.daemon.pidfile.path", "/var/run/liquidsoap/public.pid")
set("server.telnet", true)
set("server.timeout",-30.)
set("server.telnet.bind_addr","<edited out>")
set("server.telnet.port",<edited out>)
set("harbor.bind_addr","<edited out>")
#The default that plays if all else fails.
default = normalize(single("/radio/streamers/music/oldies/Looking Glass -
Brandy (You're A Fine Girl).mp3"))
# day and night are the same for now, but I plan to change this later on.
day = playlist("/radio/streamers/music/oldies")
night = playlist("/radio/streamers/music/oldies")
jingles = playlist("/radio/streamers/music/jingles")
# Play user requests if there are any,
# otherwise one of our playlists,
# and the default file if anything goes wrong.
bsradio = fallback([ request.queue(id="request"),
switch([({ 6h-22h }, day),
({ 22h-6h }, night)]),
default])
# Add the ability to relay live shows
# This defines a source waiting on the port 4500 and mount point: /
live = input.harbor("/",port=4500,password="<edited out>",icy=false)
# Add a jingle to the normal source
# every half hour:
timed_promotions = delay(1800.,jingles)
station_id = fallback([timed_promotions,bsradio])
# This is the final stream.
# Uses the live source as soon as available,
# and don't wait for an end of track, since
# we don't want to cut the beginning of the live
# stream.
full = fallback(track_sensitive=false,
[live,station_id])
# Register our stream withliquidsoap flows.
full = register_flow(
radio="Blazing Star Radio",
website="http://www.blazingstarradio.com/",
description="Playing the Hottest Stars of Yesteryear!",
genre="oldies",
user="<edited out>",
password="<edited out>",
streams=[("mp3/128k","http://listen.blazingstarradio.com:4489/broadband.mp3"),("mp3/32k","http://listen.blazingstarradio.com:4489/dialup.mp3")],
full)
# Crossfade the whole works, I hope.
crossed = smart_crossfade(full)
norm = normalize(crossed)
# Output the full stream to the icecast broadband mount point in mp3 format.
output.icecast(%mp3(bitrate=128,samplerate=44100),
host="<edited out>",port=4489,password="<edited out>",
genre="oldies",name="Blazing Star Radio - Playing all the Hottest Stars of
Yesteryear!",description="Good times and great oldies
24/7/365.",public=true,mount="/broadband.mp3",url="http://www.blazingstarradio.com/",
norm)
# Output the full stream to the icecast dialup mount point in mp3 format.
output.icecast(%mp3(bitrate=32,samplerate=22050),
host="<edited out>",port=4489,password="<edited out>",
genre="oldies",name="Blazing Star Radio - Playing all the Hottest Stars of
Yesteryear!",description="Good times and great oldies
24/7/365.",public=true,mount="/dialup.mp3",url="http://www.blazingstarradio.com/",
norm)
# Output the full stream to the broadband shoutcast server in MP3 format.
output.shoutcast(%mp3(bitrate=128,samplerate=44100),
host="<edited out>",port=5001,password="<edited out>",
genre="oldies",name="Playing all the Hottest Stars of
Yesteryear!",public=true,url="http://www.blazingstarradio.com/",
norm)
# Output the full stream to the dialup shoutcast server in MP3 format.
output.shoutcast(%mp3(bitrate=32,samplerate=22050),
host="<edited out>",port=5003,password="<edited out>",
genre="oldies",name="Playing all the Hottest Stars of
Yesteryear!",public=true,url="http://www.blazingstarradio.com/",
norm)
thanks,
Ben
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users