Coder Social home page Coder Social logo

itanswers / centos-rpm-liquidsoap Goto Github PK

View Code? Open in Web Editor NEW

This project forked from radiorabe/centos-rpm-liquidsoap

0.0 1.0 0.0 55 KB

RaBe Liquidsoap Distribution for CentOS 7 (RaBe-LSD)

Home Page: https://build.opensuse.org/project/show/home:radiorabe:liquidsoap

License: GNU General Public License v3.0

Shell 100.00%

centos-rpm-liquidsoap's Introduction

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

centos-rpm-liquidsoap's People

Contributors

hairmare avatar paraenggu avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.