hello,
I'm using liquidsoap to stream a playlist to an icast2 server. It works
fine except for the aac tags that don't display at all. I wanted to use
the filename when the tags can't be read but even that doesn't work. I'm
using a customized script originally written by David Quinn Ebert in a
compiled version liquidsoap with all options on a debian wheezy, but
even the distrib version has the same problems.
I'd like to know if it's possible to get the aac tags from liquidsoap,
and also how to output the filename instead of "Inconnu" when no tag is
found ?
Here is my radio.liq
set("log.stdout", false)
set("log.file",true)
set("log.file.append",true)
set("log.file.perms", 384)
set("server.telnet",true)
set("server.telnet.bind_addr","127.0.0.1")
set("server.telnet.port",1201)
set("server.telnet.reverse_dns",false)
set("tag.encodings",["UTF-8","ISO-8859-1"])
myplaylist = playlist(id="playlist",mode="random","[path_to_playlist]")
requests = request.queue(id="requests")
radio = myplaylist
radio = fallback(id="switcher",track_sensitive = true, [requests, radio,
blank(duration=5.)])
radio = skip_blank(radio)
radio = crossfade(start_next=10.,fade_out=10.,fade_in=10.,radio)
def map( m )
dollar = string.extract(pattern="([^/]*)\..*$_", m["filename"])
filename = dollar["1"]
log( label="radioc", level=5, "artist="^m["artist"] )
log( label="radioc", level=5, "album="^m["album"] )
log( label="radioc", level=5, "title="^m["title"] )
log( label="radioc", level=5, "filename="^filename )
if ( m["title"] == "" ) then
[ ("artist", "Inconnu"), ("title", filename) ]
else
if ( m["album"] != "" ) then
if ( m["artist"] != "" ) then
if int_of_string( m["year"], default = 0 ) > 0 then
[ ("title", m["album"]^" ("^m["year"]^") - "^m["title"] ) ]
else
[ ("title", m["album"]^" - "^m["title"] ) ]
end
else
[ ("artist", "Inconnu"), ("title", m["album"]^" - "^m["title"] ) ]
end
else
[ ("title", m["title"] ) ]
end
end
end
radio = map_metadata( map, radio )
output.icecast(%mp3(
samplerate=44100,
stereo=true,
bitrate=128),
id="ToMp3",
mount="[mount_point]",
name="myRadio",
host="127.0.0.1",
port=8000,
password="[pwd]",
genre="Mixed,Various,Other",
url="[my_url]",
description = "[my_description]",
public=true,
radio)
------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users