-
Notifications
You must be signed in to change notification settings - Fork 115
Installation and configuration (Linux)
This article assumes you have Ace Stream installed.
Python 2, gevent, psutil are required dependencies and VLC is an optional (yet highly recommended) dependency. You can install all the dependencies with pip: pip install -r requirements.txt
. We use VLC only for streaming purposes, it is not required to watch streams using VLC only. You will head 2 issues without VLC: Ace Stream sends video data unevenly and most video players (like that in Smart TVs) may buffer it a lot or even drop connection, and the second issue is multiplexing. You can't watch one stream with 2 cients simultaneously without VLC. So it is highly recommended to use VLC. To work with GitHub you need Git, or you can just download ZIP archive with "Download ZIP" button.
Install these packages from your repository:
Debian and Ubuntu:
Without VLC: sudo apt-get install python-gevent python-psutil git
, With VLC: sudo apt-get install python-gevent python-psutil git vlc
ArchLinux:
Without VLC: sudo pacman -S python2-gevent python2-psutil git
, With VLC: sudo pacman -S python2-gevent python2-psutil git vlc
Now clone AceProxy repository:
git clone https://github.com/ValdikSS/aceproxy.git
You will have a folder named "aceproxy". If you want to update proxy, you run git pull
. For more information about Git, read Git Book
All the settings are stored in aceconfig.py file. By default, it is configured to run without VLC. If you don't plan to use it, it should work fine with default settings.
To use with VLC you should set option:
vlcuse = True
It is recommended to set these too:
videodelay = 0
videoobey = False
videopausedelay = 0
If you're experiencing lags in 20 seconds after start, configure videoseekback
Before you start the proxy, you should start Ace Stream and VLC with telnet-interface, if you use it.
It is recommended to start VLC with this command:
vlc -I telnet --telnet-password admin
If you're experiencing lags with this command, use:
vlc -I telnet --clock-jitter -1 --network-caching -1 --sout-mux-caching 2000 --telnet-password admin
Then run proxy:
python acehttp.py
or python2 acehttp.py
If you see INFO HTTP: Server started.
, everything is working fine!
Read next: Using AceProxy