It looks like you have the  1 hour twice, I think. Try changing  that and see 
if it will fire correctly. 
> On Dec 28, 2014, at 9:09 AM, Oriol Gómez <ogomez....@gmail.com> wrote:
> 
> Alright I managed to fix a pretty obvious error, I shouldn't have been
> passing the switch result as a function.
> 
> Now the stream works but it isn't playing the hour files. Please, tell
> me what I am doing wrong.
> 
> # Log dir
> set("log.file.path","/home/radio/autodj.log")
> set("log.stdout", true)
> set("log.level", 3)
> 
> # Music
> myplaylist = 
> strip_blank(smart_crossfade(mksafe(playlist("/home/oriol/music"))))
> # If something goes wrong, we'll play this
> security = single("/home/oriol/music/viva alemania.mp3")
> 
> # Start building the feed with music
> radio = myplaylist
> 
> # And finally the security
> radio = fallback(track_sensitive = false, [radio, mksafe(security)])
> radio=mksafe(smooth_add(normal=radio,special=
> switch([
> ({1h00}, single("/home/oriol/music/horas/1.mp3")),
> ({1h00}, single("/home/oriol/music/horas/2.mp3")),
> ({3h00}, single("/home/oriol/music/horas/3.mp3")),
> ({4h00}, single("/home/oriol/music/horas/4.mp3")),
> ({5h51}, single("/home/oriol/music/horas/5.mp3")),
> ({6h00}, single("/home/oriol/music/horas/6.mp3")),
> ({7h00}, single("/home/oriol/music/horas/7.mp3")),
> ({8h00}, single("/home/oriol/music/horas/8.mp3")),
> ({9h00}, single("/home/oriol/music/horas/9.mp3")),
> ({10h00}, single("/home/oriol/music/horas/10.mp3")),
> ({11h00}, single("/home/oriol/music/horas/11.mp3")),
> ({12h00}, single("/home/oriol/music/horas/12.mp3")),
> ])))
> # Stream it out
> output.icecast(%mp3(bitrate=160,stereo=true),
>  host = "localhost", port = 8000,
>  password = "******", mount = "stream",
>  radio)
> 
> 
> On 12/28/14, Oriol Gómez <ogomez....@gmail.com> wrote:
>> Hi,
>> I'm getting a very strange error that I don't recognize in liquidsoap:
>> HEre is my simple script and log, please help
>> # Log dir
>> set("log.file.path","/home/radio/autodj.log")
>> set("log.stdout", true)
>> set("log.level", 3)
>> 
>> # Music
>> myplaylist =
>> strip_blank(smart_crossfade(mksafe(playlist("/home/oriol/music"))))
>> # If something goes wrong, we'll play this
>> security = single("/home/oriol/music/viva alemania.mp3")
>> 
>> # Start building the feed with music
>> radio = myplaylist
>> 
>> # And finally the security
>> radio = fallback(track_sensitive = false, [radio, mksafe(security)])
>> radio=mksafe(switch([
>> ({1h24}, smooth_add(normal=radio,
>> special=mksafe(single("/home/oriol/music/horas/1.mp3")))),
>> ({2h00}, smooth_add(normal=radio,
>> special=mksafe(single("/home/oriol/music/horas/2.mp3")))),
>> ({3h00}, smooth_add(normal=radio,
>> special=mksafe(single("/home/oriol/music/horas/3.mp3")))),
>> ({4h00}, smooth_add(normal=radio,
>> special=mksafe(single("/home/oriol/music/horas/4.mp3")))),
>> ({5h00}, smooth_add(normal=radio,
>> special=mksafe(single("/home/oriol/music/horas/5.mp3")))),
>> ({6h00}, smooth_add(normal=radio,
>> special=mksafe(single("/home/oriol/music/horas/6.mp3")))),
>> ({7h00}, smooth_add(normal=radio,
>> special=mksafe(single("/home/oriol/music/horas/7.mp3")))),
>> ({8h00}, smooth_add(normal=radio,
>> special=mksafe(single("/home/oriol/music/horas/8.mp3")))),
>> ({9h00}, smooth_add(normal=radio,
>> special=mksafe(single("/home/oriol/music/horas/9.mp3")))),
>> ({10h00}, smooth_add(normal=radio,
>> special=mksafe(single("/home/oriol/music/horas/10.mp3")))),
>> ({11h00}, smooth_add(normal=radio,
>> special=mksafe(single("/home/oriol/music/horas/11.mp3")))),
>> ({12h00}, smooth_add(normal=radio,
>> special=mksafe(single("/home/oriol/music/horas/12.mp3")))),
>> ]))
>> # Stream it out
>> output.icecast(%mp3(bitrate=160,stereo=true),
>>  host = "localhost", port = 8000,
>>  password = "*****", mount = "stream",
>>  radio)
>> 
>> and log
>> 2014/12/28 13:25:07 >>> LOG START
>> 2014/12/28 13:25:07 [protocols.external:3] Found "/usr/bin/wget".
>> 2014/12/28 13:25:07 [main:3] Liquidsoap 1.1.1
>> 2014/12/28 13:25:07 [main:3] Using: pcre=7.1.0 dtools=0.3.1
>> duppy=0.5.1 duppy.syntax=0.5.1 cr
>> y=0.2.2 mm=0.2.1 mad=0.4.4 dynlink=[distributed with Ocaml] lame=0.3.2
>> taglib=0.3.1 camomile=
>> 0.8.3
>> 2014/12/28 13:25:07 [dynamic.loader:3] Could not find dynamic module
>> for aacplus encoder.
>> 2014/12/28 13:25:07 [frame:3] Using 44100Hz audio, 25Hz video, 44100Hz
>> master.
>> 2014/12/28 13:25:07 [frame:3] Frame size must be a multiple of 1764
>> ticks = 1764 audio sample
>> s = 1 video samples.
>> 2014/12/28 13:25:07 [frame:3] Targetting 'frame.duration': 0.04s =
>> 1764 audio samples = 1764
>> ticks.
>> 2014/12/28 13:25:07 [frame:3] Frames last 0.04s = 1764 audio samples =
>> 1 video samples = 1764
>> ticks.
>> 2014/12/28 13:25:07 [decoder:3] Method "MAD" accepted
>> "/home/oriol/music/viva alemania.mp3".
>> 2014/12/28 13:25:07 [single:3] "/home/oriol/music/viva alemania.mp3"
>> is static, resolving onc
>> e for all...
>> 2014/12/28 13:25:07 [decoder:3] Method "MAD" accepted
>> "/home/oriol/music/horas/1.mp3".
>> 2014/12/28 13:25:07 [single:3] "/home/oriol/music/horas/1.mp3" is
>> static, resolving once for
>> all...
>> 2014/12/28 13:25:07 [decoder:3] Method "MAD" accepted
>> "/home/oriol/music/horas/2.mp3".
>> 2014/12/28 13:25:07 [single:3] "/home/oriol/music/horas/2.mp3" is
>> static, resolving once for
>> all...
>> 2014/12/28 13:25:07 [decoder:3] Method "MAD" accepted
>> "/home/oriol/music/horas/3.mp3".
>> 2014/12/28 13:25:07 [single:3] "/home/oriol/music/horas/3.mp3" is
>> static, resolving once for
>> all...
>> 2014/12/28 13:25:07 [decoder:3] Method "MAD" accepted
>> "/home/oriol/music/horas/4.mp3".
>> 2014/12/28 13:25:07 [single:3] "/home/oriol/music/horas/4.mp3" is
>> static, resolving once for
>> all...
>> 2014/12/28 13:25:07 [decoder:3] Method "MAD" accepted
>> "/home/oriol/music/horas/5.mp3".
>> 2014/12/28 13:25:07 [single:3] "/home/oriol/music/horas/5.mp3" is
>> static, resolving once for
>> all...
>> 2014/12/28 13:25:07 [decoder:3] Method "MAD" accepted
>> "/home/oriol/music/horas/6.mp3".
>> 2014/12/28 13:25:07 [single:3] "/home/oriol/music/horas/6.mp3" is
>> static, resolving once for
>> all...
>> 2014/12/28 13:25:07 [decoder:3] Method "MAD" accepted
>> "/home/oriol/music/horas/7.mp3".
>> 2014/12/28 13:25:07 [single:3] "/home/oriol/music/horas/7.mp3" is
>> static, resolving once for
>> all...
>> 2014/12/28 13:25:07 [decoder:3] Method "MAD" accepted
>> "/home/oriol/music/horas/8.mp3".
>> 2014/12/28 13:25:07 [single:3] "/home/oriol/music/horas/8.mp3" is
>> static, resolving once for
>> all...
>> 2014/12/28 13:25:07 [decoder:3] Method "MAD" accepted
>> "/home/oriol/music/horas/9.mp3".
>> 2014/12/28 13:25:07 [single:3] "/home/oriol/music/horas/9.mp3" is
>> static, resolving once for
>> all...
>> 2014/12/28 13:25:07 [decoder:3] Method "MAD" accepted
>> "/home/oriol/music/horas/10.mp3".
>> 2014/12/28 13:25:07 [single:3] "/home/oriol/music/horas/10.mp3" is
>> static, resolving once for
>> all...
>> 2014/12/28 13:25:07 [decoder:3] Method "MAD" accepted
>> "/home/oriol/music/horas/11.mp3".
>> 2014/12/28 13:25:07 [single:3] "/home/oriol/music/horas/11.mp3" is
>> static, resolving once for
>> all...
>> 2014/12/28 13:25:07 [decoder:3] Method "MAD" accepted
>> "/home/oriol/music/horas/12.mp3".
>> 2014/12/28 13:25:07 [single:3] "/home/oriol/music/horas/12.mp3" is
>> static, resolving once for
>> all...
>> 2014/12/28 13:25:07 [threads:3] Created thread "generic queue #1".
>> 2014/12/28 13:25:07 [threads:3] Created thread "generic queue #2".
>> 2014/12/28 13:25:07 [music:3] Loading playlist...
>> 2014/12/28 13:25:07 [music:3] Playlist is a directory.
>> 2014/12/28 13:25:07 [music:3] Successfully loaded a playlist of 896
>> tracks.
>> 2014/12/28 13:25:07 [stream:3] Connecting mount stream for
>> source@localhost...
>> 2014/12/28 13:25:07 [decoder:3] Method "MAD" accepted
>> "/home/oriol/music/you're all I never w
>> anted.mp3".
>> TagLib: ID3v2.4 no longer supports the frame type TDAT.  It will be
>> discarded from the tag.
>> TagLib: ID3v2.4 no longer supports the frame type TIME.  It will be
>> discarded from the tag.
>> 2014/12/28 13:25:07 [stream:3] Connection setup was successful.
>> 2014/12/28 13:25:07 [threads:3] Created thread "wallclock_main" (1
>> total).
>> 2014/12/28 13:25:07 [clock.wallclock_main:3] Streaming loop starts,
>> synchronized with wallclo
>> ck.
>> 2014/12/28 13:25:07 [mksafe:3] Switch to safe_blank.
>> ^[[3^C2014/12/28 13:25:20 [main:3] Shutdown started!
>> 2014/12/28 13:25:20 [main:3] Waiting for threads to terminate...
>> 2014/12/28 13:25:20 [stream:3] Closing connection...
>> 2014/12/28 13:25:20 [clock.wallclock_main:3] Streaming loop stopped.
>> 2014/12/28 13:25:20 [threads:3] Thread "wallclock_main" terminated (0
>> remaining).
>> 2014/12/28 13:25:20 [main:3] Cleaning downloaded files...
>> 2014/12/28 13:25:20 [main:3] Freeing memory...
>> 2014/12/28 13:25:20 >>> LOG END
>> 
>> Thanks so much :)
>> 
> 
> ------------------------------------------------------------------------------
> Dive into the World of Parallel Programming! The Go Parallel Website,
> sponsored by Intel and developed in partnership with Slashdot Media, is your
> hub for all things parallel software development, from weekly thought
> leadership blogs to news, videos, case studies, tutorials and more. Take a
> look and join the conversation now. http://goparallel.sourceforge.net
> _______________________________________________
> Savonet-users mailing list
> Savonet-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/savonet-users


------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
_______________________________________________
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to