Skip to main content

Headless music player server for the Raphson music player

Project description

Headless playback client for Raphson Music

Client for the Raphson Music server that can be controlled remotely via a simple web interface or Home Assistant.

Choose a player backend

  • mpv (recommended): requires libmpv
    • Debian: apt install libmpv2
    • Fedora: dnf install mpv-libs
  • vlc: requires libvlc
    • Debian: apt install vlc
    • Fedora: dnf install vlc-libs

Installation

Install pipx using your system package manager.

pipx install --global raphson-music-headless[mpv]

or

pipx install --global raphson-music-headless[vlc]

or, for the latest development version:

pipx install --global "raphson_music_headless[mpv] @ git+https://codeberg.org/raphson/music-headless.git"

Run: raphson-music-headless

Usage

  1. Create a config.json file with credentials (see config.json.example).
  2. Run raphson-music-headless --config config.json

By default, the program looks for a configuration file at /etc/raphson-music-headless.json.

See config.md for a list of options.

API

See API.md

Temporary files (VLC backend only)

The server writes music to temporary files so VLC can access them. On Linux, the /tmp directory is used for this purpose. It is strongly recommended to mount tmpfs on /tmp to avoid unnecessary writes to your disk, especially when using a Raspberry Pi with sd card.

Check if it is the case by running mount | grep /tmp. It should show something like: tmpfs on /tmp type tmpfs ...

Cache size

The cache_size setting determines the number of cached tracks for each playlist. These tracks are kept in memory, consuming roughly 3 - 6MB per track including cover image. Say cache_size is set to 4 and you use a maximum of 10 playlists, you will need around 200MiB of memory.

Bugs

When playing mono audio (like news), sound may only be played on the left channel. This appears to be an issue with PipeWire.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

raphson_music_headless-1.5.0.tar.gz (17.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

raphson_music_headless-1.5.0-py3-none-any.whl (17.1 kB view details)

Uploaded Python 3

File details

Details for the file raphson_music_headless-1.5.0.tar.gz.

File metadata

  • Download URL: raphson_music_headless-1.5.0.tar.gz
  • Upload date:
  • Size: 17.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.14.2

File hashes

Hashes for raphson_music_headless-1.5.0.tar.gz
Algorithm Hash digest
SHA256 d7d510cf099c8c9ec97e50c419e152369cc8336290e1a854d82fca559a2a03cb
MD5 705fb1c7df744f928a5376ca3579127f
BLAKE2b-256 d24b5072f3182a6704938e5cb6d52d39bdddbac4491ae38d0d9f6434347b3ae3

See more details on using hashes here.

File details

Details for the file raphson_music_headless-1.5.0-py3-none-any.whl.

File metadata

File hashes

Hashes for raphson_music_headless-1.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d2b4066bc6fb4ba64931e6737d9d04eefe5227d7b0b846ce07c4a573a19761a0
MD5 4b0f96544c67a2ae51c696da08a94122
BLAKE2b-256 0e886c8447a513a841abf6f44434c242ee95d7a0c4c6cef1f3e01ef9e1276fea

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page