Closed daslicht closed 10 years ago
I have found some intereresting things, it looks like that when using cue sheets no metadata are processed at all:
For example if I just playback a single mp3 I get :
def apply_metadata(m) =
print(m)
end
radio = on_metadata(apply_metadata,radio)
[
("filename","Chillloop.mp3"),
("status","playing"),
("year","2012"),
("initial_uri","Chillloop.mp3"),
("on_air","2014/04/15 14:32:17"),
("rid","0"),
("kind","{audio=2;video=0;midi=0}"),
("artist","AnSolas"),
("decoder","MAD"),
("encoding","Studio One 1.5.2.12713"),
("date","2012"),
("temporary","false"),
("title","Chill Loop")
]
If I do the same with a cuesheet I get the following output:
[
("filename","./Mixdown-MixdownFinalA_16Bit_BWF.mp3"),
("status","playing"),
("source","AnSolas&LightRocker-LiveSet2012(dot)cue"),
("initial_uri","./Mixdown-MixdownFinalA_16Bit_BWF.mp3"),
("on_air","2014/04/15 14:29:35"),
("rid","1"),
("kind","{audio=2;video=0;midi=0}"),
("decoder","MAD"),
("temporary","false")
]
Tanks for the detailed report. Looking at it now.
You're welcome, I keep trying things either, Thank You !
wao fixed? How could I try it / apply it to my installed version please?
Unfortunately, the fix is in the compiled code so you'd need to recompile from git. Another option is to play with playlist.reloadable
, which doesn't have the bug.
Like this?
radio = cue_cut(mksafe(playlist.reloadable("Playlist.cue")))
I tried the following:
daslicht@vps58220:/home$ ./start.liq
At line 10, char 42-80:
this value has type
(_*_) (inferred at /usr/lib/liquidsoap/1.1.1/utils.liq, line 590, char 3-17)
but it should be a subtype of (the type of the value at /usr/lib/liquidsoap/1.1.1/utils.liq, line 5, char 13)
source(_) (inferred at /usr/lib/liquidsoap/1.1.1/utils.liq, line 6, char 54-70)
daslicht@vps58220:/home$
#!/usr/bin/liquidsoap
# LOGGING
# set("log.file.path","/tmp/basic-radio.log")
set("log.file",false)
set("log.stdout",true)
set("log.level",3)
radio =cue_cut(mksafe(playlist.reloadable("AnSolas&LightRocker-LiveSet2012.cue")))
output.icecast(%mp3,
host = "localhost", port = 8000,
user = "hackme",
password = "hackme",
mount = "stream.mp3",
radio)
@toots I just tried to built it from source after cloning the repo to my server as described here: http://liquidsoap.fm/doc-svn/build.html
If you are using the git sources, you need to initialize all submodules by invoking make init, make update and finally ./bootstrap.
Thats what I get :
root@vps58220:/home/ls/liquidsoap# ls
bootstrap CHANGES configure.ac COPYING doc examples gui INSTALL m4 Makefile Makefile.defs.in Makefile.rules README RELEASING scripts src
root@vps58220:/home/ls/liquidsoap# make init
Makefile.rules:10: Makefile.defs: No such file or directory
make: *** No rule to make target `Makefile.defs'. Stop.
anyone ?
@toots Is that meanwhile fixed?
I do not had any success with playlist.reloadable
either.
please
Well liquidsoap has been released with these changes included so I think it has all come full circle now..
I just tried it again , this time on ubuntu:
#!/usr/bin/liquidsoap
# LOGGING
# set("log.file.path","/tmp/basic-radio.log")
set("log.file",false)
set("log.stdout",true)
set("log.level",3)
radio =cue_cut(mksafe(playlist.reloadable("AnSolas&LightRocker-LiveSet2012.cue")))
output.icecast(%mp3,
host = "localhost", port = 8000,
user = "***",
password = "***",
mount = "stream.mp3",
radio)
result:
root@v22015072938226788:/etc/ices2/music# sudo -u liquidsoap liquidsoap radio.liq
At line 10, char 42-80:
this value has type
(_*_) (inferred at /usr/lib/liquidsoap/1.1.1/utils.liq, line 590, char 3-17)
but it should be a subtype of (the type of the value at /usr/lib/liquidsoap/1.1.1/utils.liq, line 5, char 13)
source(_) (inferred at /usr/lib/liquidsoap/1.1.1/utils.liq, line 6, char 54-70)
root@v22015072938226788:/etc/ices2/music#
root@v22015072938226788:/etc/ices2/music# liquidsoap --version
Liquidsoap 1.1.1
This means that playlist.relaodable
returns a pair, and not a source as expected. You can start with something like
fs = playlist.reloadable(...)
s = snd(fs)
radio = cue_cut(mksafe(s))
...
@toots: Does version 1.1.1 include those cue sheet fixes ?
@smimram: Thank you !
No, you need 1.2.0
.
Is there somewhere a precompiled version 1.2.0 for ubuntu ? please?
You will have to get in touch with the distribution. We only maintain the opam
packages for liquidsoap. They should be easy to install on ubuntu, tho. See: http://liquidsoap.fm/download.html
Hello, When I setup LiquidSoap to playback a cuesheet for a mp3 file which consists of multiple songs, playback is working but I get no Song Information displayed in IceCast2:
Setup:
Ubuntu Server 13 Liquidsoap 1.1.1 IceCast Icecast 2.3.3
LIQ
CueSheet
Opening the CueSheet with VLC results in:
Parsing the CueSheet with LiquidSoap
LS Log
Anything missing ?
.