Airtime streaming silent on mornings
  • Hi every one!
    I am tech leader of Polish Youth Radio http://bieszczady.fm/. We are using Airtime with fews custom modification which are mainly oriented in live streaming (is there any solution of live streaming provided by Airtime?).

    Now (after problems with 100% CPU usage because of .oga in 1.8 ) we have one main problem:
    Airtime streaming silent on morning hours (I don't know exactly what hours but I publish logs http://play.bieszczady.fm/inne/pypo/)
    Sometimes during lives show it "likes" to take down. That was the day before yesterday (28.10.11) please check logs.

    But before you will try help us solve that problem I would like to explain how we have set our tech infrastructure.

    There are two computers:
    - server (CPU = Intel(R) Atom(TM) CPU D525 @ 1.80GHz
    Total RAM = 2043224 kB
    Free.avg RAM = 54024 kB
    OS = Ubuntu 11.04 Intel 80386)
    Airtime 1.9.3 on board.
    - studio computer which one we are using to record shows or make shows live

    How do we do lives?
    There is 3 main streams on Icecast side management by liquadsoap from ls_script.liq http://play.bieszczady.fm/inne/skrypty/ :
    1. live - client stream
    2. airtime.mp3 - airtime stream including recorded shows and random music (here can be problem with silent on the mornings)Please check 42 - 50 lines of code ls_script.liq
    3. studio.mp3 - live show stream. We are using Internet DJ Console streamer very good and easy! Before we were using Darkice with Mixxx but that set does'nt support metatags.

    When somebody making live show, he need to log in http://play.bieszczady.fm/stream.php and activate script by button on website (some php, bash code)
    <?php
    session_start();
    if(isset($_SESSION['zalogowany']))
    {
    shell_exec('/home/server/onair.sh');
    ?>
    <script language="javascript" type="text/javascript">
         
             window.close(); 
         
     </script>
    <?php
    }
    else
    echo "NIE JESTES ZALOGOWANY => NIE MOZNA WYKONAC OPERACJI";
    ?>

    Than liqudsoap feedback studio.mp3 stream to live stream.
    IT'S WORKING! But sometimes unstuck Sad I don't know why, because a don't understand logs.
  • 17 Comments sorted by
  • Vote Up0Vote Down Jakub GórnickiJakub Górnicki
    Posts: 134Member, Administrator, Sourcefabric Team
    Hey @krzakx!

    (so, now I know your real name Smile

    First of all my big congratulations for trying so much on your own and getting so far. Especially the way you try to make livestreams seems very interesting. I pointed your message to our developers so stay tuned Smile

    In the meantime could I ask you to write a little bit more about Bieszczady.FM here: http://forum.sourcefabric.org/index.php/f/16/ - we would love to know more!

    Cheers,
    Jakub
  • Vote Up0Vote Down Daniel JamesDaniel James
    Posts: 844Member, Sourcefabric Team
    Hi Krzakx, regarding automatic live switch-over from IDJC, this is not yet built into Airtime, but you can do it at the Icecast level using the method shown here: http://en.flossmanuals.net/airtime/stream-handover/

    Cheers!

    Daniel
  • Hi,


    I've looked at the logs, but it would help if I could see your exact Airtime schedule (Even more helpful would be an exact show that failed). Also I would highly recommend upgrading to 1.9.4, a lot of problems were resolved between these versions.
    Airtime Pro Hosting: http://airtime.pro
  • Hi!
    Thanks for quick replays.

    @Daniel
    We have tested this way but Icecast doesn't support sensitive switch between mount-points (it is horrible for listeners) - that is why we decided to do this on liquadsoap side, you can see how we do that here http://play.bieszczady.fm/inne/skrypty/ls_lib.liq

    @Martin
    Please tell me what way is best to upgrade to 1.9.4 if I installed 1.9.3 manually from deb package?
    In next time I will notice exact show that failed.

    Thanks alot!
  • Vote Up0Vote Down Daniel JamesDaniel James
    Posts: 844Member, Sourcefabric Team
    Hi Krzakx,

    It is true that Icecast fallback mounts do not support crossfades, you need to have tight timing to avoid sound clashes.

    There was no official 1.9.3 .deb package so I guess you must have installed one of our test packages from http://apt.sourcefabric.org/misc/

    In that case, the best thing to do is to set up the repository as shown in http://en.flossmanuals.net/airtime/automated-installation/ and install the official 1.9.4 package that way. Please make sure you have a backup of your database, media files and any modified Airtime files (including those in /etc/airtime/ ) before attempting the upgrade.

    You will then have to re-apply your modifications manually, but I would suggest running Airtime 1.9.4 without modifications first, to see if you can reproduce the silent show problem.

    Let us know how you get on!

    Daniel
  • How remove the actual version ? 
    With apt-get remove airtime? Tha it is?
  • Vote Up0Vote Down Andrey PodshivalovAndrey Podshivalov
    Posts: 1,526Member, Administrator, Sourcefabric Team
    the best method is: apt-get autoremove --purge airtime (in case deb installation of course)
  • WOW!
    I do not understand...
    server@server:~$ sudo apt-get autoremove --purge airtime
    Czytanie list pakietów... Gotowe
    Budowanie drzewa zależności       
    Odczyt informacji o stanie... Gotowe
    E: Nie udało się odnaleźć pakietu airtime / Could not find package Airtime
    server@server:~$ 

    What is going on? We have the airtime! instaled from http://apt.sourcefabric.org/misc/ that was 1.9.3 version

  • Vote Up0Vote Down Albert FRAlbert FR
    Posts: 1,978Member, Airtime Moderator
    perhaps you have do that before ;)

    now you can do :

    sudo apt-get update
    sudo apt-get dist-upgrade
    sudo apt-get install airtime

    :D

  • eee.... no.
    The airtime is still installed and works well! Please check http://play.bieszczady.fm

    What doing sudo apt-get dist-upgrade ?
  • Vote Up0Vote Down Andrey PodshivalovAndrey Podshivalov
    Posts: 1,526Member, Administrator, Sourcefabric Team
    apt-get dist-upgrade should be used for distribution upgrade
    usually should be used apt-get upgrade
  • Vote Up0Vote Down Albert FRAlbert FR
    Posts: 1,978Member, Airtime Moderator
    dist-upgrade update everything
    not upgrade
  • Any way... How now I can uninstall airtime? 
    I can adduser for you on my server, and you will see.It is good idea?
    Post edited by krzakx at 2011-11-16 06:38:34
  • Vote Up0Vote Down Albert FRAlbert FR
    Posts: 1,978Member, Airtime Moderator
    how did you install the last version ?

    with apt-get install airtime
    or apt-get install easy-install-airtime
    or manually ?

    I can help if you want ;)

  • How I wrote up there
    We have the airtime! instaled from http://apt.sourcefabric.org/misc/ that was 1.9.3 version

    From deb manually.
  • Sorry friends!
    I remeber that I compiled airtime manualy! 
    Ajajaja....here in F.A.Q is something about uninstalling airtime.

    But I do not get it. Maybe is old? I do not have airtime directory in home dir.
    To uninstall just type this:cd ~/airtime/install
    sudo php airtime-uninstall.php asd
    Post edited by krzakx at 2011-11-16 13:52:32
  • try

    cd ~/airtime/install_minimal && ./airtime-uninstall
    Airtime Pro Hosting: http://airtime.pro