CrossFade not happening

  • Hi there,

    In Preferences I've set Default Fade to

    00:00:04.000000

    and I can see it noted as Fade out/in when I click on the box with the crossed arrows between songs in playlists.

    Shouldn't my setting mean, that 4 seconds before a song stops, the next one is blended in?

    Currently, songs are playing from beginning to end, even with a gap, so totally regardless of my fade setting.

    For me, crossfading is a license requirement.
    Airtime does provide this, right?
    How is it done then?
  • 16 Comments sorted by
  • I have the same issue. Regardless of the settings I cannot get the fade
    function to work.

    - Chris Weaver

  • I've looked into some liquidsoap pages... crossfading is a supported function.

    Anyone any ideas why this should fail in Airtime then?

  • Hi Thomas,

    What kind of file is it? OGG or MP3?
    Airtime Pro Hosting: http://airtime.pro
  • This is the second time we're hearing about this issue (first was from Chris Weaver). I'll do some digging this weekend.

    http://dev.sourcefabric.org/browse/CC-3003
    Airtime Pro Hosting: http://airtime.pro
  • Hi Thomas,

    Fading is indeed working.

    I just read over your first post more carefully. What you are asking for is a crossfade, that setting affects only the fade out/in.

    Currently we don't support this, although you could modify the Airtime Liquidsoap script to do this if you are willing to get your hands dirty. We also provide services for implementing features immediately if you are interested.

    I should note this feature will almost definitely be added in the future, but we are very busy working on other things at the moment.
    Airtime Pro Hosting: http://airtime.pro
  • Quote:
    Re: CrossFade not happening
    Sat, 29 October 2011 02:28
    Martin Konecny

    Hi Thomas,

    What kind of file is it? OGG or MP3?

    I'm only streaming mp3 for now.

    ::
  • Martin Konecny wrote on Sat, 29 October 2011 04:08
    Hi Thomas,

    Fading is indeed working.

    I just read over your first post more carefully. What you are asking for is a crossfade, that setting affects only the fade out/in.

    Currently we don't support this, although you could modify the Airtime Liquidsoap script to do this if you are willing to get your hands dirty. We also provide services for implementing features immediately if you are interested.

    I should note this feature will almost definitely be added in the future, but we are very busy working on other things at the moment.


    Thanks for checking back...

    Yep, might well spend some time on pickung up liquidsoap commands - I quite like the idea of having command line options.

    Had to take a break from Airtime since its media-monitor (I think) spawned thousands of defunct processes which brought my server down.

    ::
  • Are you referring to this post?

    http://forum.sourcefabric.org/index.php/mv/msg/4069/13263/

    If so, we're working on it...
    Airtime Pro Hosting: http://airtime.pro
  • Hi Martin,

    Nope, more like this one:
    http://forum.sourcefabric.org/index.php/m/13290/?srch=maxlif etime#msg_13290

    It's difficult for me to prove what the cause was so I hadn't posted it...

    I found something similar here:
    fuser forking uncontrollably in cron job
    http://ubuntuforums.org/showthread.php?p=11359503

    My mp3s are mounted from a windows usb drive...
    that may well play a role.

    When it happens, not even a reboot helps...
    All of a sudden thousands of defuncts, until the system crashed!
    It's really hard to fix.
    I started unmounting drives and uninstalling Airtime plus all its dependencies.
    Simply remounting drives wouldn't stop it from happening again.
    I had to mount the drives elsewhere before putting them back in their original place.
    This seemed to have some kind of flush effect.

    I know I'm not making much sense, I was just glad I got the system working again.
    I'd need to isolate Airtime on a less important system to investigate, and provide more details.
  • Hi Thomas,

    I had a similar problem a few days ago when I had incorrectly configured monit for monitoring the Airtime services. Can you try disabling monit and then report back if the issue persists?

    sudo service monit stop
    Airtime Pro Hosting: http://airtime.pro
  • Hi Martin,

    Thanks for that command, I had to apply a couple more to clean things up:
    sudo service monit stop
    rm -rf /var/lib/php5/*
    ps -ef | grep defunct | grep -v grep | awk '{print $2}' | xargs kill -9


    So ... what now? Probably not good to leave it stopped right?

    Regards
    Post edited by Thomas Hackett at 2011-11-19 15:22:06
  • Are you running Ubuntu Oneiric by any chance? I had this problem fuser forking uncontrollably problem on Oneiric, and one of our co-workers found this thread:

    Airtime Pro Hosting: http://airtime.pro
  • Vote Up0Vote Down Albert FRAlbert FR
    Posts: 1,978Member, Airtime Moderator
    Hi Martin !
    Another question ;)
    on liquidsoap 1.0.0 a "new" fade is using :
    smartcrossfade()
    it is perhaps a good thing to integrate in the next versions
  • Thanks, hopefully we will have real crossfade support soon :)
    Airtime Pro Hosting: http://airtime.pro
  • Hi Martin,

    Generally I use Squeeze more than Ubuntu. The fork thing happened on a dist-upgraded version of Aptosid. It has the following in /etc/cron.d/php5


    # Look for and purge old sessions every 30 minutes
    09,39 * * * * root [ -x /usr/lib/php5/maxlifetime ] && [ -d /var/lib/php5 ] && find /var/lib/php5/ -depth -mindepth 1 -maxdepth 1 -type f -cmin +$(/usr/lib/php5/maxlifetime) ! -execdir fuser -s {} 2>/dev/null \; -delete

  • Martin,

    Regarding cross-fading, I'll get my hands dirty in Liquidsoap if pointed in the right direction.  Any suggestions?  BTW, I'm on 2.0.0.4

    Thanks,
    Jim