https://github.com/nmeum/mpvd
Control mpv using the MPD protocol
https://github.com/nmeum/mpvd
audio hylang mpd mpd-server mpv music-player-daemon
Last synced: 5 months ago
JSON representation
Control mpv using the MPD protocol
- Host: GitHub
- URL: https://github.com/nmeum/mpvd
- Owner: nmeum
- License: agpl-3.0
- Created: 2019-10-05T12:57:52.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-10-13T22:00:53.000Z (over 6 years ago)
- Last Synced: 2025-06-07T14:03:09.410Z (about 1 year ago)
- Topics: audio, hylang, mpd, mpd-server, mpv, music-player-daemon
- Language: Hy
- Size: 80.1 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# mpvd
Control [mpv][mpv homepage] using the [MPD][mpd homepage] [protocol][mpd protocol].
## Status
A toy project for playing around with [libmpdserver][libmpdserver github]
and the [hy][hy homepage] programming language. Buggy and totally
incomplete at the moment.
## Installation
Setup [libmpdserver][libmpdserver github] using:
$ git clone --recursive https://github.com/nmeum/libmpdserver
$ make -C libmpdserver libmpdserver.so
Install [hy][hy homepage] and [mpv][mpv homepage], start mpv using:
$ mpv --input-ipc-server=/tmp/mpvsock some-file.opus
Afterwards, start mpvd using:
$ export LD_LIBRARY_PATH=""
$ hy mpvd.hy /tmp/mpvsock
## Usage
Very simple interactions with [mpc][mpc homepage] are possible, for example:
$ mpc --host localhost --port 6600 pause
OpenBSD - Trial of the BSD Knights
[paused] #1/1 0:03/3:04 (1%)
volume: 84% repeat: off random: off single: off consume: off
If [mpc][mpc homepage] is installed test can be invoked using:
$ ./tests/run_tests.sh
## License
This program is free software: you can redistribute it and/or modify it
under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or (at
your option) any later version.
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see .
[mpv homepage]: https://mpv.io/
[mpd homepage]: https://musicpd.org/
[mpd protocol]: https://musicpd.org/doc/html/protocol.html
[libmpdserver github]: https://github.com/nmeum/libmpdserver
[hy homepage]: https://docs.hylang.org
[mpc homepage]: https://www.musicpd.org/clients/mpc/