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.

Installation

pipx

pipx install raphson-music-headless[mpv]

or

pipx install raphson-music-headless[vlc]

Run: raphson-music-headless

venv

Create and enter a virtual environment first.

git clone https://codeberg.org/raphson/music-headless
cd music-headless
pip install .

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.

Players

Either MPV or VLC can be used as audio player backend. Respectively, python-mpv or python-vlc should be installed. Configure player accordingly in config.json. The mpv backend is recommended.

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.4.2.tar.gz (14.8 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.4.2-py3-none-any.whl (16.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for raphson_music_headless-1.4.2.tar.gz
Algorithm Hash digest
SHA256 34395c25b4122a9f86d101a8e8222a11c28fc554db855a291a10a8c4164f28b6
MD5 ea30e32e482e06ae8a6c9dfb0d82483b
BLAKE2b-256 e5fd9190612a54eff34354f42266e4a0a0e0065d02c8e23020e7e9a1d04d97bd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for raphson_music_headless-1.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f464d586c8db4776243aec3df8f6972597d8caef1d3e47cbdd0d4f3217381cee
MD5 fa8aa8b9e658403f3dc69ba4820c8176
BLAKE2b-256 a86eadf57f2aec5ae7f2b07a379fe154ee591f86f303bcff98af915c7e7da936

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