core icon indicating copy to clipboard operation
core copied to clipboard

Feedback requested: Spotify streaming (direct playback via stream proxy)

Open rudyberends opened this issue 5 months ago • 7 comments

What this is

An experimental rework of direct Spotify playback (tracks/playlists played from Loxone) that I'd love feedback on. Today this path uses librespot to decode audio and push it into the engine as a raw PCM pipe — the audioserver is essentially a remote control for librespot's internal player.

The new path flips that around: node-librespot resolves the track's CDN url + decryption key, and the audioserver fetches the (compressed) file itself, decrypts it, and serves it over its internal HTTP gateway so ffmpeg decodes it — exactly like the Tidal/Deezer/Apple Music providers already work.

⚠️ This is untested and may not work at all. Spotify's restrictions on newly created accounts make it impossible for me to create a test account, so I genuinely cannot verify it end-to-end. That's why I'm asking for help. It might play perfectly, produce garbled audio, or fail outright — all useful data points.

Scope: only the direct/Loxone playback path changes. The Spotify Connect receiver (selecting the audioserver from the Spotify app) is unchanged and still uses the PCM pipe.

How to try it

1. Testing container (easiest)

# docker-compose.yml
image: ghcr.io/lox-audioserver/lox-audioserver:testing

or docker run … ghcr.io/lox-audioserver/lox-audioserver:testing

2. Source branch (build it yourself) Branch feat/spotify-direct-proxy — same code, for anyone who runs from source.

Play a Spotify track/playlist from Loxone as usual.

If it breaks

Please attach full spam-level logs. Set the log level to spam (Admin UI → Logs, or system.logging.consoleLevel: "spam" in config), reproduce, and paste the complete log — not just the error line. Helpful details:

  • track type (single track / playlist / radio)
  • symptom: no playback vs silence vs garbled/stuttering audio
  • platform & architecture (e.g. amd64, arm64 / RPi)

Is it actually better than the PCM pipe?

Potential upsides

  • We own the pipeline. Decode, buffering and timing move to ffmpeg instead of librespot's live decoder, removing a class of pipe-specific quirks (e.g. end_of_track-before-pcm during pause, stalls, the deferred-stop dance to avoid disrupting librespot's shared runtime).
  • Unified with the other providers. Same pull/ffmpeg path as Tidal/Deezer/Apple — one place for format/resampling/output handling.
  • Lighter local hop. Compressed Ogg (~40 KB/s at 320) over the internal HTTP hop instead of decoded PCM (~176 KB/s).
  • Seekable by design. The CDN supports HTTP Range and the cipher is byte-seekable, so true seek is achievable later.

Open questions / current limitations

  • Unverified — the decrypt + Ogg-header handling may simply be wrong.
  • No seek yet (resolve has no start offset; large seeks would lean on ffmpeg -ss).
  • No gapless/preload — each track is resolved + fetched fresh, which may add startup latency vs the pipe path reusing a warm librespot session.
  • Only the direct path benefits; Connect stays a pipe.

Net: architecturally it's the cleaner model and removes real coupling pain — if it works. That "if" is exactly what this issue is about. Thanks for testing!

rudyberends avatar Jun 11 '26 06:06 rudyberends

Doesn't play at all for me.

Trying to play a single song from a playlist or directly from the "Home" section all results in the same error (in this case I'm trying to play a single song from a playlist):

[2026-06-11T19:15:33.881Z][SPAM][LoxoneHttp] [command=audio/13/serviceplay/spotify/Julia/spotify@Julia:track:2j9BshApYO0RP5arxCAQ7W/parentpath/spotify@Julia:playlist:1xK71I1wJjCHObWWHTob2v/0/noshuffle/?q&ZW5mb3JjZVVzZXI9dHJ1ZQ name=appHttp remote=192.168.2.192] loxone ws message received
[2026-06-11T19:15:33.901Z][DEBUG][LoxoneHttp|Processor] [command=audio/13/serviceplay/spotify/Julia/spotify@Julia:track:2j9BshApYO0RP5arxCAQ7W/parentpath/spotify@Julia:playlist:1xK71I1wJjCHObWWHTob2v/0/noshuffle/?q&ZW5mb3JjZVVzZXI9dHJ1ZQ] command received
[2026-06-11T19:15:33.902Z][INFO][Zones|Manager] [hasParentContext=true normalizedTarget=spotify:playlist:1xK71I1wJjCHObWWHTob2v resolvedTarget=spotify@Julia:playlist:1xK71I1wJjCHObWWHTob2v station=spotify:playlist:1xK71I1wJjCHObWWHTob2v type=serviceplay uri=spotify@Julia:track:2j9BshApYO0RP5arxCAQ7W/parentpath/spotify@Julia:playlist:1xK71I1wJjCHObWWHTob2v/0 zoneId=13] playContent
[2026-06-11T19:15:33.902Z][DEBUG][Content|Manager] [folderId=playlist:1xK71I1wJjCHObWWHTob2v limit=50 offset=0 service=spotify user=Julia] content cache hit
[2026-06-11T19:15:33.904Z][DEBUG][Zones|Manager] [expandedCount=7 isAppleMusic=false isMusicAssistant=false queueSourcePath=spotify@Julia:track:2j9BshApYO0RP5arxCAQ7W/parentpath/spotify@Julia:playlist:1xK71I1wJjCHObWWHTob2v/0 resolvedTarget=spotify@Julia:playlist:1xK71I1wJjCHObWWHTob2v zoneId=13] queue build resolved
[2026-06-11T19:15:33.904Z][DEBUG][Zones|Manager] [authority=local items=7 startIndex=0 target=spotify:track:2j9BshApYO0RP5arxCAQ7W zoneId=13] queue rebuilt
[2026-06-11T19:15:33.904Z][SPAM][LoxoneHttp|Notifier] [artist="Helen Jane Long" duration=208 mode=stop sourceName="Spotify Connect" time=0 title=Overwhelmed zoneId=13 zoneName=Küche] audio_event payload
[2026-06-11T19:15:33.904Z][SPAM][LoxoneHttp|Notifier] [zoneId=13] audio_event broadcast
[2026-06-11T19:15:33.904Z][SPAM][Zones|Manager] [activeOutput=airplay targetCount=1 zoneId=13] dispatch output metadata
[2026-06-11T19:15:34.026Z][INFO][Input|Spotify][Küche] [format=OGG_VORBIS_320 zoneId=13] spotify direct-proxy source ready
[2026-06-11T19:15:34.026Z][DEBUG][Zones|Manager] [audiopath=spotify:track:2j9BshApYO0RP5arxCAQ7W connectEnabled=false hasPlaybackSource=true playbackKind=url queueSize=7 zoneId=13] startQueuePlayback spotify
[2026-06-11T19:15:34.026Z][INFO][Audio|Manager] [hasStream=false label=spotify sourceKind=url zoneId=13] startWithResolvedSource
[2026-06-11T19:15:34.027Z][INFO][Audio|Manager] [handoff=false kind=url profiles=["pcm"] zoneId=13] starting audio engine
[2026-06-11T19:15:34.027Z][INFO][Audio|Session] [maxBufferBytes=262144 outputBitDepth=16 outputChannels=2 outputSampleRate=44100 profile=pcm targetLeadMs=1000 zoneId=13] audio session buffer config
[2026-06-11T19:15:34.027Z][DEBUG][Audio|Session] [args=["-hide_banner","-loglevel","error","-probesize","256k","-analyzeduration","1M","-reconnect","1","-reconnect_streamed","1","-reconnect_delay_max","5","-f","ogg","-i","http://127.0.0.1:7090/spotify/25ebf62c-fbef-461f-b045-f2a2f42d8837/stream","-vn","-acodec","pcm_s16le","-ar","44100","-ac","2","-af","aresample=resampler=soxr:precision=28:cutoff=0.97:async=1","-f","s16le","pipe:1"] outputBitDepth=16 outputChannels=2 outputSampleRate=44100 profile=pcm zoneId=13] spawning ffmpeg
[2026-06-11T19:15:34.033Z][INFO][Audio|Engine] [crossfadeEnabled=false profile=pcm source=url zoneId=13] audio session started
[2026-06-11T19:15:34.033Z][INFO][Audio|Manager] [sincePlayContentMs=131 source=spotify stream=13-be882b92-e924-4e04-88fd-e4f92c3afcbd title=Overwhelmed zoneId=13] playback started
[2026-06-11T19:15:34.034Z][DEBUG][Zones|Manager] [action=play outputCount=1 outputTypes=["airplay"] zoneId=13] dispatchOutputs
[2026-06-11T19:15:34.034Z][SPAM][LoxoneHttp|Notifier] [artist="Helen Jane Long" duration=208 mode=play sourceName="Spotify Connect" time=0 title=Overwhelmed zoneId=13 zoneName=Küche] audio_event payload
[2026-06-11T19:15:34.035Z][SPAM][LoxoneHttp|Notifier] [zoneId=13] audio_event broadcast
[2026-06-11T19:15:34.035Z][DEBUG][Zones|Manager] [actions=[] desiredSignal=1 mode=play offDelayMs=300000 onDelayMs=0 zoneId=13 zoneName=Küche] zone power manager state update
[2026-06-11T19:15:34.035Z][DEBUG][Zones|Manager] [desiredSignal=1 previousDesired=0 zoneId=13] zone power manager desired signal changed
[2026-06-11T19:15:34.035Z][SPAM][Zones|Manager] [zoneId=13] zone power manager cancelled pending off timer
[2026-06-11T19:15:34.035Z][SPAM][Zones|Manager] [signal=1 zoneId=13] zone power manager skipped schedule; signal already applied
[2026-06-11T19:15:34.036Z][SPAM][Zones|Manager] [activeOutput=airplay targetCount=1 zoneId=13] dispatch output metadata
[2026-06-11T19:15:34.036Z][SPAM][LoxoneHttp|Notifier] [queueSize=7 zoneId=13] audio_queue_event broadcast
[2026-06-11T19:15:34.037Z][DEBUG][Audio|Session] [label=airplay primedBytes=0 primedMs=0 primeWithBuffer=false profile=pcm sessionBufferedBytes=0 subscriberCount=1 zoneId=13] audio subscriber attached
[2026-06-11T19:15:34.273Z][DEBUG][Audio|Session] [message="[in#0 @ 0x24848ac0] Error opening input: End of file\nError opening input file http://127.0.0.1:7090/spotify/25ebf62c-fbef-461f-b045-f2a2f42d8837/stream.\nError opening input files: End of file" zoneId=13] ffmpeg stderr
[2026-06-11T19:15:34.275Z][INFO][Audio|Session] [bufferedBytes=0 code=187 earlyExit=true profile=pcm runMs=248 signal=null stderr="[in#0 @ 0x24848ac0] Error opening input: End of file\nError opening input file http://127.0.0.1:7090/spotify/25ebf62c-fbef-461f-b045-f2a2f42d8837/stream.\nError opening input files: End of file" stderrAt=1781205334273 subscribers=1 totalBytes=0 zoneId=13] ffmpeg exited
[2026-06-11T19:15:34.275Z][WARN][Audio|Manager] [exitCode=187 exitSignal=null reason=undefined source=spotify stderr="[in#0 @ 0x24848ac0] Error opening input: End of file\nError opening input file http://127.0.0.1:7090/spotify/25ebf62c-fbef-461f-b045-f2a2f42d8837/stream.\nError opening input files: End of file" zoneId=13] playback session terminated by engine
[2026-06-11T19:15:34.276Z][SPAM][LoxoneHttp|Notifier] [artist="" duration=0 mode=stop sourceName=A8A159E950E1 time=0 title="Playback error: spotify stream failed: [in#0 @ 0x24848ac0] Error opening input: End of file Error opening input file url Error opening input files: End o..." zoneId=13 zoneName=Küche] audio_event payload
[2026-06-11T19:15:34.277Z][SPAM][LoxoneHttp|Notifier] [zoneId=13] audio_event broadcast
[2026-06-11T19:15:34.277Z][DEBUG][Zones|Manager] [actions=[] desiredSignal=0 mode=stop offDelayMs=300000 onDelayMs=0 zoneId=13 zoneName=Küche] zone power manager state update
[2026-06-11T19:15:34.277Z][DEBUG][Zones|Manager] [desiredSignal=0 previousDesired=1 zoneId=13] zone power manager desired signal changed
[2026-06-11T19:15:34.277Z][DEBUG][Zones|Manager] [delayMs=300000 signal=0 timerKey=offTimer zoneId=13] zone power manager scheduled signal
[2026-06-11T19:15:34.277Z][SPAM][Zones|Manager] [activeOutput=airplay targetCount=1 zoneId=13] dispatch output metadata
[2026-06-11T19:15:34.277Z][DEBUG][Zones|Manager] [action=stop outputCount=1 outputTypes=["airplay"] zoneId=13] dispatchOutputs
[2026-06-11T19:15:34.278Z][INFO][Output|AirPlay] [zoneId=13 zoneName=Küche] AirPlay stop
[2026-06-11T19:15:34.279Z][WARN][Zones|Manager] [reason="spotify stream failed: [in#0 @ 0x24848ac0] Error opening input: End of file Error opening input file http://127.0.0.1:7090/spotify/25ebf62c-fbef-461f-b045-f2a2f42d8837/stream. Error opening input files: End of file" source=output zoneId=13] playback error
[2026-06-11T19:15:34.279Z][WARN][Output|AirPlay] [timeoutMs=8000 zoneId=13] AirPlay output skipped; PCM stream not ready
[2026-06-11T19:15:56.529Z][SPAM][LoxoneHttp|Notifier] [artist="" duration=0 mode=stop sourceName=A8A159E950E1 time=0 title="" zoneId=11 zoneName=Bad] audio_event payload
[2026-06-11T19:15:56.529Z][SPAM][LoxoneHttp|Notifier] [zoneId=11] audio_event broadcast
[2026-06-11T19:15:56.529Z][SPAM][LoxoneHttp|Notifier] [artist="" duration=0 mode=stop sourceName=A8A159E950E1 time=0 title="" zoneId=12 zoneName=Büro] audio_event payload
[2026-06-11T19:15:56.529Z][SPAM][LoxoneHttp|Notifier] [zoneId=12] audio_event broadcast
[2026-06-11T19:15:56.529Z][SPAM][LoxoneHttp|Notifier] [artist="" duration=0 mode=stop sourceName=A8A159E950E1 time=0 title="Playback error: spotify stream failed: [in#0 @ 0x24848ac0] Error opening input: End of file Error opening input file url Error opening input files: End o..." zoneId=13 zoneName=Küche] audio_event payload
[2026-06-11T19:15:56.530Z][SPAM][LoxoneHttp|Notifier] [zoneId=13] audio_event broadcast
[2026-06-11T19:15:56.530Z][SPAM][LoxoneHttp|Notifier] [artist="" duration=0 mode=stop sourceName=A8A159E950E1 time=0 title="" zoneId=14 zoneName=Malen] audio_event payload
[2026-06-11T19:15:56.530Z][SPAM][LoxoneHttp|Notifier] [zoneId=14] audio_event broadcast
[2026-06-11T19:15:56.530Z][SPAM][LoxoneHttp|Notifier] [artist="" duration=0 mode=stop sourceName=A8A159E950E2 time=0 title="" zoneId=15 zoneName=Schlafzimmer] audio_event payload
[2026-06-11T19:15:56.530Z][SPAM][LoxoneHttp|Notifier] [zoneId=15] audio_event broadcast
[2026-06-11T19:15:56.530Z][SPAM][LoxoneHttp|Notifier] [artist="" duration=0 mode=stop sourceName=A8A159E950E2 time=0 title="" zoneId=16 zoneName=Studio] audio_event payload
[2026-06-11T19:15:56.530Z][SPAM][LoxoneHttp|Notifier] [zoneId=16] audio_event broadcast
[2026-06-11T19:15:56.530Z][SPAM][LoxoneHttp|Notifier] [artist="" duration=0 mode=stop sourceName=A8A159E950E3 time=0 title="" zoneId=17 zoneName=Wohn-Esszimmer] audio_event payload
[2026-06-11T19:15:56.531Z][SPAM][LoxoneHttp|Notifier] [zoneId=17] audio_event broadcast

alexdie avatar Jun 11 '26 19:06 alexdie

Same here with me on my longer existing spotify account.

Log debug file

[2026-06-11T20:36:08.390Z][SPAM][LoxoneHttp] [command="audio/1/serviceplay/spotify/Stars of Aspern/spotify@Stars of Aspern:track:3or3oEITvJmMwZRYeWSaen/parentpath/spotify@Stars of Aspern:playlist:1gbVN3q6Q1io8UOr3H6O2k/0/noshuffle/?q&ZW5mb3JjZVVzZXI9dHJ1ZQ" name=appHttp remote=192.168.7.177] loxone ws message received [2026-06-11T20:36:08.391Z][DEBUG][LoxoneHttp|Processor] [command="audio/1/serviceplay/spotify/Stars of Aspern/spotify@Stars of Aspern:track:3or3oEITvJmMwZRYeWSaen/parentpath/spotify@Stars of Aspern:playlist:1gbVN3q6Q1io8UOr3H6O2k/0/noshuffle/?q&ZW5mb3JjZVVzZXI9dHJ1ZQ"] command received [2026-06-11T20:36:08.393Z][INFO][Zones|Manager] [hasParentContext=true normalizedTarget=spotify:playlist:1gbVN3q6Q1io8UOr3H6O2k resolvedTarget="spotify@Stars of Aspern:playlist:1gbVN3q6Q1io8UOr3H6O2k" station=spotify:playlist:1gbVN3q6Q1io8UOr3H6O2k type=serviceplay uri="spotify@Stars of Aspern:track:3or3oEITvJmMwZRYeWSaen/parentpath/spotify@Stars of Aspern:playlist:1gbVN3q6Q1io8UOr3H6O2k/0" zoneId=1] playContent [2026-06-11T20:36:08.393Z][DEBUG][Content|Manager] [folderId=playlist:1gbVN3q6Q1io8UOr3H6O2k limit=50 offset=0 service=spotify user="Stars of Aspern"] content cache hit [2026-06-11T20:36:08.395Z][DEBUG][Zones|Manager] [expandedCount=3 isAppleMusic=false isMusicAssistant=false queueSourcePath="spotify@Stars of Aspern:track:3or3oEITvJmMwZRYeWSaen/parentpath/spotify@Stars of Aspern:playlist:1gbVN3q6Q1io8UOr3H6O2k/0" resolvedTarget="spotify@Stars of Aspern:playlist:1gbVN3q6Q1io8UOr3H6O2k" zoneId=1] queue build resolved [2026-06-11T20:36:08.396Z][DEBUG][Zones|Manager] [authority=local items=3 startIndex=0 target=spotify:track:3or3oEITvJmMwZRYeWSaen zoneId=1] queue rebuilt [2026-06-11T20:36:08.397Z][SPAM][LoxoneHttp|Notifier] [artist=Ultravox duration=244 mode=stop sourceName="Spotify Connect" time=0 title="Dancing with Tears in My Eyes" zoneId=1 zoneName="Denon Home 150"] audio_event payload [2026-06-11T20:36:08.397Z][SPAM][LoxoneHttp|Notifier] [zoneId=1] audio_event broadcast [2026-06-11T20:36:08.398Z][SPAM][Zones|Manager] [activeOutput=airplay targetCount=1 zoneId=1] dispatch output metadata [2026-06-11T20:36:08.734Z][INFO][Input|Spotify][Denon Home 150] [format=OGG_VORBIS_320 zoneId=1] spotify direct-proxy source ready [2026-06-11T20:36:08.735Z][DEBUG][Zones|Manager] [audiopath=spotify:track:3or3oEITvJmMwZRYeWSaen connectEnabled=false hasPlaybackSource=true playbackKind=url queueSize=3 zoneId=1] startQueuePlayback spotify [2026-06-11T20:36:08.735Z][INFO][Audio|Manager] [hasStream=false label=spotify sourceKind=url zoneId=1] startWithResolvedSource [2026-06-11T20:36:08.736Z][INFO][Audio|Manager] [handoff=false kind=url profiles=["pcm"] zoneId=1] starting audio engine [2026-06-11T20:36:08.737Z][INFO][Audio|Session] [maxBufferBytes=262144 outputBitDepth=16 outputChannels=2 outputSampleRate=44100 profile=pcm targetLeadMs=1000 zoneId=1] audio session buffer config [2026-06-11T20:36:08.741Z][DEBUG][Audio|Session] [args=["-hide_banner","-loglevel","error","-probesize","256k","-analyzeduration","1M","-reconnect","1","-reconnect_streamed","1","-reconnect_delay_max","5","-f","ogg","-i","http://127.0.0.1:7090/spotify/922dedf9-5cb3-46fd-9b2a-ba6e751074aa/stream","-vn","-acodec","pcm_s16le","-ar","44100","-ac","2","-af","aresample=resampler=soxr:precision=28:cutoff=0.97:async=1","-f","s16le","pipe:1"] outputBitDepth=16 outputChannels=2 outputSampleRate=44100 profile=pcm zoneId=1] spawning ffmpeg [2026-06-11T20:36:08.751Z][INFO][Audio|Engine] [crossfadeEnabled=false profile=pcm source=url zoneId=1] audio session started [2026-06-11T20:36:08.752Z][INFO][Audio|Manager] [sincePlayContentMs=359 source=spotify stream=1-89541562-2f59-4c34-912a-86d2cc9cc8ba title="Dancing with Tears in My Eyes" zoneId=1] playback started [2026-06-11T20:36:08.753Z][DEBUG][Zones|Manager] [action=play outputCount=1 outputTypes=["airplay"] zoneId=1] dispatchOutputs [2026-06-11T20:36:08.753Z][SPAM][LoxoneHttp|Notifier] [artist=Ultravox duration=244 mode=play sourceName="Spotify Connect" time=0 title="Dancing with Tears in My Eyes" zoneId=1 zoneName="Denon Home 150"] audio_event payload [2026-06-11T20:36:08.754Z][SPAM][LoxoneHttp|Notifier] [zoneId=1] audio_event broadcast [2026-06-11T20:36:08.755Z][DEBUG][Zones|Manager] [actions=[] desiredSignal=1 mode=play offDelayMs=300000 onDelayMs=0 zoneId=1 zoneName="Denon Home 150"] zone power manager state update [2026-06-11T20:36:08.755Z][DEBUG][Zones|Manager] [desiredSignal=1 previousDesired=0 zoneId=1] zone power manager desired signal changed [2026-06-11T20:36:08.756Z][SPAM][Zones|Manager] [zoneId=1] zone power manager cancelled pending off timer [2026-06-11T20:36:08.764Z][SPAM][Zones|Manager] [signal=1 zoneId=1] zone power manager skipped schedule; signal already applied [2026-06-11T20:36:08.765Z][SPAM][Zones|Manager] [activeOutput=airplay targetCount=1 zoneId=1] dispatch output metadata [2026-06-11T20:36:08.765Z][SPAM][LoxoneHttp|Notifier] [queueSize=3 zoneId=1] audio_queue_event broadcast [2026-06-11T20:36:08.766Z][DEBUG][Audio|Session] [label=airplay primedBytes=0 primedMs=0 primeWithBuffer=false profile=pcm sessionBufferedBytes=0 subscriberCount=1 zoneId=1] audio subscriber attached [2026-06-11T20:36:08.772Z][SPAM][LoxoneHttp|Notifier] [timestamp=1781210168 zoneId=1] recentlyplayedchanged_event broadcast [2026-06-11T20:36:08.822Z][SPAM][LoxoneHttp] [command=audio/1/recent name=appHttp remote=192.168.7.177] loxone ws message received [2026-06-11T20:36:08.822Z][DEBUG][LoxoneHttp|Processor] [command=audio/1/recent] command received [2026-06-11T20:36:09.710Z][DEBUG][Audio|Session] [message="[in#0 @ 0x25001ac0] Error opening input: End of file\nError opening input file http://127.0.0.1:7090/spotify/922dedf9-5cb3-46fd-9b2a-ba6e751074aa/stream.\nError opening input files: End of file" zoneId=1] ffmpeg stderr [2026-06-11T20:36:09.711Z][INFO][Audio|Session] [bufferedBytes=0 code=187 earlyExit=true profile=pcm runMs=969 signal=null stderr="[in#0 @ 0x25001ac0] Error opening input: End of file\nError opening input file http://127.0.0.1:7090/spotify/922dedf9-5cb3-46fd-9b2a-ba6e751074aa/stream.\nError opening input files: End of file" stderrAt=1781210169710 subscribers=1 totalBytes=0 zoneId=1] ffmpeg exited [2026-06-11T20:36:09.713Z][WARN][Audio|Manager] [exitCode=187 exitSignal=null reason=undefined source=spotify stderr="[in#0 @ 0x25001ac0] Error opening input: End of file\nError opening input file http://127.0.0.1:7090/spotify/922dedf9-5cb3-46fd-9b2a-ba6e751074aa/stream.\nError opening input files: End of file" zoneId=1] playback session terminated by engine [2026-06-11T20:36:09.713Z][SPAM][LoxoneHttp|Notifier] [artist="" duration=0 mode=stop sourceName=BC241178FE1D time=0 title="Playback error: spotify stream failed: [in#0 @ 0x25001ac0] Error opening input: End of file Error opening input file url Error opening input files: End o..." zoneId=1 zoneName="Denon Home 150"] audio_event payload [2026-06-11T20:36:09.715Z][SPAM][LoxoneHttp|Notifier] [zoneId=1] audio_event broadcast [2026-06-11T20:36:09.716Z][DEBUG][Zones|Manager] [actions=[] desiredSignal=0 mode=stop offDelayMs=300000 onDelayMs=0 zoneId=1 zoneName="Denon Home 150"] zone power manager state update [2026-06-11T20:36:09.716Z][DEBUG][Zones|Manager] [desiredSignal=0 previousDesired=1 zoneId=1] zone power manager desired signal changed [2026-06-11T20:36:09.717Z][DEBUG][Zones|Manager] [delayMs=300000 signal=0 timerKey=offTimer zoneId=1] zone power manager scheduled signal [2026-06-11T20:36:09.717Z][SPAM][Zones|Manager] [activeOutput=airplay targetCount=1 zoneId=1] dispatch output metadata [2026-06-11T20:36:09.718Z][DEBUG][Zones|Manager] [action=stop outputCount=1 outputTypes=["airplay"] zoneId=1] dispatchOutputs [2026-06-11T20:36:09.719Z][INFO][Output|AirPlay] [zoneId=1 zoneName="Denon Home 150"] AirPlay stop [2026-06-11T20:36:09.720Z][WARN][Zones|Manager] [reason="spotify stream failed: [in#0 @ 0x25001ac0] Error opening input: End of file Error opening input file http://127.0.0.1:7090/spotify/922dedf9-5cb3-46fd-9b2a-ba6e751074aa/stream. Error opening input files: End of file" source=output zoneId=1] playback error [2026-06-11T20:36:09.721Z][WARN][Output|AirPlay] [timeoutMs=8000 zoneId=1] AirPlay output skipped; PCM stream not ready [2026-06-11T20:36:27.606Z][SPAM][LoxoneHttp|Notifier] [artist="" duration=0 mode=stop sourceName=BC241178FE1D time=0 title="Playback error: spotify stream failed: [in#0 @ 0x25001ac0] Error opening input: End of file Error opening input file url Error opening input files: End o..." zoneId=1 zoneName="Denon Home 150"] audio_event payload [2026-06-11T20:36:27.607Z][SPAM][LoxoneHttp|Notifier] [zoneId=1] audio_event broadcast [2026-06-11T20:36:27.607Z][SPAM][LoxoneHttp|Notifier] [artist="" duration=0 mode=stop sourceName=BC241178FE1D time=0 title="" zoneId=2 zoneName="Chromecast Wohnzimmer"] audio_event payload [2026-06-11T20:36:27.608Z][SPAM][LoxoneHttp|Notifier] [zoneId=2] audio_event broadcast [2026-06-11T20:36:27.608Z][SPAM][LoxoneHttp|Notifier] [artist="" duration=0 mode=stop sourceName=BC241178FE1D time=0 title="" zoneId=3 zoneName=Küche] audio_event payload [2026-06-11T20:36:27.609Z][SPAM][LoxoneHttp|Notifier] [zoneId=3] audio_event broadcast [2026-06-11T20:36:27.610Z][SPAM][LoxoneHttp|Notifier] [artist="" duration=0 mode=stop sourceName=BC241178FE1D time=0 title="" zoneId=4 zoneName=Terrasse] audio_event payload [2026-06-11T20:36:27.610Z][SPAM][LoxoneHttp|Notifier] [zoneId=4] audio_event broadcast [2026-06-11T20:36:27.611Z][SPAM][LoxoneHttp|Notifier] [artist="" duration=0 mode=stop sourceName=browser-tm3prgcb time=0 title="" zoneId=9001 zoneName="Browser · Mac"] audio_event payload [2026-06-11T20:36:27.611Z][SPAM][LoxoneHttp|Notifier] [zoneId=9001] audio_event broadcast [2026-06-11T20:37:27.607Z][SPAM][LoxoneHttp|Notifier] [artist="" duration=0 mode=stop sourceName=BC241178FE1D time=0 title="Playback error: spotify stream failed: [in#0 @ 0x25001ac0] Error opening input: End of file Error opening input file url Error opening input files: End o..." zoneId=1 zoneName="Denon Home 150"] audio_event payload [2026-06-11T20:37:27.608Z][SPAM][LoxoneHttp|Notifier] [zoneId=1] audio_event broadcast [2026-06-11T20:37:27.609Z][SPAM][LoxoneHttp|Notifier] [artist="" duration=0 mode=stop sourceName=BC241178FE1D time=0 title="" zoneId=2 zoneName="Chromecast Wohnzimmer"] audio_event payload [2026-06-11T20:37:27.610Z][SPAM][LoxoneHttp|Notifier] [zoneId=2] audio_event broadcast [2026-06-11T20:37:27.610Z][SPAM][LoxoneHttp|Notifier] [artist="" duration=0 mode=stop sourceName=BC241178FE1D time=0 title="" zoneId=3 zoneName=Küche] audio_event payload [2026-06-11T20:37:27.611Z][SPAM][LoxoneHttp|Notifier] [zoneId=3] audio_event broadcast [2026-06-11T20:37:27.611Z][SPAM][LoxoneHttp|Notifier] [artist="" duration=0 mode=stop sourceName=BC241178FE1D time=0 title="" zoneId=4 zoneName=Terrasse] audio_event payload [2026-06-11T20:37:27.612Z][SPAM][LoxoneHttp|Notifier] [zoneId=4] audio_event broadcast [2026-06-11T20:37:27.612Z][SPAM][LoxoneHttp|Notifier] [artist="" duration=0 mode=stop sourceName=browser-tm3prgcb time=0 title="" zoneId=9001 zoneName="Browser · Mac"] audio_event payload [2026-06-11T20:37:27.613Z][SPAM][LoxoneHttp|Notifier] [zoneId=9001] audio_event broadcast [2026-06-11T20:37:39.015Z][SPAM][LoxoneHttp] [command=audio/cfg/miniservertime/1781210261 name=msHttp remote=192.168.7.177] loxone ws message received [2026-06-11T20:37:39.015Z][DEBUG][LoxoneHttp|Processor] [command=audio/cfg/miniservertime/1781210261] command received [2026-06-11T20:38:27.608Z][SPAM][LoxoneHttp|Notifier] [artist="" duration=0 mode=stop sourceName=BC241178FE1D time=0 title="Playback error: spotify stream failed: [in#0 @ 0x25001ac0] Error opening input: End of file Error opening input file url Error opening input files: End o..." zoneId=1 zoneName="Denon Home 150"] audio_event payload [2026-06-11T20:38:27.608Z][SPAM][LoxoneHttp|Notifier] [zoneId=1] audio_event broadcast [2026-06-11T20:38:27.609Z][SPAM][LoxoneHttp|Notifier] [artist="" duration=0 mode=stop sourceName=BC241178FE1D time=0 title="" zoneId=2 zoneName="Chromecast Wohnzimmer"] audio_event payload [2026-06-11T20:38:27.610Z][SPAM][LoxoneHttp|Notifier] [zoneId=2] audio_event broadcast [2026-06-11T20:38:27.610Z][SPAM][LoxoneHttp|Notifier] [artist="" duration=0 mode=stop sourceName=BC241178FE1D time=0 title="" zoneId=3 zoneName=Küche] audio_event payload [2026-06-11T20:38:27.611Z][SPAM][LoxoneHttp|Notifier] [zoneId=3] audio_event broadcast [2026-06-11T20:38:27.611Z][SPAM][LoxoneHttp|Notifier] [artist="" duration=0 mode=stop sourceName=BC241178FE1D time=0 title="" zoneId=4 zoneName=Terrasse] audio_event payload [2026-06-11T20:38:27.612Z][SPAM][LoxoneHttp|Notifier] [zoneId=4] audio_event broadcast [2026-06-11T20:38:27.612Z][SPAM][LoxoneHttp|Notifier] [artist="" duration=0 mode=stop sourceName=browser-tm3prgcb time=0 title="" zoneId=9001 zoneName="Browser · Mac"] audio_event payload [2026-06-11T20:38:27.613Z][SPAM][LoxoneHttp|Notifier] [zoneId=9001] audio_event broadcast

Recess9793 avatar Jun 11 '26 20:06 Recess9793

Thanks for testing, both!

New :testing container is up (or build feat/spotify-direct-proxy from source if you run from source). It still won't play yet — but I've added a lot more logging to the stream path, so a fresh spam-level log from the new build will tell much more about where it goes wrong.

Please give it another go and paste the full log. 🙏

rudyberends avatar Jun 11 '26 21:06 rudyberends

New log:

Log spam

[2026-06-11T21:17:25.820Z][SPAM][LoxoneHttp] [command=audio/13/serviceplay/spotify/Julia/spotify@Julia:track:2j9BshApYO0RP5arxCAQ7W/noshuffle/?q&ZW5mb3JjZVVzZXI9dHJ1ZQ name=appHttp remote=192.168.2.192] loxone ws message received [2026-06-11T21:17:25.841Z][DEBUG][LoxoneHttp|Processor] [command=audio/13/serviceplay/spotify/Julia/spotify@Julia:track:2j9BshApYO0RP5arxCAQ7W/noshuffle/?q&ZW5mb3JjZVVzZXI9dHJ1ZQ] command received [2026-06-11T21:17:25.985Z][DEBUG][Content|Spotify:Julia] [scope="playlist-read-private playlist-read-collaborative user-follow-read playlist-modify-private user-read-email user-read-private app-remote-control streaming user-follow-modify user-modify-playback-state user-library-read user-library-modify playlist-modify-public user-read-playback-state user-read-currently-playing"] spotify token refreshed [2026-06-11T21:17:26.173Z][INFO][Zones|Manager] [hasParentContext=false normalizedTarget=spotify:track:2j9BshApYO0RP5arxCAQ7W resolvedTarget=spotify@Julia:track:2j9BshApYO0RP5arxCAQ7W station="" type=serviceplay uri=spotify@Julia:track:2j9BshApYO0RP5arxCAQ7W zoneId=13] playContent [2026-06-11T21:17:26.179Z][DEBUG][LoxoneHttp|Processor] [command=audio/13/serviceplay/spotify/Julia/spotify@Julia:track:2j9BshApYO0RP5arxCAQ7W/noshuffle/?q&ZW5mb3JjZVVzZXI9dHJ1ZQ tookMs=338] slow command [2026-06-11T21:17:26.245Z][DEBUG][Zones|Manager] [expandedCount=1 isAppleMusic=false isMusicAssistant=false queueSourcePath=spotify@Julia:track:2j9BshApYO0RP5arxCAQ7W resolvedTarget=spotify@Julia:track:2j9BshApYO0RP5arxCAQ7W zoneId=13] queue build resolved [2026-06-11T21:17:26.246Z][DEBUG][Zones|Manager] [authority=local items=1 startIndex=0 target=spotify:track:2j9BshApYO0RP5arxCAQ7W zoneId=13] queue rebuilt [2026-06-11T21:17:26.247Z][SPAM][LoxoneHttp|Notifier] [artist="Helen Jane Long" duration=208 mode=stop sourceName=Julia time=0 title=Overwhelmed zoneId=13 zoneName=Küche] audio_event payload [2026-06-11T21:17:26.248Z][SPAM][LoxoneHttp|Notifier] [zoneId=13] audio_event broadcast [2026-06-11T21:17:26.249Z][SPAM][Zones|Manager] [activeOutput=null targetCount=1 zoneId=13] dispatch output metadata [2026-06-11T21:17:27.140Z][INFO][Input|Spotify][Küche] [format=OGG_VORBIS_320 zoneId=13] spotify direct-proxy source ready [2026-06-11T21:17:27.141Z][DEBUG][Zones|Manager] [audiopath=spotify:track:2j9BshApYO0RP5arxCAQ7W connectEnabled=false hasPlaybackSource=true playbackKind=url queueSize=1 zoneId=13] startQueuePlayback spotify [2026-06-11T21:17:27.142Z][INFO][Audio|Manager] [hasStream=false label=spotify sourceKind=url zoneId=13] startWithResolvedSource [2026-06-11T21:17:27.143Z][INFO][Audio|Manager] [handoff=false kind=url profiles=["pcm"] zoneId=13] starting audio engine [2026-06-11T21:17:27.144Z][INFO][Audio|Session] [maxBufferBytes=262144 outputBitDepth=16 outputChannels=2 outputSampleRate=44100 profile=pcm targetLeadMs=1000 zoneId=13] audio session buffer config [2026-06-11T21:17:27.145Z][DEBUG][Audio|Session] [args=["-hide_banner","-loglevel","error","-probesize","256k","-analyzeduration","1M","-reconnect","1","-reconnect_streamed","1","-reconnect_delay_max","5","-f","ogg","-i","http://127.0.0.1:7090/spotify/724f842a-a376-417c-afe8-5e23314f5aad/stream","-vn","-acodec","pcm_s16le","-ar","44100","-ac","2","-af","aresample=resampler=soxr:precision=28:cutoff=0.97:async=1","-f","s16le","pipe:1"] outputBitDepth=16 outputChannels=2 outputSampleRate=44100 profile=pcm zoneId=13] spawning ffmpeg [2026-06-11T21:17:27.150Z][INFO][Audio|Engine] [crossfadeEnabled=false profile=pcm source=url zoneId=13] audio session started [2026-06-11T21:17:27.151Z][INFO][Audio|Manager] [sincePlayContentMs=977 source=spotify stream=13-a4723d64-e018-490f-924e-f14c9d3b5280 title=Overwhelmed zoneId=13] playback started [2026-06-11T21:17:27.152Z][DEBUG][Zones|Manager] [action=play outputCount=1 outputTypes=["airplay"] zoneId=13] dispatchOutputs [2026-06-11T21:17:27.154Z][SPAM][LoxoneHttp|Notifier] [artist="Helen Jane Long" duration=208 mode=play sourceName="Spotify Connect" time=0 title=Overwhelmed zoneId=13 zoneName=Küche] audio_event payload [2026-06-11T21:17:27.155Z][SPAM][LoxoneHttp|Notifier] [zoneId=13] audio_event broadcast [2026-06-11T21:17:27.155Z][DEBUG][Zones|Manager] [actions=[] desiredSignal=1 mode=play offDelayMs=300000 onDelayMs=0 zoneId=13 zoneName=Küche] zone power manager state update [2026-06-11T21:17:27.155Z][DEBUG][Zones|Manager] [desiredSignal=1 previousDesired=0 zoneId=13] zone power manager desired signal changed [2026-06-11T21:17:27.155Z][SPAM][Zones|Manager] [zoneId=13] zone power manager cancelled pending off timer [2026-06-11T21:17:27.155Z][DEBUG][Zones|Manager] [signal=1 zoneId=13] zone power manager applying signal immediately [2026-06-11T21:17:27.156Z][SPAM][Zones|Manager] [activeOutput=airplay targetCount=1 zoneId=13] dispatch output metadata [2026-06-11T21:17:27.156Z][INFO][Zones|Manager] [actions=[] signal=1 zoneId=13] zone power manager applying signal [2026-06-11T21:17:27.156Z][INFO][Zones|Manager] [previousSignal=null signal=1 zoneId=13] zone power manager signal applied [2026-06-11T21:17:27.157Z][SPAM][LoxoneHttp|Notifier] [queueSize=1 zoneId=13] audio_queue_event broadcast [2026-06-11T21:17:27.158Z][DEBUG][Audio|Session] [label=airplay primedBytes=0 primedMs=0 primeWithBuffer=false profile=pcm sessionBufferedBytes=0 subscriberCount=1 zoneId=13] audio subscriber attached [2026-06-11T21:17:27.164Z][DEBUG][Audio|SpotifyStreamProxy] [cdnHost=audio-fa.scdn.co isOgg=true sessionId=724f842a-a376-417c-afe8-5e23314f5aad] spotify cdn fetch start [2026-06-11T21:17:27.172Z][SPAM][LoxoneHttp|Notifier] [timestamp=1781212647 zoneId=13] recentlyplayedchanged_event broadcast [2026-06-11T21:17:27.199Z][SPAM][LoxoneHttp] [command=audio/13/recent name=appHttp remote=192.168.2.192] loxone ws message received [2026-06-11T21:17:27.199Z][DEBUG][LoxoneHttp|Processor] [command=audio/13/recent] command received [2026-06-11T21:17:27.248Z][DEBUG][Audio|SpotifyStreamProxy] [acceptRanges=bytes contentLength=7469280 contentType=application/octet-stream hasBody=true ok=true sessionId=724f842a-a376-417c-afe8-5e23314f5aad status=200] spotify cdn response [2026-06-11T21:17:27.509Z][INFO][Audio|SpotifyStreamProxy] [oggFound=true oggOffset=0 oggScanGaveUp=false outBytes=7469280 reason=upstream-end sessionId=724f842a-a376-417c-afe8-5e23314f5aad upstreamBytes=7469280] spotify proxy stream ended [2026-06-11T21:17:27.512Z][DEBUG][Audio|Session] [message="[in#0 @ 0xb7deac0] Error opening input: End of file\nError opening input file http://127.0.0.1:7090/spotify/724f842a-a376-417c-afe8-5e23314f5aad/stream.\nError opening input files: End of file" zoneId=13] ffmpeg stderr [2026-06-11T21:17:27.514Z][DEBUG][Audio|Session] [profile=pcm zoneId=13] ffmpeg stdout closed [2026-06-11T21:17:27.515Z][INFO][Audio|Session] [bufferedBytes=0 code=187 earlyExit=true profile=pcm runMs=370 signal=null stderr="[in#0 @ 0xb7deac0] Error opening input: End of file\nError opening input file http://127.0.0.1:7090/spotify/724f842a-a376-417c-afe8-5e23314f5aad/stream.\nError opening input files: End of file" stderrAt=1781212647512 subscribers=1 totalBytes=0 zoneId=13] ffmpeg exited [2026-06-11T21:17:27.516Z][WARN][Audio|Manager] [exitCode=187 exitSignal=null reason=undefined source=spotify stderr="[in#0 @ 0xb7deac0] Error opening input: End of file\nError opening input file http://127.0.0.1:7090/spotify/724f842a-a376-417c-afe8-5e23314f5aad/stream.\nError opening input files: End of file" zoneId=13] playback session terminated by engine [2026-06-11T21:17:27.517Z][SPAM][LoxoneHttp|Notifier] [artist="" duration=0 mode=stop sourceName=A8A159E950E1 time=0 title="Playback error: spotify stream failed: [in#0 @ 0xb7deac0] Error opening input: End of file Error opening input file url Error opening input files: End of..." zoneId=13 zoneName=Küche] audio_event payload [2026-06-11T21:17:27.517Z][SPAM][LoxoneHttp|Notifier] [zoneId=13] audio_event broadcast [2026-06-11T21:17:27.517Z][DEBUG][Zones|Manager] [actions=[] desiredSignal=0 mode=stop offDelayMs=300000 onDelayMs=0 zoneId=13 zoneName=Küche] zone power manager state update [2026-06-11T21:17:27.517Z][DEBUG][Zones|Manager] [desiredSignal=0 previousDesired=1 zoneId=13] zone power manager desired signal changed [2026-06-11T21:17:27.517Z][DEBUG][Zones|Manager] [delayMs=300000 signal=0 timerKey=offTimer zoneId=13] zone power manager scheduled signal [2026-06-11T21:17:27.517Z][SPAM][Zones|Manager] [activeOutput=airplay targetCount=1 zoneId=13] dispatch output metadata [2026-06-11T21:17:27.518Z][DEBUG][Zones|Manager] [action=stop outputCount=1 outputTypes=["airplay"] zoneId=13] dispatchOutputs [2026-06-11T21:17:27.518Z][INFO][Output|AirPlay] [zoneId=13 zoneName=Küche] AirPlay stop [2026-06-11T21:17:27.518Z][WARN][Zones|Manager] [reason="spotify stream failed: [in#0 @ 0xb7deac0] Error opening input: End of file Error opening input file http://127.0.0.1:7090/spotify/724f842a-a376-417c-afe8-5e23314f5aad/stream. Error opening input files: End of file" source=output zoneId=13] playback error [2026-06-11T21:17:27.518Z][WARN][Output|AirPlay] [timeoutMs=8000 zoneId=13] AirPlay output skipped; PCM stream not ready

alexdie avatar Jun 11 '26 21:06 alexdie

And here is my log. All the best..

[2026-06-12T15:29:01.389Z][SPAM][LoxoneHttp|Notifier] [artist="" duration=0 mode=stop sourceName=BC241178FE1D time=0 title="" zoneId=1 zoneName="Denon Home 150"] audio_event payload [2026-06-12T15:29:01.390Z][SPAM][LoxoneHttp|Notifier] [zoneId=1] audio_event broadcast [2026-06-12T15:29:01.390Z][SPAM][LoxoneHttp|Notifier] [artist="" duration=0 mode=stop sourceName=BC241178FE1D time=0 title="" zoneId=2 zoneName="Chromecast Wohnzimmer"] audio_event payload [2026-06-12T15:29:01.390Z][SPAM][LoxoneHttp|Notifier] [zoneId=2] audio_event broadcast [2026-06-12T15:29:01.390Z][SPAM][LoxoneHttp|Notifier] [artist="" duration=0 mode=stop sourceName=BC241178FE1D time=0 title="" zoneId=3 zoneName=Küche] audio_event payload [2026-06-12T15:29:01.390Z][SPAM][LoxoneHttp|Notifier] [zoneId=3] audio_event broadcast [2026-06-12T15:29:01.390Z][SPAM][LoxoneHttp|Notifier] [artist="" duration=0 mode=stop sourceName=BC241178FE1D time=0 title="" zoneId=4 zoneName=Terrasse] audio_event payload [2026-06-12T15:29:01.391Z][SPAM][LoxoneHttp|Notifier] [zoneId=4] audio_event broadcast [2026-06-12T15:29:01.391Z][SPAM][LoxoneHttp|Notifier] [artist="" duration=0 mode=stop sourceName=browser-tm3prgcb time=0 title="" zoneId=9000 zoneName="Browser · Mac"] audio_event payload [2026-06-12T15:29:01.391Z][SPAM][LoxoneHttp|Notifier] [zoneId=9000] audio_event broadcast [2026-06-12T15:29:02.988Z][ERROR][Audio|@lox-audioserver/node-librespot] [scope=librespot_core::session source=connect_host] Connection to server closed. [2026-06-12T15:29:02.988Z][ERROR][Audio|@lox-audioserver/node-librespot] [scope=librespot_core::session source=connect_host] Connection to server closed. [2026-06-12T15:29:02.988Z][ERROR][Audio|@lox-audioserver/node-librespot] [scope=librespot_core::session source=connect_host] Connection to server closed. [2026-06-12T15:29:02.988Z][ERROR][Audio|@lox-audioserver/node-librespot] [scope=librespot_core::session source=connect_host] Connection to server closed. [2026-06-12T15:29:02.988Z][ERROR][Audio|@lox-audioserver/node-librespot] [scope=librespot_core::session source=connect_host] Connection to server closed. [2026-06-12T15:29:03.223Z][SPAM][LoxoneHttp] [command=audio/1/recent name=appHttp remote=192.168.7.177] loxone ws message received [2026-06-12T15:29:03.223Z][DEBUG][LoxoneHttp|Processor] [command=audio/1/recent] command received [2026-06-12T15:29:08.715Z][SPAM][LoxoneHttp] [command="audio/cfg/getservicefolder/spotify/Stars of Aspern/spotify:playlist:2wVjOvhvk4M8CYe6akFwkE/0/50" name=appHttp remote=192.168.7.177] loxone ws message received [2026-06-12T15:29:08.715Z][DEBUG][LoxoneHttp|Processor] [command="audio/cfg/getservicefolder/spotify/Stars of Aspern/spotify:playlist:2wVjOvhvk4M8CYe6akFwkE/0/50"] command received [2026-06-12T15:29:08.716Z][DEBUG][Content|Manager] [folderId=spotify:playlist:2wVjOvhvk4M8CYe6akFwkE limit=50 offset=0 service=spotify user="Stars of Aspern"] content cache miss [2026-06-12T15:29:09.106Z][DEBUG][LoxoneHttp|Processor] [command="audio/cfg/getservicefolder/spotify/Stars of Aspern/spotify:playlist:2wVjOvhvk4M8CYe6akFwkE/0/50" tookMs=391] slow command [2026-06-12T15:29:11.985Z][SPAM][LoxoneHttp] [command="audio/1/serviceplay/spotify/Stars of Aspern/spotify@Stars of Aspern:track:2ngt7XvZ6ypAnyeFI7SZoK/parentpath/spotify:playlist:2wVjOvhvk4M8CYe6akFwkE/0/noshuffle/?q&ZW5mb3JjZVVzZXI9dHJ1ZQ" name=appHttp remote=192.168.7.177] loxone ws message received [2026-06-12T15:29:11.986Z][DEBUG][LoxoneHttp|Processor] [command="audio/1/serviceplay/spotify/Stars of Aspern/spotify@Stars of Aspern:track:2ngt7XvZ6ypAnyeFI7SZoK/parentpath/spotify:playlist:2wVjOvhvk4M8CYe6akFwkE/0/noshuffle/?q&ZW5mb3JjZVVzZXI9dHJ1ZQ"] command received [2026-06-12T15:29:11.988Z][INFO][Zones|Manager] [hasParentContext=true normalizedTarget=spotify:playlist:2wVjOvhvk4M8CYe6akFwkE resolvedTarget=spotify:playlist:2wVjOvhvk4M8CYe6akFwkE station=spotify:playlist:2wVjOvhvk4M8CYe6akFwkE type=serviceplay uri="spotify@Stars of Aspern:track:2ngt7XvZ6ypAnyeFI7SZoK/parentpath/spotify:playlist:2wVjOvhvk4M8CYe6akFwkE/0" zoneId=1] playContent [2026-06-12T15:29:11.989Z][DEBUG][Content|Manager] [folderId=playlist:2wVjOvhvk4M8CYe6akFwkE limit=50 offset=0 service=spotify user="Stars of Aspern"] content cache miss [2026-06-12T15:29:12.205Z][DEBUG][Zones|Manager] [expandedCount=12 isAppleMusic=false isMusicAssistant=false queueSourcePath="spotify@Stars of Aspern:track:2ngt7XvZ6ypAnyeFI7SZoK/parentpath/spotify:playlist:2wVjOvhvk4M8CYe6akFwkE/0" resolvedTarget=spotify:playlist:2wVjOvhvk4M8CYe6akFwkE zoneId=1] queue build resolved [2026-06-12T15:29:12.205Z][DEBUG][Zones|Manager] [authority=local items=12 startIndex=0 target=spotify:track:2ngt7XvZ6ypAnyeFI7SZoK zoneId=1] queue rebuilt [2026-06-12T15:29:12.206Z][SPAM][LoxoneHttp|Notifier] [artist="Robbie Williams" duration=197 mode=stop sourceName="Stars of Aspern" time=0 title="Forbidden Road (From Better Man: Original Motion Picture Soundtrack)" zoneId=1 zoneName="Denon Home 150"] audio_event payload [2026-06-12T15:29:12.206Z][SPAM][LoxoneHttp|Notifier] [zoneId=1] audio_event broadcast [2026-06-12T15:29:12.206Z][SPAM][Zones|Manager] [activeOutput=null targetCount=1 zoneId=1] dispatch output metadata [2026-06-12T15:29:12.207Z][SPAM][LoxoneHttp|Notifier] [artist="Robbie Williams" duration=197 mode=stop sourceName="Stars of Aspern" time=0 title="Forbidden Road (From Better Man: Original Motion Picture Soundtrack)" zoneId=1 zoneName="Denon Home 150"] audio_event payload [2026-06-12T15:29:12.207Z][SPAM][LoxoneHttp|Notifier] [zoneId=1] audio_event broadcast [2026-06-12T15:29:12.207Z][SPAM][Zones|Manager] [activeOutput=null targetCount=1 zoneId=1] dispatch output metadata [2026-06-12T15:29:13.077Z][INFO][Input|Spotify][Denon Home 150] [format=OGG_VORBIS_320 zoneId=1] spotify direct-proxy source ready [2026-06-12T15:29:13.078Z][DEBUG][Zones|Manager] [audiopath=spotify:track:2ngt7XvZ6ypAnyeFI7SZoK connectEnabled=false hasPlaybackSource=true playbackKind=url queueSize=12 zoneId=1] startQueuePlayback spotify [2026-06-12T15:29:13.078Z][INFO][Audio|Manager] [hasStream=false label=spotify sourceKind=url zoneId=1] startWithResolvedSource [2026-06-12T15:29:13.078Z][INFO][Audio|Manager] [handoff=false kind=url profiles=["pcm"] zoneId=1] starting audio engine [2026-06-12T15:29:13.079Z][INFO][Audio|Session] [maxBufferBytes=262144 outputBitDepth=16 outputChannels=2 outputSampleRate=44100 profile=pcm targetLeadMs=1000 zoneId=1] audio session buffer config [2026-06-12T15:29:13.080Z][DEBUG][Audio|Session] [args=["-hide_banner","-loglevel","error","-probesize","256k","-analyzeduration","1M","-reconnect","1","-reconnect_streamed","1","-reconnect_delay_max","5","-f","ogg","-i","http://127.0.0.1:7090/spotify/8ef4f82a-9799-42f0-87a4-018b1e258488/stream","-vn","-acodec","pcm_s16le","-ar","44100","-ac","2","-af","aresample=resampler=soxr:precision=28:cutoff=0.97:async=1","-f","s16le","pipe:1"] outputBitDepth=16 outputChannels=2 outputSampleRate=44100 profile=pcm zoneId=1] spawning ffmpeg [2026-06-12T15:29:13.082Z][INFO][Audio|Engine] [crossfadeEnabled=false profile=pcm source=url zoneId=1] audio session started [2026-06-12T15:29:13.082Z][INFO][Audio|Manager] [sincePlayContentMs=1094 source=spotify stream=1-782e0414-bf3a-4504-884a-c1f9601b080c title="Forbidden Road (From Better Man: Original Motion Picture Soundtrack)" zoneId=1] playback started [2026-06-12T15:29:13.083Z][DEBUG][Zones|Manager] [action=play outputCount=1 outputTypes=["airplay"] zoneId=1] dispatchOutputs [2026-06-12T15:29:13.084Z][SPAM][LoxoneHttp|Notifier] [artist="Robbie Williams" duration=197 mode=play sourceName="Spotify Connect" time=0 title="Forbidden Road (From Better Man: Original Motion Picture Soundtrack)" zoneId=1 zoneName="Denon Home 150"] audio_event payload [2026-06-12T15:29:13.084Z][SPAM][LoxoneHttp|Notifier] [zoneId=1] audio_event broadcast [2026-06-12T15:29:13.084Z][DEBUG][Zones|Manager] [actions=[] desiredSignal=1 mode=play offDelayMs=300000 onDelayMs=0 zoneId=1 zoneName="Denon Home 150"] zone power manager state update [2026-06-12T15:29:13.084Z][DEBUG][Zones|Manager] [desiredSignal=1 previousDesired=0 zoneId=1] zone power manager desired signal changed [2026-06-12T15:29:13.084Z][SPAM][Zones|Manager] [zoneId=1] zone power manager cancelled pending off timer [2026-06-12T15:29:13.084Z][DEBUG][Zones|Manager] [signal=1 zoneId=1] zone power manager applying signal immediately [2026-06-12T15:29:13.085Z][SPAM][Zones|Manager] [activeOutput=airplay targetCount=1 zoneId=1] dispatch output metadata [2026-06-12T15:29:13.085Z][INFO][Zones|Manager] [actions=[] signal=1 zoneId=1] zone power manager applying signal [2026-06-12T15:29:13.085Z][INFO][Zones|Manager] [previousSignal=null signal=1 zoneId=1] zone power manager signal applied [2026-06-12T15:29:13.086Z][SPAM][LoxoneHttp|Notifier] [queueSize=12 zoneId=1] audio_queue_event broadcast [2026-06-12T15:29:13.086Z][DEBUG][Audio|Session] [label=airplay primedBytes=0 primedMs=0 primeWithBuffer=false profile=pcm sessionBufferedBytes=0 subscriberCount=1 zoneId=1] audio subscriber attached [2026-06-12T15:29:13.090Z][DEBUG][Audio|SpotifyStreamProxy] [cdnHost=audio-cf.spotifycdn.com isOgg=true sessionId=8ef4f82a-9799-42f0-87a4-018b1e258488] spotify cdn fetch start [2026-06-12T15:29:13.094Z][SPAM][LoxoneHttp|Notifier] [timestamp=1781278153 zoneId=1] recentlyplayedchanged_event broadcast [2026-06-12T15:29:13.157Z][SPAM][LoxoneHttp] [command=audio/1/recent name=appHttp remote=192.168.7.177] loxone ws message received [2026-06-12T15:29:13.157Z][DEBUG][LoxoneHttp|Processor] [command=audio/1/recent] command received [2026-06-12T15:29:13.240Z][DEBUG][Audio|SpotifyStreamProxy] [acceptRanges=bytes contentLength=8615209 contentType=application/octet-stream hasBody=true ok=true sessionId=8ef4f82a-9799-42f0-87a4-018b1e258488 status=200] spotify cdn response [2026-06-12T15:29:13.678Z][INFO][Audio|SpotifyStreamProxy] [oggFound=true oggOffset=0 oggScanGaveUp=false outBytes=8615209 reason=upstream-end sessionId=8ef4f82a-9799-42f0-87a4-018b1e258488 upstreamBytes=8615209] spotify proxy stream ended [2026-06-12T15:29:13.679Z][DEBUG][Audio|Session] [message="[in#0 @ 0xe33bac0] Error opening input: End of file\nError opening input file http://127.0.0.1:7090/spotify/8ef4f82a-9799-42f0-87a4-018b1e258488/stream.\nError opening input files: End of file" zoneId=1] ffmpeg stderr [2026-06-12T15:29:13.679Z][INFO][Audio|Session] [bufferedBytes=0 code=187 earlyExit=true profile=pcm runMs=599 signal=null stderr="[in#0 @ 0xe33bac0] Error opening input: End of file\nError opening input file http://127.0.0.1:7090/spotify/8ef4f82a-9799-42f0-87a4-018b1e258488/stream.\nError opening input files: End of file" stderrAt=1781278153679 subscribers=1 totalBytes=0 zoneId=1] ffmpeg exited [2026-06-12T15:29:13.680Z][WARN][Audio|Manager] [exitCode=187 exitSignal=null reason=undefined source=spotify stderr="[in#0 @ 0xe33bac0] Error opening input: End of file\nError opening input file http://127.0.0.1:7090/spotify/8ef4f82a-9799-42f0-87a4-018b1e258488/stream.\nError opening input files: End of file" zoneId=1] playback session terminated by engine [2026-06-12T15:29:13.680Z][SPAM][LoxoneHttp|Notifier] [artist="" duration=0 mode=stop sourceName=BC241178FE1D time=0 title="Playback error: spotify stream failed: [in#0 @ 0xe33bac0] Error opening input: End of file Error opening input file url Error opening input files: End of..." zoneId=1 zoneName="Denon Home 150"] audio_event payload [2026-06-12T15:29:13.680Z][SPAM][LoxoneHttp|Notifier] [zoneId=1] audio_event broadcast [2026-06-12T15:29:13.680Z][DEBUG][Zones|Manager] [actions=[] desiredSignal=0 mode=stop offDelayMs=300000 onDelayMs=0 zoneId=1 zoneName="Denon Home 150"] zone power manager state update [2026-06-12T15:29:13.680Z][DEBUG][Zones|Manager] [desiredSignal=0 previousDesired=1 zoneId=1] zone power manager desired signal changed [2026-06-12T15:29:13.680Z][DEBUG][Zones|Manager] [delayMs=300000 signal=0 timerKey=offTimer zoneId=1] zone power manager scheduled signal [2026-06-12T15:29:13.680Z][SPAM][Zones|Manager] [activeOutput=airplay targetCount=1 zoneId=1] dispatch output metadata [2026-06-12T15:29:13.681Z][DEBUG][Zones|Manager] [action=stop outputCount=1 outputTypes=["airplay"] zoneId=1] dispatchOutputs [2026-06-12T15:29:13.681Z][INFO][Output|AirPlay] [zoneId=1 zoneName="Denon Home 150"] AirPlay stop [2026-06-12T15:29:13.681Z][WARN][Zones|Manager] [reason="spotify stream failed: [in#0 @ 0xe33bac0] Error opening input: End of file Error opening input file http://127.0.0.1:7090/spotify/8ef4f82a-9799-42f0-87a4-018b1e258488/stream. Error opening input files: End of file" source=output zoneId=1] playback error [2026-06-12T15:29:13.681Z][WARN][Output|AirPlay] [timeoutMs=8000 zoneId=1] AirPlay output skipped; PCM stream not ready

Recess9793 avatar Jun 12 '26 15:06 Recess9793

Huge help, thanks both — the new logs narrowed it right down. Resolve and the CDN fetch are perfect (full file, HTTP 200), the bytes flow all the way through to ffmpeg, but ffmpeg still can't open them as Ogg. So it's either a decrypt issue or something in how I hand the stream to ffmpeg.

I've pushed one more diagnostic build (:testing, or feat/spotify-direct-proxy from source) that logs the first 64 bytes ffmpeg receives. Could one of you reproduce once more and paste the spam log? I only need the line that contains spotify proxy stream ended — it now has a head64=... hex field. That single line will tell me whether the decrypted audio is intact. 🙏

rudyberends avatar Jun 13 '26 07:06 rudyberends

never mind. able to reproduce myself

rudyberends avatar Jun 13 '26 11:06 rudyberends