Inhaltsverzeichnis

<html><style> div.dokuwiki h2,div.dokuwiki h3{

clear:both

} div.dokuwiki div.page{

max-width:72em;
margin-left:auto;
margin-right:auto;

} </style></html>

Schedule switching between audio streams using Liquidsoap and optionally Google calendar

The scheduler can be used to dynamically switch between multiple audio input streams. Its designed to run without any user interaction except synchronization with an external calendar like Google's.

Audio processing is done using french-army knife for multimedia streaming: liquidsoap.

Download

Packages for Ubuntu can be found here

Configuration

Configuration

Packages

PACKAGE stream-schedule-gsync: Each google calendar event title contains either the source stream URL or an pre-defined keyword. Use syncStreamSchedule.pl to write a list of stream events to a CSV file. The output can be used by stream-schedule to switch between defined streams.

Configuration is to be done at /etc/stream-schedule/gsync.conf Place the google calendar url, your google service account and the path of your service account key at „sources“ section. Place the output file at „target“ section.

PACKAGE stream-schedule-liquidsoap: define a liquidsoap daemon with 2 predefined stations that will be used for fallback configuration. audio output, file archive and stream output can be defined at /etc/stream-config/liquidsoap/start.conf defines remote control via socket, that is used to set the streams and get RMS values

PACKAGE stream-scheduler: schedule the events from the gsync.conf output and make liquidsoap starting them. Creates RMS logs and plots at configured directory.

PACKAGE stream-schedule-webapp: web gui to see the current status of the scheduler and the liquidsoap instance. uses apache web server.

Overview

There are different components. Web interface and Google Synchronization are optional.

Scheduler Web Interface

Log Analysis

Google Calendar Synchronization

Scheduler

Liquidsoap

References

The current version is in used by Piradio since May 2011 to switch between streams provided by free radio stations at Berlin (Radio Ansage, Freies Radio Potsdam, Collabo-Radio and Pi Radio) and forward the result stream to the transmitter station of 88vier at 88.4 FM Berlin. A previous version was used to switch between 2 radio stations (Reboot.fm and Pi Radio) at Radio Einheit in September 2010.

Licence

This scheduler is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program comes with ABSOLUTELY NO WARRANTY.