Stream Timeout?
  • Hi guys -

    During our integration and possibly until 2.1 comes out, we're using Airtime to run scheduled shows and the rest is handled bu a DJBot on the core stream server.

    When a scheduled event completes, Airtime (icecast or liquidsoap - which I haven't been able to confirm yet) seems to keep the stream open (stream title changes to "Airtime offline") for about 60 seconds or so. Is there a way to kill it quicker?


  • 12 Comments sorted by
  • It should be at /usr/lib/airtime/pypo/bin/liquidsoap_scripts/ls_script.liq
    Airtime Pro Hosting: http://airtime.pro
  • These are custom modifications right? I can't help much except to say that Liquidsoap is generating the Airtime-offline title, and so looks to be the culprit.
    Airtime Pro Hosting: http://airtime.pro
  • I wouldn't say custom as I've not modified anything on it other than the issue you and I worked on with the goofy password...

    I just need it to end streaming faster after a scheduled show is done so we don't get as much dead air.

  • Well, I don't see anything resembling an encoding timeout.   @-)
  • Anyone? Bueller? Anyone?    :D


  • Hey,

    I'm a little confused by your setup. How are you switching between Airtime and DJBot?
    Airtime Pro Hosting: http://airtime.pro
  • Our stream host provides a DJBot. It can be our primary source or when our stream is down it takes over.

    When a scheduled Airtime event finishes, we get 30-60 seconds of dead air until the bot takes over. 

    By contrast if I stream from our other software (SAM), the second I stop sending anything (voice or audio file) it takes over virtually immediately. 

    Airtime --->|  Stream Host/DJBot  ---> Listeners
    SAM ------>| ^
  • Hmm,

    When SAM turns off it probably disconnects and so the DJBot can easily detect that and start playing it's own playlists.

    On the other hand when Airtime stops playing audio, it still sends a very quiet random noise so that the mountpoint stays active.

    If you want Airtime to disconnect automatically, you should probably disable this. You'd have to manually change the liquidsoap script so that the following lines

    default = amplify(0.00001, noise())
    default = rewrite_metadata([("artist","Airtime"), ("title", "offline")],default)

    s = fallback(track_sensitive=false, [queue, default])

    are replaced with

    s=queue

    I haven't tested this so let us know how it works out.
    Airtime Pro Hosting: http://airtime.pro
  • Gotcha. Will look into it. 

    Further clarification -

    I can leave the SAM encoder connected to the stream and let a track playout and stop (nothing else in the local queue) and the DJBot kicks in. 

    While the DJBot is playing I can key the studio mic in SAM and the DJBot will cut to my voice and then right back within a second (tops two seconds).

    This is the type of behavior I'd like to see in Airtime (and I see at least a couple of these addressed in 2.2.0).
  • If that's how SAM works, then it might be enough to replace 

    default = amplify(0.00001, noise())

    with

    default = blank()

    Perhaps the random noise is confusing DJBot.
    Airtime Pro Hosting: http://airtime.pro
  • Martin - where is this script?

    I don't see anything with either of those declarations.


  • Hah! I didn't drill down deep enough. 

    Thanks!