Search found 202 matches

by skidoo
June 2nd, 2020, 12:34 pm
Forum: Help
Topic: How to use MPC
Replies: 2
Views: 144

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: 265

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: 1759

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: 1560

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: 1560

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: 2917

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: 648

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: 648

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: 2917

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: 2917

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: 2917

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: 2917

Re: MPD slow startup

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

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: 2917

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: 2917

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.
by skidoo
March 29th, 2020, 6:45 pm
Forum: General Discussion
Topic: MPD slow startup
Replies: 20
Views: 2917

Re: MPD slow startup

About 35 M text output. Where to put?

Lots of stat eg

Code: Select all

stat("/C64Music/MUSICIANS/H/Hubbard_Rob/Thrust.sid", {st_mode=S_IFREG|0644, st_size=3710, ...}) = 0 <0.000045>
by skidoo
March 26th, 2020, 6:59 pm
Forum: General Discussion
Topic: MPD slow startup
Replies: 20
Views: 2917

Re: MPD slow startup

MPD takes more than 9 seconds to write out its pid. /run is located on tmpfs less the 3 MB in use from 94 MB. # strace -r /usr/local/bin/mp (...) 0.000137 setgroups(1, [29]) = 0 0.000257 getuid() = 0 0.000186 setuid(109) = 0 0.000179 chdir("/") = 0 0.000213 openat(AT_FDCWD, "/run/mpd/pid", O_WRONLY|...
by skidoo
March 25th, 2020, 7:32 pm
Forum: General Discussion
Topic: MPD slow startup
Replies: 20
Views: 2917

MPD slow startup

# systemd-analyze blame 26.866s mpd.service 7.026s systemd-logind.service 5.606s systemd-journald.service 5.216s systemd-networkd-wait-online.service 4.840s systemd-networkd.service (...) MPD from git, compiled with GCC 10 on Debian testing, x64, headless, Atom CPU, 1.66 GHz, > 180.000 tracks on lo...
by skidoo
March 9th, 2020, 12:01 pm
Forum: Help
Topic: httpd stream terminates after 25 mins
Replies: 10
Views: 1095

Re: httpd stream terminates after 25 mins

robertdaly wrote:
March 5th, 2020, 3:51 pm
what would be a good choice for streaming format if i'm not constrained by bandwidth but would like to the keep resource utilisation low?
encoder "flac" wtih compresseion "0" or "1" should work well even on modest hardware.
by skidoo
February 29th, 2020, 12:27 am
Forum: Developers' Corner
Topic: MPD doesn't display titles correctly that contain an é
Replies: 6
Views: 2457

Re: MPD doesn't display titles correctly that contain an é

MPD doesn't display titles correctly that contain, for example, an acute accent. For example, if there is an é in the title, it will be displayed in mpc and in /var/lib/mpd/state file as a ?.
Could not reproduce with MPD and mpc on Debian testing x64. Perhaps Collin mixed up filename and metadata?