Two audio streams from one media library
  • Hi, folks.

    In my project I need to generate two (or more in advance) different audio streams using mediafiles from united library. The simple solution - to use airtime for media file uploading and playlists' generation and running an instance of liquidsoap for each of them. Can you give me an advice - how to do it easier?
  • 4 Comments sorted by
  • Vote Up0Vote Down Andrey PodshivalovAndrey Podshivalov
    Posts: 1,526Member, Administrator, Sourcefabric Team
    hi,

    well, the main problem is you need common storage but different calendar. It's possible (theoretically).
    You need:
    - two different servers (dedicated or vps doesn't matter)
    - install airtime on both servers
    - make nsf exportable folder airtime/files on first server
    - mount on second that folder (replace existing airtime/files on second)
    - on the second postgres server replace table cc_files with view based on dblink like
    CREATE VIEW cc_files AS
        SELECT * FROM dblink(dbname=airtime port=5432 
                host=firstserver user=airtime password=airtime',
    'SELECT *, pop1980 FROM cc_files');

    also you need to configure postgres on first server to allow connect from second server.

  • Although Andrey's advice is a good start, I think there are still a lot of other problems to overcome. If we receive enough requests for this, it will be something we will consider supporting in the future.
    Airtime Pro Hosting: http://airtime.pro
  • Hi!

    Thanks for answers.
    I'd decided to use just my own liquidsoap script with interaction via telnet commands.
    Here is a link to a mail-list. Maybe, it will be interesting for you:
    http://sourceforge.net/mailarchive/message.php?msg_id=271839 85
  • Thanks Boris, I was following that on the mailing list, good to learn about undocumented features, dynamic sources should be very useful to us in the future Smile
    Airtime Pro Hosting: http://airtime.pro