04-29-2021, 09:32 PM
I just saw the command moOde uses to start librespot in the logs and launched it manually via ssh.
Result seems to be a crash as soon as playback starts
Result seems to be a crash as soon as playback starts
Code:
sudo librespot --name "Kopfhörer Wohnzimmer" --bitrate 320 --initial-volume 100 --volume-ctrl fixed --cache /var/local/www/spotify_cache --disable-audio-cache --backend alsa --device "_audioout" --onevent /var/local/www/commandw/spotevent.sh -v
Code:
[2021-04-29T21:28:46Z INFO librespot::player_event_handler] Running ["/var/local/www/commandw/spotevent.sh"] with environment variables {"TRACK_ID": "5KQPLoxBkpzJMYulVxTR5u", "DURATION_MS": "201471", "POSITION_MS": "18160", "PLAYER_EVENT": "playing"}
[2021-04-29T21:28:46Z ERROR librespot_playback::audio_backend::alsa] Alsa error PCM open ALSA function 'snd_pcm_hw_params_set_format' failed with error 'EINVAL: Invalid argument'
[2021-04-29T21:28:46Z ERROR librespot_playback::player] Could not start audio: Alsa error: PCM open failed
[2021-04-29T21:28:46Z TRACE librespot_playback::player] == Starting sink ==
[2021-04-29T21:28:46Z ERROR librespot_playback::audio_backend::alsa] Alsa error PCM open ALSA function 'snd_pcm_hw_params_set_format' failed with error 'EINVAL: Invalid argument'
[2021-04-29T21:28:46Z ERROR librespot_playback::player] Could not start audio: Alsa error: PCM open failed
[2021-04-29T21:28:46Z TRACE librespot_playback::player] == Starting sink ==
[2021-04-29T21:28:46Z TRACE librespot_connect::spirc] ==> kPlayStatusPlay
[2021-04-29T21:28:46Z INFO librespot::player_event_handler] Running ["/var/local/www/commandw/spotevent.sh"] with environment variables {"POSITION_MS": "18160", "DURATION_MS": "201471", "PLAYER_EVENT": "playing", "TRACK_ID": "5KQPLoxBkpzJMYulVxTR5u"}
[2021-04-29T21:28:46Z ERROR librespot_playback::audio_backend::alsa] Alsa error PCM open ALSA function 'snd_pcm_hw_params_set_format' failed with error 'EINVAL: Invalid argument'
[2021-04-29T21:28:46Z ERROR librespot_playback::player] Could not start audio: Alsa error: PCM open failed
thread '<unnamed>' panicked at 'called `Option::unwrap()` on a `None` value', playback/src/audio_backend/alsa.rs:138:45