Search found 207 matches

by skidoo
September 8th, 2020, 10:40 am
Forum: Developers' Corner
Topic: Socket monitoring, event loop and non blocking io
Replies: 1
Views: 1204

Socket monitoring, event loop and non blocking io

I dont get it. How to monitor a nonblockig socket in a correct MPD style? Idea is to implemenent a mixer plugin for Sonos. Plugin should discover and control Sonos devices: set MPD http server as Sones input, volume and mute control. My question is how to manage nonblocking tcp socket io with MPD. A...
by skidoo
September 1st, 2020, 1:16 pm
Forum: General Discussion
Topic: Banana Pi M1 troubles
Replies: 1
Views: 1083

Re: Banana Pi M1 troubles

Maybe usefull for someone. Installing Ambians firmware package for Banana Pi (and reboot) fixed choppy audio. Not able to get rid of hum and corrupted SD cards. My little adventure ended with a twelve year old fanless 1.3 GHz Celeron mainboard from scrapyard (Debian testing i386 - old board) and ext...
by skidoo
August 19th, 2020, 3:16 pm
Forum: Help
Topic: Fix intermittent stream interruptions with high CPU usage
Replies: 17
Views: 1352

Re: Fix intermittent stream interruptions with high CPU usage

As Max stated above try to disable resampling in mpd.conf.

Code: Select all

resampler {
	plugin "libsamplerate"
 	type "Fastest Sinc Interpolator"
	enabled "false"
}
by skidoo
July 31st, 2020, 1:16 pm
Forum: General Discussion
Topic: Banana Pi M1 troubles
Replies: 1
Views: 1083

Banana Pi M1 troubles

Not directly related to MPD but maybe someone has useful ideas. Hum: Banana Pi M1 with recent Armbian Buster is connected from internal audio to old late 70s Sony stereo (3 pin power connector). MPD from git uses ALSA output. When MPD plays no sound there is a quite loud hum. Hum goes away when MPD ...
by skidoo
July 16th, 2020, 6:09 pm
Forum: General Discussion
Topic: use mpd with shoutcast(1.9.8)
Replies: 16
Views: 2990

Re: use mpd with shoutcast(1.9.8)

ncmpc (local or remotehost) should to the trick. Or canata - on headless server of course remote only.
by skidoo
June 2nd, 2020, 12:34 pm
Forum: Help
Topic: How to use MPC
Replies: 2
Views: 546

Re: How to use MPC

Code: Select all

$ man mpc
or https://www.musicpd.org/doc/mpc/html/ but mpc is useful for scripts. Getting started with MPD use ncmpc for commandline or cantata for graphical user interface.
by skidoo
May 26th, 2020, 6:09 pm
Forum: Tips, Tricks, and Hacks
Topic: Whole house audio: Dante anyone?
Replies: 0
Views: 2502

Whole house audio: Dante anyone?

And now for something completely different (at least its audio related). Anyone using Dante (Audio over IP, AES67 RTP) gear?
by skidoo
May 21st, 2020, 6:17 pm
Forum: Help
Topic: MPD httpd Streaming issue
Replies: 9
Views: 2590

Re: MPD httpd Streaming issue

Nowadays, streaming is synonymous with playing music on a PC. I like MPDs streaming feature capabilities for Sonos, Chromecast Audio an maybe other hardware. Adding some more features would be cool eg keep multiple outputs in sync, adding and removing outputs during runtime, routing audio and of cou...
by skidoo
May 14th, 2020, 12:03 pm
Forum: Developers' Corner
Topic: Send multicast datagram
Replies: 2
Views: 2027

Re: Send multicast datagram

But there's also the class "IPv4Address" which is implicitly convertible to "SocketAddress", and that class may be easier for you to handle. It can be initialized with a "struct sockaddr_in", but can also be initialized with IPv4 octets plus port, no fiddling with big-endian. That's how it worked. ...
by skidoo
May 13th, 2020, 9:56 pm
Forum: Developers' Corner
Topic: Send multicast datagram
Replies: 2
Views: 2027

Send multicast datagram

Maybe stupid question but I do not get it. Want to send an udp datagram to multicast address using MPD's internal API. SocketDescriptor MySocketDesc; if (!MySocketDesc.Create(AF_INET, SOCK_DGRAM, IPPROTO_IP)) { // error } Ok there is a socket descriptor. But MySocketDesc.Write() requires SocketAddre...
by skidoo
April 27th, 2020, 2:32 pm
Forum: General Discussion
Topic: MPD slow startup
Replies: 20
Views: 5282

Re: MPD slow startup

Code: Select all

$ systemd-analyze blame
8.736s mpd.service    
(...)
Roughly 35% faster. I am impressed :)
by skidoo
April 20th, 2020, 11:54 am
Forum: Help
Topic: MPD only streaming when someone connects
Replies: 5
Views: 1287

Re: MPD only streaming when someone connects

I use one MPD, which serves one stream up to five local clients. Not five different streams. If you want to access your music from the internet use appropriate software, eg Ampache. With all my deep respect to the MPD project: MPD is NOT well suited for your intended purpose.
by skidoo
April 12th, 2020, 5:32 pm
Forum: Help
Topic: MPD only streaming when someone connects
Replies: 5
Views: 1287

Re: MPD only streaming when someone connects

@Huecuva> Maybe you should describe functionalities rather than name programs. Where are the music files stored? Wired LAN or Wifi? Where should the sound be played? Where is playback controlled? Max is always a bit skeptical about the http streaming capabilities of MPD. In my experience, up to five...
by skidoo
April 2nd, 2020, 5:11 pm
Forum: General Discussion
Topic: MPD slow startup
Replies: 20
Views: 5282

Re: MPD slow startup

Already 20% faster startup :)
by skidoo
March 31st, 2020, 5:23 pm
Forum: General Discussion
Topic: MPD slow startup
Replies: 20
Views: 5282

Re: MPD slow startup

Database is on its way.
by skidoo
March 31st, 2020, 3:53 pm
Forum: General Discussion
Topic: MPD slow startup
Replies: 20
Views: 5282

Re: MPD slow startup

64k buffer strace https://paste.ee/p/l3Gj0 $ systemd-analyze blame 13.399s mpd.service 7.004s systemd-logind.service 5.504s systemd-networkd-wait-online.service 5.471s systemd-journald.service 4.785s systemd-networkd.service 3.116s dev-sda1.device 2.990s systemd-resolved.service 2.690s systemd-times...
by skidoo
March 31st, 2020, 6:51 am
Forum: General Discussion
Topic: MPD slow startup
Replies: 20
Views: 5282

Re: MPD slow startup

by skidoo
March 30th, 2020, 5:14 pm
Forum: General Discussion
Topic: MPD slow startup
Replies: 20
Views: 5282

Re: MPD slow startup

Code: Select all

$  systemd-analyze blame
13.394s mpd.service
 7.234s e2scrub_reap.service
 7.124s systemd-logind.service
 5.423s systemd-journald.service
 4.890s systemd-networkd.service
 3.797s systemd-networkd-wait-online.service
Better now. Thank you, Max!
by skidoo
March 30th, 2020, 4:00 pm
Forum: General Discussion
Topic: MPD slow startup
Replies: 20
Views: 5282

Re: MPD slow startup

Code: Select all

auto_update                     "yes"
#auto_update_depth "3"
by skidoo
March 30th, 2020, 3:19 pm
Forum: General Discussion
Topic: MPD slow startup
Replies: 20
Views: 5282

Re: MPD slow startup

database { plugin "simple" path "/var/lib/mpd/tag_cache" compress "yes" } $ ls -la /var/lib/mpd/ -rw-r--r-- 1 mpd audio 6285026 Mär 29 20:20 tag_cache Deleting and rebuilding database takes way longer than 30 seconds for its >180k tracks. Partition is mounted with ext4 fs and nosuid,noatime options.