Difference between revisions of "SoundSetup"

Jump to navigationJump to search
Line 3: Line 3:
Its official ip is
Its official ip is

= MPD & Pulseaudio & RELAXX =
there is a [http://sourceforge.net/projects/relaxx/ front end for Music Player Daemon] (MPD) running on meeep, it is connected to the mp3 directory on TAMI FTP.  
there is a [http://sourceforge.net/projects/relaxx/ front end for Music Player Daemon] (MPD) running on meeep, it is connected to the mp3 directory on TAMI FTP.  

Line 11: Line 11:

notice FTP and MPD are only available locally<br>
notice FTP and MPD are only available locally, but pulseaudio is available from afar, i.e. ''PULSE_SERVER=meeep pavucontrol''<br>

==add media==
==add media==

Revision as of 23:51, 24 February 2014


what is meeep ? it is a little eee near the coffee setup. Its official ip is

MPD & Pulseaudio & RELAXX

there is a front end for Music Player Daemon (MPD) running on meeep, it is connected to the mp3 directory on TAMI FTP.

add music via




notice FTP and MPD are only available locally, but pulseaudio is available from afar, i.e. PULSE_SERVER=meeep pavucontrol

add media

after you add media to ftp/_mp3 you need to refresh the relaxx DB - by pressing the config button on the top left (no pwd, user admin)

Meeep setup

This is tested to work after reboots. It now uses two systemd files: 1. mounting the ftp directory. This is done via a fstab entry and a systemd file. The systemd file is perhaps not required, but that means the mount needs to happen after network is available. I didn't test for that, if that works it would make it simpler a bit 2. mpd service. This starts pulseaudio too. After fighting to get a system wide pulseaudio that is run as root, and failing (I got it to work fine with native interface but mpd wouldn't successfully connect to it, even after adding pulse-access group. Gave up and used the auto-spawn method documented [


# cat mpd.service 
Description=Music Player Daemon
After=network.target sound.target mpd-mount-ftp.service dbus.socket
ExecStart=/usr/bin/mpd --no-daemon


dbus.socket is required for mpd to successfully launch pulseaudio, otherwise it is done too early and pulse fails (no further details..).

mpd-mount-ftp.service is required for /mnt/ftp


Description=Music Player Daemon
After=network.target sound.target
ExecStart=/usr/bin/curlftpfs -f anonymous@mail.lan /mnt/ftp -o allow_other


curlftpfs needs to be run as the user accessing the mounted directory by default. To allow for running as root, which again I turned to after failing to run this as mpd, you need '-o allow_other'. This partially does away with benefits of using fuse (User Space) but oh well, working music beats wins.


curlftpfs#anonymous:@mail.lan /mnt/ftp fuse ro,uid=45,gid=45,user,noauto,allow_other 0 0


This is not actually used, but is here as a reference only. uid/gid correspond to mpd, failed attempt to run as mpd.

Some pointers for systemd

After every file change you need to reload the daemon: systemd reload-daemon (see systemd docs on the homepage for why inotify was deemed a hard to implement correctly idea)


meeep runs pulseaudio (including ESD compatbility) and accepts clients from inside the TAMI network

meeep is an eee pc on the south part of the eastern wall (TODO - automatically generated small thumbnail of map from inhouse-mapping-markup and a model of KG45/106)

Windows client usage

Windows setup is a little complex, but not that complex (10 minutes tops), see WindowsSoundSetup

Direct ssh

You can of course also just SSH into the machine and tell it to stream from somewhere else: ssh tami@meeep mplayer -playlist http://wfmu.org/wfmu.pls //that's the default when you restart the audio service

You can use tmux to be able to drop the ssh connection without stopping the music.

Linux client usage

To use from linux:

pax11publish -e -S meeep

(this can also work through padevchooser and other mDNS/zeroconf/bonjour clients, as meeep broadcasts it's available services in that way)

Or manually tell pulse-clients on your local machine to use a pulse server in the network: export PULSE_SERVER=meeep mplayer -ao pulse ...

Or in one command, for bash:

PULSE_SERVER=meeep mplayer -playlist really_cool_radio_station.m3u

see pic > Zrxq2qJ.jpg

to run in background (so it doesnt stop if you logout)http://www.mplayerhq.hu/DOCS/HTML/en/faq.html#idp11063536

list of known streams - 
-106fm > 

Pulse audio help

You can control the audio of any stream individually with pavucontrol (yum/apt-get/yaourt install pavucontrol/actual-name-of-package-TODO)

Pulse Audio trick - play output of meeep on your computer

ssh root@ -C "parec --device alsa_output.pci-0000_00_1b.0.analog-stereo.monitor --format=s16le --rate=44100 --channels=2" | paplay --raw --channels=2 --rate=44100 --format=s16le

116 is now 117???

web interface

Ugly but usable web interface: http://meeep/cgi-bin/pulseaudio.html

Just two commands need to be run: (pulseaudio is running as server, so you cannot use pacmd)

  • pactl list short sink-inputs
1077    0       112     protocol-native.c       s16le 2ch 44100Hz
1167    0       225     protocol-native.c       s16le 2ch 44100Hz
1168    0       437     protocol-simple.c       s16le 2ch 44100Hz
  • pactl list sink-inputs
(just one example)
Sink Input #1168
        Driver: protocol-simple.c
        Owner Module: 16
        Client: 437
        Sink: 0
        Sample Specification: s16le 2ch 44100Hz
        Channel Map: front-left,front-right
        Format: pcm, format.sample_format = "\"s16le\""  format.rate = "44100"  format.channels = "2"
        Corked: no
        Mute: no
        Volume: 0: 100% 1: 100%
                0: 0.00 dB 1: 0.00 dB
                balance 0.00
        Buffer Latency: 340385 usec
        Sink Latency: 55359 usec
        Resample method: n/a
                application.name = "Simple client (TCP/IP client from"
                simple-protocol.peer = "TCP/IP client from"
                module-stream-restore.id = "sink-input-by-application-name:Simple client (TCP/IP client from"
  • pactl set-sink-input-volume <sink-input-number> [0.0-1.0]

see also