Created
November 4, 2018 18:52
-
-
Save filiperfernandes/b75dd52ae11efe11163b97a67af9297d to your computer and use it in GitHub Desktop.
Acestream for MacOS and linux
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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