Skip to content

Commit

Permalink
FFMPEG + ALSA documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
theo-chassaigne committed Sep 16, 2016
1 parent 3c73735 commit 34f335a
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
23 changes: 23 additions & 0 deletions doc/2-PI.rst
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,27 @@ For the Boîtes Électriques Server's executable to be able to run correctly, yo
Then go to: ``9 Advanced Options`` -> ``A5 SPI`` -> ``<Yes>`` -> ``<Ok>`` -> ``<Finish>``

Warning : this must be done before executing the server (``be-server``), else it won't run.

FFMPEG
~~~~~~

To read the songs, the ``ffmpeg`` program is required. However, it is not directly available from the official Raspbian repo.

Fortunately, the deb-multimedia repo offers a Raspberry Pi-compatible package for ``fmpeg``. So, you must add this repo to your ``/etc/apt/sources.list``, by insering the fllowing line in the file::

deb http://www.deb-multimedia.org jessie main non-free

Then, update your packages cache, import the repo's GPG key and install ``ffmpeg``::

# apt-get update && apt-get install deb-multimedia-keyring
# apt-get install ffmpeg

ALSA
~~~~

To be able to play the songs correctly, ALSA needs a bit of configuration. To do so, just open the ``/etc/asound.conf`` file and replace its content with this :

defaults.ctl.!card 1;

Wifi bridge setup
-----------------
Expand Down Expand Up @@ -128,6 +149,8 @@ And enable it with ``systemctl``::

# systemctl enable dnsmasq

Now, you are ready to compile the server !

Bugs
----

Expand Down
1 change: 1 addition & 0 deletions share/asound.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
defaults.ctl.!card 1;

0 comments on commit 34f335a

Please sign in to comment.