Skip to content

Instantly share code, notes, and snippets.

@FelikZ
Created December 18, 2022 13:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save FelikZ/a7c4d6ea21d4df2627b4d064d450788e to your computer and use it in GitHub Desktop.
Save FelikZ/a7c4d6ea21d4df2627b4d064d450788e to your computer and use it in GitHub Desktop.
Watch Acestream on Apple TV using VLC (from Mac / OSX)
#!/usr/bin/env bash
# 1) Open firewall settings and exclude /Applications/Docker.app/Contents/Resources/bin/
# so containers can be accessible through the network
# 2) Start acelink
docker run --rm -ti --name "acelink" -p "0.0.0.0:6878:6878" -p "0.0.0.0:6888:6888" blaiseio/acelink \
--client-console \
--allow-user-config \
--bind-all \
--live-buffer-time=15 \
--live-cache-type=memory \
-–vod-buffer=15 \
--vod-cache-type=memory
# 3) Enter in STREAM_LINK value of stream and run commands
# this will generate link cosumable by Apple TV VLC
# Example: acestream://abcd
STREAM_LINK="acestream://abcd"
CURRENT_IP="$(ipconfig getifaddr en0)"
ACE_HASH="$(echo $STREAM_LINK | tr '/' ' ' | awk '{print $2}')"
echo "http://${CURRENT_IP}:6878/ace/getstream?id=${ACE_HASH}"
# 4) Copy-paste url to Apple TV VLC either through remote control or "Remote Playback" feature
# 5) Enjoy!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment