Skip to content

Instantly share code, notes, and snippets.

@filiperfernandes
Created November 4, 2018 18:52
Show Gist options
  • Save filiperfernandes/b75dd52ae11efe11163b97a67af9297d to your computer and use it in GitHub Desktop.
Save filiperfernandes/b75dd52ae11efe11163b97a67af9297d to your computer and use it in GitHub Desktop.
Acestream for MacOS and linux
#!/bin/sh
#Usage:
# To start: acestream start [acestream_id_only]
# To stop: acestream stop
#Dependencies:
# docker pull ikatson/aceproxy
# #docker run -t -p 8000:8000 --name aceproxy ikatson/aceproxy
# vlc
if [ "$1" == "start" ]; then
docker start aceproxy
sleep 5
vlc -q http://localhost:8000/pid/$2/stream.mp4 &
else
docker container stop aceproxy
kill $(ps | grep "bin/sh /usr/local/bin/vlc" | awk '{print $1}' | head -1)
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment