Raspberry Pi as UPnP renderer: Unterschied zwischen den Versionen
Ingo (Diskussion | Beiträge) (create page) |
Ingo (Diskussion | Beiträge) (add description for starting gmediarender) |
||
(2 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
Zeile 1: | Zeile 1: | ||
− | Date: 2017-10- | + | Date: 2017-10-25<br/> |
+ | lsb_release Description: Raspbian GNU/Linux 9.1 (stretch) | ||
+ | |||
I setup a multiroom music playing environment. For this I use Raspberry Pis for renderer in a room. Here I found a [https://joachim-wilke.de/blog/2016/07/10/UPNP-Renderer-auf-dem-Raspberry-Pi/ somewhat outdated howto] but it points me in the right direction. Here is howto install it. | I setup a multiroom music playing environment. For this I use Raspberry Pis for renderer in a room. Here I found a [https://joachim-wilke.de/blog/2016/07/10/UPNP-Renderer-auf-dem-Raspberry-Pi/ somewhat outdated howto] but it points me in the right direction. Here is howto install it. | ||
+ | |||
+ | At least the default audio output should do. You can download this small file [http://hoeft-online.de/working.wav working.wav] and test it with | ||
+ | '''pi@raspberrypi:~ $''' aplay working.wav | ||
+ | '''pi@raspberrypi:~ $''' | ||
We use [https://github.com/hzeller/gmrender-resurrect gmrender-resurrect] which is available in the repository. Install it on a RasPi with needed plugins. | We use [https://github.com/hzeller/gmrender-resurrect gmrender-resurrect] which is available in the repository. Install it on a RasPi with needed plugins. | ||
Zeile 11: | Zeile 17: | ||
'''pi@raspberrypi:~ $''' /usr/bin/gmediarender -f Test -u 42 --logfile /dev/stdout | '''pi@raspberrypi:~ $''' /usr/bin/gmediarender -f Test -u 42 --logfile /dev/stdout | ||
− | Configure in /etc/default/ | + | Configure in <code>/etc/default/gmediarender</code>, set <code>ENABLED=1</code> and maybe your <code>UPNP_DEVICE_NAME</code>. Don't use "special" characters like umlaut. Startup will quit with an error message. Seems gmediarender still not understand UTF-8 :-( |
Start gmediarender as service: | Start gmediarender as service: | ||
'''pi@raspberrypi:~ $''' sudo systemctl enable gmediarender.service | '''pi@raspberrypi:~ $''' sudo systemctl enable gmediarender.service | ||
'''pi@raspberrypi:~ $''' sudo systemctl start gmediarender.service | '''pi@raspberrypi:~ $''' sudo systemctl start gmediarender.service | ||
− | '''pi@raspberrypi:~ $''' | + | '''pi@raspberrypi:~ $''' sudo systemctl status gmediarender.service |
+ | The output of the last command should contain a line like:<br/> | ||
+ | <code> Active: active (running) since Wed 2017-10-25 14:17:09 UTC; 2s ago</code> | ||
[[Category:Raspberry Pi]] | [[Category:Raspberry Pi]] |
Aktuelle Version vom 25. Oktober 2017, 16:25 Uhr
Date: 2017-10-25
lsb_release Description: Raspbian GNU/Linux 9.1 (stretch)
I setup a multiroom music playing environment. For this I use Raspberry Pis for renderer in a room. Here I found a somewhat outdated howto but it points me in the right direction. Here is howto install it.
At least the default audio output should do. You can download this small file working.wav and test it with
pi@raspberrypi:~ $ aplay working.wav pi@raspberrypi:~ $
We use gmrender-resurrect which is available in the repository. Install it on a RasPi with needed plugins.
pi@raspberrypi:~ $ sudo apt install gmediarender gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-ugly gstreamer1.0-alsa pi@raspberrypi:~ $
Test installation with
pi@raspberrypi:~ $ /usr/bin/gmediarender -f Test -u 42 --logfile /dev/stdout
Configure in /etc/default/gmediarender
, set ENABLED=1
and maybe your UPNP_DEVICE_NAME
. Don't use "special" characters like umlaut. Startup will quit with an error message. Seems gmediarender still not understand UTF-8 :-(
Start gmediarender as service:
pi@raspberrypi:~ $ sudo systemctl enable gmediarender.service pi@raspberrypi:~ $ sudo systemctl start gmediarender.service pi@raspberrypi:~ $ sudo systemctl status gmediarender.service
The output of the last command should contain a line like:
Active: active (running) since Wed 2017-10-25 14:17:09 UTC; 2s ago