DSF/DFF playback intermittently fails with “Couldn’t create command line” after player reconnect (usedop=1, DoP)

Aperta
#13 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
44/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
perl
Ambito
backend

Direzione di ricerca

Start by tracing the plugin’s client new/reconnect handling into setupTranscoder, which the issue identifies as the registration point for the per-player rules. Check how the dsf, dff, and wvpx entries are registered and whether the reconnect event can run before registration completes; add logging if needed to confirm the sequence. Done means the intermittent missing-command failure is explained and registration can be verified in logs.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Environment

  • Lyrion Music Server 9.1.2-stable (ghcr.io/lms-community/lyrionmusicserver:9.1.2-stable), Docker on Unraid
  • DSDPlayer plugin 1.14
  • Player: Osmium Sound (squeezelite 2.0.0-1517), MAC xx.xx.xx.xx.xx.xx
  • Squeezelite command in DoP mode: squeezelite -m xx.xx.xx.xx.xx.xx -o hw:CARD=AUDIO,DEV=0 -D -v -C 5 -s 192.168.1.2 -n Osmium-01 -M Osmium -r 384000 -b 16384:8192
  • Per-player prefs (playdsd.prefs): usedop: 1, resample: '::::::', gain: 0
  • No custom-convert.conf rules (restored to the original flac-only file)

Problem
DSF and DFF files play correctly in DoP at 5645 kHz on the DAC, but the failure is intermittent. After some player reconnections, both formats fail with:

Slim::Player::Song::open (426) Error: Couldn't create command line for dsf playback for [file:///music/...2L-109_stereo_5644k-1b_05.dsf]
Slim::Player::Song::open (426) Error: Couldn't create command line for dff playback for [file:///music/...2L-082_stereo-DSD_01.dff]

The TranscodingHelper debug log shows that no dsf-flc-- or dff-flc-- command is found; the only candidate is dsf-mp3-*-, which fails because ffmpeg is not in the container.

Observed sequence

  1. LMS restarted: DoP playback works.
  2. Osmium restarted: both formats fail (repeatedly).
  3. LMS restarted: works again.
  4. Osmium restarted: works.

So the failure is not tied to a specific restart. It looks like the per-MAC transcoder rules are sometimes not registered when the player reconnects (the plugin registers them on client new/reconnect in setupTranscoder). I have not been able to confirm the root cause. The plugin does not log anything in setupTranscoder, so there is no direct evidence of when registration happens.

Question
Is there a known race between the client new/reconnect event and the registration of the dsf/dff/wvpx transcoder entries? Is there a way to log registration to confirm it?

Lingua principale
C
Stelle
6
Fork
13
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di LMS-Community/plugin-DSDPlayer

Tutte le issue di LMS-Community/plugin-DSDPlayer

Issue simili

Altre issue su C

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.