Skip to content

Instantly share code, notes, and snippets.

@hmelder
Created January 17, 2021 11:31
Show Gist options
  • Save hmelder/eab7de2c638dcae58c0d5d78cb2f812a to your computer and use it in GitHub Desktop.
Save hmelder/eab7de2c638dcae58c0d5d78cb2f812a to your computer and use it in GitHub Desktop.
(Librespot -> ffplay/vlc) Pipe librespot raw pcm s16le stream (Librespot -> ffplay/vlc)
#!/bin/bash
# This is the recommended option. ffplay playback controls are working perfectly.
# Seeking/Song-skipping works too.
librespot -n "Librespot Speaker" -b 320 --backend pipe | ffplay -f s16le -ar 44.1k -ac 2 -
# Not recommended. VLC playback controls are broken and spotify-connect remote control does not work either. (VLC macOS Bundle)
#librespot -n "Librespot Speaker" -b 320 --backend pipe | /Applications/VLC.app/Contents/MacOS/VLC -I dummy --demux=rawaud --rawaud-channels=2 --rawaud-samplerate=44100 -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment