MichaIng / DietPi

Lightweight justice for your single-board computer!
https://dietpi.com/
GNU General Public License v2.0
4.89k stars 498 forks source link

DietPi-Software | Shairport-Sync, update to latest version + metadata #962

Closed Fourdee closed 7 years ago

Fourdee commented 7 years ago

https://twitter.com/ta11/status/864404217515175936

Re-compile += --with-metadata:

Fourdee commented 7 years ago

metadata = { enabled = "yes"; // set this to yes to get Shairport Sync to solicit metadata from the source and to pass it on via a pipe include_cover_art = "no"; // set to "yes" to get Shairport Sync to solicit cover art from the source and pass it via the pipe. You must also set "enabled" to "yes". pipe_name = "/tmp/shairport-sync-metadata"; pipe_timeout = 5000; // wait for this number of milliseconds for a blocked pipe to unblock before giving up socket_address = "226.0.0.1"; // if set to a host name or IP address, UDP packets containing metadata will be sent to this address. May be a multicast address. "socket-port" must be non-zero and "enabled" must be set to yes" socket_port = 5555; // if socket_address is set, the port to send UDP packets to socket_msglength = 65000; // the maximum packet size for any UDP metadata. This will be clipped to be between 500 or 65000. The default is 500. }; EOF

root@DietPi:~# cat /tmp/shairport-sync-metadata cat: /tmp/shairport-sync-metadata: No such file or directory


~~Maybe it needs to be compiled with pipe option? ```--with-pipe```~~

configuration file name "/usr/local/etc/shairport-sync.conf" resolves to "/usr/local/etc/shairport-sync.conf".


🈯️ ```/usr/local/etc/shairport-sync.conf``` is correct config location.

shairport-sync -vv Looking for the configuration file "/usr/local/etc/shairport-sync.conf". Looking for configuration file at full path "/usr/local/etc/shairport-sync.conf" Output device name is "default". The processor is running little-endian. Version: "3.0.2-OpenSSL-Avahi-ALSA-soxr-metadata-sysconfdir:/usr/local/etc" statistics_requester status is 0. daemon status is 0. rtsp listening port is 5000. udp base port is 6001. udp port range is 100. Shairport Sync player name is "DietPi". Audio Output name is "(null)". on-start action is "(null)". on-stop action is "(null)". wait-cmd status is 0. mdns backend "(null)". userSuppliedLatency is 0. AirPlayLatency is -1. iTunesLatency is -1. forkedDaapdLatency is -1. stuffing option is "1" (0-basic, 1-soxr). resync time is 0.050000 seconds. allow a session to be interrupted: 0. busy timeout time is 120. drift tolerance is 0.001995 seconds. password is "(null)". ignore_volume_control is 0. volume_max_db is not set playback_mode is 0 (0-stereo, 1-mono, 1-reverse_stereo, 2-both_left, 3-both_right). disable_synchronization is 0. use_mmap_if_available is 1. output_rate is 44100. output_format is 3 (0-unknown, 1-S8, 2-U8, 3-S16, 4-S24, 5-S24_3LE, 6-S24_3BE, 7-S32). audio backend desired buffer length is 0.150000 seconds. audio backend latency offset is 0.000000 seconds. volume range in dB (zero means use the range specified by the mixer): 0. zeroconf regtype is "_raop._tcp". decoders_supported field is 1. use_apple_decoder is 0. no special mdns service interface was requested. configuration file name "/usr/local/etc/shairport-sync.conf" resolves to "/usr/local/etc/shairport-sync.conf". metdata enabled is 1. metadata pipename is "/tmp/shairport-sync-metadata". metadata socket address is "226.0.0.1" port 5555. metadata socket packet size is "65000". get-coverart is 0. Successful Startup avahi: avahi_register. avahi: received AVAHI_CLIENT_CONNECTING


- 🈯️ 

root@DietPi-IQaudioZeroW:~# ls -lha /tmp/shairport-sync-metadata prw-r--r-- 1 shairport-sync shairport-sync 0 May 16 14:06 /tmp/shairport-sync-metadata

Fourdee commented 7 years ago

Completed.