Difference between revisions of "SoundSetup"

From TAMI
Jump to navigationJump to search
Line 12: Line 12:
  
 
notice FTP and MPD are only available locally<br>
 
notice FTP and MPD are only available locally<br>
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)
+
 
 +
==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)
 +
 
 +
==restart==
 +
if things go bad, like meeep restarted or something you need to <br>
 +
login to meeep
 +
ssh meeep
 +
mount ftp
 +
curlftpfs mail.lan /mnt/ftp/ -o user=anonymous
 +
run mpd
 +
mpd
  
 
= pulseaudio =
 
= pulseaudio =

Revision as of 15:57, 13 February 2014

meeep

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

MPD & 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

 ftp://anonymous@mail.local/_mp3

url

 http://meeep/relax/#

notice FTP and MPD are only available locally

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)

restart

if things go bad, like meeep restarted or something you need to
login to meeep

ssh meeep

mount ftp

curlftpfs mail.lan /mnt/ftp/ -o user=anonymous

run mpd

mpd

pulseaudio

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

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 > http://212.29.254.129:7075 
-WFMU >

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@10.81.2.116 -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
        Properties:
                application.name = "Simple client (TCP/IP client from 10.81.2.189:54524)"
                simple-protocol.peer = "TCP/IP client from 10.81.2.189:54524"
                module-stream-restore.id = "sink-input-by-application-name:Simple client (TCP/IP client from 10.81.2.189:54524)"
  • pactl set-sink-input-volume <sink-input-number> [0.0-1.0]

see also

Network