Closed CoyoTea closed 7 years ago
There's a syntax error in the configuration file. The pipe = "stuff"
is incorrect. It should read something like this (not checked on a device):
// Parameters for the "pipe" audio back end, a back end that directs raw CD-style audio output to a pipe. No interpolation is done.
pipe =
{
name = "/srv/music/airplay"; // there is no default pipe name for the output
};
Thanks for clearing that up. Must have mixed things up. The code below seems to do it in terms of syntax.
// Parameters for the "pipe" audio back end, a back end that directs raw CD-style audio output to a pipe. No interpolation is done.
pipe =
{
name = "/srv/pipe"; // there is no default pipe name for the output
};
But shairport-sync stil spits out this error in the syslog
Aug 22 08:59:35 onion-pi shairport-sync[2983]: Could not create output pipe "/srv/pipe"
I guess permissions, but I got no clue how to fix that.
Okay, the permissions thing: you need to figure out what user and group shairport-sync
will be running under, and then make sure that the directory /srv
exists and has permissions that allow that user and group to write to it.
If you are starting Shairport Sync using the standard script installed by the # make install
step, then the user and group will both be named shairport-sync
. You'll probably have to be superuser to create the /srv
directory, and you can then set its owner and group using the $ chown
command line command. I suggest you look it up – it's outside the scope of this forum.
Thanks for the hint. Creating folder and adjusting permissions with
sudo chmod -R 777 /srv/music
with pipe path to /srv/music/pipe did it.
Problem solved. Now pipe to forked-daapd works. Thx for your work.
Cool – I corrected my suggestion in case it misleads future reader...
Hi, I have shairport-sync & forked-daapd setup on a raspi3. Both work fine in normal config as services. I want to pipe incoming audio to forked-daapd to use multiple airplay speakers simultaniously. Forked-daapd is configured and paired with remote-app. Shairport-Sync has some weird issue once I edit the config to use output_backend = "pipe"; and edit the pipe path to pipe = "/srv/music/airplay"; I 'sudo systemctl restart shairport-sync' with this output
So I check /var/log/syslog and it outputs
Line 135 of config file is the { below pipe
It might not even be an issue but merely blindness and stupidity on my side, but i couldnt find anything concerning this issue. Thx for your work. Hope this helps