Re: [Savonet-users] Fading / Silence issues after version 0.3.8.1

2009-10-11 Thread Romain Beauxis
Hi !

Le vendredi 2 octobre 2009 15:37:47, Romain Beauxis a écrit :
  I'm glad I can upgrade to later versions of liquidsoap without keeping 
  this one 'legacy' version.
 
 :-)
 
 I hope to be able to fix this quite soon. In the mean time, you may use
  the  smart_crossfade which apparently works correctly.


This should be fixed with the latest SVN (revision = 6772)

Could  you please report to us whether this is fixed for you too ?


Romain

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users


Re: [Savonet-users] Fading / Silence issues after version 0.3.8.1

2009-10-02 Thread Frits Letteboer - St. Radio Twenterand
David Baelde wrote:
 On Thu, Oct 1, 2009 at 6:41 PM, Frits f.letteb...@radiotwenterand.nl wrote:
 But this script ALSO has regular 10-second silence-issues on a lot of
 tracks. A guesstimation of about 2 in 3 tracks.
 
 Thanks for testing that. It might be some delay in preparing tracks,
 trying to read metadata in a funky format... (In which case the
 conservative mode should increase the number of blanks, not decrease
 them.)
 
 Could you try with a single(somefile.mp3) instead of a playlist?

I think I found it!

MP3s don't cause this problem. The types of files that are causing 10 
seconds of silence appended (or prepended, I'm not sure) are OGG/Vorbis 
files!

Our input files are a mix of MP3 and OGG/Vorbis files. When comparing a 
stream dump against the logfile, all OGG/Vorbis files caused troubles.

And also single(somefile.mp3) causes 0% 'failure' whereas 
single(somefile.ogg) causes 100% 'failure'.

Seems I was wrong with my initial assessment, sorry for sending you guys 
on a wild goose chase.

-- 
Frits Letteboer
Technisch Beheer
Stichting Radio Twenterand

I: http://radiotwenterand.nl
E: f.letteb...@radiotwenterand.nl

--
Come build with us! The BlackBerryreg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9#45;12, 2009. Register now#33;
http://p.sf.net/sfu/devconf
___
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users


Re: [Savonet-users] Fading / Silence issues after version 0.3.8.1

2009-10-02 Thread Frits Letteboer
Frits Letteboer - St. Radio Twenterand wrote:
 David Baelde wrote:
 On Thu, Oct 1, 2009 at 6:41 PM, Frits f.letteb...@radiotwenterand.nl wrote:
 But this script ALSO has regular 10-second silence-issues on a lot of
 tracks. A guesstimation of about 2 in 3 tracks.
 Thanks for testing that. It might be some delay in preparing tracks,
 trying to read metadata in a funky format... (In which case the
 conservative mode should increase the number of blanks, not decrease
 them.)

 Could you try with a single(somefile.mp3) instead of a playlist?
 
 I think I found it!
 
 MP3s don't cause this problem. The types of files that are causing 10 
 seconds of silence appended (or prepended, I'm not sure) are OGG/Vorbis 
 files!

Logfile confirms problems with OGG/Vorbis:

2009/10/02 10:27:03 [[Lisette]-[Als Geluk Te Koop Zou Zijn](dot)ogg:5] 
Failed to prepare track: no file
2009/10/02 10:27:03 [[Lisette]-[Als Geluk Te Koop Zou Zijn](dot)ogg:5] 
Queue is empty !
2009/10/02 10:27:03 [[Lisette]-[Als Geluk Te Koop Zou Zijn](dot)ogg:5] 
Failed to prepare track: no file
2009/10/02 10:27:03 [[Lisette]-[Als Geluk Te Koop Zou Zijn](dot)ogg:5] 
Queue is empty !
2009/10/02 10:27:03 [[Lisette]-[Als Geluk Te Koop Zou Zijn](dot)ogg:5] 
Failed to prepare track: no file
2009/10/02 10:27:03 [[Lisette]-[Als Geluk Te Koop Zou Zijn](dot)ogg:5] 
Queue is empty !
2009/10/02 10:27:03 [[Lisette]-[Als Geluk Te Koop Zou Zijn](dot)ogg:5] 
Failed to prepare track: no file
2009/10/02 10:27:04 [[Lisette]-[Als Geluk Te Koop Zou Zijn](dot)ogg:5] 
Queue is empty !
2009/10/02 10:27:04 [[Lisette]-[Als Geluk Te Koop Zou Zijn](dot)ogg:5] 
Failed to prepare track: no file
2009/10/02 10:27:04 [[Lisette]-[Als Geluk Te Koop Zou Zijn](dot)ogg:5] 
Queue is empty !
2009/10/02 10:27:04 [[Lisette]-[Als Geluk Te Koop Zou Zijn](dot)ogg:5] 
Failed to prepare track: no file
2009/10/02 10:27:04 [[Lisette]-[Als Geluk Te Koop Zou Zijn](dot)ogg:5] 
Queue is empty !
2009/10/02 10:27:04 [[Lisette]-[Als Geluk Te Koop Zou Zijn](dot)ogg:5] 
Failed to prepare track: no file

And then repeated a gazillion times. This is when using single(). The 
MP3-version does not have this.


-- 
Frits Letteboer
Technisch Beheer
Stichting Radio Twenterand

I: http://radiotwenterand.nl
E: f.letteb...@radiotwenterand.nl

--
Come build with us! The BlackBerryreg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9#45;12, 2009. Register now#33;
http://p.sf.net/sfu/devconf
___
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users


Re: [Savonet-users] Fading / Silence issues after version 0.3.8.1

2009-10-02 Thread Frits Letteboer
Frits Letteboer wrote:
 Frits Letteboer - St. Radio Twenterand wrote:
 David Baelde wrote:
 On Thu, Oct 1, 2009 at 6:41 PM, Frits f.letteb...@radiotwenterand.nl 
 wrote:
 But this script ALSO has regular 10-second silence-issues on a lot of
 tracks. A guesstimation of about 2 in 3 tracks.
 Thanks for testing that. It might be some delay in preparing tracks,
 trying to read metadata in a funky format... (In which case the
 conservative mode should increase the number of blanks, not decrease
 them.)

 Could you try with a single(somefile.mp3) instead of a playlist?
 I think I found it!

 MP3s don't cause this problem. The types of files that are causing 10 
 seconds of silence appended (or prepended, I'm not sure) are OGG/Vorbis 
 files!
 
 Logfile confirms problems with OGG/Vorbis:

Please ignore previous log, following one represents the problems:

2009/10/02 13:50:40  LOG START
2009/10/02 13:50:40 [protocols.external:3] Didn't find ufetch
2009/10/02 13:50:40 [protocols.external:3] Found /usr/bin/wget
2009/10/02 13:50:40 [main:3] Liquidsoap 0.9.1+svn (trunk/liquids...@rev6766)
2009/10/02 13:50:40 [decoder:4] Trying OGG decoder for 
/home/radiotwe/muziek/mp3/[Peter Albada]-[Zover Weg Van Huis].ogg...
2009/10/02 13:50:40 [ogg.demuxer:4] Found a ogg logical stream, serial: 
75801ca2
2009/10/02 13:50:40 [ogg.demuxer:4] Trying ogg/vorbis format
2009/10/02 13:50:40 [decoder:3] Decoder OGG chosen for 
/home/radiotwe/muziek/mp3/[Peter Albada]-[Zover Weg Van Huis].ogg.
2009/10/02 13:50:40 [ogg.demuxer:4] Found a ogg logical stream, serial: 
75801ca2
2009/10/02 13:50:40 [ogg.demuxer:4] Trying ogg/vorbis format
2009/10/02 13:50:40 [single:3] /home/radiotwe/muziek/mp3/[Peter 
Albada]-[Zover Weg Van Huis].ogg is static, resolving once for all...
2009/10/02 13:50:40 [harbor:3] Adding mountpoint '/none' to list...
2009/10/02 13:50:40 [video.converter:4] Couldn't find prefered video 
converter: gavl
2009/10/02 13:50:40 [threads:3] Created thread non-blocking queue #1.
2009/10/02 13:50:40 [audio.converter:4] Using prefered samplerate 
converter: libsamplerate
2009/10/02 13:50:40 [threads:3] Created thread generic queue #1.
2009/10/02 13:50:40 [root:3] Waking up active nodes...
2009/10/02 13:50:40 [source:4] src_5142 gets up
2009/10/02 13:50:40 [source:4] src_5140 gets up
2009/10/02 13:50:40 [source:4] src_5135 gets up
2009/10/02 13:50:40 [src_5135:4] Activations changed: static=[], 
dynamic=[src_5140:jukebox_dbg2(dot)mp3:jukebox_dbg2(dot)mp3].
2009/10/02 13:50:40 [source:4] src_5138 gets up
2009/10/02 13:50:40 [source:4] src_5137 gets up
2009/10/02 13:50:40 [source:4] src_5136 gets up
2009/10/02 13:50:40 [source:4] src_5133 gets up
2009/10/02 13:50:40 [src_5133:4] Activations changed: 
static=[src_5136:src_5137:src_5138:src_5140:jukebox_dbg2(dot)mp3:jukebox_dbg2(dot)mp3],
 
dynamic=[].
2009/10/02 13:50:40 [src_5136:4] Activations changed: 
static=[src_5137:src_5138:src_5140:jukebox_dbg2(dot)mp3:jukebox_dbg2(dot)mp3], 
dynamic=[].
2009/10/02 13:50:40 [src_5137:4] Activations changed: static=[], 
dynamic=[src_5138:src_5140:jukebox_dbg2(dot)mp3:jukebox_dbg2(dot)mp3].
2009/10/02 13:50:40 [src_5137:4] Activations changed: 
static=[src_5138:src_5140:jukebox_dbg2(dot)mp3:jukebox_dbg2(dot)mp3], 
dynamic=[src_5138:src_5140:jukebox_dbg2(dot)mp3:jukebox_dbg2(dot)mp3].
2009/10/02 13:50:40 [src_5138:4] Activations changed: static=[], 
dynamic=[src_5140:jukebox_dbg2(dot)mp3:jukebox_dbg2(dot)mp3].
2009/10/02 13:50:40 [source:4] src_5139 gets up
2009/10/02 13:50:40 [src_5139:4] Activations changed: static=[], 
dynamic=[src_5140:jukebox_dbg2(dot)mp3:jukebox_dbg2(dot)mp3].
2009/10/02 13:50:40 [src_5140:4] Activations changed: 
static=[jukebox_dbg2(dot)mp3:jukebox_dbg2(dot)mp3], dynamic=[].
2009/10/02 13:50:40 [jukebox_dbg2(dot)mp3:4] Activations changed: 
static=[jukebox_dbg2(dot)mp3], dynamic=[].
2009/10/02 13:50:40 [jukebox_dbg2(dot)mp3:4] Enabling caching mode 
(active source)
2009/10/02 13:50:40 [ogg.demuxer:4] Found a ogg logical stream, serial: 
75801ca2
2009/10/02 13:50:40 [ogg.demuxer:4] Trying ogg/vorbis format
2009/10/02 13:50:40 [src_5133:3] Prepared 
/home/radiotwe/muziek/mp3/[Peter Albada]-[Zover Weg Van Huis].ogg -- RID 0
2009/10/02 13:50:40 [jukebox_dbg2(dot)mp3:3] Connecting mount 
jukebox_dbg2.mp3 for sou...@127.0.0.1...
2009/10/02 13:50:40 [threads:3] Created thread root (1 total).
2009/10/02 13:50:40 [jukebox_dbg2(dot)mp3:3] Connection setup was 
successful.
2009/10/02 13:50:40 [root:3] Broadcast starts up!
2009/10/02 13:50:40 [src_5140:3] Switch to src_5138.
2009/10/02 13:50:40 [src_5138:4] Activations changed: 
static=[src_5140:jukebox_dbg2(dot)mp3:jukebox_dbg2(dot)mp3], 
dynamic=[src_5140:jukebox_dbg2(dot)mp3:jukebox_dbg2(dot)mp3].
2009/10/02 13:50:40 [src_5138:4] Buffering end of track...
2009/10/02 13:50:41 [src_5138:4] More buffering will be needed.
2009/10/02 13:53:55 [ogg.demuxer:4] Reached last page of logical stream 
75801ca2
2009/10/02 13:53:55 [ogg.demuxer:5] Audio fill exited on exception: 

Re: [Savonet-users] Fading / Silence issues after version 0.3.8.1

2009-10-02 Thread Frits Letteboer
Romain Beauxis wrote:
   Hi !
 
 Le vendredi 2 octobre 2009 03:50:48, Frits Letteboer - St. Radio Twenterand a 
 écrit :
 Our input files are a mix of MP3 and OGG/Vorbis files. When comparing a 
 stream dump against the logfile, all OGG/Vorbis files caused troubles.

 And also single(somefile.mp3) causes 0% 'failure' whereas 
 single(somefile.ogg) causes 100% 'failure'.
 
 Thank you very much !
 
 Indeed, the ogg demuxer has been completely rewritten in 0.9.1 so it was a 
 possible culprit :)

That would indeed be something to look into, then :)

 
 Now we should try to find a solution for this. Could you send me one of your 
 ogg songs for testing locally ?

Sure thing, sent you one off-list.

Also, thanks to you guys. Without you I'd still be using some hacks and 
ices for streaming ;)

I'm glad I can upgrade to later versions of liquidsoap without keeping 
this one 'legacy' version.

-- 
Frits Letteboer
Technisch Beheer
Stichting Radio Twenterand

I: http://radiotwenterand.nl
E: f.letteb...@radiotwenterand.nl

--
Come build with us! The BlackBerryreg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9#45;12, 2009. Register now#33;
http://p.sf.net/sfu/devconf
___
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users


Re: [Savonet-users] Fading / Silence issues after version 0.3.8.1

2009-10-02 Thread Romain Beauxis
Hi !

Le vendredi 2 octobre 2009 03:50:48, Frits Letteboer - St. Radio Twenterand a 
écrit :
 Our input files are a mix of MP3 and OGG/Vorbis files. When comparing a 
 stream dump against the logfile, all OGG/Vorbis files caused troubles.
 
 And also single(somefile.mp3) causes 0% 'failure' whereas 
 single(somefile.ogg) causes 100% 'failure'.

Thank you very much !

Indeed, the ogg demuxer has been completely rewritten in 0.9.1 so it was a 
possible culprit :)

Now we should try to find a solution for this. Could you send me one of your 
ogg songs for testing locally ?

Thanks !

Romain

--
Come build with us! The BlackBerryreg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9#45;12, 2009. Register now#33;
http://p.sf.net/sfu/devconf
___
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users


Re: [Savonet-users] Fading / Silence issues after version 0.3.8.1

2009-10-02 Thread Romain Beauxis
Le vendredi 2 octobre 2009 12:51:30, Frits Letteboer a écrit :
  Now we should try to find a solution for this. Could you send me one of
  your  ogg songs for testing locally ?
 
 Sure thing, sent you one off-list.

And I can reproduce !

The interesting thing is that apparently it works ok with smart_crossfade and 
the default parameters.

 Also, thanks to you guys. Without you I'd still be using some hacks and 
 ices for streaming ;)

Thanks ! At some point I ended up with the same issues, and then the Savonet 
guys came with this idea of a flexible tool, which was reaaaly a relief back in 
these days :)

 I'm glad I can upgrade to later versions of liquidsoap without keeping 
 this one 'legacy' version.

:-)

I hope to be able to fix this quite soon. In the mean time, you may use the 
smart_crossfade which apparently works correctly.



Romain

--
Come build with us! The BlackBerryreg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9#45;12, 2009. Register now#33;
http://p.sf.net/sfu/devconf
___
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users


Re: [Savonet-users] Fading / Silence issues after version 0.3.8.1

2009-10-01 Thread Frits Letteboer - St. Radio Twenterand
Romain Beauxis wrote:
 Le mercredi 30 septembre 2009 17:49:54, Romain Beauxis a écrit :
 I am quite curious about your issue. Did you try to add
  conservative=true,  and also length=30. to your request-based sources
  ?

 If it still does not work with that, then I think it would worth a ticket
  with  script and logs and we should try to fix it.

No, I didn't change anything else, except for removing the harbor input
from 'final'.

 
 Another remark reading your script. The delay operator was not present in 
 3.8.1. Furthermore, in its current implementation, it might be subject of 
 issues when used with crossfading.. 

Are you sure? Since delay is working flawlessly with that version and
works great for queueing promotions and commercials.

 
 Could you also check whether the bug disapear when you remove the delays, 
 please ?

If I removed the delays I would be listening to commercials and jingles
all the time?

I will check this and report back.

-- 
Frits Letteboer
Technisch Beheer
Stichting Radio Twenterand

I: http://radiotwenterand.nl
E: f.letteb...@radiotwenterand.nl


--
Come build with us! The BlackBerryreg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9#45;12, 2009. Register now#33;
http://p.sf.net/sfu/devconf
___
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users


Re: [Savonet-users] Fading / Silence issues after version 0.3.8.1

2009-10-01 Thread Romain Beauxis
Le jeudi 1 octobre 2009 01:41:48, vous avez écrit :
  Another remark reading your script. The delay operator was not present
  in  3.8.1. Furthermore, in its current implementation, it might be
  subject of issues when used with crossfading..
 
 Are you sure? Since delay is working flawlessly with that version and 
 works great for queueing promotions and commercials.
 
  
  Could you also check whether the bug disapear when you remove the
  delays,  please ?
 
 If I removed the delays I would be listening to commercials and jingles 
 all the time?
 
 I will check this and report back.

Hmm Sorry, it seems I have confused delay and lag.. No need to bother about 
this..


Romain

--
Come build with us! The BlackBerryreg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9#45;12, 2009. Register now#33;
http://p.sf.net/sfu/devconf
___
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users


Re: [Savonet-users] Fading / Silence issues after version 0.3.8.1

2009-10-01 Thread David Baelde
On Wed, Sep 30, 2009 at 10:40 AM, Frits Letteboer - St. Radio
Twenterand f.letteb...@radiotwenterand.nl wrote:
 The problem seems to be the unused harbor input (live) in my script:
 final = fallback(track_sensitive=false,[live,muziek,security])
 When I leave it out
 final = fallback(track_sensitive=false,[muziek,security])
 all is fine.

Nice catch, good debugging! However, not enough for me to reproduce. I
tried the following on my SVN version, it worked. Also for you? There
must be something more to get the bug...

$ src/liquidsoap scripts/utils.liq
'out(fallback(track_sensitive=false,[input.harbor(none),crossfade(start_next=1.,fade_out=0.5,fade_in=0.5,playlist(~/media/audio/jazz)),sine(440.)]))'

Also, what version were you using before? another SVN, the 0.3.9?

Good luck,
-- 
David

--
Come build with us! The BlackBerryreg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9#45;12, 2009. Register now#33;
http://p.sf.net/sfu/devconf
___
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users


Re: [Savonet-users] Fading / Silence issues after version 0.3.8.1

2009-10-01 Thread Frits Letteboer - St. Radio Twenterand
Romain Beauxis wrote:
 Le jeudi 1 octobre 2009 11:41:36, Frits Letteboer - St. Radio Twenterand a 
 écrit :
 Nice catch, good debugging! However, not enough for me to reproduce. I
 tried the following on my SVN version, it worked. Also for you? There
 must be something more to get the bug...
 Yes, also removing the harbor does NOT fix it, as I assumed earlier... 
 Utterly strange. It seems the 10-second silence is not always present, 
 but is most of the time.
 
 Well, such an issue may come from some hardware or software limitations on 
 the 
 box.
 
 For instance, CPU usage could trigger the issue. Also, file system may be 
 shared, or on a RAID and this generates delay etc...

The machine is a quad core Xeon X3210 with 8 gigs of RAM. Music is on a 
separate hard drive. CPU load is 0.6, RAM usage 42% at the time of 
testing. Therefore it's highly unlikely that load's the issue. Since 
this problem only occurs with versions after at least 0.3.8.1.

Also, there is nothing in the log suggesting problems.

 
 The things that you could try to do to check this are:
  * Setting conservative to true and length to 30. If you already tried this, 
 please let met know, I have not seen anything on this yet.

I just tried, it might lessen the number of 10-second delays, but 
doesn't get rid of them, unfortunately.


-- 
Frits Letteboer
Technisch Beheer
Stichting Radio Twenterand

I: http://radiotwenterand.nl
E: f.letteb...@radiotwenterand.nl

--
Come build with us! The BlackBerryreg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9#45;12, 2009. Register now#33;
http://p.sf.net/sfu/devconf
___
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users


Re: [Savonet-users] Fading / Silence issues after version 0.3.8.1

2009-10-01 Thread David Baelde
On Thu, Oct 1, 2009 at 6:41 PM, Frits f.letteb...@radiotwenterand.nl wrote:
 But this script ALSO has regular 10-second silence-issues on a lot of
 tracks. A guesstimation of about 2 in 3 tracks.

Thanks for testing that. It might be some delay in preparing tracks,
trying to read metadata in a funky format... (In which case the
conservative mode should increase the number of blanks, not decrease
them.)

Could you try with a single(somefile.mp3) instead of a playlist?

Thanks,
-- 
David

--
Come build with us! The BlackBerryreg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9#45;12, 2009. Register now#33;
http://p.sf.net/sfu/devconf
___
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users


Re: [Savonet-users] Fading / Silence issues after version 0.3.8.1

2009-10-01 Thread Romain Beauxis
Hi !

Le jeudi 1 octobre 2009 17:40:45, David Baelde a écrit :
 On Thu, Oct 1, 2009 at 6:41 PM, Frits f.letteb...@radiotwenterand.nl 
wrote:
  But this script ALSO has regular 10-second silence-issues on a lot of
  tracks. A guesstimation of about 2 in 3 tracks.
 
 Thanks for testing that. It might be some delay in preparing tracks,
 trying to read metadata in a funky format... (In which case the
 conservative mode should increase the number of blanks, not decrease
 them.)

I don't understand this.. :-)

 Could you try with a single(somefile.mp3) instead of a playlist?

Good idea !

Also, it should be interesting to have some loggs of the issue, setting it to 
a verbose level:
  set(log.level,5)

Another interesting possibility would be to check whether this works better 
with the default parameters for the crossfade, or with a smart_crossfade.

Another possible check is the conservative mode in cross. It is hardcoded to 
true in crossfade, but you should be able to define a new crossfade function 
and check whether this works better with it:

def crossfade(~start_next,~fade_in,~fade_out,s)
  s = fade.in(duration=fade_in,s)
  s = fade.out(duration=fade_out,s)
  fader = fun (a,b) - add(normalize=false,[b,a])
  cross(conservative=false,duration=start_next,fader,s)
end


Romain

--
Come build with us! The BlackBerryreg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9#45;12, 2009. Register now#33;
http://p.sf.net/sfu/devconf
___
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users


Re: [Savonet-users] Fading / Silence issues after version 0.3.8.1

2009-10-01 Thread David Baelde
On Fri, Oct 2, 2009 at 5:45 AM, Romain Beauxis to...@rastageeks.org wrote:
 Thanks for testing that. It might be some delay in preparing tracks,
 trying to read metadata in a funky format... (In which case the
 conservative mode should increase the number of blanks, not decrease
 them.)

 I don't understand this.. :-)

You're right, thank you: in conservative mode, the remaining time is
not counted as part of the estimated available data, so requests are
prepared more in advance, hence possibly less blank.
-- 
David

--
Come build with us! The BlackBerryreg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9#45;12, 2009. Register now#33;
http://p.sf.net/sfu/devconf
___
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users


Re: [Savonet-users] Fading / Silence issues after version 0.3.8.1

2009-09-30 Thread Frits Letteboer - St. Radio Twenterand
Romain Beauxis wrote:
 Le mardi 29 septembre 2009 03:34:28, Frits Letteboer - St. Radio Twenterand a 
 écrit :


 The fades from/to jingles and commercials still work as expected.

 I'm pretty sure I screwed up somewhere, but I can't find where. So I've 
 attached the script used in both cases.
 
 Thanks for the report !

Thanks for replying, again. ;)

 
 There can be various possible reasons for your issue. The first and immediate 
 that comes to my mind is the change in the default behaviour of request-based 
 sources. 
 
 Now, the new song request is triggered only 10 seconds before the previous 
 song ends. So if the requests and song processing takes too long, you might 
 experience this kind of issues.

All files are local and the request script returns almost instantly (not 
much processing done there).

 Please let us know whether it helps, otherwise we would try to find another 
 reason for your issue.

The problem seems to be the unused harbor input (live) in my script:

final = fallback(track_sensitive=false,[live,muziek,security])

When I leave it out

final = fallback(track_sensitive=false,[muziek,security])

all is fine.

However, I don't know if this the expected behaviour when really using 
harbor.

-- 
Frits Letteboer
Technisch Beheer
Stichting Radio Twenterand

I: http://radiotwenterand.nl
E: f.letteb...@radiotwenterand.nl

--
Come build with us! The BlackBerryreg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9#45;12, 2009. Register now#33;
http://p.sf.net/sfu/devconf
___
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users


Re: [Savonet-users] Fading / Silence issues after version 0.3.8.1

2009-09-30 Thread Romain Beauxis
Le mercredi 30 septembre 2009 17:49:54, Romain Beauxis a écrit :
 I am quite curious about your issue. Did you try to add
  conservative=true,  and also length=30. to your request-based sources
  ?
 
 If it still does not work with that, then I think it would worth a ticket
  with  script and logs and we should try to fix it.

Another remark reading your script. The delay operator was not present in 
3.8.1. Furthermore, in its current implementation, it might be subject of 
issues when used with crossfading.. 

Could you also check whether the bug disapear when you remove the delays, 
please ?


Romain

--
Come build with us! The BlackBerryreg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9#45;12, 2009. Register now#33;
http://p.sf.net/sfu/devconf
___
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users


[Savonet-users] Fading / Silence issues after version 0.3.8.1

2009-09-29 Thread Frits Letteboer - St. Radio Twenterand

Hi there,

After checking out the latest SVN version there seems to be some issues 
between regular tracks.


In the old version there's a smooth crossfade between regular tracks. In 
later / the latest version(s) this has changed to fade out - 10 seconds 
of silence - fade in to next song.


The fades from/to jingles and commercials still work as expected.

I'm pretty sure I screwed up somewhere, but I can't find where. So I've 
attached the script used in both cases.


A 16-second 'demonstration' is available at:

http://radiotwenterand.nl/~graver/rtrsilence.mp3

Again, thanks in advance for your time.

--
Frits Letteboer
Technisch Beheer
Stichting Radio Twenterand

I: http://radiotwenterand.nl
E: f.letteb...@radiotwenterand.nl
#!/usr/local/bin/liquidsoap.ok

# Log dir
set(server.telnet.bind_addr,127.0.0.1)
set(server.telnet.port,)
set(server.telnet,true)
set(log.file.path,/var/log/liq-radiotwenterand.log)
set(tag.encodings,[UTF-8,ISO-8859-1])

set(harbor.bind_addr,82.94.217.218)
set(harbor.port,)
set(harbor.password,)

live = input.harbor(live)

def jingle_meta(j)
  rewrite_metadata([(artist, Radio Twenterand),
(title,Koop bij onze adverteerders),
(comment,http://radiotwenterand.nl;)],j)
end


myplaylist = request.dynamic({request.create(get_process_output(/usr/bin/php 
-q /home/radiotwe/jukebox/includes/liquidshout.php))})

# Some jingles
jingles = 
playlist(reload=1,reload_mode=rounds,/home/radiotwe/muziek/Jingles/)
commercials = 
jingle_meta(playlist(reload=1,reload_mode=rounds,/home/radiotwe/muziek/Commercials/))
promotions = playlist(reload=3600, /home/radiotwe/muziek/Promo/)

# If something goes wrong, we'll play this
security = single(/home/radiotwe/muziek/mp3/[Jose Wolters]-[Radio Twenterand 
Lied].mp3)

radio = myplaylist

def doereclame(m)
commercials
end

def doejingle(m)
jingles
end

radio = on_track( fun (meta) -
system(/usr/local/bin/rtrmeta 
   ^quote(meta[title])^ 
   ^quote(meta[artist])^ 
   ^quote(meta[request_id])^ ),radio)

radio = nrj(radio)

reclame = delay(1800., jingles)
reclame = append(reclame,doereclame)

timed_promotions = delay(14400.,promotions)

muziek = fallback([timed_promotions, reclame, radio])

muziek = crossfade(start_next=1.,fade_out=0.5,fade_in=0.5,muziek)

final = fallback(track_sensitive=false,[live,muziek,security])

# Stream it out
output.icecast.mp3(
bitrate=128,
quality=2,
genre=Folk,
restart=true,
name=Radio Twenterand - Hoofdsponsor Goodpack Twente 
B.V.,
url=http://radiotwenterand.nl;,
public=true,
description = Het beste LEGALE piratenstation voor 
jong en oud,
host = 127.0.0.1,
port = 8000,
password = ,
mount = jukebox.mp3, 
final)

# Stream it out for mobile
output.icecast.mp3(
bitrate=56,
quality=2,
genre=Folk,
restart=true,
name=Radio Twenterand - Hoofdsponsor Goodpack Twente 
B.V.,
url=http://radiotwenterand.nl;,
public=true,
description = Het beste LEGALE piratenstation voor 
jong en oud,
host = 127.0.0.1,
port = 8000,
password = ,
mount = jukebox_56.mp3,
stereo = false,
final)
--
Come build with us! The BlackBerryreg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9#45;12, 2009. Register now#33;
http://p.sf.net/sfu/devconf___
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users


Re: [Savonet-users] Fading / Silence issues after version 0.3.8.1

2009-09-29 Thread Romain Beauxis
Le mardi 29 septembre 2009 03:34:28, Frits Letteboer - St. Radio Twenterand a 
écrit :
 Hi there,

Hi !

 After checking out the latest SVN version there seems to be some issues 
 between regular tracks.
 
 In the old version there's a smooth crossfade between regular tracks. In 
 later / the latest version(s) this has changed to fade out - 10 seconds 
 of silence - fade in to next song.
 
 The fades from/to jingles and commercials still work as expected.
 
 I'm pretty sure I screwed up somewhere, but I can't find where. So I've 
 attached the script used in both cases.

Thanks for the report !

There can be various possible reasons for your issue. The first and immediate 
that comes to my mind is the change in the default behaviour of request-based 
sources. 

Now, the new song request is triggered only 10 seconds before the previous 
song ends. So if the requests and song processing takes too long, you might 
experience this kind of issues.

What you can do to test this assumption, is to pass the option 
conservative=true to request.dynamic, but also playlist if needed.

Please let us know whether it helps, otherwise we would try to find another 
reason for your issue.


Romain

--
Come build with us! The BlackBerryreg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9#45;12, 2009. Register now#33;
http://p.sf.net/sfu/devconf
___
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users