Skip to content

Instantly share code, notes, and snippets.

@mstaack
Forked from jbergler/.gitignore
Created November 27, 2018 22:50
Show Gist options
  • Save mstaack/c4d2f42785a7aecc5d0ca1e0f25af5be to your computer and use it in GitHub Desktop.
Save mstaack/c4d2f42785a7aecc5d0ca1e0f25af5be to your computer and use it in GitHub Desktop.
Acestream on Mac

Requirements

  1. Install Vagrant
  2. Clone this gist, git clone https://gist.github.com/a51db1442ca226cc5973.git acestream-via-vm

Streaming

  1. cd acestream-via-vm
  2. Start the VM: vagrant up
  3. Open network stream in VLC, http://127.0.0.1:8000/pid/acestream id/stream.mp4
  4. When done, vagrant halt, alternatively if you want to clean up use vagrant destroy
Vagrant.configure(2) do |config|
config.vm.box = "ubuntu/trusty64"
config.vm.network "forwarded_port", guest: 8000, host: 8000 # for aceproxy
# Provisioned once on VM creation
# Install acestream-engine and aceproxy
config.vm.provision "shell", inline: <<-SHELL
sudo sh -c 'echo "deb http://repo.acestream.org/ubuntu/ trusty main" >> /etc/apt/sources.list.d/acestream.list'
sudo wget -O - http://repo.acestream.org/keys/acestream.public.key | sudo apt-key add -
sudo apt-get update
sudo apt-get install -y python-gevent python-psutil git acestream-engine
git clone https://github.com/ValdikSS/aceproxy.git
SHELL
# Provisioned every startup
# Start aceproxy and acestream-engine in screen sessions
config.vm.provision "shell", run: "always", inline: <<-SHELL
screen -S acestream -d -m acestreamengine --client-console
screen -S aceproxy -d -m python aceproxy/acehttp.py
SHELL
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment