Release v1.0.10: ffmpeg -re Flag für Echtzeit-Wiedergabe

Ohne -re liest ffmpeg den PCM-Stream von librespot so schnell wie
möglich. librespot meldet die Position dann zu schnell an Spotify,
was dazu führt dass Tracks im Sekundentakt wechseln und Stop/Skip
vom Handy nicht funktionieren.

Mit -re wird der Input auf native Framerate gedrosselt (44100 Hz
S16LE Stereo → ~176 kB/s), sodass Position korrekt gemeldet wird.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Niklas Gühne
2026-04-07 10:22:49 +02:00
parent 53804877d5
commit fbebf84b76
2 changed files with 3 additions and 2 deletions

View File

@@ -32,7 +32,7 @@ else
fi
bashio::log.info "╔══════════════════════════════════════════════╗"
bashio::log.info "║ Busch-Radio Spotify Bridge v1.0.9 ║"
bashio::log.info "║ Busch-Radio Spotify Bridge v1.0.10 ║"
bashio::log.info "╚══════════════════════════════════════════════╝"
bashio::log.info "Gerätename : ${DEVICE_NAME}"
bashio::log.info "Bitrate : ${BITRATE} kbps"
@@ -248,6 +248,7 @@ while true; do
librespot "${LIBRESPOT_ARGS[@]}" \
| ffmpeg \
-re \
-hide_banner \
-loglevel warning \
-f s16le -ar 44100 -ac 2 \