Hello,

I am having an issue getting my request.queue to work with smart_cross :(.

I set up a queue (id="schedule") and used telnet to send some song files to
it. I sent the first file and it plays just fine. Additionally, as soon as
it starts, I sent a second file to my queue via telnet. The first
smart_cross transition between the initial two songs worked perfectly and I
outputted to the log (Transititons: Triaging..., Transitions: Song:
End/Begin) from my transition function so I know it was being hit.
Additionally, I found the "[smart_cross_5481:3] Analysis: -27.207545dB /
-23.319877dB (6.02s / 1.98s)" output in the log.

Now, when the second song begins, I send a third file via telnet.
Unfortunately, the second and third songs and any subsequent files sent via
telnet fail to smart_cross. They simply play back to back and my transition
function never gets called any longer. Additionally, I no longer see any
smart_cross messages. It is as if the smart_cross function gets completely
detached.

*Are there any gotchas I should be concerned with in regards to the usage
of a request.queue and smart_cross? I have tried playing with the
conservative flags on the queue and the smart_cross function to no success.*

Thanks and great work with this platform!

- Alex Groleau ([email protected])

Highlights of my Script
---------------------------------

# queue setup
radio = ref audio_to_stereo(request.queue(id = 'schedule'))

# added some tracking functions
radio := on_track(track_start, !radio)
radio := on_end(delay = !jingle_end_padding, track_end, !radio)

# crossfading
radio := smart_cross(width = !transition_width, duration =
!transition_duration, transition, !radio)

# add jingles end function
jingles = on_end(delay = 1., jingle_end, jingles)
# quiet detection
radio := on_blank(threshold = !jingle_quiet_threshold, max_blank =
!jingle_quiet_duration, min_noise = !jingle_noise_duration, on_noise =
quiet_off, quiet_on, !radio)
# mix in jingles during quiet (use delay here?)
radio := add(normalize = false, [
    !radio,
    switch([({ !quiet_detected and not !advertisement_playing and not
!track_beginning and not !track_ending }, jingles)])
])

# output
output.ao(!radio)

*My Log File*

E:\Users\Alexander\Documents\GDM Radio\Projects\Liquidsoap
1.1.1>liquidsoap.exe
..\CloudCast\liquidsoap\cloudcast.liq
2013/06/19 13:45:42 >>> LOG START
2013/06/19 13:45:42 [protocols.external:3] Found "wget.exe".
2013/06/19 13:45:42 [main:3] Liquidsoap 1.1.1
2013/06/19 13:45:42 [main:3] Using: graphics=[distributed with Ocaml]
pcre=0.1.0
 dtools=0.3.1 duppy=0.5.1 cry=0.2.2 mm=0.2.1 xmlplaylist=0.1.3 lastfm=0.3.0
ogg=
0.4.5 vorbis=0.6.1 opus=0.1.0 speex=0.2.0 mad=0.4.4 flac=0.1.1
flac.ogg=0.1.1 dy
nlink=[distributed with Ocaml] lame=0.3.2 shine=0.1.1 frei0r=0.1.0
aacplus=0.2.1
 voaacenc=0.1.0 fdkaac=0.1.0 theora=0.3.0 schroedinger=0.1.0 gavl=0.1.5
ao=0.2.0
 samplerate=0.1.2 taglib=0.3.1 camomile=0.8.4 faad=0.3.2 soundtouch=0.1.7
portau
dio=0.2.0 ladspa=0.1.4 yojson=1.0.3 winsvc=0.0.1
2013/06/19 13:45:42 [harbor:3] Adding HTTP handler for 'GET /restart' on
port 12
34
2013/06/19 13:45:42 [frame:3] Using 44100Hz audio, 25Hz video, 44100Hz
master.
2013/06/19 13:45:42 [frame:3] Frame size must be a multiple of 1764 ticks =
1764
 audio samples = 1 video samples.
2013/06/19 13:45:42 [frame:3] Targetting 'frame.duration': 0.04s = 1764
audio sa
mples = 1764 ticks.
2013/06/19 13:45:42 [frame:3] Frames last 0.04s = 1764 audio samples = 1
video s
amples = 1764 ticks.
2013/06/19 13:45:42 [CloudCast:2] Settings: advertisement_genre =
Advertisement
2013/06/19 13:45:42 [CloudCast:2] Settings: sweeper_genre = Sweeper
2013/06/19 13:45:42 [CloudCast:2] Settings: jingle_genre = Jingle
2013/06/19 13:45:42 [CloudCast:2] Settings: transition_fade_duration = 5.
2013/06/19 13:45:42 [CloudCast:2] Settings: transition_duration = 6.
2013/06/19 13:45:42 [CloudCast:2] Settings: transition_width = 2.
2013/06/19 13:45:42 [CloudCast:2] Settings: transition_power_margin = 4.
2013/06/19 13:45:42 [CloudCast:2] Settings: transition_high_power = -15.
2013/06/19 13:45:42 [CloudCast:2] Settings: transition_medium_power = -32.
2013/06/19 13:45:42 [CloudCast:2] Settings: jingle_quiet_threshold = -15.5
2013/06/19 13:45:42 [CloudCast:2] Settings: jingle_quiet_duration = 4.
2013/06/19 13:45:42 [CloudCast:2] Settings: jingle_quiet_duration = 4.
2013/06/19 13:45:42 [CloudCast:2] Settings: jingle_noise_duration = 1.
2013/06/19 13:45:42 [CloudCast:2] Settings: jingle_end_padding = 0.
2013/06/19 13:45:42 [CloudCast:2] Settings: show_input_port = 10000
2013/06/19 13:45:42 [CloudCast:2] Settings: talkover_input_port = 11000
2013/06/19 13:45:42 [CloudCast:2] Settings: master_input_port = 12000
2013/06/19 13:45:42 [CloudCast:2] Settings: talkover_fade_duration = 0.2
2013/06/19 13:45:42 [CloudCast:2] Settings: talkover_radio_amplification =
0.3
2013/06/19 13:45:42 [harbor:3] Adding HTTP handler for 'GET /talkover' on
port 1
234
2013/06/19 13:45:42 [CloudCast:2] Outputs: Local
2013/06/19 13:45:42 [CloudCast:2] Outputs: Host=icecast.gdmradio.com:8000,
Mount
=129.mp3
2013/06/19 13:45:42 [threads:3] Created thread "generic queue #1".
2013/06/19 13:45:42 [threads:3] Created thread "generic queue #2".
2013/06/19 13:45:42 [threads:3] Created thread "generic queue #3".
2013/06/19 13:45:42 [threads:3] Created thread "generic queue #4".
2013/06/19 13:45:42 [threads:3] Created thread "generic queue #5".
2013/06/19 13:45:42 [threads:3] Created thread "fast queue #1".
2013/06/19 13:45:42 [threads:3] Created thread "fast queue #2".
2013/06/19 13:45:42 [threads:3] Created thread "fast queue #3".
2013/06/19 13:45:42 [threads:3] Created thread "non-blocking queue #1".
2013/06/19 13:45:42 [threads:3] Created thread "non-blocking queue #2".
2013/06/19 13:45:42 [threads:3] Created thread "non-blocking queue #3".
2013/06/19 13:45:42 [harbor:3] Adding mountpoint '/master' on port 12000
2013/06/19 13:45:42 [harbor:3] Adding mountpoint '/talkover' on port 11000
2013/06/19 13:45:42 [harbor:3] Adding mountpoint '/show' on port 10000
2013/06/19 13:45:42
[Sweeper(dot)rawxml?key=E24480E1-3624-469D-92F1-8BF70A462BF9
&XDEBUG_SESSION_START=17394:3] Loading playlist...
2013/06/19 13:45:42
[Sweeper(dot)rawxml?key=E24480E1-3624-469D-92F1-8BF70A462BF9
&XDEBUG_SESSION_START=17394:3] Playlist treated as format audio/mpegurl
2013/06/19 13:45:42
[Sweeper(dot)rawxml?key=E24480E1-3624-469D-92F1-8BF70A462BF9
&XDEBUG_SESSION_START=17394:3] Successfully loaded a playlist of 1 tracks.
2013/06/19 13:45:42
[Jingle(dot)rawxml?key=E24480E1-3624-469D-92F1-8BF70A462BF9&
XDEBUG_SESSION_START=17394:3] Loading playlist...
2013/06/19 13:45:42 [decoder:3] Method "MAD" accepted
"F:\\GDMusic\\Prepared\\Ca
skey - GDM Weekend Startup.mp3".
2013/06/19 13:45:42
[Jingle(dot)rawxml?key=E24480E1-3624-469D-92F1-8BF70A462BF9&
XDEBUG_SESSION_START=17394:3] Playlist treated as format audio/mpegurl
2013/06/19 13:45:42
[Jingle(dot)rawxml?key=E24480E1-3624-469D-92F1-8BF70A462BF9&
XDEBUG_SESSION_START=17394:3] Successfully loaded a playlist of 3 tracks.
2013/06/19 13:45:42 [threads:3] Created thread "ao" (1 total).
2013/06/19 13:45:42 [129(dot)mp3:3] Connecting mount 129.mp3 for
source@icecast.
gdmradio.com...
2013/06/19 13:45:42 [decoder:3] Method "MAD" accepted
"F:\\GDMusic\\Prepared\\Ca
skey - Gay in USA.mp3".
2013/06/19 13:45:43 [129(dot)mp3:3] Connection setup was successful.
2013/06/19 13:45:43 [threads:3] Created thread "wallclock_ao" (2 total).
2013/06/19 13:45:43 [clock.wallclock_ao:3] Streaming loop starts,
synchronized b
y active sources.
2013/06/19 13:45:43 [switch_5513:3] Switch to switch_5512.
2013/06/19 13:45:43 [switch_5512:3] Switch to switch_5509.
2013/06/19 13:45:43 [switch_5509:3] Switch to switch_5508.
2013/06/19 13:45:43 [switch_5508:3] Switch to amplify_5506.
2013/06/19 13:45:43 [ao:3] Opening WMM audio driver output  (2 channels)...
2013/06/19 13:45:47 [decoder:3] Method "MAD" accepted
"F:\\GDMusic\\Prepared\\Ca
skey - GDM Weekend Startup.mp3".

INITIALIZED QUEUE HERE
----------------------------------------
*2013/06/19 13:45:47 [CloudCast:2] Queue: Added F:\GDMusic\Prepared\Caskey
- GDM*
*Weekend Startup.mp3*
*
*
2013/06/19 13:45:47 [schedule:3] Prepared "F:\\GDMusic\\Prepared\\Caskey -
GDM W
eekend Startup.mp3" (RID 4).
2013/06/19 13:45:47 [switch_5508:3] Switch to add_5489 with transition.
2013/06/19 13:45:47 [CloudCast:2] Tracking: Beginning
2013/06/19 13:45:48 [schedule:3] Finished with
"F:\\GDMusic\\Prepared\\Caskey -
GDM Weekend Startup.mp3".
2013/06/19 13:45:48 [CloudCast:2] Tracking: Ending
2013/06/19 13:45:48 [switch_5508:3] Switch to amplify_5506 with transition.
2013/06/19 13:45:48 [CloudCast:2] Tracking: Ending Complete
2013/06/19 13:45:52 [decoder:3] Method "MAD" accepted
"F:\\GDMusic\\Prepared\\Di
gitalism - Circles (Eric Prydz remix).mp3".
2013/06/19 13:45:52 [switch_5508:3] Switch to add_5489 with transition.

ADDED TO QUEUE HERE
----------------------------------------
*2013/06/19 13:45:52 [CloudCast:2] Queue: Added
F:\GDMusic\Prepared\Digitalism -*
*Circles (Eric Prydz remix).mp3*
*
*
2013/06/19 13:45:52 [schedule:3] Prepared
"F:\\GDMusic\\Prepared\\Digitalism - C
ircles (Eric Prydz remix).mp3" (RID 5).
2013/06/19 13:45:52 [CloudCast:2] Tracking: Beginning

SMARTCROSS HAPPENS SUCCESSFULLY HERE
----------------------------------------------------------------------------
*2013/06/19 13:45:52 [smart_cross_5481:3] Analysis: -27.207545dB /
-23.319877dB (*
*6.02s / 1.98s)*
*
*
SMARTCROSS TRANSITION FUNCTION HITS SUCCESSFULLY HERE
---------------------------------------------------------------------------------------------------------
*2013/06/19 13:45:52 [CloudCast:2] Transititons: Triaging...*
*2013/06/19 13:45:52 [CloudCast:2] Transitions: Song: End/Begin*
*
*
2013/06/19 13:45:57 [decoder:3] Method "MAD" accepted
"F:\\GDMusic\\Prepared\\Er
ic Prydz - Call on Me (radio edit).mp3".

ADDED TO QUEUE AGAIN HERE
--------------------------------------------------
*2013/06/19 13:45:57 [CloudCast:2] Queue: Added F:\GDMusic\Prepared\Eric
Prydz -*
*Call on Me (radio edit).mp3*
*
*
2013/06/19 13:46:07 [CloudCast:2] Tracking: Beginning Complete
2013/06/19 13:46:12 [CloudCast:2] Tracking: Beginning Complete
2013/06/19 13:47:25 [CloudCast:2] Tracking: Quiet Detected
2013/06/19 13:47:25
[Jingle(dot)rawxml?key=E24480E1-3624-469D-92F1-8BF70A462BF9&
XDEBUG_SESSION_START=17394:3] Prepared "F:\\GDMusic\\Prepared\\Caskey - Gay
in U
SA.mp3" (RID 3).
2013/06/19 13:47:25 [switch_5488:3] Switch to on_end_5485.
2013/06/19 13:47:25 [decoder:3] Method "MAD" accepted
"F:\\GDMusic\\Prepared\\Ca
skey - GDM Radio Dot Com.mp3".
2013/06/19 13:47:29
[Jingle(dot)rawxml?key=E24480E1-3624-469D-92F1-8BF70A462BF9&
XDEBUG_SESSION_START=17394:3] Finished with "F:\\GDMusic\\Prepared\\Caskey
- Gay
 in USA.mp3".
2013/06/19 13:49:04 [CloudCast:2] Tracking: Quiet Detected
2013/06/19 13:49:04
[Jingle(dot)rawxml?key=E24480E1-3624-469D-92F1-8BF70A462BF9&
XDEBUG_SESSION_START=17394:3] Prepared "F:\\GDMusic\\Prepared\\Caskey - GDM
Radi
o Dot Com.mp3" (RID 7).
2013/06/19 13:49:04 [switch_5488:3] Switch to on_end_5485.
2013/06/19 13:49:04 [decoder:3] Method "MAD" accepted
"F:\\GDMusic\\Prepared\\Ca
skey - GDM Radio Hits.mp3".
2013/06/19 13:49:08
[Jingle(dot)rawxml?key=E24480E1-3624-469D-92F1-8BF70A462BF9&
XDEBUG_SESSION_START=17394:3] Finished with "F:\\GDMusic\\Prepared\\Caskey
- GDM
 Radio Dot Com.mp3".
2013/06/19 13:52:19 [schedule:3] Finished with
"F:\\GDMusic\\Prepared\\Digitalis
m - Circles (Eric Prydz remix).mp3".

SMARTCROSS FAILS TO HAPPEN HERE
---------------------------------------------------------------
*2013/06/19 13:52:19 [CloudCast:2] Tracking: Ending*
*2013/06/19 13:52:19 [schedule:3] Prepared "F:\\GDMusic\\Prepared\\Eric
Prydz - C*
*all on Me (radio edit).mp3" (RID 6).*
*2013/06/19 13:52:19 [CloudCast:2] Tracking: Ending Complete*
*2013/06/19 13:52:19 [CloudCast:2] Tracking: Beginning*

2013/06/19 13:52:21 [CloudCast:2] Tracking: Quiet Detected
2013/06/19 13:52:23 [decoder:3] Method "MAD" accepted
"F:\\GDMusic\\Prepared\\Ar
ty, Nadia Ali & BT - Must Be the Love (radio edit).mp3".

ADDED TO QUEUE AGAIN HERE
---------------------------------------------------
*2013/06/19 13:52:29 [CloudCast:2] Queue: Added F:\GDMusic\Prepared\Arty,
Nadia A*
*li & BT - Must Be the Love (radio edit).mp3*

2013/06/19 13:52:39 [CloudCast:2] Tracking: Beginning Complete
2013/06/19 13:52:39
[Jingle(dot)rawxml?key=E24480E1-3624-469D-92F1-8BF70A462BF9&
XDEBUG_SESSION_START=17394:3] Prepared "F:\\GDMusic\\Prepared\\Caskey - GDM
Radi
o Hits.mp3" (RID 8).
2013/06/19 13:52:39 [switch_5488:3] Switch to on_end_5485.
2013/06/19 13:52:39 [decoder:3] Method "MAD" accepted
"F:\\GDMusic\\Prepared\\Ca
skey - GDM Radio Dot Com.mp3".
2013/06/19 13:52:39
[Jingle(dot)rawxml?key=E24480E1-3624-469D-92F1-8BF70A462BF9&
XDEBUG_SESSION_START=17394:3] Loading playlist...
2013/06/19 13:52:39
[Jingle(dot)rawxml?key=E24480E1-3624-469D-92F1-8BF70A462BF9&
XDEBUG_SESSION_START=17394:3] Playlist treated as format audio/mpegurl
2013/06/19 13:52:39
[Jingle(dot)rawxml?key=E24480E1-3624-469D-92F1-8BF70A462BF9&
XDEBUG_SESSION_START=17394:3] Successfully loaded a playlist of 3 tracks.
2013/06/19 13:52:39 [decoder:3] Method "MAD" accepted
"F:\\GDMusic\\Prepared\\Ca
skey - GDM Radio Hits.mp3".
2013/06/19 13:52:42
[Jingle(dot)rawxml?key=E24480E1-3624-469D-92F1-8BF70A462BF9&
XDEBUG_SESSION_START=17394:3] Finished with "F:\\GDMusic\\Prepared\\Caskey
- GDM
 Radio Hits.mp3".
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to