Skip to content

Instantly share code, notes, and snippets.

@gko
Created January 8, 2017 14:11
Show Gist options
  • Select an option

  • Save gko/ba51eea4607e4f773cd60466fe3be8f7 to your computer and use it in GitHub Desktop.

Select an option

Save gko/ba51eea4607e4f773cd60466fe3be8f7 to your computer and use it in GitHub Desktop.
stream your system audio to network
#!/bin/bash
# you can find listbox `https://github.com/gko/listbox`
source ~/listbox/listbox.sh
listbox -t "Stream:" -o "$(pactl list | grep "Monitor Source" | sed -e "s/.*Monitor Source:\s//" | tr '\n' '|')" -r stream
echo ""
cvlc -vvv pulse://"$stream" --sout '#transcode{acodec=mp3,ab=128,channels=2}:standard{access=http,dst=0.0.0.0:8888/t.mp3}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment