RaBe Liquidsoap Distribution for CentOS 7 (RaBe-LSD)
Clone or download
Latest commit ca5e720 Dec 26, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.travis Fedora support Dec 23, 2018
.travis.yml Fedora support Dec 23, 2018
LICENSE.md Cleanup repo and specfile Jun 9, 2018
README.md 📝 Add aac installation example Sep 14, 2018
liquidsoap.spec ⬆️ bump to 1.3.5 Dec 25, 2018
liquidsoap@.service Add --parent so ExecStartPre does not get logged as failure Sep 10, 2016

README.md

CentOS 7 RPM Specfile for liquidsoap

This repository contains the specfile for liquidsoap which is part of the RaBe liquidsoap distribution.

It depends on libmad and lame from the nux dextop repo.

Install

yum install epel-release

curl -o /etc/yum.repos.d/liquidsoap.repo \
     http://download.opensuse.org/repositories/home:/radiorabe:/liquidsoap/CentOS_7/home:radiorabe:liquidsoap.repo

yum install liquidsoap

You might have to install some dependencies explicitly to get all the parts you need to work. This is due to the fact that liquidsoap does some runtime detection and to allow for unbloated installs where advanced features are not needed.

Usage

You can run liquidsoap directly on the command line to verify it is working but will want to run scripts automatically as user liquidsoap at some stage.

The RaBe liquidsoap distribution comes bundles with an instantiable systemd service file that takes over the job of upstreams upstart config. While this does not automatically loop over /etc/liquidsoap and start all the contained scripts, configuring it is rather easy.

# enable and start the bundled example script
cp /etc/liquidsoap/radio.liq.example /etc/liquidsoap/radio.liq
systemctl enable liquidsoap@radio
systemctl start liquidsoap@radio

# add an addtional script and start it
echo "out(sine())" > /etc/liquidsoap/sine-example.liq
systemctl enable liquidsoap@sine-example
systemctl start liquidsoap@sine-example

Allow ALSA access for liquidsoap

If your liquidsoap script needs to access ALSA you need to make sure the liquidsoap user is allowed to access the subsytem.

usermod -G audio -a liquidsoap

You could also create the liquidsoap user beforehand and ensure that it has access before installing liquidsoap.

Enable fdk-aac

If you want to enable %fdkaac output you will need to provide a library that can be loaded dynamically.

The following example uses fdk-aac from the Nux Dextop Repos but the alternative packages available from RPMFusion should work as well.

yum install http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm

yum install ocaml-fdkaac

After installing the dynamic lib you can check the output of liquidsoap -v 'out(sine())' for the following line.

2018/09/14 16:46:50 [dynamic.loader:3] Loaded dynamic fdkaac encoder from /usr/lib64/ocaml/fdkaac